/* ═══════════════════════════════════════════════════════════════
   ABHAY TOMAR PORTFOLIO — PREMIUM REDESIGN v2
   ═══════════════════════════════════════════════════════════════ */

/* ── GOOGLE FONTS FALLBACK ─────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@400;500;700;900&family=Share+Tech+Mono&family=Rajdhani:wght@400;500;600;700&display=swap');

/* ── CSS VARIABLES ─────────────────────────── */
:root {
  --cyan:    #25d1f4;
  --pink:    #ff4785;
  --purple:  #bf00ff;
  --green:   #00ff88;
  --dark:    #020818;
  --dark2:   #050f28;
  --glass:   rgba(5, 15, 40, 0.6);
  --glass-border: rgba(37, 209, 244, 0.12);
  --text:    rgba(200, 220, 240, 0.9);
  --text-dim: rgba(150, 170, 200, 0.6);
  --nav-h:   70px;
  --radius:  12px;
  --font-main: 'Inter', 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --font-hd: 'Orbitron', sans-serif;
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT THEME — Full Readability Overhaul
   ═══════════════════════════════════════════════════════════════ */
[data-theme="light"] {
  /* Core palette */
  --dark:        #f0f5ff;
  --dark2:       #e2e9f7;
  --glass:       rgba(255, 255, 255, 0.82);
  --glass-border: rgba(37, 209, 244, 0.3);
  --text:        #0f1e40;
  --text-dim:    rgba(30, 55, 100, 0.7);
  /* Toned-down neon — still vibrant but not blinding */
  --cyan:   #0095b3;
  --pink:   #d42060;
  --purple: #8800cc;
  --green:  #00a05a;
}

/* ── BODY & BACKGROUND ───────────────────────── */
[data-theme="light"] body {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f8ff 50%, #eaf6ff 100%);
  color: var(--text);
}
[data-theme="light"] .grid-overlay {
  opacity: 0.04;
  filter: invert(1);
}
[data-theme="light"] .glow-orb { opacity: 0.12; }
[data-theme="light"] .mesh-gradient { opacity: 0.15; }
[data-theme="light"] #blob-svg { opacity: 0.07; }

/* ── NAVIGATION ──────────────────────────────── */
[data-theme="light"] nav {
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(37,209,244,0.2);
  backdrop-filter: blur(20px);
}
[data-theme="light"] .nav-links a { color: #1a2f60; }
[data-theme="light"] .nav-links a:hover { color: var(--cyan); }
[data-theme="light"] .nav-logo {
  color: var(--cyan);
  text-shadow: none;
  filter: none;
}
[data-theme="light"] .logo-bracket { color: var(--purple); }
[data-theme="light"] .nav-hire {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff !important;
}

/* ── OTW BANNER ─────────────────────────────── */
[data-theme="light"] #otw-banner {
  background: linear-gradient(90deg, rgba(0,149,179,0.12), rgba(136,0,204,0.1));
  color: #0f1e40;
  border-bottom: 1px solid rgba(0,149,179,0.25);
}

/* ── HERO SECTION ────────────────────────────── */
[data-theme="light"] #hero { background: transparent; }
[data-theme="light"] .hero-name {
  -webkit-text-fill-color: #0f1e40;
  text-shadow: none;
  filter: none;
}
[data-theme="light"] .hero-name::before,
[data-theme="light"] .hero-name::after {
  opacity: 0.08; /* Tone down chromatic aberration clones */
}
[data-theme="light"] .hero-subtitle { color: rgba(15,30,64,0.75); }
[data-theme="light"] .tw-prefix { color: var(--cyan); }
[data-theme="light"] .tw-cursor { color: var(--purple); }
[data-theme="light"] .typewriter-text { color: #1a2f60; }
[data-theme="light"] .hero-badge {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,149,179,0.3);
  color: #0f1e40;
}
[data-theme="light"] .hero-building {
  background: rgba(255,255,255,0.6);
  border-color: rgba(0,149,179,0.3);
  color: #1a2f60;
}
[data-theme="light"] .hero-building-label { color: var(--cyan); }
[data-theme="light"] .hero-building-text { color: #0f1e40; }
[data-theme="light"] .hero-social-icon { color: #1a2f60; }
[data-theme="light"] .hero-social-icon:hover { color: var(--cyan); }
[data-theme="light"] .hero-float-word { color: rgba(15, 30, 64, 0.18) !important; }

/* ── HERO PHOTO ──────────────────────────────── */
[data-theme="light"] .hero-photo-ring { border-color: rgba(0,149,179,0.2); }
[data-theme="light"] .hero-photo-frame { box-shadow: 0 20px 60px rgba(0,149,179,0.15); }

/* ── BUTTONS ─────────────────────────────────── */
[data-theme="light"] .btn-secondary {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,149,179,0.4);
  color: #0f1e40;
}
[data-theme="light"] .btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); }
[data-theme="light"] .btn-tertiary { color: #1a2f60; border-bottom-color: rgba(0,149,179,0.4); }
[data-theme="light"] .scroll-bar { background: rgba(0,149,179,0.3); }

/* ── SECTION TAGS & TITLES ───────────────────── */
[data-theme="light"] .section-tag {
  color: var(--cyan);
  border-color: rgba(0,149,179,0.3);
  background: rgba(0,149,179,0.06);
}
[data-theme="light"] .section-title {
  color: #0f1e40;
  -webkit-text-fill-color: #0f1e40;
  text-shadow: none;
}

/* ── ABOUT SECTION ───────────────────────────── */
[data-theme="light"] .about-content p { color: #1e3565; }
[data-theme="light"] .about-content strong { color: #0f1e40; }
[data-theme="light"] .about-photo-border { border-color: rgba(0,149,179,0.3); }
[data-theme="light"] .stat-card {
  background: rgba(255,255,255,0.75);
  border-color: rgba(0,149,179,0.2);
}
[data-theme="light"] .stat-num { color: var(--cyan); -webkit-text-fill-color: var(--cyan); }
[data-theme="light"] .stat-label { color: rgba(15,30,64,0.7); }

/* ── SKILLS ──────────────────────────────────── */
[data-theme="light"] .skill-cat {
  background: rgba(255,255,255,0.75);
  border-color: rgba(0,149,179,0.2);
}
[data-theme="light"] .skill-cat-title { color: #0f1e40; }
[data-theme="light"] .skill-tag {
  background: rgba(0,149,179,0.08);
  border-color: rgba(0,149,179,0.3);
  color: #0f1e40;
}
[data-theme="light"] .skill-tag:hover {
  background: var(--cyan);
  color: #fff;
  border-color: var(--cyan);
}
[data-theme="light"] .skill-bar-name { color: #1a2f60; }
[data-theme="light"] .skill-bar-pct { color: var(--cyan); }
[data-theme="light"] .skill-bar-track { background: rgba(0,0,0,0.08); }

/* ── PROJECT CARDS ───────────────────────────── */
[data-theme="light"] .project-card {
  background: rgba(255,255,255,0.82);
  border-color: rgba(0,149,179,0.2);
  box-shadow: 0 8px 32px rgba(0,149,179,0.08);
}
[data-theme="light"] .card-back {
  background: linear-gradient(135deg, #fff 0%, #eef6ff 100%);
  border-color: rgba(0,149,179,0.25);
}
[data-theme="light"] .project-num { color: rgba(0,149,179,0.7); }
[data-theme="light"] .project-name { color: #0f1e40; }
[data-theme="light"] .project-codename { color: rgba(30,53,101,0.6); }
[data-theme="light"] .card-back-label { color: rgba(0,149,179,0.7); }
[data-theme="light"] .card-back-title { color: #0f1e40; }
[data-theme="light"] .card-back-desc { color: #1e3565; }
[data-theme="light"] .tech-badge {
  background: rgba(0,149,179,0.1);
  border-color: rgba(0,149,179,0.3);
  color: #0f1e40;
}

/* ── HUD CARD CORNERS & SCAN ─────────────────── */
[data-theme="light"] .hud-corner-tr,
[data-theme="light"] .hud-corner-bl { border-color: rgba(0,149,179,0.4); }
[data-theme="light"] .hud-scan { background: rgba(0,149,179,0.3); }

/* ── TIMELINE ────────────────────────────────── */
[data-theme="light"] .timeline-card {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,149,179,0.2);
}
[data-theme="light"] .timeline-card:hover { border-color: var(--cyan); }
[data-theme="light"] .timeline-title { color: #0f1e40; }
[data-theme="light"] .timeline-sub { color: rgba(30,53,101,0.7); }
[data-theme="light"] .timeline-body { color: #1e3565; }
[data-theme="light"] .timeline-date { color: var(--cyan); }
[data-theme="light"] .timeline::before { background: rgba(0,149,179,0.2); }
[data-theme="light"] .timeline-item::before { background: rgba(255,255,255,0.9); border-color: var(--cyan); }

/* ── CERTIFICATIONS & ACHIEVEMENTS ──────────── */
[data-theme="light"] .achieve-card {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,149,179,0.2);
}
[data-theme="light"] .achieve-title { color: #0f1e40; }
[data-theme="light"] .achieve-desc { color: #1e3565; }
[data-theme="light"] .cert-showcase-card {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,149,179,0.2);
}

/* ── CONTACT SECTION ─────────────────────────── */
[data-theme="light"] #contact { background: rgba(238,242,255,0.5); }
[data-theme="light"] .contact-desc { color: #1e3565; }
[data-theme="light"] .contact-link {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,149,179,0.2);
}
[data-theme="light"] .contact-link:hover { border-color: var(--cyan); }
[data-theme="light"] .contact-link-label { color: rgba(0,149,179,0.8); }
[data-theme="light"] .contact-link-val { color: #0f1e40; }
[data-theme="light"] .contact-form {
  background: rgba(255,255,255,0.82);
  border-color: rgba(0,149,179,0.2);
}
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
  background: rgba(240,245,255,0.9);
  border-color: rgba(0,149,179,0.25);
  color: #0f1e40;
}
[data-theme="light"] .form-input::placeholder,
[data-theme="light"] .form-textarea::placeholder { color: rgba(30,53,101,0.4); }
[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
  border-color: var(--cyan);
  background: #fff;
}
[data-theme="light"] .form-label { color: rgba(30,53,101,0.7); }

/* ── CODE SNIPPET CARD ───────────────────────── */
[data-theme="light"] .code-snippet-card {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,149,179,0.2);
}
[data-theme="light"] .code-kw { color: var(--purple); }
[data-theme="light"] .code-var { color: #0f1e40; }
[data-theme="light"] .code-str { color: var(--cyan); }
[data-theme="light"] .code-val { color: #c05000; }
[data-theme="light"] .code-bool { color: var(--green); }
[data-theme="light"] .code-line { color: #1a2f60; }

/* ── FOOTER ──────────────────────────────────── */
[data-theme="light"] footer {
  background: rgba(238,242,255,0.7);
  border-top: 1px solid rgba(0,149,179,0.15);
}
[data-theme="light"] .footer-copy,
[data-theme="light"] .footer-tagline { color: rgba(15,30,64,0.6); }
[data-theme="light"] .footer-social-link { color: rgba(15,30,64,0.5); }
[data-theme="light"] .footer-social-link:hover { color: var(--cyan); }

/* ── BACK TO TOP / SCROLL PROGRESS ──────────── */
[data-theme="light"] #back-to-top {
  background: rgba(255,255,255,0.9);
  color: var(--cyan);
  border-color: rgba(0,149,179,0.3);
}
[data-theme="light"] #fps-hud {
  background: rgba(255,255,255,0.8);
  color: #0f1e40;
  border-color: rgba(0,149,179,0.2);
}

/* ── CURSOR ──────────────────────────────────── */
[data-theme="light"] .cursor-ring { border-color: rgba(0,149,179,0.6); }

/* ── CANVAS ELEMENTS: tone down on light mode ── */
[data-theme="light"] #particles-canvas,
[data-theme="light"] #gravity-canvas,
[data-theme="light"] #matrix-canvas { opacity: 0.15; }
[data-theme="light"] #aurora-canvas { opacity: 0.1; }
[data-theme="light"] #dna-canvas { opacity: 0.25; }


/* ── RESET / BASE ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* ── SCROLLBAR ─────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--cyan), var(--purple)); border-radius: 4px; }

/* ── SELECTION ─────────────────────────────── */
::selection { background: rgba(37, 209, 244, 0.25); color: var(--cyan); }

/* ── BACKGROUNDS ───────────────────────────── */
#particles-canvas,
#aurora-canvas,
#matrix-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
#particles-canvas { z-index: 1; }
#aurora-canvas    { z-index: 0; opacity: 0.3; }
#matrix-canvas    { z-index: 0; opacity: 0; transition: opacity 1s; }
#matrix-canvas.active { opacity: 0.07; }

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(37,209,244,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,209,244,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 8s ease-in-out infinite;
}
.glow-orb-1 { width: 500px; height: 500px; top: -100px; right: -100px; background: radial-gradient(circle, rgba(37,209,244,0.12), transparent 70%); animation-delay: 0s; }
.glow-orb-2 { width: 600px; height: 600px; bottom: 20%; left: -150px; background: radial-gradient(circle, rgba(191,0,255,0.10), transparent 70%); animation-delay: -3s; }
.glow-orb-3 { width: 400px; height: 400px; bottom: -100px; right: 20%; background: radial-gradient(circle, rgba(0,255,136,0.08), transparent 70%); animation-delay: -6s; }

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* ── SCROLL PROGRESS ───────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  z-index: 9999;
  box-shadow: 0 0 8px var(--cyan);
  transition: width 0.1s;
}

/* ── OTW BANNER ────────────────────────────── */
#otw-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  background: linear-gradient(90deg, rgba(0,255,136,0.08), rgba(37,209,244,0.08));
  border-bottom: 1px solid rgba(0,255,136,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 48px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: transform 0.45s ease, opacity 0.45s ease;
}
#otw-banner.hidden { transform: translateY(-100%); opacity: 0; }
.otw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: blink 1.4s infinite; }
#otw-close {
  position: absolute; right: 16px;
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; font-size: 0.85rem; padding: 4px;
  transition: color 0.2s;
}
#otw-close:hover { color: var(--pink); }

/* ── OFFLINE BANNER ────────────────────────── */
#offline-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(255,71,133,0.15);
  border-top: 1px solid rgba(255,71,133,0.3);
  text-align: center;
  padding: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transform: translateY(100%);
  transition: transform 0.3s;
}
#offline-banner.visible { transform: translateY(0); }

/* ── CURSOR ────────────────────────────────── */
.cursor-dot, .cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  transition: background 0.2s, transform 0.2s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(37,209,244,0.6);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

/* ── CURSOR PARTICLE ───────────────────────── */
.cursor-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* ── AUDIO VIZ ─────────────────────────────── */
.audio-viz {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 8px 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}
.av-bars { display: flex; align-items: flex-end; gap: 2px; height: 32px; }
.av-bar {
  width: 3px;
  background: linear-gradient(to top, var(--cyan), var(--purple));
  border-radius: 2px;
  animation: avBeat var(--dur, 0.7s) ease-in-out infinite alternate;
  min-height: var(--min-h, 4px);
}
@keyframes avBeat {
  from { height: var(--min-h, 4px); }
  to   { height: var(--max-h, 30px); }
}

/* ── NAVIGATION ────────────────────────────── */
nav {
  position: fixed;
  top: 48px; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);
  height: var(--nav-h);
  transition: all 0.4s ease;
}
nav.scrolled {
  background: rgba(2, 8, 24, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(37,209,244,0.06);
  top: 0;
}
[data-theme="light"] nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 149, 179, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-logo {
  font-family: var(--font-hd);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(37,209,244,0.5);
  transition: all 0.3s;
}
.logo-bracket { color: var(--purple); }
.nav-logo:hover { text-shadow: 0 0 30px var(--cyan); }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  transition: color 0.2s, text-shadow 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--cyan); text-shadow: 0 0 12px var(--cyan); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 16px; }

#theme-toggle {
  background: none; border: 1px solid var(--glass-border);
  color: var(--text); cursor: pointer;
  padding: 6px 10px; border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}
#theme-toggle:hover { border-color: var(--cyan); box-shadow: 0 0 12px rgba(37,209,244,0.2); }

.nav-hire {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--dark);
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(37,209,244,0.3);
}
.nav-hire:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(37,209,244,0.5); }

.hamburger {
  display: none; flex-direction: column;
  gap: 5px; background: none; border: none;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--cyan); border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── MOBILE NAV DROPDOWN ───────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex !important; }

  .nav-links {
    /* Hidden by default on mobile */
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(2, 8, 24, 0.97);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    z-index: 999;
  }

  /* When open: slide down */
  .nav-links.open {
    max-height: 500px;
    padding: 16px 0 24px;
    background: rgba(2, 8, 24, 0.98); /* Ensure solid background even when scrolled */
  }

  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 32px;
    font-size: 0.85rem;
    color: var(--text);
    border-bottom: 1px solid rgba(37,209,244,0.06);
    width: 100%;
    letter-spacing: 0.12em;
  }
  .nav-links a:hover {
    color: var(--cyan);
    background: rgba(37,209,244,0.06);
    text-shadow: 0 0 10px rgba(37,209,244,0.4);
  }
  .nav-links a::after { display: none; }

  /* Light theme mobile nav */
  [data-theme="light"] .nav-links {
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid rgba(0,149,179,0.2);
  }
  [data-theme="light"] .nav-links.open {
    background: rgba(255, 255, 255, 1); /* Solid background when open */
  }
  [data-theme="light"] .nav-links a {
    color: #0f1e40;
    border-bottom-color: rgba(0,149,179,0.1);
  }
  [data-theme="light"] .nav-links a:hover {
    color: var(--cyan);
    background: rgba(0,149,179,0.06);
  }
}


