/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════ */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f18;
  --bg-card: rgba(17, 17, 30, 0.6);
  --bg-card-hover: rgba(25, 25, 45, 0.8);

  --accent: #00e87b;
  --accent-dim: rgba(0, 232, 123, 0.15);
  --accent-glow: rgba(0, 232, 123, 0.3);

  --text-primary: #e8e8ef;
  --text-secondary: #9090a8;
  --text-muted: #5a5a75;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 232, 123, 0.25);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;

  --particle-color: 0, 232, 123;
  --project-num-opacity: 0.45;
  --nav-scrolled-bg: rgba(10, 10, 15, 0.85);
  --mobile-nav-bg: rgba(10, 10, 15, 0.95);
}

/* ═══════════════════════════════════════════════════
   LIGHT THEME
   ═══════════════════════════════════════════════════ */
[data-theme="light"] {
  --bg-primary: #f5f5f7;
  --bg-secondary: #eeeef0;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.9);

  --accent: #00a95a;
  --accent-dim: rgba(0, 169, 90, 0.1);
  --accent-glow: rgba(0, 169, 90, 0.2);

  --text-primary: #1a1a2e;
  --text-secondary: #4a4a68;
  --text-muted: #7a7a98;

  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 169, 90, 0.3);

  --particle-color: 0, 140, 80;
  --project-num-opacity: 0.9;
  --nav-scrolled-bg: rgba(245, 245, 247, 0.85);
  --mobile-nav-bg: rgba(245, 245, 247, 0.95);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 23px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

/* ═══════════════════════════════════════════════════
   CURSOR GLOW
   ═══════════════════════════════════════════════════ */
#cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  transition: opacity 0.3s;
}

/* ═══════════════════════════════════════════════════
   PARTICLES CANVAS
   ═══════════════════════════════════════════════════ */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 232, 123, 0.08);
}

/* ═══════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-xl);
  background: var(--accent);
  color: #0a0a0f;
  transition: var(--transition);
}

.nav-cta:hover {
  box-shadow: 0 0 24px var(--accent-glow);
  transform: scale(1.05);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--mobile-nav-bg);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}

.mobile-nav a {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.mobile-nav a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════
   THEME TOGGLE BUTTON
   ═══════════════════════════════════════════════════ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  background: var(--accent-dim);
  transform: rotate(15deg);
}

.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }

[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }

/* ═══════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 60px;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-greeting {
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 50%, var(--text-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

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

.hero-tagline {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-weight: 400;
}

.hero-description {
  font-size: 1.55rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.85;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 36px;
  border-radius: var(--radius-xl);
  font-size: 1.4rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  box-shadow: 0 0 30px var(--accent-glow), 0 8px 20px rgba(0, 232, 123, 0.2);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 20px var(--accent-dim);
  transform: translateY(-2px);
}

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

.btn-resume:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim);
  transform: translateY(-2px);
}

.nav-resume-link {
  color: var(--accent) !important;
  font-weight: 600 !important;
}

/* Hero orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  z-index: 0;
}

.hero-orb:first-of-type {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: 10%;
  right: -10%;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: #7c3aed;
  bottom: 20%;
  left: -5%;
}

.hero-orb-3 {
  width: 250px;
  height: 250px;
  background: #06b6d4;
  top: 50%;
  left: 40%;
}

.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ═══════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════ */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.about-section {
  padding-top: 40px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6.75vw, 4.7rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  letter-spacing: -0.03em;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════ */
.about-grid {
  max-width: 800px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.6rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.85;
}

.about-photo {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.about-photo img {
  width: 360px;
  height: 360px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 30px var(--accent-dim), 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.about-photo img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px var(--accent-glow), 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* ═══════════════════════════════════════════════════
   EXPERIENCE / TIMELINE
   ═══════════════════════════════════════════════════ */
.timeline {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-marker {
  position: absolute;
  left: -40px;
  top: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2.5px solid var(--accent);
  z-index: 2;
  transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.timeline-content {
  padding: 30px 34px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  flex-wrap: nowrap;
  gap: 20px;
}

.timeline-header h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.4vw, 2.3rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.timeline-role {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 4px;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.timeline-date {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 500;
  background: var(--accent-dim);
  padding: 4px 14px;
  border-radius: var(--radius-sm);
}

.timeline-location {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

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

.timeline-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-bullets li {
  font-size: 1.45rem;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 22px;
  position: relative;
}

.timeline-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════
   SKILLS SECTION
   ═══════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.skill-category {
  padding: 32px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.skill-category h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

.skill-tag {
  padding: 10px 18px;
  font-size: 1.35rem;
  font-weight: 500;
  border-radius: var(--radius-xl);
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0, 232, 123, 0.12);
  transition: var(--transition-fast);
}

.skill-tag:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: scale(1.05);
}

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

.project-card {
  padding: 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #06b6d4);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: var(--project-num-opacity);
  line-height: 1;
  margin-bottom: 12px;
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
  transition: var(--transition-fast);
  letter-spacing: -0.02em;
}

.project-card:hover h3 {
  color: var(--accent);
}

.project-card p {
  font-size: 1.45rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.project-tags span {
  font-size: 1.25rem;
  font-weight: 500;
  padding: 6px 15px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.project-category-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  align-self: flex-start;
}

/* ═══════════════════════════════════════════════════
   EDUCATION SECTION
   ═══════════════════════════════════════════════════ */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.education-card {
  padding: 36px;
  text-align: center;
}

.edu-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.education-card h3 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.edu-degree {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.edu-date {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.edu-location {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.edu-coursework {
  font-size: 1.35rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 14px;
}

.award-card {
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.award-card:hover {
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.06);
}

/* ═══════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════ */
.contact-subtitle {
  text-align: center;
  font-size: 1.6rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: -30px auto 50px;
  line-height: 1.85;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.contact-icon {
  font-size: 1.4rem;
}

.contact-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-value {
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 500;
  word-break: break-all;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════ */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }

  .mobile-menu-btn {
    display: flex;
  }

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

  .hero-section {
    padding: 100px 20px 60px;
  }

  .timeline {
    padding-left: 32px;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline-marker {
    left: -32px;
    width: 18px;
    height: 18px;
  }

  .timeline-header {
    flex-direction: column;
  }

  .timeline-meta {
    align-items: flex-start;
  }

  .timeline-content {
    padding: 20px;
  }

  .skills-grid,
  .projects-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
