:root {
  /* Colors */
  --bg-base:      #0D0F14;
  --bg-surface:   #13151D;
  --bg-card:      #1A1D28;
  --bg-card-hover:#1F2333;
  --border:       rgba(108, 99, 255, 0.15);
  --border-hover: rgba(108, 99, 255, 0.4);

  --accent:       #6C63FF;
  --accent-2:     #06B6D4;
  --accent-grad:  linear-gradient(135deg, #6C63FF 0%, #06B6D4 100%);
  --accent-glow:  rgba(108, 99, 255, 0.25);

  --text-primary:  #E2E8F0;
  --text-secondary:#94A3B8;
  --text-muted:    #4A5568;

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.3s var(--ease);

  /* Nav height */
  --nav-h: 68px;
}

/* Light mode overrides */
[data-theme="light"] {
  --bg-base:     #F7F8FC;
  --bg-surface:  #FFFFFF;
  --bg-card:     #FFFFFF;
  --bg-card-hover: #F0F2FF;
  --border:      rgba(108, 99, 255, 0.15);
  --border-hover: rgba(108, 99, 255, 0.4);

  --text-primary:  #0F172A;
  --text-secondary:#475569;
  --text-muted:    #94A3B8;
  --accent-glow:   rgba(108, 99, 255, 0.12);
}

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

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

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

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

/* ─── SCROLL REVEAL ────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children inside a group */
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ─── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ─── LAYOUT UTILITIES ─────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-alt {
  background-color: var(--bg-surface);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-sub {
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ─── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.7rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn i { width: 16px; height: 16px; }

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--border-hover);
  color: var(--text-secondary);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ─── TAGS ─────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  background: rgba(108, 99, 255, 0.1);
  color: var(--accent);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.tag-accent {
  background: rgba(108, 99, 255, 0.18);
  border-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* background set by JS scroll listener */
  transition: background var(--transition), backdrop-filter var(--transition),
              box-shadow var(--transition);
}

.nav-wrapper.scrolled {
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 1px 0 var(--border);
}

[data-theme="light"] .nav-wrapper.scrolled {
  background: rgba(247, 248, 252, 0.85);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

/* Logo */
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo-bracket { color: var(--accent); }

/* Links */
.nav-links {
  display: flex;
  gap: var(--space-xl);
  margin-left: auto;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font-display);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-grad);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  transition: all var(--transition);
  width: 36px;
  height: 36px;
  justify-content: center;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle i { width: 16px; height: 16px; }

/* Show correct icon per theme */
[data-theme="dark"]  .icon-sun   { display: none; }
[data-theme="dark"]  .icon-moon  { display: block; }
[data-theme="light"] .icon-sun   { display: block; }
[data-theme="light"] .icon-moon  { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}
.mobile-menu.open { max-height: 400px; }
.mobile-nav-link {
  display: block;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav-link:hover {
  color: var(--accent);
  background: var(--accent-glow);
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + var(--space-2xl)) var(--space-xl) var(--space-3xl);
  text-align: center;
}

/* Dot-grid background — signature element */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(108, 99, 255, 0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
}

/* Glow orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.35;
}
.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6C63FF 0%, transparent 70%);
  top: -10%;
  left: -15%;
  animation: orbFloat 10s ease-in-out infinite;
}
.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #06B6D4 0%, transparent 70%);
  bottom: -5%;
  right: -10%;
  animation: orbFloat 14s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(30px, -30px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-name {
  font-size: clamp(3rem, 8vw, 6rem);
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.05;
  font-weight: 700;
}

/* Typing effect row */
.hero-typing-row {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 2rem;
}

.typing-prefix { color: var(--text-secondary); }

.typing-text {
  color: var(--text-primary);
  font-weight: 600;
}

.typing-cursor {
  color: var(--accent);
  animation: cursorBlink 1s step-end infinite;
  font-weight: 300;
  font-size: 1.2em;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-sub {
  max-width: 52ch;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

/* Stat chips */
.hero-stats {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-md);
}

.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 90px;
  transition: border-color var(--transition), transform var(--transition);
}
.stat-chip:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Scroll down hint */
.scroll-down {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: scrollBounce 2s ease-in-out infinite;
  transition: color var(--transition);
  z-index: 1;
}
.scroll-down i { width: 20px; height: 20px; }
.scroll-down:hover { color: var(--accent); }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.75;
  font-size: 1rem;
}
.about-text p strong { color: var(--text-primary); font-weight: 600; }

.about-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.about-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity var(--transition);
}
.about-link i { width: 15px; height: 15px; }
.about-link:hover { opacity: 0.75; }

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  transition: border-color var(--transition);
}
.edu-card:hover { border-color: var(--border-hover); }