/* ── BACK TO TOP ───────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 80px; right: 24px;
  z-index: 200;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--cyan); font-size: 1.1rem;
  cursor: pointer; backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(20px);
  transition: all 0.3s;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: rgba(37,209,244,0.15); box-shadow: 0 0 20px rgba(37,209,244,0.3); }

/* ── CLICK RIPPLE ──────────────────────────── */
#click-ripples { position: fixed; inset: 0; pointer-events: none; z-index: 9990; }
.click-ring {
  position: fixed;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid;
  transform: translate(-50%, -50%);
  animation: clickRingOut 1s ease-out forwards;
  pointer-events: none;
}
@keyframes clickRingOut {
  0%   { width: 10px; height: 10px; opacity: 1; }
  100% { width: 80px; height: 80px; opacity: 0; }
}

/* ── CONTAINER ─────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  position: relative;
  z-index: 2;
  width: 100%;
}

@media (max-width: 500px) {
  .container {
    padding: 0 16px;
    overflow-x: hidden;
  }
}

/* ── SECTION BASE ──────────────────────────── */
section {
  padding: clamp(80px, 10vw, 120px) 0;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  border: 1px solid rgba(37,209,244,0.25);
  background: rgba(37,209,244,0.06);
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-hd);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, #fff 30%, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 48px;
  letter-spacing: 0.05em;
}

