/* ==========================================================================
   Rizwan Ullah — DEVELOPER PORTFOLIO
   Design tokens, base, layout, components, animations, responsive.
   ========================================================================== */

:root{
  /* ---- Color tokens ---- */
  --bg:            #050816;
  --bg-alt:        #080b1e;
  --surface:       rgba(255,255,255,0.06);
  --surface-strong:rgba(255,255,255,0.10);
  --border-soft:   rgba(255,255,255,0.10);
  --text:          #FFFFFF;
  --text-muted:    #A0AEC0;
  --primary:       #00E5FF;
  --secondary:     #7B61FF;
  --accent:        #00FFA3;

  --primary-rgb:   0,229,255;
  --secondary-rgb: 123,97,255;
  --accent-rgb:    0,255,163;

  --grad-brand: linear-gradient(135deg, var(--primary), var(--secondary));
  --grad-accent: linear-gradient(135deg, var(--accent), var(--primary));

  /* ---- Typography ---- */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', monospace;

  /* ---- Layout ---- */
  --max-width: 1240px;
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(.22,1,.36,1);
  --dur-fast: .2s;
  --dur-med: .45s;
  --dur-slow: .8s;

  --header-h: 78px;
}

[data-theme="light"]{
  --bg: #F4F6FB;
  --bg-alt: #ECEFF7;
  --surface: rgba(10,15,35,0.045);
  --surface-strong: rgba(10,15,35,0.07);
  --border-soft: rgba(10,15,35,0.10);
  --text: #0B0F1E;
  --text-muted: #545E75;
}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration: .001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* ---- Reset ---- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; background:var(--bg); }
body{
  margin:0;
  background:transparent;
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.6;
  overflow-x:hidden;
  transition:color var(--dur-med) var(--ease);
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
input,textarea{ font-family:inherit; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; line-height:1.15; font-weight:600; }
p{ margin:0 0 1rem; color:var(--text-muted); }
::selection{ background:var(--secondary); color:#fff; }

/* Skip link */
.skip-link{
  position:absolute; left:-999px; top:0; background:var(--primary); color:#03131a;
  padding:.6rem 1rem; z-index:999; font-weight:600; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

:focus-visible{ outline:2px solid var(--primary); outline-offset:3px; border-radius:4px; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background:var(--bg); }
::-webkit-scrollbar-thumb{ background:var(--surface-strong); border-radius:10px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:900; height:var(--header-h);
  display:flex; align-items:center;
  transition:background var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), height var(--dur-med) var(--ease);
}
.site-header.scrolled{
  background:rgba(5,8,22,0.65); backdrop-filter:blur(18px) saturate(140%); -webkit-backdrop-filter:blur(18px) saturate(140%);
  box-shadow:0 1px 0 var(--border-soft), 0 10px 30px rgba(0,0,0,.25);
  height:66px;
}
[data-theme="light"] .site-header.scrolled{ background:rgba(244,246,251,0.72); }

.header-inner{
  width:100%; max-width:var(--max-width); margin:0 auto; padding:0 clamp(1.2rem,4vw,2.5rem);
  display:flex; align-items:center; justify-content:space-between; gap:1.5rem;
}
.logo-glyph{ font-family:var(--font-display); font-weight:700; font-size:1.4rem; letter-spacing:.5px; }
.logo-dot{ color:var(--primary); }

.main-nav ul{ display:flex; gap:1.9rem; }
.nav-link{ position:relative; font-size:.92rem; font-weight:500; color:var(--text-muted); padding:.4rem 0; transition:color var(--dur-fast); }
.nav-link::after{ content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px; background:var(--grad-brand); transition:width var(--dur-med) var(--ease); }
.nav-link:hover,.nav-link.active-link{ color:var(--text); }
.nav-link:hover::after,.nav-link.active-link::after{ width:100%; }

.header-actions{ display:flex; align-items:center; gap:1rem; }
.availability-badge{
  display:flex; align-items:center; gap:.5rem; font-size:.78rem; color:var(--accent);
  border:1px solid rgba(var(--accent-rgb),.35); padding:.35rem .7rem; border-radius:999px; background:rgba(var(--accent-rgb),.06);
  white-space:nowrap;
}
.pulse-dot{ width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 0 rgba(var(--accent-rgb),.6); animation:pulse 2s infinite; }
@keyframes pulse{ 0%{ box-shadow:0 0 0 0 rgba(var(--accent-rgb),.6);} 70%{ box-shadow:0 0 0 8px rgba(var(--accent-rgb),0);} 100%{ box-shadow:0 0 0 0 rgba(var(--accent-rgb),0);} }

.theme-toggle{ width:38px; height:38px; border-radius:50%; background:var(--surface); border:1px solid var(--border-soft); display:flex; align-items:center; justify-content:center; color:var(--text); transition:background var(--dur-fast); }
.theme-toggle:hover{ background:var(--surface-strong); }
.theme-toggle svg{ fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; }
.theme-toggle .icon-moon{ display:none; }
[data-theme="light"] .theme-toggle .icon-sun{ display:none; }
[data-theme="light"] .theme-toggle .icon-moon{ display:block; }

.nav-toggle{ display:none; width:38px; height:38px; flex-direction:column; align-items:center; justify-content:center; gap:5px; }
.nav-toggle span{ width:22px; height:2px; background:var(--text); border-radius:2px; transition:transform var(--dur-fast), opacity var(--dur-fast); }
.nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.85rem 1.6rem; font-weight:600; font-size:.92rem; border-radius:999px; overflow:hidden;
  isolation:isolate; transition:transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn span{ position:relative; z-index:1; }
.btn-small{ padding:.55rem 1.1rem; font-size:.82rem; }
.btn-primary{ background:var(--grad-brand); color:#03131a; box-shadow:0 8px 24px -8px rgba(var(--primary-rgb),.5); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 12px 30px -6px rgba(var(--primary-rgb),.6); }
.btn-ghost{ background:var(--surface); color:var(--text); border:1px solid var(--border-soft); }
.btn-ghost:hover{ background:var(--surface-strong); transform:translateY(-2px); }
.btn-text{ color:var(--primary); padding:.85rem .4rem; }
.btn-text:hover{ text-decoration:underline; }

/* Ripple */
.btn::before{
  content:""; position:absolute; border-radius:50%; width:10px; height:10px; left:var(--rx,50%); top:var(--ry,50%);
  background:rgba(255,255,255,.4); transform:translate(-50%,-50%) scale(0); opacity:0; z-index:0;
}
.btn.rippling::before{ animation:ripple .6s var(--ease); }
@keyframes ripple{ to{ transform:translate(-50%,-50%) scale(22); opacity:0; } }

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal-up{ opacity:0; transform:translateY(28px); transition:opacity .7s var(--ease), transform .7s var(--ease); transition-delay:calc(var(--delay,0) * 80ms); }
.reveal-scale{ opacity:0; transform:scale(.92); transition:opacity .8s var(--ease), transform .8s var(--ease); transition-delay:calc(var(--delay,0) * 80ms); }
.in-view{ opacity:1 !important; transform:none !important; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position:relative; min-height:100vh; display:flex; flex-direction:column; justify-content:center;
  padding:calc(var(--header-h) + 2rem) clamp(1.2rem,4vw,2.5rem) 6rem;
}
.hero-inner{
  max-width:var(--max-width); width:100%; margin:0 auto; display:grid; grid-template-columns:1.05fr .95fr; gap:3rem; align-items:center;
}
.eyebrow{ font-family:var(--font-mono); font-size:.9rem; color:var(--text-muted); margin-bottom:1rem; }
.eyebrow-bracket{ color:var(--secondary); }
.eyebrow-string{ color:var(--accent); }
.hero-name{ font-size:clamp(2.8rem,6vw,4.6rem); background:var(--grad-brand); -webkit-background-clip:text; background-clip:text; color:transparent; margin-bottom:.4rem; }
.hero-role{ font-size:clamp(1.3rem,2.6vw,1.9rem); color:var(--text-muted); margin-bottom:1.4rem; font-weight:500; min-height:2.4rem; }
.typed-role{ color:var(--text); font-weight:600; }
.typed-caret{ display:inline-block; color:var(--primary); animation:blink 1s steps(1) infinite; margin-left:2px; }
@keyframes blink{ 50%{ opacity:0; } }
.hero-desc{ max-width:540px; font-size:1.02rem; }
.hero-ctas{ display:flex; gap:1rem; flex-wrap:wrap; margin:1.6rem 0 2.6rem; }

.hero-stats{ display:grid; grid-template-columns:repeat(4,auto); gap:2rem; }
.stat{ display:flex; flex-direction:column; }
.stat-number,.stat-suffix{ font-family:var(--font-display); font-size:1.9rem; font-weight:700; color:var(--text); display:inline; }
.stat-suffix{ color:var(--primary); }
.stat-label{ font-size:.8rem; color:var(--text-muted); margin-top:.2rem; }

/* Hero visual: code editor mock */
.hero-visual{ position:relative; }
.editor-window{
  background:rgba(10,14,30,.75); border:1px solid var(--border-soft); border-radius:var(--radius-md);
  backdrop-filter:blur(12px); box-shadow:0 30px 80px -30px rgba(0,0,0,.6); overflow:hidden;
  animation:float 6s ease-in-out infinite;
}
[data-theme="light"] .editor-window{ background:rgba(255,255,255,.65); }
@keyframes float{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-10px); } }
.editor-titlebar{ display:flex; align-items:center; gap:.5rem; padding:.7rem 1rem; border-bottom:1px solid var(--border-soft); }
.dot{ width:10px; height:10px; border-radius:50%; }
.dot-red{ background:#FF5F57; } .dot-yellow{ background:#FEBC2E; } .dot-green{ background:#28C840; }
.editor-filename{ margin-left:.6rem; font-family:var(--font-mono); font-size:.78rem; color:var(--text-muted); }
.editor-body{
  margin:0; padding:1.4rem 1.5rem; font-family:var(--font-mono); font-size:.86rem; line-height:1.75; color:#d6e2ff;
  min-height:280px; white-space:pre-wrap; word-break:break-word;
}
.editor-caret{ color:var(--accent); animation:blink 1s steps(1) infinite; }
.editor-glow{ position:absolute; inset:-40% -40% auto auto; width:60%; height:60%; background:radial-gradient(circle,rgba(var(--secondary-rgb),.35),transparent 70%); filter:blur(30px); z-index:-1; }

.floating-chip{
  position:absolute; font-family:var(--font-mono); font-size:.78rem; padding:.5rem .8rem; border-radius:999px;
  background:var(--surface); border:1px solid var(--border-soft); backdrop-filter:blur(8px);
  animation:chipfloat 5s ease-in-out infinite;
}
.chip-1{ top:-6%; right:8%; animation-delay:.2s; }
.chip-2{ bottom:12%; left:-8%; animation-delay:1.1s; }
.chip-3{ top:38%; right:-10%; animation-delay:.6s; }
.chip-4{ bottom:-6%; right:20%; animation-delay:1.6s; }
@keyframes chipfloat{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-14px); } }

