/* ==========================================================================
   KABIR ANAND — PORTFOLIO STYLESHEET
   Design language: "Blueprint HUD" — engineering drafting meets neon circuit.
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root{
  --bg: #050816;
  --bg-alt: #080c1c;
  --card: #111827;
  --card-hover: #151f34;
  --primary: #00E5FF;
  --secondary: #7C3AED;
  --accent: #22C55E;
  --text: #FFFFFF;
  --muted: #A1A1AA;
  --border: rgba(255,255,255,0.08);
  --border-glow: rgba(0,229,255,0.35);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Orbitron', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

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

  --container: 1180px;
}

html[data-theme="light"]{
  --bg: #F3F5FB;
  --bg-alt: #E9ECF6;
  --card: #FFFFFF;
  --card-hover: #F0F2FA;
  --text: #0B1120;
  --muted: #55596b;
  --border: rgba(10,15,30,0.09);
}

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

/* ---------- 2. RESET ---------- */
*,*::before,*::after{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--dur-med) var(--ease), color var(--dur-med) var(--ease);
}
img,svg{ display:block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; }
button{ font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input,textarea{ font: inherit; color: inherit; background: none; border: none; outline: none; }
::selection{ background: var(--primary); color: #041018; }

/* Custom cursor: hide native cursor only when our HUD cursor is active (desktop, fine pointer) */
@media (hover:hover) and (pointer:fine){
  body.cursor-ready, body.cursor-ready a, body.cursor-ready button{ cursor: none; }
}

.container{ width: min(92%, var(--container)); margin-inline: auto; }

/* ---------- 3. BACKDROP: grain + blueprint grid ---------- */
.grain{
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.blueprint-grid{
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,229,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

/* ---------- 4. CUSTOM CURSOR ---------- */
.cursor-hud{ position: fixed; top:0; left:0; z-index: 9999; pointer-events: none; transform: translate(-50%,-50%); display: none; }
@media (hover:hover) and (pointer:fine){ .cursor-hud{ display:block; } }
.cursor-ring{ width: 34px; height: 34px; border: 1px solid var(--primary); border-radius: 50%; transition: width var(--dur-fast), height var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast); }
.cursor-dot{ position: absolute; top:50%; left:50%; width:4px; height:4px; background: var(--accent); border-radius: 50%; transform: translate(-50%,-50%); }
.cursor-coords{ position:absolute; top: 22px; left: 22px; font-family: var(--font-mono); font-size: 9px; color: var(--primary); opacity:.7; white-space: nowrap; }
.cursor-hud.hover .cursor-ring{ width: 60px; height: 60px; background: rgba(0,229,255,.08); border-color: var(--secondary); }
.cursor-hud.click .cursor-ring{ width: 24px; height: 24px; background: rgba(34,197,94,.2); }

/* ---------- 5. LOADER ---------- */
.loader{ position: fixed; inset:0; z-index: 10000; background: var(--bg); display:flex; align-items:center; justify-content:center; transition: opacity .7s var(--ease), visibility .7s var(--ease); }
.loader.hidden{ opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner{ text-align:center; }
.loader-logo{ margin: 0 auto 18px; animation: spin-slow 6s linear infinite; }
#loaderPath{ stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw-path 1.8s var(--ease) forwards .2s; }
@keyframes draw-path{ to{ stroke-dashoffset: 0; } }
@keyframes spin-slow{ to{ transform: rotate(360deg); } }
.loader-word{ font-family: var(--font-accent); font-weight: 700; letter-spacing: 4px; font-size: 1.1rem; color: var(--text); }
.loader-word span{ color: var(--primary); margin-left: 6px; }
.loader-bar-track{ width: 220px; height: 2px; background: var(--border); margin: 22px auto 10px; overflow: hidden; }
.loader-bar-fill{ height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width .2s linear; }
.loader-percent{ font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }

/* ---------- 6. SCROLL PROGRESS ---------- */
.scroll-progress{ position: fixed; top:0; left:0; height: 2px; width: 0%; background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent)); z-index: 9000; }

/* ---------- 7. COMMAND PALETTE ---------- */
.cmdk-overlay{ position: fixed; inset:0; z-index: 9500; background: rgba(2,5,15,.7); backdrop-filter: blur(6px); display:flex; align-items:flex-start; justify-content:center; padding-top: 12vh; opacity:0; visibility:hidden; transition: opacity var(--dur-fast), visibility var(--dur-fast); }
.cmdk-overlay.active{ opacity:1; visibility:visible; }
.cmdk-panel{ width: min(92%, 560px); background: var(--card); border:1px solid var(--border-glow); border-radius: var(--radius-md); box-shadow: 0 20px 60px rgba(0,0,0,.5); overflow:hidden; transform: translateY(-10px); transition: transform var(--dur-fast); }
.cmdk-overlay.active .cmdk-panel{ transform: translateY(0); }
.cmdk-input-row{ display:flex; align-items:center; gap:10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cmdk-icon{ color: var(--primary); font-family: var(--font-mono); }
.cmdk-input{ flex:1; font-size: .95rem; }
.cmdk-esc{ font-size: .65rem; padding: 2px 6px; border:1px solid var(--border); border-radius: 4px; color: var(--muted); }
.cmdk-list{ max-height: 320px; overflow-y: auto; padding: 6px; }
.cmdk-list li{ padding: 10px 12px; border-radius: 8px; font-size: .88rem; display:flex; justify-content:space-between; cursor:pointer; }
.cmdk-list li:hover, .cmdk-list li.active{ background: rgba(0,229,255,.08); color: var(--primary); }
.cmdk-list li span{ color: var(--muted); font-family: var(--font-mono); font-size: .7rem; }

/* ---------- 8. NAVBAR ---------- */
.navbar{ position: fixed; top:0; left:0; right:0; z-index: 900; padding: 18px 0; transition: padding var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast); }
.navbar.scrolled{ padding: 10px 0; background: rgba(5,8,22,.7); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--border); }
html[data-theme="light"] .navbar.scrolled{ background: rgba(243,245,251,.75); }
.nav-inner{ width: min(92%, var(--container)); margin-inline:auto; display:flex; align-items:center; justify-content:space-between; gap: 24px; }
.nav-logo{ font-family: var(--font-accent); font-weight: 700; font-size: 1.1rem; letter-spacing: 2px; }
.logo-bracket{ color: var(--primary); }
.nav-links{ display:flex; gap: 22px; }
.nav-link{ position: relative; font-size: .86rem; color: var(--muted); padding: 4px 0; transition: color var(--dur-fast); }
.nav-link::after{ content:''; position:absolute; left:0; bottom:-3px; width:0; height:1px; background: var(--primary); transition: width var(--dur-fast) var(--ease); }
.nav-link:hover, .nav-link.active{ color: var(--text); }
.nav-link.active::after, .nav-link:hover::after{ width: 100%; }
.nav-actions{ display:flex; align-items:center; gap: 10px; }
.icon-btn{ position:relative; width: 34px; height: 34px; display:flex; align-items:center; justify-content:center; border:1px solid var(--border); border-radius: 8px; color: var(--muted); transition: color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast); }
.icon-btn:hover{ color: var(--primary); border-color: var(--border-glow); transform: translateY(-1px); }
.kbd-hint{ position:absolute; bottom: -18px; font-size: .55rem; font-family: var(--font-mono); color: var(--muted); opacity:0; transition: opacity var(--dur-fast); }
.icon-btn:hover .kbd-hint{ opacity: .8; }
.nav-resume-btn{ display:none; }
@media (min-width: 860px){ .nav-resume-btn{ display:inline-flex; } }
.hamburger{ display:flex; flex-direction:column; gap:5px; width: 34px; height: 34px; align-items:center; justify-content:center; }
.hamburger span{ width: 20px; height: 2px; background: var(--text); transition: transform var(--dur-fast), opacity var(--dur-fast); }
.hamburger.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity:0; }
.hamburger.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px){ .hamburger{ display:none; } }
@media (max-width: 899px){ .nav-links{ display:none; } }

