/* ============================================================
   SYED NAVEED ABBAS — Portfolio Design System
   Secure Full Stack Developer & Cybersecurity Specialist
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Dark Theme (Default) — Electric Violet + Midnight Black */
  --bg-primary:    #0A0A1A;
  --bg-secondary:  #111127;
  --bg-card:       #16163A;
  --bg-glass:      rgba(22, 22, 58, 0.75);
  --bg-hover:      #1E1E4A;

  --text-primary:  #F0EEFF;
  --text-secondary:#9B97B8;
  --text-muted:    #5D5880;

  --accent-primary: #7C3AED;
  --accent-violet:  #A78BFA;
  --accent-cyan:   #7C3AED;
  --accent-cyan-dim: rgba(124, 58, 237, 0.15);
  --accent-amber:  #FBBF24;
  --accent-amber-dim: rgba(251, 191, 36, 0.15);
  --accent-green:  #10B981;
  --accent-red:    #EF4444;
  --accent-purple: #A78BFA;

  --gradient-primary:  linear-gradient(135deg, #7C3AED, #A78BFA);
  --gradient-accent:   linear-gradient(135deg, #7C3AED, #C084FC);
  --gradient-text:     linear-gradient(135deg, #7C3AED 0%, #A78BFA 50%, #C084FC 100%);

  --border:        rgba(124, 58, 237, 0.15);
  --border-hover:  rgba(124, 58, 237, 0.45);
  --shadow:        0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow:   0 0 40px rgba(124, 58, 237, 0.2);
  --shadow-card:   0 8px 32px rgba(0, 0, 0, 0.6);
  --glow-intense:  0 0 60px rgba(124, 58, 237, 0.35), 0 0 120px rgba(124, 58, 237, 0.15);
  --glow-soft:     0 0 30px rgba(124, 58, 237, 0.2);
  --glow-amber:    0 0 40px rgba(251, 191, 36, 0.3);

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;

  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans:     'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --nav-height:    70px;
}

/* ── Light Theme ───────────────────────────────────────────── */
[data-theme="light"] {
  --bg-primary:    #FAFAFF;
  --bg-secondary:  #F3F0FF;
  --bg-card:       #FFFFFF;
  --bg-glass:      rgba(255, 255, 255, 0.88);
  --bg-hover:      #EDE9FE;

  --text-primary:  #1A1040;
  --text-secondary:#4C3D6E;
  --text-muted:    #7C6FA0;

  --accent-primary: #7C3AED;
  --accent-violet:  #6D28D9;
  --accent-cyan:   #7C3AED;
  --accent-cyan-dim: rgba(124, 58, 237, 0.1);
  --accent-amber:  #D97706;
  --accent-amber-dim: rgba(217, 119, 6, 0.12);
  --accent-green:  #059669;
  --accent-red:    #DC2626;
  --accent-purple: #6D28D9;

  --gradient-primary:  linear-gradient(135deg, #7C3AED, #A78BFA);
  --gradient-accent:   linear-gradient(135deg, #7C3AED, #C084FC);
  --gradient-text:     linear-gradient(135deg, #7C3AED 0%, #6D28D9 50%, #A78BFA 100%);

  --border:        rgba(124, 58, 237, 0.1);
  --border-hover:  rgba(124, 58, 237, 0.35);
  --shadow:        0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-glow:   0 0 30px rgba(124, 58, 237, 0.08);
  --shadow-card:   0 15px 35px -10px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(124, 58, 237, 0.06);
  --glow-intense:  0 0 40px rgba(124, 58, 237, 0.12);
  --glow-soft:     0 0 20px rgba(124, 58, 237, 0.08);
  --glow-cyan:     0 0 30px rgba(124, 58, 237, 0.1);
  --glow-amber:    0 0 30px rgba(217, 119, 6, 0.1);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  cursor: none;
}

/* Hide default cursor on interactive and container components, allowing fallback on native browser scrollbars */
html, body, a, button, input, select, textarea, label, [role="button"], .project-card, .blog-card, .skill-tag, .gh-repo-card, .timeline-body, .virtue-card, .service-detail-card, .review-feed-card {
  cursor: none !important;
}

::selection { background: var(--accent-cyan-dim); color: var(--accent-cyan); }

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; font-family: inherit; }

/* ── Custom Cursor ──────────────────────────────────────────── */
#cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--cursor-color, var(--accent-cyan));
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999999 !important;
  left: 0; top: 0;
  transform: translate3d(calc(var(--x, -100px) - 50%), calc(var(--y, -100px) - 50%), 0);
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 0 12px var(--cursor-color, var(--accent-cyan));
  will-change: transform;
}

#cursor-ring {
  position: fixed;
  width: 40px; height: 40px;
  border: 1.5px solid var(--cursor-ring-color, rgba(0, 212, 255, 0.55));
  border-radius: 4px;
  pointer-events: none;
  z-index: 9999998 !important;
  left: 0; top: 0;
  transform: translate3d(calc(var(--x, -100px) - 50%), calc(var(--y, -100px) - 50%), 0) rotate(45deg);
  transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, border-radius 0.3s ease, opacity 0.3s ease;
  will-change: transform;
}

#cursor-ring::before, #cursor-ring::after {
  content: '';
  position: absolute;
  background: var(--cursor-ring-color, rgba(0, 212, 255, 0.55));
  transition: background-color 0.3s ease, top 0.3s ease, bottom 0.3s ease, left 0.3s ease, right 0.3s ease;
}

#cursor-ring::before {
  top: 50%; left: -6px; right: -6px; height: 1.5px;
  transform: translateY(-50%);
}

#cursor-ring::after {
  left: 50%; top: -6px; bottom: -6px; width: 1.5px;
  transform: translateX(-50%);
}

body.cursor-hover #cursor-dot {
  width: 4px; height: 4px;
  background: var(--accent-amber);
  box-shadow: 0 0 16px var(--accent-amber);
}

body.cursor-hover #cursor-ring {
  width: 60px; height: 60px;
  border-color: rgba(245, 158, 11, 0.6);
  border-radius: 50%;
  transform: translate3d(calc(var(--x, -100px) - 50%), calc(var(--y, -100px) - 50%), 0) rotate(90deg);
}

body.cursor-hover #cursor-ring::before {
  left: 12px; right: 12px;
  background: rgba(245, 158, 11, 0.6);
}

body.cursor-hover #cursor-ring::after {
  top: 12px; bottom: 12px;
  background: rgba(245, 158, 11, 0.6);
}

body.cursor-click #cursor-ring {
  transform: translate3d(calc(var(--x, -100px) - 50%), calc(var(--y, -100px) - 50%), 0) rotate(135deg) scale(0.8);
}

/* Light theme: use dark cursor so it's visible on white backgrounds */
[data-theme="light"] {
  --cursor-color: #7C3AED;
  --cursor-glow: rgba(124, 58, 237, 0.25);
  --cursor-ring-color: rgba(124, 58, 237, 0.5);
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--gradient-primary); border-radius: 99px; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-label::before, .section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-label::before { max-width: 40px; }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.text-gradient {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-text 3s linear infinite;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.8;
}

/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Particles Canvas ──────────────────────────────────────── */
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}

