/* ================================================================
   MUDASIR ZAHEER — PERSONAL PORTFOLIO (NEON EDITION)
   style.css
   ================================================================ */

/* ----------------------------------------------------------------
   01. CSS VARIABLES & THEME
   ---------------------------------------------------------------- */
:root {
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', sans-serif;
  --font-mono:     'DM Mono', monospace;
  --trans-fast:  0.18s ease;
  --trans-med:   0.35s ease;
  --trans-slow:  0.6s ease;
  --nav-h:        72px;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --container-w:  1200px;
}

/* DARK THEME (default) — Neon Cyberpunk */
[data-theme="dark"] {
  --bg:           #05080f;
  --bg-alt:       #080c18;
  --bg-card:      rgba(10, 18, 40, 0.85);
  --bg-card-hov:  rgba(15, 25, 55, 0.95);
  --border:       rgba(0, 255, 200, 0.12);
  --border-hov:   rgba(0, 255, 200, 0.5);

  --text-primary:  #e0f0ff;
  --text-secondary:#8aa8c8;
  --text-muted:    #4a6480;

  --neon-cyan:     #00ffc8;
  --neon-blue:     #00b4ff;
  --neon-purple:   #b44aff;
  --neon-pink:     #ff3cac;
  --neon-green:    #39ff14;

  --gold:          #00ffc8;
  --gold-light:    #66ffd9;
  --gold-dim:      rgba(0, 255, 200, 0.08);

  --accent:        #00b4ff;
  --accent-dim:    rgba(0, 180, 255, 0.1);

  --nav-bg:        rgba(5, 8, 15, 0.92);
  --shadow:        0 8px 40px rgba(0, 255, 200, 0.08);
  --shadow-card:   0 4px 30px rgba(0, 255, 200, 0.1);

  --glow-cyan:     0 0 10px rgba(0,255,200,0.3), 0 0 40px rgba(0,255,200,0.1);
  --glow-blue:     0 0 10px rgba(0,180,255,0.3), 0 0 40px rgba(0,180,255,0.1);
  --glow-purple:   0 0 10px rgba(180,74,255,0.3), 0 0 40px rgba(180,74,255,0.1);
}

/* LIGHT THEME — Soft Neon */
[data-theme="light"] {
  --bg:           #f0f4fa;
  --bg-alt:       #e4eaf4;
  --bg-card:      #ffffff;
  --bg-card-hov:  #f5f8ff;
  --border:       rgba(0, 140, 120, 0.15);
  --border-hov:   rgba(0, 140, 120, 0.4);

  --text-primary:  #0a1628;
  --text-secondary:#3a5070;
  --text-muted:    #7a90a8;

  --neon-cyan:     #008c78;
  --neon-blue:     #0070b0;
  --neon-purple:   #7a30c0;
  --neon-pink:     #c02080;
  --neon-green:    #20a010;

  --gold:          #008c78;
  --gold-light:    #00b098;
  --gold-dim:      rgba(0, 140, 120, 0.08);

  --accent:        #0070b0;
  --accent-dim:    rgba(0, 112, 176, 0.08);

  --nav-bg:        rgba(240, 244, 250, 0.92);
  --shadow:        0 8px 40px rgba(0, 100, 80, 0.08);
  --shadow-card:   0 4px 24px rgba(0, 100, 80, 0.06);

  --glow-cyan:     0 0 6px rgba(0,140,120,0.15);
  --glow-blue:     0 0 6px rgba(0,112,176,0.15);
  --glow-purple:   0 0 6px rgba(122,48,192,0.15);
}


/* ----------------------------------------------------------------
   02. BASE RESET & TYPOGRAPHY
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  transition: background-color var(--trans-med), color var(--trans-med);
  overflow-x: hidden;
  position: relative;
}

/* Animated grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,200,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,200,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  animation: gridShift 20s linear infinite;
}
@keyframes gridShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}
[data-theme="light"] body::before { opacity: 0.3; }

/* Floating neon orbs */
body::after {
  content: '';
  position: fixed;
  top: 20%;
  right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,255,200,0.06) 0%, rgba(0,180,255,0.03) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite alternate;
}
@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, 60px) scale(1.15); }
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text-primary);
}