/* ── REVEAL ANIMATION ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── BLINK ─────────────────────────────────── */
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

/* ════════════════════════════════
   HERO
   ════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 48px + 20px);
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  z-index: 10;
  position: relative;
}

/* ── Hero Text Column ──*/
.hero-text-col { display: flex; flex-direction: column; gap: 24px; }

.hero-badges-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--green);
  background: rgba(0,255,136,0.07);
  border: 1px solid rgba(0,255,136,0.25);
  padding: 6px 14px; border-radius: 20px;
}
.hero-badge-learn { color: var(--cyan); background: rgba(37,209,244,0.07); border-color: rgba(37,209,244,0.25); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 1.2s infinite; }

.hero-name {
  font-family: var(--font-hd);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* Glitch Effect */
.glitch { animation: glitch 3s infinite; }
@keyframes glitch {
  0%, 92%, 100% { text-shadow: none; }
  93% { text-shadow: -3px 0 var(--pink), 3px 0 var(--cyan); }
  94% { text-shadow: 3px 0 var(--pink), -3px 0 var(--cyan); }
  95% { text-shadow: none; }
  96% { text-shadow: -2px 0 var(--cyan), 2px 0 var(--purple); }
  97% { text-shadow: 2px 0 var(--cyan), -2px 0 var(--purple); }
  98% { text-shadow: none; }
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.typewriter-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--cyan);
  min-height: 2rem;
}
.tw-prefix { color: var(--green); opacity: 0.7; }
.tw-cursor { animation: blink 0.7s step-end infinite; color: var(--cyan); }

.hero-building {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  border: 1px dashed rgba(37,209,244,0.2);
  padding: 8px 16px;
  border-radius: 4px;
  width: fit-content;
}
.hero-building-label { color: var(--purple); }
.hero-building-text  { color: var(--cyan); }

/* ── Hero Buttons ── */
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 4px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 12px 28px;
  border-radius: 8px;
  transition: all 0.3s;
  box-shadow: 0 0 25px rgba(37,209,244,0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 40px rgba(37,209,244,0.5); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 12px 28px;
  border: 1.5px solid rgba(37,209,244,0.4);
  border-radius: 8px;
  transition: all 0.3s;
}
.btn-secondary:hover { background: rgba(37,209,244,0.08); border-color: var(--cyan); transform: translateY(-3px); }

.btn-tertiary {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 12px 20px;
  transition: color 0.3s;
}
.btn-tertiary:hover { color: var(--cyan); }