/* ── Navigation ────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition);
}

#navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: #818cf8;
  padding: 7px 11px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.08);
  letter-spacing: -0.01em;
}

.nav-logo-icon .logo-bracket { color: #818cf8; }

.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-logo-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.nav-logo-tag {
  font-size: 0.62rem;
  color: var(--accent-green);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.1);
}

.nav-links a.active {
  color: var(--accent-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  font-size: 1rem;
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
}

.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-mobile a:hover { color: var(--accent-primary); background: rgba(99,102,241,0.08); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.55);
}

.btn-outline {
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
}

.btn-amber {
  background: linear-gradient(135deg, var(--accent-amber), #d97706);
  color: #060b18;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.45);
}

/* ── Hero Section ──────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--nav-height) 0 60px;
}

/* Animated aurora background */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 30% 20%, rgba(99,102,241,0.18), transparent),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(139,92,246,0.12), transparent),
    radial-gradient(ellipse 50% 70% at 15% 80%, rgba(6,182,212,0.1), transparent);
  z-index: 0;
  animation: aurora-hero 10s ease-in-out infinite alternate;
}

@keyframes aurora-hero {
  0%   { background:
    radial-gradient(ellipse 90% 60% at 30% 20%, rgba(99,102,241,0.18), transparent),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(139,92,246,0.12), transparent),
    radial-gradient(ellipse 50% 70% at 15% 80%, rgba(6,182,212,0.1), transparent); }
  100% { background:
    radial-gradient(ellipse 80% 70% at 40% 10%, rgba(99,102,241,0.22), transparent),
    radial-gradient(ellipse 70% 60% at 70% 80%, rgba(139,92,246,0.15), transparent),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(6,182,212,0.12), transparent); }
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.07) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 40%, transparent 100%);
}

/* Ambient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-orb-1 {
  width: 500px; height: 500px;
  background: rgba(99, 102, 241, 0.15);
  top: -100px; left: -150px;
  animation: orb-drift1 12s ease-in-out infinite alternate;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  background: rgba(139, 92, 246, 0.12);
  bottom: -80px; right: -100px;
  animation: orb-drift2 10s ease-in-out infinite alternate;
}

.hero-orb-3 {
  width: 300px; height: 300px;
  background: rgba(6, 182, 212, 0.1);
  top: 50%; left: 55%;
  animation: orb-drift3 8s ease-in-out infinite alternate;
}

@keyframes orb-drift1 { to { transform: translate(60px, 40px); } }
@keyframes orb-drift2 { to { transform: translate(-50px, -60px); } }
@keyframes orb-drift3 { to { transform: translate(30px, -40px); } }

/* Split Hero Layout */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero visual side */
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Premium badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 99px;
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-primary);
  margin-bottom: 28px;
  animation: badge-float 3.5s ease-in-out infinite;
}

.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse-green 1.8s infinite;
  flex-shrink: 0;
}

/* Hero title */
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.hero-title .line-accent {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-text 3s linear infinite;
  display: block;
}

@keyframes shimmer-text {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Typing wrapper */
.hero-typing-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  color: var(--text-muted);
}

.hero-typing-wrapper .prompt { color: var(--accent-amber); font-weight: 700; }

#typed-text {
  color: var(--accent-cyan);
  font-weight: 600;
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.cursor {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--accent-cyan);
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: middle;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 48px;
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 80px;
  text-align: center;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-arrow {
  font-size: 1.2rem;
  color: var(--accent-primary);
  animation: arrow-bounce 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(99,102,241,0.7));
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: 0.5; }
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

/* ── HERO VISUAL — Right Side Code Card ─────────────────────── */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
}

/* Floating Tech Badges */
.hero-float-badge {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 10;
  animation: badge-float-badge 3s ease-in-out infinite;
}

.badge-python { top: -14px; left: 0; animation-delay: 0s; border-color: rgba(99,102,241,0.3); color: #818cf8; }
.badge-php    { top: 50px; right: -20px; animation-delay: 0.6s; border-color: rgba(139,92,246,0.3); color: #a78bfa; }
.badge-js     { bottom: 80px; right: -10px; animation-delay: 1.2s; border-color: rgba(245,158,11,0.3); color: #fbbf24; }
.badge-sec    { bottom: 0; left: 10px; animation-delay: 1.8s; border-color: rgba(239,68,68,0.3); color: #f87171; }
.badge-db     { top: 30%; left: -20px; animation-delay: 0.9s; border-color: rgba(6,182,212,0.3); color: #22d3ee; }

@keyframes badge-float-badge {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-8px) rotate(1deg); }
}

/* Code Card */
.hero-code-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(99,102,241,0.15),
              inset 0 1px 0 rgba(255,255,255,0.05);
  animation: card-float 6s ease-in-out infinite;
}

@keyframes card-float {
  0%, 100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
  33%       { transform: translateY(-10px) rotateX(1deg) rotateY(-0.5deg); }
  66%       { transform: translateY(-5px) rotateX(-0.5deg) rotateY(0.5deg); }
}

.hero-code-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(99, 102, 241, 0.08);
  border-bottom: 1px solid var(--border);
}

.hero-code-dots {
  display: flex;
  gap: 6px;
}

.dot-red, .dot-yellow, .dot-green {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.hero-code-filename {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.hero-code-body {
  padding: 20px 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  background: var(--bg-card);
}

.code-line { display: block; }
.code-line.indent  { padding-left: 16px; }
.code-line.indent2 { padding-left: 32px; }
.code-line.indent3 { padding-left: 48px; }

.code-keyword { color: #c678dd; }
.code-class   { color: #e5c07b; }
.code-fn      { color: #61afef; }
.code-str     { color: #98c379; }
.code-comment { color: #5c6370; font-style: italic; }

.code-cursor-blink {
  display: inline-block;
  color: var(--accent-primary);
  animation: blink 1s infinite;
}

/* Mini Stats Card */
.hero-mini-card {
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  backdrop-filter: blur(12px);
}

.mini-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-card-icon { font-size: 1.6rem; }

.mini-card-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

.mini-card-val {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
}


/* ── About Section ─────────────────────────────────────────── */
#about {
  background: var(--bg-secondary);
  position: relative;
}

.about-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-image-frame {
  position: relative;
  width: 340px; height: 400px;
}

.about-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  position: relative;
  z-index: 1;
}

.about-img-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.15), transparent 70%);
  border-radius: var(--radius-xl);
  z-index: 0;
}

.about-img-corner {
  position: absolute;
  width: 40px; height: 40px;
  border-color: var(--accent-primary);
  border-style: solid;
  z-index: 2;
}

.about-img-corner.tl { top: -6px; left: -6px; border-width: 2px 0 0 2px; border-radius: 6px 0 0 0; }
.about-img-corner.tr { top: -6px; right: -6px; border-width: 2px 2px 0 0; border-radius: 0 6px 0 0; }
.about-img-corner.bl { bottom: -6px; left: -6px; border-width: 0 0 2px 2px; border-radius: 0 0 0 6px; }
.about-img-corner.br { bottom: -6px; right: -6px; border-width: 0 2px 2px 0; border-radius: 0 0 6px 0; }

.about-badge {
  position: absolute;
  bottom: -16px; right: -16px;
  background: var(--bg-card);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  z-index: 3;
  box-shadow: var(--shadow-card), 0 0 30px rgba(99,102,241,0.15);
}

.about-badge-icon { font-size: 1.5rem; margin-bottom: 4px; }
.about-badge-label { color: var(--text-muted); font-size: 0.7rem; }
.about-badge-val   { color: var(--accent-primary); font-weight: 700; }

.about-content { padding-left: 20px; }

.about-bio {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 28px;
}

.about-highlight {
  color: var(--accent-primary);
  font-weight: 600;
}

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.about-info-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: var(--transition);
}

.about-info-item:hover { border-color: var(--border-hover); background: var(--bg-hover); }

.about-info-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.about-info-val {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* ── Skills Section ────────────────────────────────────────── */
#skills {
  position: relative;
}

.skills-header { text-align: center; margin-bottom: 60px; }
.skills-header .section-subtitle { margin: 0 auto; }

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.skill-category:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.skill-cat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.skill-cat-icon.frontend { background: rgba(99, 102, 241, 0.15); color: var(--accent-primary); }
.skill-cat-icon.backend  { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.skill-cat-icon.database { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.skill-cat-icon.security { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }

.skill-cat-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-cat-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 3px 9px;
  border-radius: 99px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 99px;
  border: 1px solid;
  transition: var(--transition);
}

.skill-tag.frontend-tag {
  border-color: rgba(99,102,241,0.3);
  color: var(--accent-primary);
  background: rgba(99,102,241,0.07);
}

.skill-tag.frontend-tag:hover { background: rgba(99,102,241,0.18); box-shadow: 0 0 14px rgba(99,102,241,0.25); }

.skill-tag.backend-tag {
  border-color: rgba(245,158,11,0.3);
  color: var(--accent-amber);
  background: rgba(245,158,11,0.06);
}

.skill-tag.backend-tag:hover { background: rgba(245,158,11,0.15); }

.skill-tag.database-tag {
  border-color: rgba(16,185,129,0.3);
  color: var(--accent-green);
  background: rgba(16,185,129,0.06);
}

.skill-tag.database-tag:hover { background: rgba(16,185,129,0.15); }

.skill-tag.security-tag {
  border-color: rgba(239,68,68,0.3);
  color: var(--accent-red);
  background: rgba(239,68,68,0.06);
}

.skill-tag.security-tag:hover { background: rgba(239,68,68,0.15); }

/* Security Highlight Box */
.security-highlight {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(239,68,68,0.05), rgba(245,158,11,0.05));
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 8px;
}

.security-highlight-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.owasp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.owasp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.owasp-item::before {
  content: '▸';
  color: var(--accent-amber);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ── Projects Section ──────────────────────────────────────── */
#projects {
  background: var(--bg-secondary);
}

.projects-header { text-align: center; margin-bottom: 60px; }
.projects-header .section-subtitle { margin: 0 auto; }

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-6px);
}