a { color: var(--gold); text-decoration: none; transition: color var(--trans-fast), text-shadow var(--trans-fast); }
a:hover { color: var(--gold-light); text-shadow: 0 0 8px rgba(0,255,200,0.4); }

img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

::selection { background-color: var(--gold); color: var(--bg); }


/* ----------------------------------------------------------------
   03. LAYOUT UTILITIES
   ---------------------------------------------------------------- */
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  border: 2px solid transparent; transition: all var(--trans-fast);
  letter-spacing: 0.03em; cursor: pointer; text-decoration: none;
  position: relative; overflow: hidden;
}

.btn-primary {
  background: var(--gold); color: var(--bg); border-color: var(--gold);
  box-shadow: 0 0 15px rgba(0,255,200,0.2);
}
.btn-primary:hover {
  background: var(--gold-light); border-color: var(--gold-light); color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0,255,200,0.4), 0 0 60px rgba(0,255,200,0.15);
  text-shadow: none;
}

.btn-outline {
  background: transparent; color: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 10px rgba(0,255,200,0.08);
}
.btn-outline:hover {
  background: var(--gold-dim); color: var(--gold-light); border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0,255,200,0.2);
  text-shadow: 0 0 8px rgba(0,255,200,0.4);
}

.btn-ghost { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.btn-ghost:hover {
  color: var(--neon-blue); border-color: var(--neon-blue);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0,180,255,0.15);
  text-shadow: 0 0 8px rgba(0,180,255,0.3);
}

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.82rem; }
.btn-full { width: 100%; justify-content: center; }

/* Tags */
.tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.85rem; background: var(--gold-dim);
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.8rem; font-weight: 500; color: var(--gold);
  transition: all var(--trans-fast);
}
.tag:hover {
  background: var(--gold); color: var(--bg);
  box-shadow: 0 0 15px rgba(0,255,200,0.3);
  text-shadow: none;
}


/* ----------------------------------------------------------------
   04. NAVIGATION BAR
   ---------------------------------------------------------------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); background: var(--nav-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--trans-med), box-shadow var(--trans-med);
}
.navbar.scrolled { box-shadow: 0 0 30px rgba(0,255,200,0.08); }

.nav-container {
  max-width: var(--container-w); margin: 0 auto; padding: 0 2rem;
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}

.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; flex-shrink: 0; }

.logo-initials {
  width: 38px; height: 38px;
  background: var(--gold); color: var(--bg);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.04em; flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0,255,200,0.3);
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(0,255,200,0.3); }
  50% { box-shadow: 0 0 25px rgba(0,255,200,0.5), 0 0 50px rgba(0,255,200,0.15); }
}
.logo-initials.sm { width: 28px; height: 28px; font-size: 0.75rem; }

.logo-text {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  color: var(--text-primary); white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  padding: 0.4rem 0.7rem; font-size: 0.84rem; font-weight: 500;
  color: var(--text-secondary); border-radius: var(--radius-sm);
  transition: all var(--trans-fast); white-space: nowrap; text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold); background: var(--gold-dim);
  text-shadow: 0 0 8px rgba(0,255,200,0.4);
}

.nav-controls { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.theme-toggle {
  width: 38px; height: 38px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: transparent;
  color: var(--gold); display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: all var(--trans-fast);
}
.theme-toggle:hover {
  background: var(--gold-dim); border-color: var(--gold);
  box-shadow: 0 0 15px rgba(0,255,200,0.2);
}

.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 38px; height: 38px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: transparent;
}
.hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--text-primary); border-radius: 2px; transition: all var(--trans-fast);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--gold); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--gold); }


/* ----------------------------------------------------------------
   05. HERO SECTION
   ---------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--bg); overflow: hidden; padding-top: var(--nav-h);
}

/* Neon grid lines */
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; justify-content: space-around;
}
.hero-grid-lines span {
  display: block; width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--neon-cyan) 30%, var(--neon-cyan) 70%, transparent);
  opacity: 0.08;
  animation: lineFlicker 4s ease-in-out infinite alternate;
}
.hero-grid-lines span:nth-child(2) { animation-delay: 1s; opacity: 0.06; }
.hero-grid-lines span:nth-child(3) { animation-delay: 2s; opacity: 0.1; }
.hero-grid-lines span:nth-child(4) { animation-delay: 0.5s; opacity: 0.05; }