.mobile-nav{ position: fixed; top:0; right:0; height: 100vh; width: min(80%, 320px); background: var(--card); z-index: 890; padding: 100px 32px; transform: translateX(100%); transition: transform var(--dur-med) var(--ease); border-left: 1px solid var(--border); }
.mobile-nav.active{ transform: translateX(0); }
.mobile-nav ul{ display:flex; flex-direction:column; gap: 20px; }
.mobile-nav a{ font-family: var(--font-display); font-size: 1.2rem; }

/* ---------- 9. BUTTONS ---------- */
.btn{ position: relative; display:inline-flex; align-items:center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-size: .86rem; font-weight: 600; overflow: hidden; transition: transform var(--dur-fast), box-shadow var(--dur-fast); }
.btn span{ position:relative; z-index:2; display:inline-flex; align-items:center; gap:8px; }
.btn-primary{ background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #04121a; box-shadow: 0 8px 26px -8px rgba(0,229,255,.55); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(0,229,255,.7); }
.btn-outline{ border: 1px solid var(--border-glow); color: var(--text); }
.btn-outline:hover{ background: rgba(0,229,255,.08); transform: translateY(-2px); }
.btn-ghost{ color: var(--muted); }
.btn-ghost:hover{ color: var(--text); }
.btn-ghost-sm{ padding: 8px 16px; border:1px solid var(--border); border-radius: 8px; font-size: .78rem; }
.btn-ghost-sm:hover{ border-color: var(--border-glow); color: var(--primary); }
.btn .ripple{ position:absolute; border-radius:50%; background: rgba(255,255,255,.35); transform: scale(0); animation: ripple .6s ease-out; pointer-events:none; }
@keyframes ripple{ to{ transform: scale(3); opacity:0; } }

/* ---------- 10. HERO ---------- */
.hero{ position: relative; min-height: 100vh; display:flex; align-items:center; padding-top: 90px; overflow:hidden; }
.particle-canvas{ position:absolute; inset:0; z-index:1; }
.hero-spotlight{ position:absolute; inset:0; z-index:1; pointer-events:none; background: radial-gradient(420px circle at var(--mx,50%) var(--my,30%), rgba(0,229,255,.10), transparent 65%); transition: background .1s linear; }
.hero-scene{ position:absolute; inset:0; z-index:1; opacity:.9; }
@media (max-width: 780px){ .hero-scene{ opacity:.5; } }
.hero-inner{ position: relative; z-index: 2; }
.hero-copy{ max-width: 760px; }
.eyebrow{ display:inline-flex; align-items:center; gap:8px; font-family: var(--font-mono); font-size: .78rem; color: var(--accent); border:1px solid rgba(34,197,94,.35); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.eyebrow-dot{ width:6px; height:6px; border-radius:50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot{ 0%,100%{ opacity:1; } 50%{ opacity:.3; } }
.hero-title{ font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 6.5vw, 4.6rem); line-height: 1.05; letter-spacing: -1px; margin-bottom: 24px; }
.split-line{ display:block; overflow: hidden; }
.hero-gradient-text{ background: linear-gradient(90deg, var(--primary), var(--secondary)); -webkit-background-clip:text; background-clip:text; color: transparent; }
.typing-target{ color: var(--primary); font-family: var(--font-mono); font-size: .62em; letter-spacing:0; }
.typing-cursor{ color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink{ 50%{ opacity:0; } }
.hero-sub{ font-size: 1.05rem; color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-actions{ display:flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-social{ display:flex; gap: 14px; }
.social-ico{ width: 38px; height:38px; display:flex; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:50%; color: var(--muted); transition: color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast); }
.social-ico:hover{ color: var(--primary); border-color: var(--border-glow); transform: translateY(-3px); }

.scroll-indicator{ position:absolute; left:50%; bottom: 34px; transform: translateX(-50%); z-index:2; display:flex; flex-direction:column; align-items:center; gap:8px; color: var(--muted); }
.scroll-indicator-track{ width: 22px; height: 36px; border: 1px solid var(--border-glow); border-radius: 12px; display:flex; justify-content:center; padding-top: 6px; }
.scroll-indicator-dot{ width:4px; height:4px; border-radius:50%; background: var(--primary); animation: scroll-dot 1.6s ease-in-out infinite; }
@keyframes scroll-dot{ 0%{ transform: translateY(0); opacity:1; } 70%{ transform: translateY(14px); opacity:0; } 100%{ opacity:0; } }
.scroll-indicator-label{ font-family: var(--font-mono); font-size: .62rem; letter-spacing: 2px; }

/* ---------- 11. SECTIONS / GENERIC ---------- */
.section{ padding: 120px 0; position: relative; z-index: 1; }
.section-alt{ background: linear-gradient(180deg, transparent, rgba(124,58,237,.04), transparent); }
.section-eyebrow{ font-family: var(--font-mono); color: var(--primary); font-size: .78rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; }
.section-title{ font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.6rem); max-width: 760px; margin-bottom: 56px; letter-spacing: -.5px; }
.text-primary{ color: var(--primary); }

/* reveal-up animation base (JS toggles .in-view) */
.reveal-up{ opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-up.in-view{ opacity: 1; transform: translateY(0); }
.reveal-up[data-delay="1"]{ transition-delay: .05s; }
.reveal-up[data-delay="2"]{ transition-delay: .15s; }
.reveal-up[data-delay="3"]{ transition-delay: .25s; }
.reveal-up[data-delay="4"]{ transition-delay: .35s; }

/* ---------- 12. ABOUT ---------- */
.about-grid{ display:grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items:start; }
@media (max-width: 860px){ .about-grid{ grid-template-columns: 1fr; } }
.about-frame{ position:relative; }
.about-portrait{ border-radius: var(--radius-lg); }
.about-frame-corner{ position:absolute; width:22px; height:22px; border-color: var(--primary); }
.about-frame-corner.tl{ top:-8px; left:-8px; border-top:2px solid; border-left:2px solid; }
.about-frame-corner.br{ bottom:-8px; right:-8px; border-bottom:2px solid; border-right:2px solid; }
.about-content p{ color: var(--muted); margin-bottom: 18px; max-width: 620px; }
.quick-facts{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0; }
.fact{ background: var(--card); border:1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.fact-label{ display:block; font-family: var(--font-mono); font-size: .68rem; color: var(--primary); text-transform: uppercase; margin-bottom: 4px; }
.fact-value{ font-size: .88rem; }
.about-timeline{ margin-top: 34px; display:flex; flex-direction:column; gap: 22px; }
.tl-item{ display:flex; gap: 16px; }
.tl-dot{ width:10px; height:10px; border-radius:50%; background: var(--bg); border: 2px solid var(--primary); margin-top: 6px; flex-shrink:0; }
.tl-role{ font-weight: 600; }
.tl-org{ font-family: var(--font-mono); font-size: .74rem; color: var(--accent); margin: 2px 0 6px; }
.tl-desc{ color: var(--muted); font-size: .88rem; }

/* ---------- 13. SKILLS ---------- */
.skills-tabs{ display:flex; flex-wrap:wrap; gap: 10px; margin-bottom: 40px; }
.skill-tab{ padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); font-size: .82rem; color: var(--muted); transition: all var(--dur-fast); }
.skill-tab.active, .skill-tab:hover{ color: var(--bg); background: var(--primary); border-color: var(--primary); }
.skills-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 20px; }
.skill-item{ background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px 16px; text-align:center; transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast), box-shadow var(--dur-fast); }
.skill-item:hover{ transform: translateY(-6px); border-color: var(--border-glow); box-shadow: 0 16px 34px -14px rgba(0,229,255,.4); }
.skill-ring{ width: 76px; height:76px; margin: 0 auto 12px; position: relative; }
.skill-ring svg{ transform: rotate(-90deg); }
.skill-ring circle{ fill:none; stroke-width: 6; }
.skill-ring .bg-ring{ stroke: var(--border); }
.skill-ring .fg-ring{ stroke: var(--primary); stroke-linecap: round; stroke-dasharray: 210; stroke-dashoffset: 210; transition: stroke-dashoffset 1.4s var(--ease); }
.skill-ring-label{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-family: var(--font-accent); font-size: .78rem; }
.skill-name{ font-size: .82rem; font-weight: 500; }

/* ---------- 14. EXPERIENCE ---------- */
.exp-timeline{ position: relative; padding-left: 34px; }
.exp-line{ position:absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.exp-line-fill{ width:100%; height:0%; background: linear-gradient(180deg, var(--primary), var(--secondary)); transition: height 1.2s var(--ease); }
.exp-card{ position: relative; display:flex; gap: 20px; background: var(--card); border:1px solid var(--border); border-radius: var(--radius-md); padding: 26px; margin-bottom: 22px; transition: border-color var(--dur-fast), transform var(--dur-fast); }
.exp-card:hover{ border-color: var(--border-glow); transform: translateX(4px); }
.exp-card::before{ content:''; position:absolute; left: -34px; top: 30px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.exp-logo{ flex-shrink:0; width: 48px; height:48px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--secondary)); display:flex; align-items:center; justify-content:center; font-family: var(--font-accent); font-size:.8rem; color:#04121a; font-weight:700; }
.exp-head{ display:flex; flex-wrap:wrap; justify-content:space-between; gap: 8px; align-items:baseline; }
.exp-head h3{ font-family: var(--font-display); font-size: 1.15rem; }
.exp-duration{ font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }
.exp-company{ color: var(--primary); font-size: .84rem; margin: 4px 0 12px; }
.exp-points{ display:flex; flex-direction:column; gap:6px; margin-bottom: 14px; }
.exp-points li{ position:relative; padding-left: 16px; color: var(--muted); font-size: .88rem; }
.exp-points li::before{ content:'—'; position:absolute; left:0; color: var(--secondary); }
.exp-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom: 12px; }
.exp-tags span{ font-family: var(--font-mono); font-size: .68rem; padding: 4px 10px; border-radius:6px; background: rgba(0,229,255,.08); color: var(--primary); }
.exp-achievement{ font-size: .82rem; color: var(--accent); }

/* ---------- 15. PROJECTS ---------- */
.projects-controls{ display:flex; flex-wrap:wrap; justify-content:space-between; gap: 18px; margin-bottom: 40px; }
.project-filters{ display:flex; flex-wrap:wrap; gap:10px; }
.filter-chip{ padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: .8rem; color: var(--muted); transition: all var(--dur-fast); }
.filter-chip.active, .filter-chip:hover{ color: var(--bg); background: var(--accent); border-color: var(--accent); }
.project-search{ display:flex; align-items:center; gap: 8px; border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; color: var(--muted); min-width: 220px; }
.project-search input{ flex:1; font-size: .84rem; }
.projects-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.project-card{ background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow:hidden; transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast), box-shadow var(--dur-fast); cursor:pointer; perspective: 800px; }
.project-card:hover{ transform: translateY(-8px); border-color: var(--border-glow); box-shadow: 0 22px 44px -18px rgba(0,229,255,.35); }
.project-thumb{ height: 170px; display:flex; align-items:center; justify-content:center; font-size: 2.4rem; position:relative; overflow:hidden; }
.project-thumb::after{ content:''; position:absolute; inset:0; background: linear-gradient(180deg, transparent, rgba(5,8,22,.7)); }
.project-body{ padding: 20px; }
.project-cat{ font-family: var(--font-mono); font-size: .66rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
.project-body h3{ font-family: var(--font-display); font-size: 1.08rem; margin: 8px 0; }
.project-body p{ color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.project-badges{ display:flex; flex-wrap:wrap; gap: 6px; margin-bottom: 16px; }
.project-badges span{ font-size: .66rem; font-family: var(--font-mono); padding: 3px 8px; border-radius: 5px; background: rgba(124,58,237,.12); color: var(--secondary); }
.project-links{ display:flex; gap: 10px; }
.project-links a{ font-size: .78rem; color: var(--primary); display:flex; align-items:center; gap:4px; }
.project-card.hidden{ display:none; }

/* Engineering showcase */
.eng-showcase{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items:start; }
@media (max-width: 900px){ .eng-showcase{ grid-template-columns: 1fr; } }
.eng-gallery-main{ border-radius: var(--radius-md); overflow:hidden; border: 1px solid var(--border); }
.eng-gallery-thumbs{ display:grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 12px; }
.eng-thumb{ background: var(--card); border:1px solid var(--border); border-radius: 8px; padding: 14px 6px; text-align:center; font-size: .68rem; color: var(--muted); transition: border-color var(--dur-fast), color var(--dur-fast); }
.eng-thumb:hover{ border-color: var(--border-glow); color: var(--primary); }
.eng-details p{ color: var(--muted); margin-bottom: 22px; }
.spec-table{ width:100%; border-collapse: collapse; margin-bottom: 22px; }
.spec-table tr{ border-bottom: 1px solid var(--border); }
.spec-table th{ text-align:left; padding: 10px 0; font-family: var(--font-mono); font-size: .74rem; color: var(--primary); width: 40%; }
.spec-table td{ padding: 10px 0; font-size: .86rem; }
.eng-achievements{ margin-bottom: 24px; display:flex; flex-direction:column; gap:6px; }
.eng-achievements li{ font-size: .86rem; color: var(--accent); position:relative; padding-left:18px; }
.eng-achievements li::before{ content:'▸'; position:absolute; left:0; }

/* ---------- 16. CERTIFICATIONS ---------- */
.certs-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 22px; }
.cert-card{ background: var(--card); border:1px solid var(--border); border-radius: var(--radius-md); padding: 22px; transition: transform var(--dur-fast), border-color var(--dur-fast); }
.cert-card:hover{ transform: translateY(-4px) scale(1.01); border-color: var(--border-glow); }
.cert-preview{ height: 120px; border-radius: var(--radius-sm); display:flex; align-items:center; justify-content:center; font-size: 1.8rem; margin-bottom: 14px; overflow:hidden; cursor: zoom-in; }
.cert-title{ font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.cert-issuer{ color: var(--primary); font-size: .78rem; margin-bottom: 2px; }
.cert-date{ color: var(--muted); font-size: .74rem; font-family: var(--font-mono); margin-bottom: 14px; }
.cert-download{ font-size: .78rem; color: var(--accent); display:inline-flex; gap:6px; align-items:center; }

/* ---------- 17. STATS + ACHIEVEMENTS ---------- */
.stats-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 18px; margin-bottom: 60px; }
.stat-card{ background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px 18px; text-align:center; }
.stat-num{ font-family: var(--font-accent); font-size: 2.4rem; color: var(--primary); font-weight: 700; }
.stat-suffix{ font-family: var(--font-accent); font-size: 1.2rem; color: var(--primary); }
.stat-card p{ color: var(--muted); font-size: .8rem; margin-top: 6px; }
.achievements-list{ display:flex; flex-direction:column; gap: 16px; }
.ach-item{ display:flex; gap: 16px; align-items:flex-start; background: var(--card); border:1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 20px; transition: border-color var(--dur-fast); }
.ach-item:hover{ border-color: var(--border-glow); }
.ach-icon{ font-size: 1.4rem; }
.ach-title{ font-weight: 600; font-size: .92rem; }
.ach-meta{ color: var(--muted); font-size: .8rem; margin-top: 2px; }

/* ---------- 18. SERVICES ---------- */
.services-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 22px; }
.service-card{ background: var(--card); border:1px solid var(--border); border-radius: var(--radius-md); padding: 30px 26px; transition: transform var(--dur-fast), border-color var(--dur-fast); }
.service-card:hover{ border-color: var(--border-glow); transform: translateY(-6px); }
.service-icon{ font-size: 1.8rem; margin-bottom: 14px; }
.service-card h3{ font-family: var(--font-display); margin-bottom: 8px; font-size: 1.05rem; }
.service-card p{ color: var(--muted); font-size: .86rem; }

/* ---------- 19. TESTIMONIALS ---------- */
.testi-slider{ position: relative; overflow:hidden; }
.testi-track{ display:flex; transition: transform .6s var(--ease); }
.testi-card{ flex: 0 0 100%; background: var(--card); border:1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; max-width: 640px; margin: 0 auto; }
.testi-rating{ color: var(--accent); letter-spacing: 2px; margin-bottom: 16px; }
.testi-quote{ font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; margin-bottom: 24px; }
.testi-person{ display:flex; align-items:center; gap: 12px; }
.testi-avatar{ width: 42px; height:42px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--secondary)); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.78rem; color:#04121a; }
.testi-name{ font-weight: 600; font-size: .88rem; }
.testi-role{ color: var(--muted); font-size: .76rem; }
.testi-dots{ display:flex; justify-content:center; gap: 8px; margin-top: 24px; }
.testi-dots span{ width: 8px; height:8px; border-radius:50%; background: var(--border); cursor:pointer; transition: background var(--dur-fast); }
.testi-dots span.active{ background: var(--primary); }