.project-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.project-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-image img { transform: scale(1.05); }

.project-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card), transparent);
}

.project-tags-top {
  position: absolute;
  top: 14px; left: 14px;
  display: flex; gap: 6px; flex-wrap: wrap;
}

.project-tag-chip {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-security-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(239,68,68,0.9);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  display: flex; align-items: center; gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.project-meta-item { }

.project-meta-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.project-meta-val {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.project-security-edge {
  background: rgba(239,68,68,0.06);
  border-left: 3px solid var(--accent-red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.project-security-edge-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.project-stack {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 20px;
}

.stack-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.project-outcome {
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.83rem;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  font-style: italic;
}

.project-card-footer {
  margin-top: auto;
  display: flex;
  gap: 12px;
  align-items: center;
}

.project-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.project-link:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

/* ── Blog Section ──────────────────────────────────────────── */
#blog {
  position: relative;
}

.blog-header { text-align: center; margin-bottom: 60px; }
.blog-header .section-subtitle { margin: 0 auto; }

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.blog-card-image {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary);
}

.blog-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img { transform: scale(1.05); }

.blog-card-cat {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 99px;
}

.cat-security  { background: rgba(239,68,68,0.85); color: white; }
.cat-backend   { background: rgba(245,158,11,0.85); color: #050c1a; }
.cat-devops    { background: rgba(139,92,246,0.85); color: white; }
.cat-frontend  { background: rgba(0,212,255,0.85); color: #050c1a; }

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

.blog-card-meta span { display: flex; align-items: center; gap: 4px; }

.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 10px;
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.blog-tag {
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.blog-read-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: flex; align-items: center; gap: 4px;
  transition: var(--transition);
}

.blog-read-link:hover { gap: 8px; }

/* ── Contact Section ───────────────────────────────────────── */
#contact {
  background: var(--bg-secondary);
  position: relative;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.contact-info-head {
  margin-bottom: 32px;
}

.contact-tagline {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.contact-tagline span { color: var(--accent-cyan); }

.contact-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
  text-decoration: none;
}

.contact-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-card-text { }
.contact-card-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-mono); }
.contact-card-val   { font-size: 0.9rem; color: var(--text-primary); font-weight: 500; }

/* Form */
.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-form-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-input, .form-select, .form-textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition);
  width: 100%;
  resize: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
  background: var(--bg-primary);
}