@keyframes lineFlicker {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.15; }
}

/* Radial neon glow */
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0,255,200,0.08) 0%, rgba(0,180,255,0.04) 30%, transparent 65%);
  border-radius: 50%; pointer-events: none;
  animation: heroGlowPulse 6s ease-in-out infinite alternate;
}
@keyframes heroGlowPulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

/* Second neon orb */
.hero::after {
  content: ''; position: absolute; bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(180,74,255,0.06) 0%, transparent 60%);
  border-radius: 50%; pointer-events: none;
  animation: heroGlowPulse 8s ease-in-out infinite alternate-reverse;
}

.hero-inner { position: relative; z-index: 1; padding: 5rem 2rem 6rem; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.78rem; font-weight: 500;
  color: var(--gold); background: var(--gold-dim);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(0,255,200,0.08);
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 10px rgba(0,255,200,0.08); }
  50% { box-shadow: 0 0 25px rgba(0,255,200,0.15); }
}

.hero-name {
  font-size: clamp(3.5rem, 9vw, 8rem); font-weight: 900;
  line-height: 1; letter-spacing: -0.02em; margin-bottom: 1.25rem;
}
.hero-name em {
  font-style: italic; color: var(--gold);
  text-shadow: 0 0 30px rgba(0,255,200,0.3), 0 0 80px rgba(0,255,200,0.1);
  animation: neonTextPulse 4s ease-in-out infinite;
}
@keyframes neonTextPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(0,255,200,0.3), 0 0 60px rgba(0,255,200,0.1); }
  50% { text-shadow: 0 0 40px rgba(0,255,200,0.5), 0 0 100px rgba(0,255,200,0.2); }
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  color: var(--text-secondary); letter-spacing: 0.06em; margin-bottom: 1.25rem;
}

.hero-tagline {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary); max-width: 580px; margin-bottom: 2.5rem;
  border-left: 3px solid var(--gold); padding-left: 1rem;
  border-image: linear-gradient(to bottom, var(--neon-cyan), var(--neon-blue)) 1;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3rem; }

.hero-stats { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }

.stat-item { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--gold); line-height: 1;
  text-shadow: 0 0 15px rgba(0,255,200,0.3);
}
.stat-label {
  font-size: 0.75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.2rem;
}
.stat-divider { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--neon-cyan), transparent); }

.scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text-muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--neon-cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}


/* ----------------------------------------------------------------
   06. SECTION SHARED STYLES
   ---------------------------------------------------------------- */
.section { padding: 6rem 0; border-bottom: 1px solid var(--border); position: relative; z-index: 1; }
.section:nth-child(even) { background: var(--bg-alt); }

.section-header {
  margin-bottom: 3.5rem; display: flex; flex-direction: column;
  gap: 0.5rem; position: relative;
}
.section-header.with-action {
  flex-direction: row; align-items: flex-end;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}

.section-tag {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--neon-blue); letter-spacing: 0.12em; text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0,180,255,0.3);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 700;
  line-height: 1.1; position: relative;
}
.section-title::after {
  content: ''; display: block; width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue));
  margin-top: 0.75rem; border-radius: 2px;
  box-shadow: 0 0 10px rgba(0,255,200,0.3);
}

.subsection-title {
  font-size: 1.1rem; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem;
}
.subsection-title i { color: var(--gold); text-shadow: 0 0 8px rgba(0,255,200,0.3); }