/* ---------- 20. BLOG ---------- */
.blog-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.blog-card{ background: var(--card); border:1px solid var(--border); border-radius: var(--radius-md); overflow:hidden; transition: transform var(--dur-fast), border-color var(--dur-fast); }
.blog-card:hover{ transform: translateY(-6px); border-color: var(--border-glow); }
.blog-thumb{ height: 130px; display:flex; align-items:center; justify-content:center; font-size: 2rem; }
.blog-cat{ display:inline-block; margin: 16px 20px 0; font-family: var(--font-mono); font-size: .66rem; color: var(--secondary); text-transform:uppercase; }
.blog-card h3{ margin: 8px 20px; font-family: var(--font-display); font-size: 1.02rem; }
.blog-card p{ margin: 0 20px 16px; color: var(--muted); font-size: .84rem; }
.blog-link{ display:block; margin: 0 20px 20px; color: var(--primary); font-size: .82rem; }

/* ---------- 21. RESUME ---------- */
.resume-card{ display:grid; grid-template-columns: .5fr 1fr; gap: 50px; align-items:center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
@media (max-width: 760px){ .resume-card{ grid-template-columns: 1fr; } }
.resume-svg{ border-radius: var(--radius-sm); }
.resume-actions p{ color: var(--muted); margin-bottom: 22px; }

/* ---------- 22. CONTACT ---------- */
.contact-grid{ display:grid; grid-template-columns: 1.2fr .8fr; gap: 50px; }
@media (max-width: 860px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-form{ display:flex; flex-direction:column; gap: 22px; }
.form-field{ position: relative; }
.form-field input, .form-field textarea{ width:100%; padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: .95rem; resize: vertical; transition: border-color var(--dur-fast); }
.form-field input:focus, .form-field textarea:focus{ border-color: var(--primary); }
.form-field label{ position:absolute; left:4px; top: 14px; color: var(--muted); font-size: .95rem; pointer-events:none; transition: all var(--dur-fast) var(--ease); }
.form-field input:focus + label, .form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label, .form-field textarea:not(:placeholder-shown) + label{
  top: -10px; font-size: .68rem; color: var(--primary);
}
.field-error{ display:block; min-height: 16px; color: #F87171; font-size: .72rem; margin-top: 4px; }
.form-field.invalid input, .form-field.invalid textarea{ border-color: #F87171; }
.send-btn{ align-self:flex-start; position:relative; }
.send-btn-check{ display:none; }
.send-btn.sent .send-btn-label{ display:none; }
.send-btn.sent .send-btn-check{ display:inline; }
.contact-side{ display:flex; flex-direction:column; gap: 22px; }
.contact-map{ border-radius: var(--radius-md); overflow:hidden; border: 1px solid var(--border); height: 200px; }
.map-placeholder{ height:100%; width:100%; background:
  linear-gradient(135deg, rgba(0,229,255,.08), rgba(124,58,237,.08)),
  repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(255,255,255,.04) 20px),
  repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(255,255,255,.04) 20px);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color: var(--muted); font-size: .82rem; }
.map-pin{ width: 14px; height:14px; border-radius: 50% 50% 50% 0; background: var(--primary); transform: rotate(-45deg); box-shadow: 0 0 18px var(--primary); }
.contact-info{ display:flex; flex-direction:column; gap: 10px; font-size: .86rem; }
.contact-info strong{ color: var(--primary); display:inline-block; width: 74px; font-size: .74rem; font-family: var(--font-mono); }

/* ---------- 23. FOOTER ---------- */
.footer{ position: relative; background: var(--card); padding-top: 60px; border-top: 1px solid var(--border); }
.wave-divider{ position:absolute; top:-59px; left:0; width:100%; color: var(--card); line-height:0; }
.footer-inner{ display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
@media (max-width: 760px){ .footer-inner{ grid-template-columns: 1fr; } }
.footer-col p{ color: var(--muted); font-size: .85rem; margin: 14px 0 18px; max-width: 320px; }
.footer-col h4{ font-family: var(--font-display); margin-bottom: 16px; font-size: .95rem; }
.footer-col ul{ display:flex; flex-direction:column; gap: 10px; }
.footer-col ul a{ color: var(--muted); font-size: .86rem; transition: color var(--dur-fast); }
.footer-col ul a:hover{ color: var(--primary); }
.newsletter-form{ display:flex; gap: 8px; }
.newsletter-form input{ flex:1; border:1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: .82rem; }
.newsletter-form button{ background: var(--primary); color:#04121a; padding: 10px 16px; border-radius: 8px; font-size: .8rem; font-weight:600; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding: 20px 0; border-top: 1px solid var(--border); width: min(92%, var(--container)); margin-inline:auto; font-size: .78rem; color: var(--muted); }
.back-to-top{ width: 36px; height:36px; border-radius:50%; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; transition: border-color var(--dur-fast), transform var(--dur-fast); }
.back-to-top:hover{ border-color: var(--border-glow); color: var(--primary); transform: translateY(-3px); }

/* ---------- 24. MODAL / LIGHTBOX ---------- */
.modal-overlay, .lightbox-overlay{ position: fixed; inset:0; z-index: 9200; background: rgba(2,5,15,.82); backdrop-filter: blur(6px); display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition: opacity var(--dur-fast), visibility var(--dur-fast); padding: 30px; }
.modal-overlay.active, .lightbox-overlay.active{ opacity:1; visibility:visible; }
.modal-panel{ background: var(--card); border:1px solid var(--border-glow); border-radius: var(--radius-lg); max-width: 640px; width:100%; max-height: 84vh; overflow-y:auto; position: relative; transform: scale(.92); transition: transform var(--dur-fast) var(--ease); padding: 34px; }
.modal-overlay.active .modal-panel{ transform: scale(1); }
.modal-close, .lightbox-close{ position: absolute; top: 16px; right: 16px; width: 32px; height:32px; border-radius:50%; border:1px solid var(--border); font-size: 1.2rem; display:flex; align-items:center; justify-content:center; }
.lightbox-close{ position: fixed; top: 24px; right: 24px; color:#fff; }
.lightbox-content{ max-width: 90vw; max-height: 85vh; }
#modalBody h3{ font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 10px; padding-right: 30px; }
#modalBody p{ color: var(--muted); margin-bottom: 16px; }

/* ---------- 25. WIDGETS ---------- */
.mini-widgets{ position: fixed; bottom: 24px; left: 24px; z-index: 500; }
.widget-clock{ font-family: var(--font-mono); font-size: .74rem; color: var(--muted); background: var(--card); border: 1px solid var(--border); padding: 8px 14px; border-radius: 999px; }
@media (max-width: 700px){ .mini-widgets{ display:none; } }

.chatbot-toggle{ position: fixed; bottom: 24px; right: 24px; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); color:#04121a; display:flex; align-items:center; justify-content:center; z-index: 850; box-shadow: 0 10px 30px -8px rgba(0,229,255,.6); transition: transform var(--dur-fast); }
.chatbot-toggle:hover{ transform: scale(1.08); }
.chatbot-panel{ position: fixed; bottom: 90px; right: 24px; width: min(88vw, 320px); height: 400px; background: var(--card); border: 1px solid var(--border-glow); border-radius: var(--radius-md); z-index: 850; display:flex; flex-direction:column; overflow:hidden; transform: translateY(16px) scale(.96); opacity:0; visibility:hidden; transition: all var(--dur-fast) var(--ease); }
.chatbot-panel.active{ transform: translateY(0) scale(1); opacity:1; visibility:visible; }
.chatbot-head{ display:flex; justify-content:space-between; align-items:center; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: .85rem; font-weight:600; }
.chatbot-messages{ flex:1; overflow-y:auto; padding: 14px; display:flex; flex-direction:column; gap: 10px; }
.chat-msg{ font-size: .82rem; padding: 9px 12px; border-radius: 10px; max-width: 85%; }
.chat-msg.bot{ background: rgba(0,229,255,.08); align-self:flex-start; }
.chat-msg.user{ background: rgba(124,58,237,.18); align-self:flex-end; }
.chatbot-input-row{ display:flex; border-top: 1px solid var(--border); }
.chatbot-input-row input{ flex:1; padding: 12px; font-size: .82rem; }
.chatbot-input-row button{ padding: 0 16px; color: var(--primary); }

.achievement-toast{ position: fixed; top: 90px; left: 50%; transform: translateX(-50%) translateY(-30px); background: var(--card); border: 1px solid var(--accent); border-radius: var(--radius-sm); padding: 14px 20px; display:flex; gap: 12px; align-items:center; z-index: 9600; opacity:0; visibility:hidden; transition: all .5s var(--ease); }
.achievement-toast.active{ opacity:1; visibility:visible; transform: translateX(-50%) translateY(0); }
.ach-toast-icon{ font-size: 1.4rem; }
.achievement-toast p{ font-size: .8rem; font-weight:600; color: var(--accent); }
.achievement-toast span{ font-size: .74rem; color: var(--muted); }

/* ---------- 26. TILT / MAGNETIC HELPERS ---------- */
.tilt-card{ transform-style: preserve-3d; will-change: transform; }
.magnetic{ will-change: transform; }

/* ---------- 27. SCROLLBAR ---------- */
::-webkit-scrollbar{ width: 8px; }
::-webkit-scrollbar-track{ background: var(--bg); }
::-webkit-scrollbar-thumb{ background: var(--card-hover); border-radius: 4px; }

/* ---------- 28. FOCUS STATES (a11y) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px;
}

/* ---------- 29. RESPONSIVE TUNING ---------- */
@media (max-width: 560px){
  .section{ padding: 80px 0; }
  .quick-facts{ grid-template-columns: 1fr; }
  .stats-grid{ grid-template-columns: repeat(2,1fr); }
}