/* ── Hero Socials ── */
.hero-socials {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 1.1rem;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}
.hero-social-icon:hover {
  color: var(--cyan);
  border-color: rgba(37,209,244,0.4);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37,209,244,0.2);
}

/* ── Hero Photo Column ── */
.hero-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.hero-photo-frame {
  position: relative;
  width: 260px; height: 260px;
}

.hero-photo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: ringRotate 8s linear infinite;
}
.ring-1 { inset: -20px; border-color: rgba(37,209,244,0.3); animation-duration: 8s; }
.ring-2 { inset: -35px; border-color: rgba(191,0,255,0.2); animation-duration: 12s; animation-direction: reverse; border-style: dashed; }
.ring-3 { inset: -55px; border-color: rgba(0,255,136,0.1); animation-duration: 20s; }
@keyframes ringRotate { from {transform: rotate(0deg)} to {transform: rotate(360deg)} }

.hero-photo-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,209,244,0.3), transparent 70%);
  filter: blur(20px);
  animation: orbFloat 4s ease-in-out infinite;
}

.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(37,209,244,0.4);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(37,209,244,0.4));
}

.hero-photo-badge {
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--green);
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.3);
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Code Snippet Card ── */
.code-snippet-card {
  background: rgba(2,8,24,0.8);
  border: 1px solid rgba(37,209,244,0.15);
  border-radius: 10px;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  width: 100%;
  max-width: 280px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.code-snippet-card::before {
  content: '● ● ●';
  display: block;
  color: rgba(255,255,255,0.2);
  font-size: 0.5rem;
  margin-bottom: 10px;
  letter-spacing: 4px;
}
.code-kw  { color: var(--purple); }
.code-var { color: var(--cyan); }
.code-str { color: var(--pink); }
.code-val { color: var(--green); }
.code-bool{ color: var(--cyan); }

/* ── Hero Scroll Indicator ── */
.hero-scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  z-index: 10;
}
.scroll-bar {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 1.5s ease-in-out infinite;
}
@keyframes scrollPulse { 0%{opacity:1;transform:scaleY(1)} 100%{opacity:0;transform:scaleY(0.3) translateY(20px)} }

/* ════════════════════════════════
   ABOUT
   ════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: start;
}

.about-photo-wrap {
  position: relative;
  width: 200px;
  flex-shrink: 0;
}
.about-photo-border {
  width: 200px; height: 200px;
  border-radius: 16px;
  padding: 3px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  border-radius: 14px;
}
.about-photo-badge {
  position: absolute;
  bottom: -14px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--green);
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.3);
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.about-content p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 18px;
}
.about-content strong { color: var(--text); font-weight: 600; }

.about-stats {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px 28px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  flex: 1;
  min-width: 100px;
}
.stat-card:hover { border-color: rgba(37,209,244,0.3); transform: translateY(-4px); }

.stat-num {
  font-family: var(--font-hd);
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ════════════════════════════════
   SKILLS
   ════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.skill-cat {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.skill-cat:hover { border-color: rgba(37,209,244,0.25); transform: translateY(-4px); }

.skill-cat-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.skill-cat-icon { font-size: 1.1rem; }

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

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: rgba(37,209,244,0.06);
  border: 1px solid rgba(37,209,244,0.15);
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}
.skill-tag:hover {
  color: var(--cyan);
  border-color: rgba(37,209,244,0.4);
  background: rgba(37,209,244,0.1);
  box-shadow: 0 0 12px rgba(37,209,244,0.15);
}

.proficiency-section { margin-top: 48px; }

/* Skill bars */
.skill-bar-wrap {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.skill-bar-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.skill-bar-name { color: var(--text); }
.skill-bar-pct  { color: var(--cyan); }
.skill-bar-track {
  height: 4px;
  background: rgba(37,209,244,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ════════════════════════════════
   PROJECTS
   ════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}
.project-card:hover {
  border-color: rgba(37,209,244,0.3);
  box-shadow: 0 20px 60px rgba(37,209,244,0.1);
}

.project-preview {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.project-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-preview img { transform: scale(1.04); }
.project-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--glass) 0%, transparent 60%);
}

.project-body { padding: 24px; }

.project-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  opacity: 0.6;
  margin-bottom: 8px;
}
.project-name {
  font-family: var(--font-hd);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}
.project-codename {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.project-highlights {
  list-style: none;
  margin-bottom: 20px;
}
.project-highlights li {
  position: relative;
  padding-left: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  line-height: 1.5;
}
.project-highlights li::before {
  content: '›';
  position: absolute; left: 0;
  color: var(--cyan); font-weight: 700;
}

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

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--purple);
  background: rgba(191,0,255,0.08);
  border: 1px solid rgba(191,0,255,0.2);
  padding: 3px 10px;
  border-radius: 4px;
}

.project-links { display: flex; gap: 10px; }

.proj-link-gh {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  border: 1px solid rgba(37,209,244,0.3);
  padding: 6px 14px; border-radius: 4px;
  letter-spacing: 0.08em;
  transition: all 0.3s;
}
.proj-link-gh:hover { background: rgba(37,209,244,0.1); }

.proj-link-live {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--dark);
  padding: 6px 14px; border-radius: 4px;
  letter-spacing: 0.08em;
  font-weight: 700;
  transition: opacity 0.3s;
}
.proj-link-live:hover { opacity: 0.85; }
.proj-link-cyan  { background: var(--cyan); }
.proj-link-pink  { background: var(--pink); }
.proj-link-green { background: var(--green); }

/* ════════════════════════════════
   TIMELINE
   ════════════════════════════════ */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple), transparent);
}

@media (max-width: 600px) {
  .timeline { padding-left: 24px; }
  .timeline::before { left: 0px; }
}

.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

@media (max-width: 600px) {
  .timeline-item::before {
    left: -29px;
    width: 8px;
    height: 8px;
  }
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 10px;
}

.timeline-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(10px);
  position: relative;
  transition: all 0.3s;
}
.timeline-card:hover { border-color: rgba(37,209,244,0.3); transform: translateX(4px); }

.timeline-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.timeline-title {
  font-family: var(--font-hd);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.timeline-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.timeline-body { font-size: 0.88rem; color: var(--text-dim); line-height: 1.7; }

/* ════════════════════════════════
   ACHIEVE / CERT CARDS
   ════════════════════════════════ */
.achieve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.achieve-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  backdrop-filter: blur(10px);
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}
.achieve-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, transparent, var(--card-accent), transparent);
}
.achieve-card.cyan  { --card-accent: var(--cyan);   border-color: rgba(37,209,244,0.12); }
.achieve-card.pink  { --card-accent: var(--pink);   border-color: rgba(255,71,133,0.12); }
.achieve-card.purple{ --card-accent: var(--purple); border-color: rgba(191,0,255,0.12); }
.achieve-card.green { --card-accent: var(--green);  border-color: rgba(0,255,136,0.12); }

.achieve-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }

.achieve-icon { font-size: 2rem; margin-bottom: 14px; }
.achieve-title {
  font-family: var(--font-hd);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.4;
}
.achieve-desc { font-size: 0.85rem; color: var(--text-dim); line-height: 1.65; }