.form-select { appearance: none; }

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.form-privacy {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Form Validation Styles ────────────────────────────────── */
.form-error {
  display: block;
  font-size: 0.75rem;
  color: #f87171;
  min-height: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.25s ease;
}

.form-error.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-input.input-error,
.form-textarea.input-error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.form-input.input-success,
.form-textarea.input-success {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #818cf8;
  letter-spacing: -0.01em;
}

.footer-logo .logo-bracket {
  color: #818cf8;
}

.footer-socials {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-socials a {
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-socials a:hover {
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.footer-links {
  display: flex; gap: 24px; flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--accent-primary); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── Scroll Animations ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── Toast Notification ────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  font-size: 0.88rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; align-items: center; gap: 10px;
  max-width: 340px;
}

#toast.show { transform: translateY(0); opacity: 1; }
#toast.success { border-left: 3px solid var(--accent-green); }
#toast.error   { border-left: 3px solid var(--accent-red); }

/* ── Section Background Accents ───────────────────────────── */
.section-bg-accent {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ── Back to Top ──────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 32px; left: 32px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  z-index: 900;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

#back-to-top.visible { opacity: 1; pointer-events: all; }
#back-to-top:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  transform: translateY(-2px);
}

/* ── Active Nav Indicator ──────────────────────────────────── */
.nav-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-amber));
  z-index: 1001;
  transition: width 0.1s ease;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-visual { order: -1; max-width: 100%; margin: 0 auto; overflow: visible; }
  .hero-float-badge { transform: scale(0.85); }
  .badge-php { right: 0; }
  .badge-js { right: 0; }
  .badge-db { left: 0; }

  .hero-desc { max-width: 100%; }

  .hero-actions { justify-content: center; }

  .hero-badge { justify-content: center; }

  .hero-typing-wrapper { justify-content: center; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Hide hire me button on small screens to save space */
  .nav-cta-btn { display: none; }

  .grid-2, .contact-inner {
    grid-template-columns: 1fr;
  }

  .about-content { padding-left: 0; }

  .grid-3 { grid-template-columns: 1fr; }

  .about-image-wrapper { margin-bottom: 32px; }

  .about-info-grid { grid-template-columns: 1fr; }

  .hero-stats {
    gap: 0;
    flex-wrap: wrap;
  }

  .stat-item { min-width: 50%; }

  .form-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }

  .project-meta-grid { grid-template-columns: 1fr; }

  /* Overlay mobile */
  .overlay-container { padding: 20px 16px 40px; }
  .overlay-title { font-size: 2rem !important; }
  .overlay-close-btn { top: 15px; right: 15px; width: 42px; height: 42px; font-size: 22px; }
  .overlay-header { margin-bottom: 30px; padding-bottom: 20px; }
  .spa-overlay { padding: 50px 0 60px; }

  /* Timeline responsive */
  .timeline-container::before { left: 14px; }
  .timeline-item { padding-left: 40px; }
  .timeline-dot { left: 7px; }
  .timeline-body { padding: 18px; }
  .timeline-body h3 { font-size: 1.1rem; }

  /* Virtue cards on mobile */
  .timeline-virtues { grid-template-columns: 1fr !important; }

  /* Services grid on mobile */
  .services-details-grid { grid-template-columns: 1fr !important; }

  /* Reviews grid on mobile */
  .grid-2.reviews-grid { grid-template-columns: 1fr !important; }

  /* Reviews feed columns */
  .review-feed-grid { grid-template-columns: 1fr !important; }

  /* Proposal preview  */
  #proposal-preview-card { padding: 16px !important; }

  /* Submit row stacks */
  .form-submit-row { flex-direction: column; align-items: stretch !important; }
  .submit-actions-flex { flex-direction: column; }
  .submit-actions-flex .btn { width: 100%; justify-content: center; }

  /* Star rating bigger tap targets */
  .review-star-btn { font-size: 38px !important; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .btn { justify-content: center; }
  .contact-form-wrapper { padding: 20px 16px; }

  /* Hero on small phones */
  .hero-title { font-size: clamp(2rem, 10vw, 2.8rem); }
  .hero-split { gap: 28px; }
  .hero-stats { border-radius: var(--radius-sm); }
  .hero-code-card { font-size: 0.78rem; }

  /* Section headings */
  .section-title { font-size: clamp(1.6rem, 7vw, 2rem); }

  /* Overlay on small phones */
  .overlay-title { font-size: 1.6rem !important; }
  .overlay-subtitle { font-size: 0.9rem !important; }
  .overlay-badge { font-size: 0.72rem; }

  /* Nav logo compact */
  .nav-logo-text { display: none; }

  /* Stats compact: 2-col grid */
  .stat-item { min-width: 45%; }
  .stat-divider { display: none; }
  .stat-num { font-size: 1.3rem; }
}

/* ── Preloader ─────────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden { opacity: 0; visibility: hidden; }

.preloader-logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.preloader-bar {
  width: 200px; height: 2px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-amber));
  border-radius: 99px;
  animation: preload 1.5s ease-in-out forwards;
}


@keyframes preload { from { width: 0; } to { width: 100%; } }

/* ══════════════════════════════════════════════════════════════
   GITHUB REPOSITORIES SECTION
══════════════════════════════════════════════════════════════ */

#github-repos {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

#github-repos::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.github-repos-header {
  text-align: center;
  margin-bottom: 40px;
}

/* ── Filter Bar ──────────────────────────────────────────────── */
.gh-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.gh-filter-btn {
  padding: 8px 20px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.gh-filter-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  transform: translateY(-2px);
}

.gh-filter-btn.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(99,102,241,0.3);
}

/* ── Skeleton Loading ─────────────────────────────────────────── */
.gh-loading-wrapper { padding: 10px 0 20px; }

.gh-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gh-skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skel {
  border-radius: 6px;
  background: linear-gradient(90deg,
    var(--bg-hover) 25%,
    rgba(99,102,241,0.05) 50%,
    var(--bg-hover) 75%
  );
  background-size: 200% 100%;
  animation: skel-shimmer 1.5s infinite;
}

.skel-title  { height: 20px; width: 70%; }
.skel-text   { height: 14px; width: 100%; }
.skel-text.short { width: 55%; }
.skel-footer { height: 36px; width: 100%; margin-top: 8px; border-radius: 8px; }

@keyframes skel-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Error / Empty State ─────────────────────────────────────── */
.gh-error-state {
  text-align: center;
  padding: 60px 20px;
}

.gh-error-icon {
  font-size: 3rem;
  margin-bottom: 14px;
}

.gh-error-msg {
  color: var(--text-secondary);
  font-size: 1rem;
}

.gh-error-msg a {
  color: var(--accent-cyan);
  text-decoration: underline;
  transition: var(--transition-fast);
}

.gh-error-msg a:hover { opacity: 0.8; }

/* ── Repos Grid ──────────────────────────────────────────────── */
.gh-repos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

/* ── Single Repo Card ────────────────────────────────────────── */
.gh-repo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  animation: gh-card-in 0.4s ease both;
}

@keyframes gh-card-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gh-repo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gh-repo-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.gh-repo-card:hover::before { opacity: 1; }