/* ----------------------------------------------------------------
   07. ABOUT SECTION
   ---------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 4rem; align-items: start; }

.about-portrait {
  display: flex; flex-direction: column; gap: 1.5rem;
  position: sticky; top: calc(var(--nav-h) + 2rem);
}

.portrait-frame { position: relative; border-radius: var(--radius-lg); overflow: visible; }

.portrait-placeholder {
  aspect-ratio: 4/5; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  transition: border-color var(--trans-med), box-shadow var(--trans-med);
}
.portrait-placeholder:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0,255,200,0.15), inset 0 0 30px rgba(0,255,200,0.03);
}
.portrait-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(0,255,200,0.06), transparent 70%);
}

.portrait-icon {
  font-size: 6rem; color: var(--gold); opacity: 0.6;
  position: relative; z-index: 1;
  text-shadow: 0 0 30px rgba(0,255,200,0.3);
  animation: iconGlow 4s ease-in-out infinite;
}
@keyframes iconGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(0,255,200,0.2); }
  50% { text-shadow: 0 0 50px rgba(0,255,200,0.4); }
}

.portrait-img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
}

.portrait-accent {
  position: absolute; bottom: -12px; right: -12px;
  width: 80px; height: 80px; background: var(--neon-cyan);
  border-radius: var(--radius-md); z-index: -1; opacity: 0.15;
  box-shadow: 0 0 40px rgba(0,255,200,0.3);
  animation: accentPulse 3s ease-in-out infinite;
}
@keyframes accentPulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.3; }
}

/* Neon card style - shared */
.neon-card,
.identity-card,
.timeline-card,
.edu-card,
.skill-item,
.research-card,
.pub-card,
.project-card,
.cert-card,
.award-card,
.contact-item,
.contact-form-wrap {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--trans-med);
}
.identity-card:hover,
.timeline-card:hover,
.edu-card:hover,
.skill-item:hover,
.research-card:hover,
.pub-card:hover,
.project-card:hover,
.cert-card:hover,
.award-card:hover,
.contact-item:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0,255,200,0.1), 0 0 60px rgba(0,255,200,0.03);
}

.identity-card { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }

.ic-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; color: var(--text-secondary); }
.ic-row i { width: 18px; color: var(--gold); font-size: 0.8rem; flex-shrink: 0; text-shadow: 0 0 8px rgba(0,255,200,0.3); }

.about-content p { color: var(--text-secondary); margin-bottom: 1rem; }
.about-lead { font-size: 1.1rem; color: var(--text-primary) !important; margin-bottom: 1.25rem !important; }
.about-content strong { color: var(--neon-cyan); text-shadow: 0 0 6px rgba(0,255,200,0.2); }

.competency-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }


/* ----------------------------------------------------------------
   08. EXPERIENCE / TIMELINE
   ---------------------------------------------------------------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-purple), transparent);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0,255,200,0.2);
}

.timeline-item { position: relative; padding: 0 0 2.5rem 2.5rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -7px; top: 6px;
  width: 14px; height: 14px; background: var(--neon-cyan);
  border-radius: 50%; border: 3px solid var(--bg);
  box-shadow: 0 0 10px rgba(0,255,200,0.5), 0 0 25px rgba(0,255,200,0.2);
  transition: transform var(--trans-fast);
}
.timeline-item:hover::before { transform: scale(1.3); box-shadow: 0 0 20px rgba(0,255,200,0.7), 0 0 40px rgba(0,255,200,0.3); }

.timeline-card { padding: 1.5rem; }
.timeline-card:hover { transform: translateX(4px); }

.tl-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.tl-role { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--text-primary); }
.tl-period {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold);
  background: var(--gold-dim); padding: 0.2rem 0.6rem; border-radius: 100px;
  white-space: nowrap; flex-shrink: 0;
}
.tl-org { font-size: 0.88rem; color: var(--gold); font-weight: 500; margin-bottom: 0.5rem; }
.tl-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }


/* ----------------------------------------------------------------
   09. EDUCATION
   ---------------------------------------------------------------- */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

.edu-card { padding: 1.75rem; position: relative; overflow: hidden; }
.edu-card:hover { transform: translateY(-4px); }

.edu-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue), var(--neon-purple));
  box-shadow: 0 0 10px rgba(0,255,200,0.3);
}

.edu-icon {
  width: 48px; height: 48px; background: var(--gold-dim);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--gold); margin-bottom: 1rem;
  box-shadow: 0 0 15px rgba(0,255,200,0.1);
}

.edu-degree { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.25rem; }
.edu-institution { font-size: 0.9rem; color: var(--gold); font-weight: 500; margin-bottom: 0.75rem; }

.edu-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.edu-chip {
  font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 100px;
  background: var(--gold-dim); color: var(--gold); font-family: var(--font-mono);
}


/* ----------------------------------------------------------------
   10. SKILLS
   ---------------------------------------------------------------- */
.skills-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }

.skill-item { padding: 1.25rem 1.5rem; }