.achieve-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border: 1px solid;
  border-radius: 4px;
  transition: all 0.3s;
}
.achieve-link-cyan  { color: var(--cyan);   border-color: rgba(37,209,244,0.3); }
.achieve-link-pink  { color: var(--pink);   border-color: rgba(255,71,133,0.3); }
.achieve-link-green { color: var(--green);  border-color: rgba(0,255,136,0.3); }
.achieve-link:hover { opacity: 0.8; transform: translateX(2px); }

/* ── TryHackMe Badge ── */
.tryhackme-badge-wrap {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 480px;
  backdrop-filter: blur(10px);
}

/* ════════════════════════════════
   CERTIFICATES SHOWCASE
   ════════════════════════════════ */
.certs-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ── MOBILE GRID ADJUSTMENTS ── */
@media (max-width: 500px) {
  .achieve-grid {
    grid-template-columns: 1fr;
  }
  .certs-showcase-grid {
    grid-template-columns: 1fr;
  }
  .achieve-card, .timeline-card {
    padding: 20px 16px;
  }
}

.cert-showcase-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.cert-showcase-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.3); }

.cert-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 8px;
  flex-wrap: wrap;
}
.cert-showcase-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid;
}
.cert-showcase-issuer {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.cert-showcase-img-link { display: block; position: relative; }
.cert-showcase-img { width: 100%; height: 180px; object-fit: cover; }
.cert-showcase-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 0.1em; opacity: 0;
  transition: opacity 0.3s;
}
.cert-showcase-img-link:hover .cert-showcase-overlay { opacity: 1; }

/* ════════════════════════════════
   CONTACT
   ════════════════════════════════ */
.contact-wrapper { max-width: 800px; margin: 0 auto; }

.contact-desc {
  text-align: center;
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 48px;
  line-height: 1.8;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 48px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  color: var(--text);
}
.contact-link:hover {
  border-color: rgba(37,209,244,0.3);
  background: rgba(37,209,244,0.05);
  transform: translateX(4px);
}
.contact-link-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-link-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}
.contact-link-val {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
}

/* ── Contact Form ── */
.contact-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 36px;
  backdrop-filter: blur(10px);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group:not(.form-row *) { margin-bottom: 20px; }

.form-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}
.form-input, .form-textarea {
  background: rgba(37,209,244,0.04);
  border: 1px solid rgba(37,209,244,0.15);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.9rem;
  padding: 12px 16px;
  transition: all 0.3s;
  outline: none;
  resize: vertical;
}
.form-input:focus, .form-textarea:focus {
  border-color: rgba(37,209,244,0.5);
  box-shadow: 0 0 20px rgba(37,209,244,0.1);
}
.form-textarea { min-height: 130px; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); opacity: 0.6; }

.form-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 25px rgba(37,209,244,0.25);
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(37,209,244,0.4); }

/* ════════════════════════════════
   FOOTER
   ════════════════════════════════ */
footer {
  padding: 60px clamp(20px,5vw,60px) 40px;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 2;
}

.footer-logo {
  font-family: var(--font-hd);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 28px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 1.2rem;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}
.footer-social-link:hover {
  color: var(--cyan);
  border-color: rgba(37,209,244,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37,209,244,0.15);
}
.footer-social-gh { width: auto; padding: 0 12px; }
.gh-chart { max-width: 200px; height: 28px; object-fit: cover; border-radius: 4px; opacity: 0.7; }

.footer-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  line-height: 2;
}

/* ════════════════════════════════
   SECTION FLASH (glitch transition)
   ════════════════════════════════ */
.section-flash {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(37,209,244,0.03);
  pointer-events: none;
  animation: flashFade 0.3s ease-out forwards;
}
@keyframes flashFade { 0%{opacity:1} 100%{opacity:0} }

/* ════════════════════════════════
   LIGHT THEME OVERRIDES
   ════════════════════════════════ */