/* Repo top-left pin icon */
.gh-repo-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.gh-repo-icon {
  font-size: 1.1rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.gh-repo-fork-badge {
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(139,92,246,0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(139,92,246,0.25);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Repo Name */
.gh-repo-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  word-break: break-word;
  line-height: 1.3;
  flex: 1;
  transition: var(--transition-fast);
}

.gh-repo-card:hover .gh-repo-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Description */
.gh-repo-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gh-repo-desc.no-desc {
  color: var(--text-muted);
  font-style: italic;
}

/* Topics */
.gh-repo-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gh-topic-tag {
  font-size: 0.7rem;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Footer Stats */
.gh-repo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.gh-repo-stats {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gh-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.gh-stat svg { flex-shrink: 0; opacity: 0.8; }

/* Language Dot */
.gh-lang {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.gh-lang-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Updated date */
.gh-updated {
  font-size: 0.71rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Show More / View All ────────────────────────────────────── */
.gh-show-more-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.gh-show-more-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.gh-show-more-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.gh-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

/* ── Language Color Map ──────────────────────────────────────── */
/* Applied dynamically via JS, these are reference colors */

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .gh-repos-grid,
  .gh-skeleton-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .gh-repos-grid,
  .gh-skeleton-grid { grid-template-columns: 1fr; }

  .gh-filter-bar { gap: 8px; }
  .gh-filter-btn { padding: 7px 14px; font-size: 0.78rem; }
}

/* ══════════════════════════════════════════════════════════════
   ██████╗ ██████╗ ███████╗███╗   ███╗██╗██╗   ██╗███╗   ███╗
   ██╔══██╗██╔══██╗██╔════╝████╗ ████║██║██║   ██║████╗ ████║
   ██████╔╝██████╔╝█████╗  ██╔████╔██║██║██║   ██║██╔████╔██║
   ██╔═══╝ ██╔══██╗██╔══╝  ██║╚██╔╝██║██║██║   ██║██║╚██╔╝██║
   ██║     ██║  ██║███████╗██║ ╚═╝ ██║██║╚██████╔╝██║ ╚═╝ ██║
   ╚═╝     ╚═╝  ╚═╝╚══════╝╚═╝     ╚═╝╚═╝ ╚═════╝ ╚═╝     ╚═╝
   PREMIUM ANIMATION & VISUAL POLISH SYSTEM
══════════════════════════════════════════════════════════════ */

/* ── 1. PRELOADER — Cyber Spinner ──────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  perspective: 800px;
}

#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* 3D Cube */
.preloader-cube {
  width: 60px;
  height: 60px;
  position: relative;
  transform-style: preserve-3d;
  animation: spin-cube 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.cube-face {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid var(--accent-cyan);
  background: rgba(0, 212, 255, 0.05);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.cube-face.front  { transform: translateZ(30px); border-color: var(--accent-cyan); }
.cube-face.back   { transform: rotateY(180deg) translateZ(30px); border-color: var(--accent-purple); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(30px); border-color: var(--accent-amber); }
.cube-face.right  { transform: rotateY(90deg) translateZ(30px); border-color: var(--accent-amber); }
.cube-face.top    { transform: rotateX(90deg) translateZ(30px); border-color: var(--accent-cyan); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(30px); border-color: var(--accent-purple); }

@keyframes spin-cube {
  0%   { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  33%  { transform: rotateX(180deg) rotateY(90deg) rotateZ(0deg); }
  66%  { transform: rotateX(180deg) rotateY(270deg) rotateZ(180deg); }
  100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

.preloader-logo {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: preloader-logo-glow 1.5s ease-in-out infinite alternate;
  letter-spacing: 0.05em;
}

@keyframes preloader-logo-glow {
  from { filter: drop-shadow(0 0 6px rgba(99,102,241,0.4)); }
  to   { filter: drop-shadow(0 0 20px rgba(99,102,241,0.9)); }
}

.preloader-bar {
  width: 200px; height: 2px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-amber), var(--accent-purple));
  border-radius: 99px;
  animation: preload 1.5s ease-in-out forwards;
}

@keyframes preload { from { width: 0; } to { width: 100%; } }

.preloader-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: blink 1s infinite;
}

/* ── 2. HERO — Aurora Background Pulse ─────────────────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99,102,241,0.14), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(245,158,11,0.07), transparent),
    radial-gradient(ellipse 40% 60% at 20% 60%, rgba(139,92,246,0.07), transparent);
  z-index: 0;
  animation: aurora-pulse 8s ease-in-out infinite alternate;
}

@keyframes aurora-pulse {
  0%   {
    background:
      radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99,102,241,0.14), transparent),
      radial-gradient(ellipse 60% 40% at 80% 80%, rgba(245,158,11,0.07), transparent),
      radial-gradient(ellipse 40% 60% at 20% 60%, rgba(139,92,246,0.07), transparent);
  }
  50%  {
    background:
      radial-gradient(ellipse 90% 60% at 40% -10%, rgba(99,102,241,0.18), transparent),
      radial-gradient(ellipse 50% 50% at 90% 70%, rgba(245,158,11,0.1), transparent),
      radial-gradient(ellipse 50% 70% at 10% 70%, rgba(139,92,246,0.1), transparent);
  }
  100% {
    background:
      radial-gradient(ellipse 75% 55% at 60% -15%, rgba(99,102,241,0.12), transparent),
      radial-gradient(ellipse 65% 45% at 70% 90%, rgba(245,158,11,0.08), transparent),
      radial-gradient(ellipse 35% 55% at 30% 50%, rgba(139,92,246,0.08), transparent);
  }
}

/* ── Hero Title — Shimmer Gradient ────────────────────────── */
.hero-title .line-accent {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 40%, var(--accent-amber) 70%, var(--accent-cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-text 3s linear infinite;
}

@keyframes shimmer-text {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── Hero Typing — Enhanced ────────────────────────────────── */
#typed-text {
  color: var(--accent-cyan);
  font-weight: 600;
  text-shadow: 0 0 20px rgba(99,102,241,0.4);
}

/* ── Hero Badge — Pulse Ring ───────────────────────────────── */
.hero-badge {
  position: relative;
  animation: badge-float 3s ease-in-out infinite;
}

.hero-badge::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 99px;
  border: 1px solid rgba(99,102,241,0.2);
  animation: badge-ring-pulse 2s ease-in-out infinite;
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

@keyframes badge-ring-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.04); }
}

/* ── Hero Scroll Indicator — Enhanced ─────────────────────── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  z-index: 2;
}

.scroll-arrow {
  font-size: 1.4rem;
  color: var(--accent-cyan);
  animation: arrow-bounce 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(99,102,241,0.6));
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: 0.6; }
}

/* ── 3. NAVIGATION — Enhanced ──────────────────────────────── */
.nav-logo {
  position: relative;
}

.nav-logo:hover .logo-bracket {
  text-shadow: 0 0 15px rgba(99,102,241,0.4);
}

.nav-logo .logo-dot {
  color: var(--accent-amber);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 8px rgba(245,158,11,0.5); }
  50%       { opacity: 0.5; text-shadow: none; }
}

/* Nav link — underline slide */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%; right: 50%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 99px;
  transition: left 0.3s ease, right 0.3s ease;
  box-shadow: 0 0 8px rgba(99,102,241,0.5);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  left: 14px; right: 14px;
}

/* ── Nav Progress Bar — Gradient Glow ─────────────────────── */
#nav-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-amber));
  background-size: 200% auto;
  z-index: 1001;
  transition: width 0.1s ease;
  animation: progress-shimmer 2s linear infinite;
  box-shadow: 0 0 10px rgba(0,212,255,0.5);
}

@keyframes progress-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── 4. BUTTONS — Shine Sweep Effect ──────────────────────── */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 150%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.55), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-3px);
  box-shadow: var(--glow-soft);
}

/* ── 5. ABOUT — Image Float & Corner Animate ──────────────── */
.about-image-frame {
  animation: img-float 4s ease-in-out infinite;
}

@keyframes img-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-8px) rotate(0.3deg); }
  66%       { transform: translateY(-4px) rotate(-0.2deg); }
}

.about-img {
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
  transition: box-shadow 0.4s ease;
}

.about-image-wrapper:hover .about-img {
  box-shadow: 0 25px 80px rgba(0,0,0,0.6), var(--glow-soft);
}

/* Animated corner brackets */
.about-img-corner {
  transition: width 0.4s ease, height 0.4s ease, border-color 0.4s ease;
}

.about-image-wrapper:hover .about-img-corner {
  width: 50px; height: 50px;
  border-color: var(--accent-amber);
}

/* About badge — float with glow */
.about-badge {
  animation: badge-bob 3s ease-in-out infinite;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4), var(--glow-soft);
}

@keyframes badge-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* About info items — enhanced hover */
.about-info-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
  box-shadow: var(--glow-soft);
  transform: translateY(-2px);
}

/* ── 6. SKILLS — Stagger Pop-in & Glow Tags ───────────────── */
.skill-category {
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99,102,241,0.04), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-category:hover::before { opacity: 1; }

.skill-category:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-intense);
  transform: translateY(-6px);
}

.skill-tag {
  transition: var(--transition);
  position: relative;
}

.skill-tag:hover {
  transform: translateY(-2px) scale(1.05);
}

.skill-tag.frontend-tag:hover {
  background: rgba(99,102,241,0.2);
  box-shadow: 0 0 14px rgba(99,102,241,0.3);
}

.skill-tag.backend-tag:hover {
  background: rgba(245,158,11,0.2);
  box-shadow: 0 0 14px rgba(245,158,11,0.3);
}

.skill-tag.database-tag:hover {
  background: rgba(16,185,129,0.2);
  box-shadow: 0 0 14px rgba(16,185,129,0.3);
}

/* ── 7. PROJECTS — 3D Card & Glow Border Sweep ───────────── */
.project-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