.edu-icon {
  width: 48px;
  height: 48px;
  background: rgba(108, 99, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.edu-icon i { width: 22px; height: 22px; }

.edu-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}
.edu-uni {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}
.edu-meta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   EXPERIENCE / TIMELINE
   ═══════════════════════════════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-2xl);
}
.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 2px);
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--accent-grad);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--transition), transform var(--transition);
}
.timeline-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}
.timeline-company {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
}
.timeline-company i { width: 14px; height: 14px; }

.timeline-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  font-family: var(--font-display);
}
.timeline-date i { width: 13px; height: 13px; }

.timeline-bullets {
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.timeline-bullets li {
  position: relative;
  padding-left: var(--space-lg);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}
.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75em;
  top: 3px;
}

.timeline-tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Achievements */
.achievements-title {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}

.ach-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.ach-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  transition: border-color var(--transition), transform var(--transition);
}
.ach-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.ach-icon {
  width: 42px;
  height: 42px;
  background: rgba(108, 99, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.ach-icon i { width: 18px; height: 18px; }
.ach-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}
.ach-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════
   SKILLS SECTION
   ═══════════════════════════════════════════════════════════ */
.skills-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--transition);
}
.skill-group:hover { border-color: var(--border-hover); }

.skill-group-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-family: var(--font-display);
}
.skill-group-title i { width: 15px; height: 15px; color: var(--accent); }

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.skill-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.skill-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(108, 99, 255, 0.08);
  transform: translateY(-2px);
}

.badge-accent {
  background: rgba(108, 99, 255, 0.08);
  border-color: rgba(108, 99, 255, 0.35);
  color: var(--accent);
}
.badge-accent:hover {
  background: rgba(108, 99, 255, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   PROJECTS SECTION
   ═══════════════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

/* Signature: glowing top edge on hover */
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  background: var(--bg-card-hover);
}
.project-card:hover::before { transform: scaleX(1); }

/* Ambient glow behind card */
.project-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.project-card:hover .project-glow { opacity: 1; }

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-icon {
  width: 44px;
  height: 44px;
  background: rgba(108, 99, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.project-icon i { width: 20px; height: 20px; }

.project-links {
  display: flex;
  gap: var(--space-sm);
}
.project-link {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.project-link i { width: 15px; height: 15px; }
.project-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(108, 99, 255, 0.08);
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.project-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.highlight {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-display);
  color: var(--accent-2);
  letter-spacing: 0.02em;
}
.highlight i { width: 11px; height: 11px; }

.project-tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(108, 99, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-icon i { width: 18px; height: 18px; }

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--transition);
}
a.contact-value:hover { color: var(--accent); }

.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.social-link {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.social-link i { width: 18px; height: 18px; }
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(108, 99, 255, 0.1);
  transform: translateY(-3px);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.form-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition),
              background var(--transition);
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-success {
  text-align: center;
  color: var(--accent-2);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

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

.footer-social {
  display: flex;
  gap: var(--space-md);
}
.footer-social a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-social a i { width: 18px; height: 18px; }
.footer-social a:hover { color: var(--accent); }

/* ─── BACK TO TOP ──────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  background: var(--accent-grad);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
  z-index: 99;
}
.back-to-top i { width: 18px; height: 18px; }
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { transform: translateY(-3px); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
  .container { padding: 0 var(--space-lg); }

  .nav-links, .nav-cta { display: none; }
  .hamburger  { display: flex; margin-left: auto; }
  .mobile-menu { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .ach-cards  { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 600px) {
  :root {
    --space-3xl: 3.5rem;
    --space-2xl: 2rem;
  }

  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { justify-content: center; }

  .hero-stats { gap: var(--space-sm); }
  .stat-chip  { min-width: 76px; padding: var(--space-sm) var(--space-md); }

  .timeline { padding-left: var(--space-xl); }

  .timeline-header { flex-direction: column; gap: var(--space-sm); }
  .timeline-date   { align-self: flex-start; }

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

  .footer-inner { flex-direction: column; text-align: center; }
}