[data-theme="light"] .hero-name {
  background: linear-gradient(135deg, #1a2240, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}
[data-theme="light"] .section-title {
  background: linear-gradient(135deg, #1a2240, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}
[data-theme="light"] body { background: var(--dark); }

/* ════════════════════════════════
   RESPONSIVE
   ════════════════════════════════ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-photo-col { order: -1; }
  .hero-btns { justify-content: center; }
  .hero-badges-row { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-building { margin: 0 auto; }
  .typewriter-wrap { justify-content: center; }
  .code-snippet-card { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { margin: 0 auto; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(2,8,24,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 999;
    backdrop-filter: blur(20px);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .hamburger { display: flex; z-index: 1000; }
  .nav-hire { display: none; }

  .hero-photo-frame { width: 200px; height: 200px; }
  .form-row { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-links { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.5rem; }
  .hero-photo-frame { width: 160px; height: 160px; }
  .contact-form { padding: 24px 18px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE WELLNESS — Google Mobile-First SEO Improvements
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. PREVENT iOS FONT INFLATION & HORIZONTAL SCROLL ──────── */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* Smooth momentum scroll on iOS */
}

/* ── 2. FORM INPUTS: Prevent iOS auto-zoom (needs ≥16px) ─────── */
.form-input,
.form-textarea {
  font-size: max(16px, 1rem); /* iOS zooms if font < 16px */
}

/* ── 3. TOUCH TARGETS: Google requires ≥ 44×44px ────────────── */
a, button,
.skill-tag, .tech-badge,
.hero-social-icon, .footer-social-link,
.nav-links a, .contact-link,
.proj-link-gh, .proj-link-live,
.achieve-link, #back-to-top,
#theme-toggle, #otw-close {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Override inline-flex for block-level links where needed */
.contact-link, .timeline-card, .achieve-card { display: flex; }

/* ── 4. SAFE AREA INSETS (iPhone notch / Dynamic Island) ─────── */
nav {
  padding-left: max(clamp(20px, 5vw, 60px), env(safe-area-inset-left));
  padding-right: max(clamp(20px, 5vw, 60px), env(safe-area-inset-right));
}
footer {
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}

/* ── 5. IMAGE ASPECT-RATIO LOCKS (prevent CLS layout shifts) ── */
.hero-photo, .about-photo { aspect-ratio: 1 / 1; }
.project-preview { aspect-ratio: 16 / 9; overflow: hidden; }
.project-preview img { width: 100%; height: 100%; object-fit: cover; }
.cert-showcase-img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }

/* ── 6. DISABLE 3D FLIP ON TOUCH DEVICES (performance + UX) ─── */
@media (hover: none) {
  .card-flip-inner { transform: none !important; }
  .project-card { height: auto; perspective: none; }
  .card-face.card-back {
    position: static;
    transform: none;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    margin-top: 0;
    background: var(--glass);
    border-radius: 0 0 14px 14px;
    padding: 20px;
    border-top: 1px solid var(--glass-border);
  }
  .card-face.card-front {
    position: static;
    backface-visibility: visible;
  }
  .project-card .hud-scan { display: none; }
}

/* ── 7. REDUCE ANIMATIONS ON LOW-POWER MODE ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cursor-dot, .cursor-ring, .audio-viz { display: none !important; }
  #gravity-canvas, #dna-canvas, #aurora-canvas { display: none !important; }
}

/* ── 8. MOBILE-SPECIFIC LAYOUT FIXES ────────────────────────── */
@media (max-width: 768px) {
  /* Prevent grid blowout */
  .skills-grid, .projects-grid, .achieve-grid,
  .certs-showcase-grid, .contact-links {
    grid-template-columns: 1fr !important;
  }

  /* Section padding tighter on small screens */
  section { padding: 60px 0; }

  /* Bigger readable body text on mobile */
  body { font-size: 15px; }
  .about-content p { font-size: 0.92rem; line-height: 1.8; }

  /* Timeline indentation fix */
  .timeline { padding-left: 28px; }
  .timeline-item::before { left: -23px; }

  /* Nav: ensure OTW banner doesn't stack oddly */
  #otw-banner {
    padding: 8px 40px 8px 12px;
    font-size: 0.65rem;
    text-align: center;
  }

  /* Disable heavy canvases on mobile for performance */
  #aurora-canvas { display: none; }
  #particles-canvas { opacity: 0.5; } /* Lighter on mobile */

  /* Hero adjustments */
  .hero-inner { gap: 36px; }
  .code-snippet-card { display: none !important; }

  /* Footer chart shrinks */
  .gh-chart { max-width: 140px; }

  /* Skills scrollable horizontal if needed */
  .skill-tags { gap: 6px; }
  .skill-tag { font-size: 0.68rem; padding: 5px 10px; }

  /* Contact form full-width button */
  .form-submit { font-size: 0.85rem; }
}

/* ── 9. VERY SMALL SCREENS (Galaxy Fold, small Androids) ─────── */
@media (max-width: 360px) {
  .hero-name { font-size: 2rem; letter-spacing: 0.04em; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { text-align: center; justify-content: center; }
  .stat-card { padding: 14px 16px; }
  .stat-num { font-size: 1.4rem; }
  .audio-viz { display: none; } /* Hide on very small screens */
}

/* ── 10. LANDSCAPE MOBILE FIX ───────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 40px;
  }
  .hero-photo-frame { width: 100px; height: 100px; }
  .hero-scroll { display: none; }
}

/* ── 11. HIGH-CONTRAST / DARK MODE SYSTEM PREF ─────────────── */
@media (prefers-contrast: high) {
  :root {
    --glass-border: rgba(37, 209, 244, 0.5);
    --text: #ffffff;
    --text-dim: rgba(220, 230, 255, 0.85);
  }
  .nav-links a { color: var(--cyan); }
  .skill-tag { border-color: rgba(37,209,244,0.6); color: var(--text); }
}

/* ── 12. PRINT STYLES (helps accessibility score) ───────────── */
@media print {
  #particles-canvas, #gravity-canvas, #aurora-canvas,
  #matrix-canvas, #dna-canvas, .audio-viz,
  .cursor-dot, .cursor-ring, .glow-orb,
  #scroll-progress, #back-to-top, nav,
  #fps-hud, #otw-banner { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  section { padding: 20pt 0; page-break-inside: avoid; }
  .hero-name { color: #000 !important; -webkit-text-fill-color: #000 !important; }
  a { color: #0000ee; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* ═══════════════════════════════════════════════════════════════
   UNIQUE ADVANCED EFFECTS — v2 EXCLUSIVE
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. DNA HELIX CANVAS ───────────────────────────────────────── */
#dna-canvas {
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
}

/* ── 2. NEON SIGN FLICKER ON NAV LOGO ─────────────────────────── */
.nav-logo {
  animation: neonFlicker 6s infinite;
}
@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow:
      0 0 5px #fff,
      0 0 10px #fff,
      0 0 20px var(--cyan),
      0 0 40px var(--cyan),
      0 0 80px var(--cyan);
  }
  20%, 24%, 55% {
    text-shadow: none;
    opacity: 0.7;
  }
}

/* ── 3. CHROMATIC ABERRATION ON HERO NAME ─────────────────────── */
.hero-name {
  position: relative;
}
.hero-name::before,
.hero-name::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  pointer-events: none;
}
.hero-name::before {
  background: linear-gradient(135deg, var(--pink), transparent 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: chromaShift 4s ease-in-out infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}
.hero-name::after {
  background: linear-gradient(135deg, var(--cyan), transparent 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: chromaShift 4s ease-in-out infinite reverse;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}
@keyframes chromaShift {
  0%, 100% { transform: translateX(0); opacity: 0; }
  25%, 75%  { transform: translateX(-4px); opacity: 0.5; }
  50%       { transform: translateX(4px); opacity: 0.7; }
}

/* ── 4. 3D CARD FLIP FOR PROJECTS ─────────────────────────────── */
.project-card {
  perspective: 1200px;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  height: 460px;
}
.card-flip-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.project-card:hover .card-flip-inner {
  transform: rotateY(180deg);
}
.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(14px);
}
.card-front {
  display: flex;
  flex-direction: column;
}
.card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  justify-content: space-between;
  background: linear-gradient(145deg, rgba(2,8,24,0.95), rgba(5,15,40,0.9));
  border-color: rgba(37,209,244,0.25);
}
.card-back-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  opacity: 0.7;
  margin-bottom: 10px;
}
.card-back-title {
  font-family: var(--font-hd);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.card-back-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.7;
  flex: 1;
}
.card-back-footer {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ── 5. CYBER HUD CORNERS ON CARDS ────────────────────────────── */
.hud-card {
  position: relative;
}
.hud-card::before,
.hud-card::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--cyan);
  border-style: solid;
  pointer-events: none;
  transition: all 0.4s ease;
  opacity: 0;
  z-index: 10;
}
.hud-card::before {
  top: 10px; left: 10px;
  border-width: 2px 0 0 2px;
  border-radius: 3px 0 0 0;
}
.hud-card::after {
  bottom: 10px; right: 10px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 3px 0;
}
.hud-card:hover::before,
.hud-card:hover::after {
  opacity: 1;
  width: 24px; height: 24px;
}
/* Extra corners using JS-injected pseudos handled below */
.hud-corner-tr, .hud-corner-bl {
  position: absolute;
  width: 16px; height: 16px;
  border-style: solid;
  border-color: var(--purple);
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  transition: all 0.4s ease 0.05s;
}
.hud-corner-tr {
  top: 10px; right: 10px;
  border-width: 2px 2px 0 0;
  border-radius: 0 3px 0 0;
}
.hud-corner-bl {
  bottom: 10px; left: 10px;
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 3px;
}
.hud-card:hover .hud-corner-tr,
.hud-card:hover .hud-corner-bl {
  opacity: 1;
  width: 24px; height: 24px;
}

/* Scan line on card hover */
.hud-scan {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 11;
  box-shadow: 0 0 12px var(--cyan);
  transition: none;
}
.hud-card:hover .hud-scan {
  animation: hudScanLine 1.5s ease-in-out infinite;
  opacity: 1;
}
@keyframes hudScanLine {
  0%   { top: 0%; }
  100% { top: 100%; }
}