/* Glowing border sweep on hover */
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: conic-gradient(
    from var(--angle, 0deg) at 50% 50%,
    var(--accent-primary) 0deg,
    var(--accent-purple) 60deg,
    var(--accent-amber) 120deg,
    transparent 180deg,
    transparent 360deg
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 1px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.project-card:hover::before { opacity: 1; }
.project-card:hover {
  border-color: transparent;
  box-shadow: var(--glow-intense);
  transform: translateY(-8px);
}

.project-card:hover .project-card-image img {
  transform: scale(1.08);
}

/* Inner glow on project card body on hover */
.project-card:hover .project-card-body {
  background: linear-gradient(180deg, rgba(99,102,241,0.02), transparent);
}

/* Stack tags — animated */
.stack-tag {
  transition: var(--transition);
}

.stack-tag:hover {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.4);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

/* Project links — enhanced */
.project-link:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: rgba(99,102,241,0.1);
  box-shadow: var(--glow-soft);
  transform: translateY(-2px);
}

/* ── 8. BLOG CARDS — Premium Hover ────────────────────────── */
.blog-card {
  position: relative;
}

.blog-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99,102,241,0.04), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.blog-card:hover::after { opacity: 1; }

.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--glow-soft);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.08);
}

/* Blog read link — hover glow */
.blog-read-link:hover {
  text-shadow: 0 0 14px rgba(99,102,241,0.5);
  gap: 10px;
}

/* ── 9. STATS — Neon Glow on Complete ─────────────────────── */
.stat-num {
  transition: text-shadow 0.5s ease;
}

.stat-num.counted {
  text-shadow: 0 0 20px rgba(0,212,255,0.4);
}

.stat-item:hover .stat-num {
  filter: drop-shadow(0 0 8px rgba(0,212,255,0.4));
}

/* ── 10. CONTACT — Enhanced Form & Cards ──────────────────── */
.contact-card {
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.contact-card:hover::before { transform: scaleY(1); }

.contact-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
  transform: translateX(6px);
  box-shadow: var(--glow-soft);
}

/* Form inputs — focus beam */
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1), 0 0 20px rgba(0,212,255,0.1);
  background: var(--bg-primary);
}

/* Contact form wrapper — glassmorphism upgrade */
.contact-form-wrapper {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: -50%; right: -50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.4), transparent);
}

/* ── 11. SCROLL REVEAL — Blur + Scale Combo ───────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(4px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1),
              filter 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  filter: blur(4px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1),
              filter 0.7s ease;
}

.reveal-left.visible { opacity: 1; transform: translateX(0); filter: blur(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  filter: blur(4px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1),
              filter 0.7s ease;
}

.reveal-right.visible { opacity: 1; transform: translateX(0); filter: blur(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── 12. FLOATING AMBIENT ORBS ─────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 10s ease-in-out infinite;
}

.orb-cyan  { background: radial-gradient(circle, rgba(6,182,212,0.12), transparent 70%); }
.orb-amber { background: radial-gradient(circle, rgba(245,158,11,0.1), transparent 70%); }
.orb-purple{ background: radial-gradient(circle, rgba(139,92,246,0.1), transparent 70%); }

@keyframes orb-drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(20px,-15px) scale(1.08); }
  66%      { transform: translate(-15px,10px) scale(0.95); }
}

/* ── 13. SECTION TITLE — Glowing Underline ────────────────── */
.section-title {
  position: relative;
  display: inline-block;
}

/* ── 14. SECURITY HIGHLIGHT BOX — Pulse Border ───────────── */
.security-highlight {
  position: relative;
  overflow: hidden;
}

.security-highlight::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239,68,68,0.5), transparent);
  animation: security-scan 4s ease-in-out infinite;
}

@keyframes security-scan {
  0%   { left: -100%; }
  100% { left: 100%; }
}

/* ── 15. BACK TO TOP — Glow ────────────────────────────────── */
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  animation: back-top-pulse 2s ease-in-out infinite;
}

@keyframes back-top-pulse {
  0%, 100% { box-shadow: var(--shadow), 0 0 0 0 rgba(99,102,241,0.3); }
  50%       { box-shadow: var(--shadow), 0 0 0 8px rgba(99,102,241,0); }
}

/* ── 16. TOAST — Upgraded ──────────────────────────────────── */
#toast {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
  box-shadow: var(--shadow-card), 0 0 30px rgba(0,0,0,0.3);
}

#toast.success {
  border-left: 3px solid var(--accent-green);
  box-shadow: var(--shadow-card), 0 0 20px rgba(16,185,129,0.15);
}

#toast.error {
  border-left: 3px solid var(--accent-red);
  box-shadow: var(--shadow-card), 0 0 20px rgba(239,68,68,0.15);
}

/* ── 17. FOOTER — Glow Border Top ──────────────────────────── */
footer {
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.4;
}

.footer-logo:hover {
  text-shadow: 0 0 16px rgba(99,102,241,0.4);
}

/* ── 18. SECTION DIVIDER GLOW ──────────────────────────────── */
#about, #projects, #contact {
  position: relative;
}

/* ── 19. GH REPO CARD — Enhanced Hover ────────────────────── */
.gh-repo-card:hover {
  box-shadow: var(--glow-intense);
  transform: translateY(-6px);
}

.gh-repo-card:hover .gh-repo-name {
  text-shadow: 0 0 12px rgba(99,102,241,0.4);
}

/* ── 20. PROJECT SECURITY BADGE — Pulse ─────────────────────── */
.project-security-badge {
  animation: badge-security-pulse 2s ease-in-out infinite;
}

@keyframes badge-security-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

/* ── 21. MAGNETIC BUTTON DATA ATTRS ─────────────────────────── */
[data-magnetic] {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease !important;
}

/* ── 22. SKILL CAT ICON — Rotating Glow ───────────────────── */
.skill-category:hover .skill-cat-icon {
  animation: icon-rotate-glow 0.6s ease forwards;
}

@keyframes icon-rotate-glow {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(-10deg) scale(1.15); }
  100% { transform: rotate(0deg) scale(1.1); }
}

/* ── 23. HIDE CURSOR ON MOBILE ──────────────────────────────── */
@media (max-width: 768px) {
  #cursor-dot, #cursor-ring { display: none !important; }
  html, body, a, button, input, select, textarea, label, [role="button"],
  .project-card, .blog-card, .skill-tag, .gh-repo-card, .timeline-body,
  .virtue-card, .service-detail-card, .review-feed-card {
    cursor: default !important;
  }
  a, button, [role="button"], .review-star-btn { cursor: pointer !important; }
}