.skill-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.skill-name { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 500; }
.skill-name i { color: var(--gold); font-size: 0.85rem; text-shadow: 0 0 8px rgba(0,255,200,0.3); }
.skill-pct { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold); }

.skill-bar-track { height: 6px; background: var(--bg-alt); border-radius: 100px; overflow: hidden; }
.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan) 0%, var(--neon-blue) 60%, var(--neon-purple) 100%);
  border-radius: 100px; width: 0%;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 10px rgba(0,255,200,0.3), 0 0 20px rgba(0,180,255,0.15);
}


/* ----------------------------------------------------------------
   11. RESEARCH PROJECTS
   ---------------------------------------------------------------- */
.research-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1.5rem; }

.research-card { padding: 1.75rem; position: relative; overflow: hidden; cursor: default; }
.research-card:hover { transform: translateY(-4px); }

.research-card::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, transparent 50%, rgba(0,255,200,0.06) 50%);
}

.rc-icon {
  width: 52px; height: 52px; background: var(--gold-dim);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--gold); margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(0,255,200,0.1);
}

.rc-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.rc-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }

.rc-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.75rem; background: var(--gold-dim);
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.75rem; color: var(--gold); font-family: var(--font-mono);
}


/* ----------------------------------------------------------------
   12. PUBLICATIONS
   ---------------------------------------------------------------- */
.pub-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }

.pub-filter-btn {
  padding: 0.35rem 1rem; border-radius: 100px; font-size: 0.8rem; font-weight: 500;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-secondary); cursor: pointer;
  transition: all var(--trans-fast); font-family: var(--font-body);
}
.pub-filter-btn:hover,
.pub-filter-btn.active {
  background: var(--gold); color: var(--bg); border-color: var(--gold);
  box-shadow: 0 0 15px rgba(0,255,200,0.3);
  text-shadow: none;
}

.pub-list { display: flex; flex-direction: column; gap: 1rem; }

.pub-card { padding: 1.5rem; display: flex; align-items: flex-start; gap: 1.25rem; }
.pub-card:hover { transform: translateX(4px); }

.pub-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--gold); opacity: 0.15; line-height: 1; min-width: 40px; flex-shrink: 0;
}
.pub-body { flex: 1; }
.pub-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.pub-authors { font-size: 0.82rem; color: var(--gold); margin-bottom: 0.3rem; }
.pub-meta { font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-mono); }

.pub-actions { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; flex-shrink: 0; }
.pub-tag {
  font-size: 0.72rem; padding: 0.2rem 0.6rem; border-radius: 100px;
  background: var(--accent-dim); color: var(--accent); font-family: var(--font-mono);
}
.scholar-btn { align-self: flex-start; }


/* ----------------------------------------------------------------
   13. PROJECTS / FREELANCING
   ---------------------------------------------------------------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

.project-card { padding: 1.75rem; position: relative; overflow: hidden; }
.project-card:hover { transform: translateY(-4px); }

.proj-icon {
  width: 48px; height: 48px; background: var(--accent-dim);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--accent); margin-bottom: 1rem;
}
.proj-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.proj-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }

.proj-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.stack-chip {
  font-size: 0.72rem; padding: 0.2rem 0.6rem; border-radius: 100px;
  background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--text-secondary); font-family: var(--font-mono);
}

.proj-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; color: var(--gold); font-weight: 500;
  transition: gap var(--trans-fast);
}
.proj-link:hover { gap: 0.6rem; }


/* ----------------------------------------------------------------
   14. CERTIFICATIONS & AWARDS
   ---------------------------------------------------------------- */
.cert-awards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.cert-list, .awards-list { display: flex; flex-direction: column; gap: 0.75rem; }

.cert-card, .award-card { padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: 1rem; }
.cert-card:hover, .award-card:hover { transform: translateX(4px); }

.cert-icon, .award-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.cert-icon { background: var(--gold-dim); color: var(--gold); box-shadow: 0 0 10px rgba(0,255,200,0.1); }
.award-icon { background: var(--accent-dim); color: var(--accent); box-shadow: 0 0 10px rgba(0,180,255,0.1); }

.cert-body { flex: 1; }
.cert-name { font-size: 0.9rem; font-weight: 500; margin-bottom: 0.2rem; }
.cert-issuer { font-size: 0.78rem; color: var(--text-muted); }