/* ── 6. SCANLINE WIPE SECTION REVEAL ─────────────────────────── */
.scanline-reveal {
  position: relative;
  overflow: hidden;
}
.scanline-reveal::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan) 50%, transparent);
  box-shadow: 0 0 20px var(--cyan), 0 0 60px var(--cyan);
  top: -3px;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
}
.scanline-reveal.scanning::after {
  animation: scanWipe 1.2s ease-out forwards;
  opacity: 1;
}
@keyframes scanWipe {
  0%   { top: -3px; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ── 7. GLITCH PHOTO CLONE ─────────────────────────────────────── */
.hero-photo-wrap {
  position: relative;
  display: inline-block;
}
.photo-glitch-clone {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border-radius: inherit;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: hue-rotate(180deg) saturate(3) contrast(1.5);
}
.hero-photo-frame:hover .photo-glitch-clone {
  animation: glitchClone 0.4s steps(1) infinite;
}
@keyframes glitchClone {
  0%  { opacity: 0.6; transform: translate(-4px, 0) scaleX(1.01); clip-path: polygon(0 15%, 100% 15%, 100% 30%, 0 30%); }
  15% { opacity: 0; }
  30% { opacity: 0.5; transform: translate(4px, 2px) scaleX(0.99); clip-path: polygon(0 55%, 100% 55%, 100% 70%, 0 70%); }
  45% { opacity: 0; }
  60% { opacity: 0.4; transform: translate(-2px, -2px); clip-path: polygon(0 80%, 100% 80%, 100% 95%, 0 95%); }
  75% { opacity: 0; }
  100%{ opacity: 0; }
}

/* ── 8. LIQUID BLOB SVG BACKGROUND ─────────────────────────────── */
#blob-svg {
  position: fixed;
  top: -10%; left: -10%;
  width: 120%; height: 120%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
}
#blob-path {
  fill: url(#blobGrad);
  animation: blobMorph 12s ease-in-out infinite;
}
@keyframes blobMorph {
  0%   { d: path("M440,320Q380,390,310,430Q240,470,160,420Q80,370,60,280Q40,190,100,120Q160,50,250,30Q340,10,400,80Q460,150,440,320Z"); }
  33%  { d: path("M420,300Q350,420,260,440Q170,460,110,370Q50,280,70,180Q90,80,190,50Q290,20,380,90Q470,160,420,300Z"); }
  66%  { d: path("M460,340Q390,460,280,450Q170,440,100,340Q30,240,80,140Q130,40,240,30Q350,20,420,110Q490,200,460,340Z"); }
  100% { d: path("M440,320Q380,390,310,430Q240,470,160,420Q80,370,60,280Q40,190,100,120Q160,50,250,30Q340,10,400,80Q460,150,440,320Z"); }
}

/* ── 9. ANIMATED MESH GRADIENT BACKGROUND ─────────────────────── */
.mesh-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
  background:
    radial-gradient(ellipse at var(--mx, 20%) var(--my, 30%), rgba(37,209,244,0.6) 0%, transparent 50%),
    radial-gradient(ellipse at calc(100% - var(--mx, 80%)) var(--my, 70%), rgba(191,0,255,0.5) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(0,255,136,0.3) 0%, transparent 60%);
  animation: meshDrift 10s ease-in-out infinite alternate;
  transition: --mx 2s, --my 2s;
}
@keyframes meshDrift {
  0%   { filter: hue-rotate(0deg) blur(40px); }
  50%  { filter: hue-rotate(30deg) blur(50px); }
  100% { filter: hue-rotate(-20deg) blur(35px); }
}

/* ── 10. FPS PERFORMANCE INDICATOR ────────────────────────────── */
#fps-hud {
  position: fixed;
  top: 100px; left: 20px;
  z-index: 500;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--green);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 4px;
  padding: 4px 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
#fps-hud.visible { opacity: 1; }

/* ── 11. LIVE TYPING COUNTER IN STATS ─────────────────────────── */
.stat-card {
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: -100%;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: statSweep 3s ease-in-out infinite;
}
.stat-card { position: relative; }
@keyframes statSweep {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}

/* ── 12. FLOATING SKILL ORBS ───────────────────────────────────── */
.skill-orb {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.9);
  pointer-events: none;
  animation: orbDrift linear infinite;
  text-align: center;
  backdrop-filter: blur(4px);
  border: 1px solid;
  box-shadow: 0 0 20px currentColor;
}
@keyframes orbDrift {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0.7; }
  50%  { transform: translateY(-20px) rotate(180deg); opacity: 0.9; }
  100% { transform: translateY(0) rotate(360deg); opacity: 0.7; }
}

/* ── 13. CYBERPUNK SECTION DIVIDER ─────────────────────────────── */
.cyber-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 20%, var(--purple) 50%, var(--pink) 80%, transparent);
  position: relative;
  margin: 0;
  opacity: 0.3;
}
.cyber-divider::before {
  content: '◆';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--cyan);
  font-size: 0.7rem;
  background: var(--dark);
  padding: 0 10px;
  animation: diamondSpin 4s linear infinite;
}
@keyframes diamondSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── 14. GRAVITY ATTRACTOR CANVAS ──────────────────────────────── */
#gravity-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}

/* ── 15. TEXT GLOW PULSE ON SECTION TAGS ───────────────────────── */
.section-tag {
  animation: tagPulse 2s ease-in-out infinite;
}
@keyframes tagPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(37,209,244,0.2); }
  50%       { box-shadow: 0 0 18px rgba(37,209,244,0.5), 0 0 30px rgba(37,209,244,0.2); }
}

/* ── 16. HERO FLOATING TECH WORDS ──────────────────────────────── */
.hero-float-word {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(37,209,244,0.15);
  pointer-events: none;
  white-space: nowrap;
  animation: floatWord linear infinite;
  user-select: none;
  z-index: 1;
}
@keyframes floatWord {
  from { transform: translateY(0) translateX(0); opacity: 0.1; }
  50%  { opacity: 0.3; }
  to   { transform: translateY(-60px) translateX(10px); opacity: 0; }
}

/* ── 17. RIPPLE EXPAND ON SECTION ENTRY ────────────────────────── */
.section-ripple {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,209,244,0.5), transparent 70%);
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  animation: sectionRippleExpand 2s ease-out forwards;
}
@keyframes sectionRippleExpand {
  0%   { width: 10px; height: 10px; opacity: 0.8; }
  100% { width: 400px; height: 400px; opacity: 0; }
}

/* ── 18. NEON UNDERLINE ON HOVER (projects heading) ────────────── */
.project-name {
  position: relative;
  display: inline-block;
}
.project-name::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: width 0.4s ease;
}
.project-card:hover .project-name::after { width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   ACHIEVE CARDS (Wins + Certifications)
   ═══════════════════════════════════════════════════════════════ */
.achieve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.achieve-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(16px);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  overflow: hidden;
}
.achieve-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.achieve-card.cyan::before   { background: linear-gradient(90deg, var(--cyan), transparent); }
.achieve-card.pink::before   { background: linear-gradient(90deg, var(--pink), transparent); }
.achieve-card.purple::before { background: linear-gradient(90deg, var(--purple), transparent); }
.achieve-card.green::before  { background: linear-gradient(90deg, var(--green), transparent); }
.achieve-card:hover { transform: translateY(-6px); }
.achieve-card.cyan:hover   { border-color: rgba(37,209,244,0.5);  box-shadow: 0 20px 50px rgba(37,209,244,0.15); }
.achieve-card.pink:hover   { border-color: rgba(255,71,133,0.5);  box-shadow: 0 20px 50px rgba(255,71,133,0.15); }
.achieve-card.purple:hover { border-color: rgba(191,0,255,0.5);   box-shadow: 0 20px 50px rgba(191,0,255,0.15); }
.achieve-card.green:hover  { border-color: rgba(0,255,136,0.5);   box-shadow: 0 20px 50px rgba(0,255,136,0.15); }
.achieve-icon  { font-size: 2rem; line-height: 1; }
.achieve-title {
  font-family: var(--font-hd);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.achieve-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.7;
  flex: 1;
}
.achieve-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
  width: fit-content;
}
.achieve-link-cyan   { color: var(--cyan);   border-color: rgba(37,209,244,0.35); }
.achieve-link-pink   { color: var(--pink);   border-color: rgba(255,71,133,0.35); }
.achieve-link-green  { color: var(--green);  border-color: rgba(0,255,136,0.35); }
.achieve-link-purple { color: var(--purple); border-color: rgba(191,0,255,0.35); }
.achieve-link:hover  { border-bottom-color: currentColor; }