.scroll-indicator{ position:absolute; bottom:1.8rem; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:.5rem; color:var(--text-muted); font-size:.75rem; }
.scroll-mouse{ width:22px; height:34px; border:2px solid var(--border-soft); border-radius:14px; display:flex; justify-content:center; padding-top:6px; }
.scroll-mouse span{ width:4px; height:8px; background:var(--primary); border-radius:2px; animation:scrolldown 1.6s infinite; }
@keyframes scrolldown{ 0%{ opacity:1; transform:translateY(0);} 100%{ opacity:0; transform:translateY(10px);} }

/* ==========================================================================
   SECTION LAYOUT
   ========================================================================== */
.section{ position:relative; padding:var(--section-pad) clamp(1.2rem,4vw,2.5rem); }
.section-alt{ background:linear-gradient(180deg,transparent,rgba(var(--secondary-rgb),.04),transparent); }
.section-inner{ max-width:var(--max-width); margin:0 auto; }
.section-eyebrow{ font-family:var(--font-mono); color:var(--primary); font-size:.85rem; margin-bottom:.8rem; letter-spacing:.5px; }
.section-title{ font-size:clamp(1.9rem,3.6vw,2.7rem); margin-bottom:1rem; max-width:750px; }
.section-sub{ color:var(--text-muted); max-width:600px; margin-bottom:3rem; }
.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---- About ---- */
.about-grid{ display:grid; grid-template-columns:.8fr 1.2fr; gap:3.5rem; align-items:center; }
.photo-frame{ position:relative; width:100%; max-width:380px; margin:0 auto; }
.photo-placeholder{
  width:100%; aspect-ratio:1/1.08; border-radius:var(--radius-lg); background:linear-gradient(160deg,rgba(var(--primary-rgb),.18),rgba(var(--secondary-rgb),.25));
  display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-size:5rem; font-weight:700; color:rgba(255,255,255,.5);
  border:1px solid var(--border-soft); position:relative; overflow:hidden;
}
.photo-placeholder::after{ content:""; position:absolute; inset:0; background:radial-gradient(circle at 30% 20%, rgba(var(--accent-rgb),.25), transparent 60%); }
.photo-badge{
  position:absolute; bottom:-1.2rem; left:-1.2rem; background:var(--surface-strong); border:1px solid var(--border-soft); backdrop-filter:blur(10px);
  padding:.9rem 1.2rem; border-radius:var(--radius-md); display:flex; flex-direction:column;
}
.photo-badge strong{ font-family:var(--font-display); font-size:1.4rem; color:var(--accent); }
.photo-badge span{ font-size:.75rem; color:var(--text-muted); }
.about-highlights{ display:grid; grid-template-columns:1fr 1fr; gap:.7rem 1.2rem; margin:1.6rem 0 2rem; }
.about-highlights li{ font-size:.92rem; display:flex; align-items:flex-start; gap:.5rem; }
.check{ color:var(--accent); }
.about-ctas{ display:flex; gap:1rem; flex-wrap:wrap; }