/* ── 24. HERO CONTENT — Entrance Animation ──────────────────── */
.hero-badge     { animation: hero-enter 0.8s cubic-bezier(0.4,0,0.2,1) both; }
.hero-title     { animation: hero-enter 0.8s cubic-bezier(0.4,0,0.2,1) 0.1s both; }
.hero-typing-wrapper { animation: hero-enter 0.8s cubic-bezier(0.4,0,0.2,1) 0.2s both; }
.hero-desc      { animation: hero-enter 0.8s cubic-bezier(0.4,0,0.2,1) 0.3s both; }
.hero-actions   { animation: hero-enter 0.8s cubic-bezier(0.4,0,0.2,1) 0.4s both; }
.hero-stats     { animation: hero-enter 0.8s cubic-bezier(0.4,0,0.2,1) 0.5s both; }

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(30px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* ── 25. GLASSMORPHISM CARDS ────────────────────────────────── */
.project-card,
.blog-card,
.skill-category {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ── 26. SECTION LABEL — Animated Lines ─────────────────────── */
.section-label::before, .section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  animation: line-shimmer 3s linear infinite;
  background-size: 200% 100%;
}

@keyframes line-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ── 27. OWASP ITEMS — Stagger hover ───────────────────────── */
.owasp-item {
  transition: var(--transition);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
}

.owasp-item:hover {
  color: var(--text-primary);
  background: rgba(245,158,11,0.08);
  transform: translateX(4px);
}

.owasp-item:hover::before {
  color: var(--accent-primary);
}

/* ── 28. PROJECT OUTCOME BOX — Glow ─────────────────────────── */
.project-outcome {
  transition: var(--transition);
}

.project-card:hover .project-outcome {
  box-shadow: var(--glow-soft);
  border-color: rgba(99,102,241,0.35);
}

/* ── 29. CARDS SPOTLIGHT GLOW — Premium Agency Effect ──────── */
.project-card,
.blog-card,
.skill-category,
.gh-repo-card,
.contact-card,
.security-highlight {
  position: relative;
  z-index: 1;
}

.project-card::after,
.blog-card::after,
.skill-category::after,
.gh-repo-card::after,
.contact-card::after,
.security-highlight::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    350px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(99, 102, 241, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  pointer-events: none;
}

.project-card:hover::after,
.blog-card:hover::after,
.skill-category:hover::after,
.gh-repo-card:hover::after,
.contact-card:hover::after,
.security-highlight:hover::after {
  opacity: 1;
}
.project-card-body,
.blog-card-body,
.skill-cat-header,
.skill-tags,
.security-highlight-title,
.owasp-grid,
.contact-form-wrapper > *,
.gh-repo-card > *,
.project-card-image {
  position: relative;
  z-index: 2;
}

/* ══════════════════════════════════════════════════════════════
   SPA MODULAR OVERLAYS SYSTEM — PREMIUM STYLING
   ══════════════════════════════════════════════════════════════ */

.spa-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 99999;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 60px 0 80px;
  backdrop-filter: blur(16px);
  scroll-behavior: smooth;
}

.spa-overlay.active {
  transform: translateX(0);
}

body.overlay-open {
  overflow: hidden !important;
}

.overlay-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
}

.overlay-close-btn {
  position: fixed;
  top: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  z-index: 100000;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.overlay-close-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: rotate(90deg) scale(1.05);
  box-shadow: var(--shadow-glow);
}

.overlay-header {
  margin-bottom: 50px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 30px;
}

.overlay-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  margin-bottom: 15px;
}

.overlay-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  background: var(--gradient-text, linear-gradient(135deg, var(--accent-cyan), var(--accent-purple)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.overlay-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 700px;
}

.overlay-content {
  margin-top: 30px;
}

/* ── Timeline (Journey Overlay) ─────────────────────────────── */
.timeline-container {
  position: relative;
  margin-top: 20px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
  opacity: 0.35;
}

.timeline-item {
  position: relative;
  padding-left: 55px;
  margin-bottom: 45px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 13px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-cyan);
  z-index: 2;
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-cyan);
  transform: scale(1.2);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.timeline-body {
  background: var(--bg-card);
  padding: 25px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.timeline-body:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.timeline-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.timeline-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Ratings and Reviews ────────────────────────────────────── */
.review-feed-card {
  background: var(--bg-card);
  padding: 25px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.review-feed-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.review-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.review-card-stars {
  color: var(--accent-amber);
  font-size: 1.1rem;
}

.review-card-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-card-text {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.review-card-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid var(--border);
}

.review-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.review-author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-star-btn {
  font-size: 32px;
  cursor: pointer;
  color: rgba(255,255,255,0.15);
  transition: color 0.15s ease;
}

.review-star-btn:hover,
.review-star-btn.hover,
.review-star-btn.selected {
  color: var(--accent-amber);
}

/* ── Interactive Proposal Card ─────────────────────────────── */
.proposal-preview-card {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.proposal-preview-card:hover {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.08);
}

/* Testimonial Section Adjustments & Slider */
.testimonials-slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding-bottom: 50px;
}
.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.testimonial-card.slide {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  opacity: 0.5;
  transform: scale(0.95);
  transition: var(--transition);
  margin-right: 24px;
}
@media (min-width: 768px) {
  .testimonial-card.slide {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
}
@media (min-width: 1024px) {
  .testimonial-card.slide {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
  }
}
.testimonial-card.slide.active {
  opacity: 1;
  transform: scale(1);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}
.testimonial-client {
  display: flex;
  align-items: center;
  gap: 15px;
}
.client-avatar-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: none;
}
.slider-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-2px);
}
.slider-dots {
  display: flex;
  gap: 8px;
}
.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-hover);
  cursor: none;
  transition: var(--transition);
}
.slider-dots .dot.active {
  background: var(--accent-cyan);
  transform: scale(1.3);
}

.gh-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: none;
}

.gh-filter-btn:hover,
.gh-filter-btn.active {
  background: var(--bg-hover);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow);
}

.loader-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 212, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent-cyan);
  animation: spin 1s ease-in-out infinite;
}

/* Adjust light theme variables compatibility for reviews and overlays */
[data-theme="light"] .spa-overlay {
  background-color: var(--bg-primary);
}
[data-theme="light"] .overlay-close-btn {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .timeline-body,
[data-theme="light"] .review-feed-card,
[data-theme="light"] .write-review-wrapper {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .proposal-preview-card {
  background: rgba(0, 145, 178, 0.02) !important;
  border-color: var(--accent-primary) !important;
}

/* ── Light theme: fix invisible review stars (were rgba white) */
[data-theme="light"] .review-star-btn {
  color: rgba(15, 23, 42, 0.15);
}
[data-theme="light"] .review-star-btn:hover,
[data-theme="light"] .review-star-btn.hover,
[data-theme="light"] .review-star-btn.selected {
  color: var(--accent-amber);
}

/* ── Light theme: rating bar background */
[data-theme="light"] .bar-bg {
  background: rgba(15, 23, 42, 0.08) !important;
}

/* ── Light theme: interactive stars initial color */
[data-theme="light"] #input-rating-stars {
  color: rgba(15, 23, 42, 0.15) !important;
}

/* ── Light theme: form inputs */
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--text-primary);
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
  border-color: var(--accent-primary);
  background: #ffffff;
}

/* ── Light theme: select options */
[data-theme="light"] select.form-input option {
  background: #ffffff;
  color: #0f172a;
}

/* ── Light theme: overlay header border */
[data-theme="light"] .overlay-header {
  border-bottom-color: rgba(15, 23, 42, 0.1);
}

/* ── Light theme: overlay badge */
[data-theme="light"] .overlay-badge {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.2);
}