/* ----------------------------------------------------------------
   15. CONTACT SECTION
   ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }

.contact-intro { font-size: 1rem; color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.7; }
.contact-items { display: flex; flex-direction: column; gap: 1rem; }

.contact-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; color: var(--text-primary); text-decoration: none;
}
.contact-item:hover { transform: translateX(4px); color: var(--text-primary); }

.ci-icon {
  width: 42px; height: 42px; background: var(--gold-dim);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1rem; flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0,255,200,0.1);
}
.ci-text { display: flex; flex-direction: column; }
.ci-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.ci-value { font-size: 0.9rem; font-weight: 500; }

.contact-form-wrap { border-radius: var(--radius-lg); padding: 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); letter-spacing: 0.04em; }

.form-group input,
.form-group textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.75rem 1rem; font-family: var(--font-body); font-size: 0.9rem;
  color: var(--text-primary); transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
  resize: vertical; outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0,255,200,0.08), 0 0 15px rgba(0,255,200,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-note { font-size: 0.82rem; text-align: center; color: var(--gold); min-height: 1.2em; }


/* ----------------------------------------------------------------
   16. FOOTER
   ---------------------------------------------------------------- */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 2.5rem 0; position: relative; z-index: 1; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }

.footer-brand {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.9rem; color: var(--text-secondary); font-family: var(--font-display);
}

.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 38px; height: 38px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 0.9rem;
  transition: all var(--trans-fast); text-decoration: none;
}
.footer-social a:hover {
  background: var(--gold); color: var(--bg); border-color: var(--gold);
  box-shadow: 0 0 15px rgba(0,255,200,0.3);
  text-shadow: none;
}

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


/* ----------------------------------------------------------------
   17. SCROLL-TO-TOP BUTTON
   ---------------------------------------------------------------- */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px; background: var(--gold); color: var(--bg);
  border: none; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; opacity: 0; transform: translateY(20px);
  transition: all var(--trans-med); z-index: 500; pointer-events: none;
  box-shadow: 0 0 20px rgba(0,255,200,0.3);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover {
  background: var(--gold-light); transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0,255,200,0.5);
}


/* ----------------------------------------------------------------
   18. ANIMATIONS & REVEAL
   ---------------------------------------------------------------- */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0; transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up    { transform: translateY(30px); }
.reveal-left  { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }

.revealed { opacity: 1 !important; transform: translate(0, 0) !important; }

.delay-1 { transition-delay: 0.12s !important; }
.delay-2 { transition-delay: 0.24s !important; }
.delay-3 { transition-delay: 0.36s !important; }
.delay-4 { transition-delay: 0.48s !important; }
.delay-5 { transition-delay: 0.60s !important; }

.timeline-item, .edu-card, .skill-item, .research-card,
.pub-card, .project-card, .cert-card, .award-card {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease,
              border-color var(--trans-fast), box-shadow var(--trans-fast);
}
.timeline-item.revealed, .edu-card.revealed, .skill-item.revealed,
.research-card.revealed, .pub-card.revealed, .project-card.revealed,
.cert-card.revealed, .award-card.revealed {
  opacity: 1; transform: translateY(0);
}


/* ----------------------------------------------------------------
   19. RESPONSIVE / MEDIA QUERIES
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 280px 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--nav-bg); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 1rem; gap: 0.25rem;
    transform: translateY(-110%); opacity: 0;
    transition: transform var(--trans-med), opacity var(--trans-med); z-index: 999;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links a { padding: 0.7rem 1rem; font-size: 0.9rem; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 320px; margin: 0 auto; }
  .cert-awards-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  :root { --nav-h: 60px; }
  .container { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }
  .hero-inner { padding: 3rem 1.25rem 5rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; }
  .hero-stats { gap: 1.25rem; }
  .stat-num { font-size: 1.6rem; }
  .logo-text { display: none; }
  .pub-card { flex-direction: column; }
  .pub-num { font-size: 1.5rem; }
  .pub-actions { flex-direction: row; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .scroll-top { bottom: 1.25rem; right: 1.25rem; }
  .section-header.with-action { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .hero-stats .stat-divider { display: none; }
  .hero-stats { gap: 1rem; }
  .research-grid, .projects-grid, .edu-grid { grid-template-columns: 1fr; }
}