/* Light theme achieve cards */
[data-theme="light"] .achieve-card.cyan   { background: rgba(0,149,179,0.07); border-color: rgba(0,149,179,0.25); }
[data-theme="light"] .achieve-card.pink   { background: rgba(212,32,96,0.07);  border-color: rgba(212,32,96,0.25); }
[data-theme="light"] .achieve-card.purple { background: rgba(136,0,204,0.07); border-color: rgba(136,0,204,0.25); }
[data-theme="light"] .achieve-card.green  { background: rgba(0,160,90,0.07);   border-color: rgba(0,160,90,0.25); }
[data-theme="light"] .achieve-title { color: #0f1e40; }
[data-theme="light"] .achieve-desc  { color: rgba(15,30,64,0.7); }

/* ═══════════════════════════════════════════════════════════════
   CERTIFICATES SHOWCASE
   ═══════════════════════════════════════════════════════════════ */
.certs-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.cert-showcase-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.cert-showcase-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.cert-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.cert-showcase-badge {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid;
}
.cert-showcase-issuer {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.cert-showcase-img-link { display: block; position: relative; overflow: hidden; }
.cert-showcase-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.cert-showcase-card:hover .cert-showcase-img { transform: scale(1.04); }
.cert-showcase-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
}
.cert-showcase-card:hover .cert-showcase-overlay { opacity: 1; }
[data-theme="light"] .cert-showcase-card {
  background: rgba(255,255,255,0.88);
  border-color: rgba(0,149,179,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
[data-theme="light"] .cert-showcase-issuer { color: rgba(15,30,64,0.55); }

/* ═══════════════════════════════════════════════════════════════
   HOLO CARD + 3D FLIP PROJECT CARDS
   ═══════════════════════════════════════════════════════════════ */
.holo-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  transition: transform 0.3s, box-shadow 0.3s;
}
.project-card {
  perspective: 1000px;
  height: 480px;
  cursor: pointer;
  -webkit-transform-style: preserve-3d;
}
.card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.project-card:hover .card-flip-inner,
.project-card:active .card-flip-inner,
.project-card.flipped .card-flip-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}
.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-front {
  background: var(--glass);
  border: 1px solid var(--glass-border);
}
.card-back {
  background: linear-gradient(135deg, rgba(5,15,40,0.97) 0%, rgba(10,20,60,0.97) 100%);
  border: 1px solid rgba(37,209,244,0.25);
  transform: rotateY(180deg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-back-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(37,209,244,0.6);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.card-back-title {
  font-family: var(--font-hd);
  font-size: 1rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 16px;
}
.card-back-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.8;
  flex: 1;
}
.card-back-footer { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* Light theme card back */
[data-theme="light"] .card-back {
  background: linear-gradient(135deg, #fff 0%, #eef6ff 100%);
  border-color: rgba(0,149,179,0.25);
}
[data-theme="light"] .card-back-label { color: rgba(0,149,179,0.65); }
[data-theme="light"] .card-back-title { color: #0f1e40; }
[data-theme="light"] .card-back-desc  { color: #1e3565; }
[data-theme="light"] .card-front {
  background: rgba(255,255,255,0.87);
  border-color: rgba(0,149,179,0.18);
}

/* Project preview */
.project-preview { position: relative; height: 180px; overflow: hidden; flex-shrink: 0; }
.project-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card-front:hover .project-preview img { transform: scale(1.05); }
.project-preview-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(2,8,24,0.8));
}

/* Card front body */
.project-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-num  { font-family: var(--font-mono); font-size: 0.6rem; color: rgba(37,209,244,0.5); letter-spacing: 0.12em; }
.project-name {
  font-family: var(--font-hd);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.project-codename { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-dim); letter-spacing: 0.08em; }
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* Tech badges */
.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 3px 10px;
  border-radius: 3px;
  border: 1px solid rgba(37,209,244,0.2);
  color: var(--text-dim);
  background: rgba(37,209,244,0.05);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* Project links */
.project-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.proj-link-gh, .proj-link-live {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 7px 16px;
  border-radius: 6px;
  border: 1px solid;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.proj-link-gh { color: var(--text-dim); border-color: rgba(150,170,200,0.25); background: rgba(150,170,200,0.05); }
.proj-link-gh:hover { color: var(--text); border-color: rgba(150,170,200,0.5); }
.proj-link-live { color: #fff; }
.proj-link-cyan  { background: rgba(37,209,244,0.15); border-color: rgba(37,209,244,0.4); }
.proj-link-pink  { background: rgba(255,71,133,0.15); border-color: rgba(255,71,133,0.4); }
.proj-link-green { background: rgba(0,255,136,0.15);  border-color: rgba(0,255,136,0.4); }
.proj-link-cyan:hover  { background: var(--cyan);  box-shadow: 0 0 20px rgba(37,209,244,0.4); }
.proj-link-pink:hover  { background: var(--pink);  box-shadow: 0 0 20px rgba(255,71,133,0.4); }
.proj-link-green:hover { background: var(--green); color: #000; box-shadow: 0 0 20px rgba(0,255,136,0.4); }

/* Light theme project links */
[data-theme="light"] .proj-link-gh { color: #1a2f60; border-color: rgba(30,47,96,0.25); background: rgba(30,47,96,0.05); }
[data-theme="light"] .tech-badge   { border-color: rgba(0,149,179,0.25); color: #1a2f60; background: rgba(0,149,179,0.07); }
[data-theme="light"] .project-num  { color: rgba(0,149,179,0.6); }
[data-theme="light"] .project-name { color: #0f1e40; }
[data-theme="light"] .project-codename { color: rgba(30,47,96,0.55); }

/* HUD Card corners + scan line */
.hud-card { position: relative; }
.hud-corner-tr, .hud-corner-bl {
  position: absolute;
  width: 18px; height: 18px;
  border-color: rgba(37,209,244,0.4);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 10;
}
.hud-corner-tr { top:10px; right:10px; border-width:2px 2px 0 0; border-radius:0 4px 0 0; }
.hud-corner-bl { bottom:10px; left:10px; border-width:0 0 2px 2px; border-radius:0 0 0 4px; }
.hud-card:hover .hud-corner-tr,
.hud-card:hover .hud-corner-bl { opacity: 1; }
.hud-scan {
  position: absolute;
  left:0; right:0; top:0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(37,209,244,0.7), transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  animation: hudScanAnim 2s linear infinite;
}
.hud-card:hover .hud-scan { opacity: 1; }
@keyframes hudScanAnim {
  0%   { top: 0%; }
  100% { top: 100%; }
}