/* ── Light theme: virtue cards in Journey overlay */
[data-theme="light"] .virtue-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* ── Light theme: service detail cards */
[data-theme="light"] .service-detail-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero-title { font-size: 3rem; }
  .hero-split { gap: 40px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-image-wrapper { max-width: 300px; margin: 0 auto; }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav-links, .nav-cta-btn { display: none; }
  .theme-toggle { display: flex; }
  .nav-hamburger { display: flex; }
  
  /* Layout */
  .grid-2, .grid-3, .grid-4, .hero-split { grid-template-columns: 1fr; gap: 30px; }
  section { padding: 60px 0; }
  .container { padding: 0 20px; }
  
  /* Hero */
  .hero-title { font-size: 2.2rem; }
  .hero-desc { font-size: 0.95rem; }
  .hero-split { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-scroll-indicator { display: none; }
  .hero-visual { margin-top: 40px; }
  
  /* Typography & Elements */
  .section-title { font-size: 2rem; }
  .about-content { text-align: center; }
  .about-info-grid { text-align: left; }
  .about-image-wrapper { margin-bottom: 20px; }
  .project-card-image img { height: auto; }
  .timeline-item { padding-left: 35px; }
  .timeline-dot { left: 4px; }
  .timeline-container::before { left: 11px; }
  
  /* Form */
  .contact-form-wrapper { padding: 20px; }
  
  /* Modals */
  .overlay-container { padding: 20px 15px; }
  .overlay-title { font-size: 2rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-stats { flex-direction: column; gap: 15px; }
  .stat-divider { display: none; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
  .about-info-grid { grid-template-columns: 1fr; }
  .project-meta-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   HERO VIDEO CONTAINER — Electric Violet Theme
══════════════════════════════════════════════════════════════ */
.hero-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
}

.hero-video-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid rgba(124, 58, 237, 0.3);
  box-shadow:
    0 0 60px rgba(124, 58, 237, 0.25),
    0 0 120px rgba(124, 58, 237, 0.1),
    0 25px 60px rgba(0, 0, 0, 0.5);
  animation: video-glow 4s ease-in-out infinite alternate;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius-xl) - 2px);
}

@keyframes video-glow {
  0%   { box-shadow: 0 0 40px rgba(124, 58, 237, 0.2), 0 0 80px rgba(124, 58, 237, 0.08), 0 25px 60px rgba(0,0,0,0.5); border-color: rgba(124, 58, 237, 0.25); }
  100% { box-shadow: 0 0 70px rgba(124, 58, 237, 0.35), 0 0 140px rgba(124, 58, 237, 0.15), 0 25px 60px rgba(0,0,0,0.5); border-color: rgba(167, 139, 250, 0.45); }
}

/* Floating decoration around video */
.hero-video-decor {
  position: absolute;
  border-radius: var(--radius-md);
  border: 1px solid rgba(124, 58, 237, 0.2);
  background: rgba(124, 58, 237, 0.05);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--accent-violet);
  z-index: 5;
  animation: badge-float-badge 3s ease-in-out infinite;
  white-space: nowrap;
}

.hero-video-decor.decor-top-right {
  top: -12px; right: -12px;
  animation-delay: 0s;
}

.hero-video-decor.decor-bottom-left {
  bottom: -12px; left: -12px;
  animation-delay: 1.5s;
}

/* Hero social links row */
.hero-socials {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.hero-social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: rgba(124, 58, 237, 0.08);
  color: var(--accent-violet);
  transition: var(--transition);
}

.hero-social-link:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

/* ══════════════════════════════════════════════════════════════
   WAVY SECTION DIVIDERS
══════════════════════════════════════════════════════════════ */
.section-wave {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}

.section-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

.section-wave .wave-fill {
  fill: var(--bg-secondary);
}

.section-wave.wave-reverse svg {
  transform: scaleY(-1);
}

.section-wave.wave-primary .wave-fill { fill: var(--bg-primary); }
.section-wave.wave-secondary .wave-fill { fill: var(--bg-secondary); }

/* ══════════════════════════════════════════════════════════════
   WORK EXPERIENCE SECTION
══════════════════════════════════════════════════════════════ */
#experience {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.experience-header {
  text-align: center;
  margin-bottom: 60px;
}

.experience-header .section-subtitle {
  margin: 0 auto;
}

.experience-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-violet), transparent);
  opacity: 0.4;
}

.exp-item {
  position: relative;
  padding-left: 65px;
  margin-bottom: 40px;
}

.exp-item:last-child {
  margin-bottom: 0;
}

.exp-dot {
  position: absolute;
  left: 16px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-primary);
  z-index: 2;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
  transition: var(--transition);
}

.exp-item:hover .exp-dot {
  background: var(--accent-primary);
  transform: scale(1.3);
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.6);
}

.exp-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.exp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-violet));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.exp-item:hover .exp-card {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.exp-item:hover .exp-card::before {
  opacity: 1;
}

.exp-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.exp-card .exp-role {
  font-size: 0.85rem;
  color: var(--accent-violet);
  font-weight: 500;
  margin-bottom: 12px;
}

.exp-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.exp-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--accent-violet);
  background: rgba(124, 58, 237, 0.08);
}

/* ── Responsive adjustments for new sections ────────────────── */
@media (max-width: 768px) {
  .hero-video-wrapper { max-width: 480px; }
  .hero-video-decor { display: none; }
  .hero-socials { justify-content: center; }
  .section-wave svg { height: 50px; }
  .experience-timeline::before { left: 14px; }
  .exp-item { padding-left: 45px; }
  .exp-dot { left: 7px; }
}

@media (max-width: 480px) {
  .hero-video-wrapper { max-width: 340px; }
  .section-wave svg { height: 35px; }
}

/* ══════════════════════════════════════════════════════════════
   HERO VIDEO SOUND CONTROL BUTTON
══════════════════════════════════════════════════════════════ */
.video-sound-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(10, 10, 26, 0.85);
  border: 1.5px solid rgba(124, 58, 237, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #F0EEFF;
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(124, 58, 237, 0.3);
}

.video-sound-btn:hover {
  background: rgba(124, 58, 237, 0.95);
  border-color: #ffffff;
  color: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.7);
}

.video-sound-btn.unmuted {
  background: linear-gradient(135deg, #7C3AED, #A78BFA);
  border-color: #ffffff;
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.6);
}

/* ══════════════════════════════════════════════════════════════
   PROJECT LIVE DEMO CREDENTIALS POPUP MODAL
══════════════════════════════════════════════════════════════ */
.cred-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cred-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cred-modal-box {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  max-width: 420px;
  width: 100%;
  padding: 32px 28px 24px;
  position: relative;
  box-shadow: 
    0 25px 70px rgba(0, 0, 0, 0.3),
    var(--shadow-glow);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cred-modal-backdrop.active .cred-modal-box {
  transform: scale(1) translateY(0);
}

.cred-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.cred-modal-close:hover {
  background: rgba(124, 58, 237, 0.2);
  color: var(--text-primary);
  border-color: var(--accent-primary);
  transform: rotate(90deg);
}

.cred-modal-header {
  margin-bottom: 20px;
  text-align: center;
}

.cred-modal-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-violet);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.cred-modal-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.cred-modal-subtext {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cred-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.cred-card-single {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: var(--transition);
}

.cred-card-single:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.cred-card-role-title {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-violet);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cred-field-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
}

.cred-field-row:not(:last-child) {
  border-bottom: 1px dashed var(--border);
}

.cred-field-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.cred-field-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-primary);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cred-copy-btn {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border);
  color: var(--accent-violet);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.cred-copy-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.cred-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cred-modal-footer .btn {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .cred-modal-box {
    padding: 24px 20px 18px;
  }
  .cred-modal-heading {
    font-size: 1.25rem;
  }
}