/* ---- Skills ---- */
.skills-tabs{ display:flex; justify-content:center; gap:.6rem; margin-bottom:2.6rem; flex-wrap:wrap; }
.skill-tab{ padding:.6rem 1.3rem; border-radius:999px; border:1px solid var(--border-soft); color:var(--text-muted); font-size:.88rem; font-weight:500; transition:all var(--dur-fast); }
.skill-tab.active{ background:var(--grad-brand); color:#03131a; border-color:transparent; }
.skills-panels{ max-width:640px; margin:0 auto 3.5rem; }
.skill-panel{ display:none; flex-direction:column; gap:1.3rem; }
.skill-panel.active{ display:flex; }
.skill-head{ display:flex; justify-content:space-between; font-size:.88rem; margin-bottom:.5rem; }
.skill-track{ height:8px; border-radius:6px; background:var(--surface); overflow:hidden; }
.skill-fill{ height:100%; width:0%; border-radius:6px; background:var(--grad-brand); transition:width 1.2s var(--ease); }

.tech-marquee{ overflow:hidden; border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); padding:1.2rem 0; }
.marquee-track{ display:flex; gap:2.5rem; width:max-content; animation:marquee 26s linear infinite; font-family:var(--font-mono); color:var(--text-muted); font-size:.95rem; white-space:nowrap; }
.marquee-track span::after{ content:"•"; margin-left:2.5rem; color:var(--secondary); }
@keyframes marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ---- Services / cards grid ---- */
.cards-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.4rem; }
.tilt-card{
  background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--radius-md); padding:1.8rem;
  transition:transform var(--dur-fast) var(--ease), border-color var(--dur-fast), background var(--dur-fast);
  transform-style:preserve-3d; will-change:transform;
}
.tilt-card:hover{ border-color:rgba(var(--primary-rgb),.4); background:var(--surface-strong); }
.card-icon{ font-size:1.6rem; width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center; background:var(--grad-brand); color:#03131a; margin-bottom:1.1rem; }
.tilt-card h3{ font-size:1.1rem; margin-bottom:.5rem; }
.tilt-card p{ font-size:.9rem; margin:0; }

/* ---- Projects ---- */
.projects-controls{ display:flex; justify-content:space-between; align-items:center; gap:1.5rem; margin-bottom:2.4rem; flex-wrap:wrap; }
.filter-group{ display:flex; gap:.6rem; flex-wrap:wrap; }
.filter-btn{ padding:.55rem 1.1rem; border-radius:999px; border:1px solid var(--border-soft); color:var(--text-muted); font-size:.85rem; font-weight:500; }
.filter-btn.active{ background:var(--grad-brand); color:#03131a; border-color:transparent; }
.search-group input{
  background:var(--surface); border:1px solid var(--border-soft); border-radius:999px; padding:.6rem 1.1rem; color:var(--text); min-width:220px; font-size:.88rem;
}
.search-group input:focus{ border-color:var(--primary); }
.projects-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.6rem; }
.project-card{
  background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--radius-md); overflow:hidden;
  transition:transform var(--dur-med) var(--ease), border-color var(--dur-fast), opacity var(--dur-med), display var(--dur-med);
}
.project-card:hover{ transform:translateY(-6px); border-color:rgba(var(--primary-rgb),.35); }
.project-card.hidden-card{ display:none; }
.project-thumb{ height:170px; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.project-thumb span{ font-family:var(--font-display); font-weight:600; color:rgba(255,255,255,.85); font-size:1.15rem; z-index:1; }
.thumb-1{ background:linear-gradient(135deg,#0b2e4a,#134e6b); }
.thumb-2{ background:linear-gradient(135deg,#2a1a4a,#4c2b7d); }
.thumb-3{ background:linear-gradient(135deg,#0f3d2e,#12664a); }
.thumb-4{ background:linear-gradient(135deg,#3a1a2e,#6b1f4e); }
.thumb-5{ background:linear-gradient(135deg,#1a2a4a,#2d4d8f); }
.thumb-6{ background:linear-gradient(135deg,#2e2a0f,#665f16); }
.project-body{ padding:1.4rem 1.5rem 1.6rem; }
.project-stack{ display:flex; gap:.4rem; flex-wrap:wrap; margin-bottom:.8rem; }
.project-stack span{ font-size:.72rem; font-family:var(--font-mono); padding:.2rem .55rem; background:var(--surface-strong); border-radius:999px; color:var(--text-muted); }
.project-body h3{ font-size:1.1rem; margin-bottom:.5rem; }
.project-body p{ font-size:.88rem; margin-bottom:.8rem; }
.project-features{ margin-bottom:1rem; }
.project-features li{ font-size:.82rem; color:var(--text-muted); padding-left:1.1rem; position:relative; margin-bottom:.3rem; }
.project-features li::before{ content:"▹"; position:absolute; left:0; color:var(--accent); }
.project-links{ display:flex; gap:1rem; }
.link-icon{ font-size:.82rem; font-weight:600; color:var(--primary); border-bottom:1px solid transparent; transition:border-color var(--dur-fast); }
.link-icon:hover{ border-color:var(--primary); }
.no-results{ text-align:center; color:var(--text-muted); margin-top:2rem; }

/* ---- Why choose me ---- */
.why-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.6rem; }
.why-item{ text-align:center; padding:2rem 1.2rem; border:1px solid var(--border-soft); border-radius:var(--radius-md); background:var(--surface); }
.why-icon{ font-size:1.8rem; display:block; margin-bottom:.8rem; }
.why-item h3{ font-size:1.05rem; margin-bottom:.5rem; }
.why-item p{ font-size:.86rem; margin:0; }

/* ---- Process timeline ---- */
.timeline{ display:grid; grid-template-columns:repeat(4,1fr); gap:1.6rem; }
.timeline-item{ position:relative; padding:1.6rem 1.4rem; border:1px solid var(--border-soft); border-radius:var(--radius-md); background:var(--surface); }
.timeline-marker{ font-family:var(--font-display); font-size:1.5rem; color:var(--primary); font-weight:700; margin-bottom:.6rem; }
.timeline-content h3{ font-size:1rem; margin-bottom:.4rem; }
.timeline-content p{ font-size:.84rem; margin:0; }

/* ---- Experience ---- */
.exp-timeline{ display:flex; flex-direction:column; gap:1.6rem; max-width:760px; margin:0 auto; }
.exp-item{ display:grid; grid-template-columns:180px 1fr; gap:1.6rem; padding-bottom:1.6rem; border-bottom:1px solid var(--border-soft); }
.exp-year{ font-family:var(--font-mono); color:var(--secondary); font-size:.85rem; }
.exp-detail h3{ font-size:1.05rem; margin-bottom:.4rem; }
.exp-detail h3 span{ font-weight:400; color:var(--text-muted); font-size:.9rem; }
.exp-detail p{ margin:0; font-size:.9rem; }
.cert-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.2rem; max-width:900px; margin:1.6rem auto 0; }
.cert-card{ text-align:center; padding:1.4rem; border:1px solid var(--border-soft); border-radius:var(--radius-md); background:var(--surface); }
.cert-card h4{ font-size:.95rem; margin-bottom:.3rem; }
.cert-card p{ font-size:.82rem; margin:0; }

/* ---- Contribution grid ---- */
.contrib-grid{ display:grid; grid-template-columns:repeat(26,1fr); gap:4px; max-width:820px; margin:0 auto; }
.contrib-cell{ aspect-ratio:1/1; border-radius:2px; background:var(--surface); }

/* ---- Testimonials ---- */
.testimonial-slider{ max-width:720px; margin:0 auto; overflow:hidden; }
.testimonial-track{ display:flex; transition:transform .6s var(--ease); }
.testimonial-card{ flex:0 0 100%; padding:2.4rem; background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--radius-lg); margin:0 4px; }
.stars{ color:var(--accent); letter-spacing:2px; margin-bottom:1rem; }
.testimonial-card blockquote{ margin:0 0 1.4rem; font-size:1.05rem; color:var(--text); }
.testimonial-card figcaption{ display:flex; align-items:center; gap:.8rem; font-size:.86rem; color:var(--text-muted); }
.avatar{ width:40px; height:40px; border-radius:50%; background:var(--grad-brand); color:#03131a; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.8rem; flex-shrink:0; }
.testimonial-controls{ display:flex; align-items:center; justify-content:center; gap:1.4rem; margin-top:1.6rem; }
.testimonial-controls button{ width:38px; height:38px; border-radius:50%; border:1px solid var(--border-soft); font-size:1.2rem; }
.testimonial-dots{ display:flex; gap:.5rem; }
.testimonial-dots span{ width:8px; height:8px; border-radius:50%; background:var(--surface-strong); cursor:pointer; transition:background var(--dur-fast); }
.testimonial-dots span.active{ background:var(--primary); }

/* ---- Contact ---- */
.contact-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:3.5rem; }
.contact-info{ margin:1.6rem 0 2rem; display:flex; flex-direction:column; gap:1rem; }
.contact-info li{ display:flex; flex-direction:column; font-size:.9rem; }
.contact-info strong{ color:var(--text-muted); font-size:.75rem; text-transform:uppercase; letter-spacing:.5px; margin-bottom:.2rem; }
.contact-info a{ color:var(--primary); }
.social-links{ display:flex; gap:.8rem; }
.social-icon{
  position:relative; width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--surface); border:1px solid var(--border-soft); font-size:.78rem; font-weight:700; transition:all var(--dur-fast) var(--ease);
}
.social-icon:hover{ background:var(--grad-brand); color:#03131a; transform:translateY(-4px); box-shadow:0 10px 22px -8px rgba(var(--primary-rgb),.5); border-color:transparent; }
.social-icon[data-tooltip]::after{
  content:attr(data-tooltip); position:absolute; bottom:120%; left:50%; transform:translateX(-50%) translateY(4px);
  background:#0b0f1e; color:#fff; font-size:.72rem; padding:.3rem .6rem; border-radius:6px; white-space:nowrap; opacity:0; pointer-events:none; transition:all var(--dur-fast);
}
.social-icon[data-tooltip]:hover::after{ opacity:1; transform:translateX(-50%) translateY(0); }

.contact-form{ background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--radius-lg); padding:2.2rem; backdrop-filter:blur(10px); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:1.2rem; }
.form-field{ margin-bottom:1.2rem; display:flex; flex-direction:column; }
.form-field label{ font-size:.82rem; margin-bottom:.5rem; color:var(--text-muted); }
.optional{ opacity:.6; font-size:.75rem; }
.form-field input,.form-field textarea{
  background:rgba(0,0,0,.18); border:1px solid var(--border-soft); border-radius:var(--radius-sm); padding:.75rem .9rem; color:var(--text); font-size:.92rem;
  transition:border-color var(--dur-fast); resize:vertical;
}
[data-theme="light"] .form-field input,[data-theme="light"] .form-field textarea{ background:rgba(0,0,0,.03); }
.form-field input:focus,.form-field textarea:focus{ border-color:var(--primary); }
.form-field.invalid input,.form-field.invalid textarea{ border-color:#ff5f6d; }
.field-error{ font-size:.75rem; color:#ff8a90; min-height:1em; margin-top:.3rem; display:block; }
.form-submit{ width:100%; margin-top:.4rem; position:relative; }
.btn-spinner{ display:none; width:16px; height:16px; border:2px solid rgba(3,19,26,.3); border-top-color:#03131a; border-radius:50%; animation:spin .7s linear infinite; }
.form-submit.loading .btn-label{ opacity:0; }
.form-submit.loading .btn-spinner{ display:block; position:absolute; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.form-success{ margin-top:1rem; color:var(--accent); font-size:.9rem; text-align:center; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ border-top:1px solid var(--border-soft); padding:4rem clamp(1.2rem,4vw,2.5rem) 0; position:relative; }
.footer-inner{ max-width:var(--max-width); margin:0 auto; display:grid; grid-template-columns:1.4fr 1fr 1fr 1.3fr; gap:2.5rem; padding-bottom:3rem; }
.footer-col h4{ font-size:.95rem; margin-bottom:1rem; }
.footer-col ul{ display:flex; flex-direction:column; gap:.6rem; }
.footer-col ul a{ color:var(--text-muted); font-size:.88rem; transition:color var(--dur-fast); }
.footer-col ul a:hover{ color:var(--primary); }
.footer-brand p{ font-size:.86rem; margin:.8rem 0 1.2rem; max-width:280px; }
.newsletter-form{ display:flex; gap:.5rem; margin-top:.8rem; }
.newsletter-form input{ flex:1; background:rgba(0,0,0,.18); border:1px solid var(--border-soft); border-radius:999px; padding:.6rem 1rem; color:var(--text); font-size:.85rem; }
.newsletter-form button{ width:38px; height:38px; border-radius:50%; background:var(--grad-brand); color:#03131a; font-weight:700; flex-shrink:0; }
.newsletter-success{ color:var(--accent); font-size:.82rem; margin-top:.6rem; }
.footer-bottom{ border-top:1px solid var(--border-soft); padding:1.4rem clamp(1.2rem,4vw,2.5rem); display:flex; justify-content:space-between; max-width:var(--max-width); margin:0 auto; font-size:.8rem; color:var(--text-muted); }
.footer-bottom p{ margin:0; }
.live-clock{ font-family:var(--font-mono); }

/* ==========================================================================
   FLOATING ACTIONS
   ========================================================================== */
.floating-whatsapp{
  position:fixed; bottom:1.6rem; left:1.6rem; width:52px; height:52px; border-radius:50%; background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center; z-index:800; box-shadow:0 10px 24px -8px rgba(0,0,0,.4);
  transition:transform var(--dur-fast) var(--ease);
}
.floating-whatsapp:hover{ transform:scale(1.1); }
.back-to-top{
  position:fixed; bottom:1.6rem; right:1.6rem; width:48px; height:48px; border-radius:50%; background:var(--surface-strong);
  border:1px solid var(--border-soft); color:var(--text); z-index:800; opacity:0; pointer-events:none; transform:translateY(10px);
  transition:opacity var(--dur-fast), transform var(--dur-fast); backdrop-filter:blur(10px); font-size:1.1rem;
}
.back-to-top.visible{ opacity:1; pointer-events:auto; transform:translateY(0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width:1080px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-visual{ max-width:520px; margin:0 auto; order:-1; }
  .about-grid{ grid-template-columns:1fr; }
  .photo-frame{ margin-bottom:1rem; }
  .cards-grid,.projects-grid,.why-grid,.timeline{ grid-template-columns:repeat(2,1fr); }
  .contact-grid{ grid-template-columns:1fr; }
  .footer-inner{ grid-template-columns:1fr 1fr; }
}

@media (max-width:860px){
  .main-nav{
    position:fixed; top:var(--header-h); left:0; right:0; background:rgba(5,8,22,.97); backdrop-filter:blur(20px);
    max-height:0; overflow:hidden; transition:max-height var(--dur-med) var(--ease); border-bottom:1px solid var(--border-soft);
  }
  [data-theme="light"] .main-nav{ background:rgba(244,246,251,.98); }
  .main-nav.open{ max-height:70vh; overflow-y:auto; }
  .main-nav ul{ flex-direction:column; padding:1.5rem clamp(1.2rem,4vw,2.5rem) 2rem; gap:1.2rem; }
  .nav-toggle{ display:flex; }
  .availability-badge{ display:none; }
  .hero-stats{ grid-template-columns:repeat(2,1fr); }
  .exp-item{ grid-template-columns:1fr; }
}

@media (max-width:640px){
  .cards-grid,.projects-grid,.why-grid,.timeline,.cert-grid{ grid-template-columns:1fr; }
  .about-highlights{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .footer-inner{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; gap:.5rem; text-align:center; }
  .btn-ghost, .hero-ctas .btn{ width:100%; }
  .hero-ctas{ flex-direction:column; }
  .hero-name{ font-size:2.4rem; }
  .contrib-grid{ grid-template-columns:repeat(15,1fr); }
  .projects-controls{ flex-direction:column; align-items:stretch; }
  .search-group input{ width:100%; min-width:0; }
}
