/* ═══════════════════════════════════════════════════════════════════
   DESIGN TOKENS — CSS Custom Properties
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* ── Typography ── */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* ── 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: 4rem;
  --space-4xl: 6rem;

  /* ── Border Radius ── */
  --radius-sm:   6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* ── Transitions ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.35s;

  /* ── Layout ── */
  --max-width: 1200px;
  --nav-height: 72px;

  /* ── Accent Gradient ── */
  --gradient: linear-gradient(135deg, var(--color-accent), var(--color-accent-alt));

  /* ── Misc ── */
  --color-success: #10b981;
}

/* ═══════════════════════════════════════════════════════════════════
   DARK THEME (default)
   ═══════════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --color-bg:          #0a0a0f;
  --color-bg-elevated: #12121a;
  --color-bg-card:     #16161f;
  --color-bg-input:    #1c1c28;
  --color-border:      rgba(255, 255, 255, 0.06);
  --color-border-hover:rgba(255, 255, 255, 0.12);

  --color-text:        #f0f0f5;
  --color-text-secondary: #9294a0;
  --color-text-muted:  #5a5c6a;

  --color-accent:      #6c63ff;
  --color-accent-alt:  #00d4ff;
  --color-accent-glow: rgba(108, 99, 255, 0.15);

  --color-surface-glass: rgba(22, 22, 31, 0.65);
  --color-tag-bg:      rgba(108, 99, 255, 0.1);
  --color-tag-border:  rgba(108, 99, 255, 0.25);

  --shadow-card:  0 2px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 40px rgba(108, 99, 255, 0.12);
}

/* ═══════════════════════════════════════════════════════════════════
   LIGHT THEME
   ═══════════════════════════════════════════════════════════════════ */
[data-theme="light"] {
  --color-bg:          #f8f9fc;
  --color-bg-elevated: #ffffff;
  --color-bg-card:     #ffffff;
  --color-bg-input:    #f0f1f5;
  --color-border:      rgba(0, 0, 0, 0.08);
  --color-border-hover:rgba(0, 0, 0, 0.14);

  --color-text:        #1a1a2e;
  --color-text-secondary: #5e6070;
  --color-text-muted:  #9294a0;

  --color-accent:      #5046e5;
  --color-accent-alt:  #0891b2;
  --color-accent-glow: rgba(80, 70, 229, 0.08);

  --color-surface-glass: rgba(255, 255, 255, 0.7);
  --color-tag-bg:      rgba(80, 70, 229, 0.06);
  --color-tag-border:  rgba(80, 70, 229, 0.2);

  --shadow-card:  0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 30px rgba(80, 70, 229, 0.1);
}

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

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

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out);
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

ul { list-style: none; }

/* ═══════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════ */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  text-decoration: none;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px var(--color-accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-accent-glow);
}

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

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

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

/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all var(--duration) var(--ease-out);
}

.navbar.scrolled {
  background: var(--color-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.1);
}

.navbar__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.5px;
  transition: color var(--duration);
}

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

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

.navbar__list {
  display: flex;
  gap: var(--space-xs);
}

.navbar__link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease-out);
  position: relative;
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--color-text);
  background: var(--color-accent-glow);
}

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

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

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

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  transition: all var(--duration);
}

.navbar__hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--duration) var(--ease-out);
  transform-origin: center;
}

.navbar__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

/* Dot grid background */
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--color-text-muted) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.12;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 40%, transparent 100%);
}

.hero__container {
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-4xl);
  position: relative;
  z-index: 1;
}

.hero__content {
  flex: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1rem;
  background: var(--color-tag-bg);
  border: 1px solid var(--color-tag-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s var(--ease-out) both;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50%      { opacity: 0.8; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.hero__name {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
  animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

.hero__highlight {
  color: var(--color-accent);
  -webkit-text-fill-color: var(--color-accent);
}

.hero__subtitle {
  font-size: 0.95rem;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s var(--ease-out) 0.25s both;
}

.hero__description {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

.hero__cta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  animation: fadeInUp 0.6s var(--ease-out) 0.5s both;
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
}

/* ── Hero Visual (Right Side Orb) ── */
.hero__visual {
  flex-shrink: 0;
  position: relative;
  width: 360px;
  height: 360px;
  animation: fadeIn 1s var(--ease-out) 0.4s both;
}

.hero__orb {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--color-border);
}

.hero__orb-ring--1 {
  width: 70%;
  height: 70%;
  animation: orb-spin 20s linear infinite;
  border-color: var(--color-tag-border);
}

.hero__orb-ring--2 {
  width: 85%;
  height: 85%;
  animation: orb-spin 30s linear infinite reverse;
  border-style: dashed;
  opacity: 0.5;
}

.hero__orb-ring--3 {
  width: 100%;
  height: 100%;
  animation: orb-spin 40s linear infinite;
  border-style: dotted;
  opacity: 0.3;
}

@keyframes orb-spin {
  100% { transform: rotate(360deg); }
}

.hero__orb-core {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #fff;
  box-shadow: 0 0 60px var(--color-accent-glow),
              0 0 120px var(--color-accent-glow);
  animation: core-glow 3s ease-in-out infinite alternate;
}

@keyframes core-glow {
  0%   { box-shadow: 0 0 40px var(--color-accent-glow), 0 0 80px var(--color-accent-glow); }
  100% { box-shadow: 0 0 60px var(--color-accent-glow), 0 0 140px var(--color-accent-glow); }
}

/* Floating tech icons */
.hero__float {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-accent);
  box-shadow: var(--shadow-card);
}

.hero__float--1 { top: 8%; left: 10%; animation: floatY 4s ease-in-out infinite; }
.hero__float--2 { top: 5%; right: 12%; animation: floatY 5s ease-in-out 1s infinite; }
.hero__float--3 { bottom: 12%; left: 5%; animation: floatY 4.5s ease-in-out 0.5s infinite; }
.hero__float--4 { bottom: 8%; right: 8%; animation: floatY 5.5s ease-in-out 1.5s infinite; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  animation: fadeInUp 0.6s var(--ease-out) 0.8s both;
}

.hero__scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--color-text-muted);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  padding-top: 8px;
  opacity: 0.5;
  transition: opacity var(--duration);
}

.hero__scroll:hover .hero__scroll-mouse {
  opacity: 1;
}

.hero__scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--color-text-muted);
  border-radius: var(--radius-full);
  animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ═══════════════════════════════════════════════════════════════════
   SECTIONS (shared)
   ═══════════════════════════════════════════════════════════════════ */
.section {
  padding: var(--space-4xl) var(--space-xl);
}

.section__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
}

.section__desc {
  margin-top: var(--space-md);
  color: var(--color-text-secondary);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

.about__text p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  font-size: 1.02rem;
}

.about__text strong {
  color: var(--color-text);
  font-weight: 600;
}

.about__highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.about__card {
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration) var(--ease-out);
}

.about__card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.about__card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-tag-bg);
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.about__card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.about__card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════════════════════════════ */
.skills {
  background: var(--color-bg-elevated);
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.skills__category {
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration) var(--ease-out);
}

.skills__category:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-hover);
}

.skills__category-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 1.25rem;
  color: var(--color-accent);
}

.skills__category-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}

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

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.9rem;
  background: var(--color-tag-bg);
  border: 1px solid var(--color-tag-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all var(--duration) var(--ease-out);
}

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

.skill-tag i {
  font-size: 1rem;
  color: var(--color-accent);
  transition: color var(--duration);
}

.skill-tag:hover i {
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════
   EXPERIENCE — Timeline
   ═══════════════════════════════════════════════════════════════════ */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: var(--space-2xl);
}

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

.timeline__item {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: calc(-1 * var(--space-2xl));
  top: 4px;
}

.timeline__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--color-border);
  background: var(--color-bg);
  transition: all var(--duration);
}

.timeline__dot--active {
  border-color: var(--color-accent);
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-glow);
}

.timeline__content {
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration) var(--ease-out);
}

.timeline__content:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card);
}

.timeline__badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.timeline__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.timeline__org {
  font-size: 0.95rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.timeline__date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.timeline__desc {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════
   EDUCATION
   ═══════════════════════════════════════════════════════════════════ */
.education {
  background: var(--color-bg-elevated);
}

.edu__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 720px;
  margin: 0 auto;
}

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

.edu__card:hover {
  border-color: var(--color-accent);
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
}

.edu__icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-tag-bg);
  border: 1px solid var(--color-tag-border);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  color: var(--color-accent);
}

.edu__info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.edu__institution {
  font-size: 0.95rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.edu__detail {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

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

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact__info-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration) var(--ease-out);
}

.contact__info-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-hover);
}

.contact__info-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-tag-bg);
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  color: var(--color-accent);
}

.contact__info-card h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.contact__info-card a {
  font-size: 0.95rem;
  color: var(--color-text);
  transition: color var(--duration);
}

.contact__info-card a:hover {
  color: var(--color-accent);
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea {
  padding: 0.85rem 1rem;
  background: var(--color-bg-input);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: all var(--duration) var(--ease-out);
  outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

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

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

.footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer__top {
  margin-bottom: var(--space-lg);
}

.footer__logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  transition: color var(--duration);
}

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

.footer__tagline {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.footer__links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 1.2rem;
  transition: all var(--duration) var(--ease-out);
}

.footer__links a:hover {
  color: #fff;
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

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

/* ═══════════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out),
              transform 0.7s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.about__card.reveal:nth-child(1) { transition-delay: 0.05s; }
.about__card.reveal:nth-child(2) { transition-delay: 0.1s; }
.about__card.reveal:nth-child(3) { transition-delay: 0.15s; }
.about__card.reveal:nth-child(4) { transition-delay: 0.2s; }

.timeline__item.reveal:nth-child(1) { transition-delay: 0.05s; }
.timeline__item.reveal:nth-child(2) { transition-delay: 0.15s; }
.timeline__item.reveal:nth-child(3) { transition-delay: 0.25s; }
.timeline__item.reveal:nth-child(4) { transition-delay: 0.35s; }

.edu__card.reveal:nth-child(1) { transition-delay: 0.05s; }
.edu__card.reveal:nth-child(2) { transition-delay: 0.15s; }
.edu__card.reveal:nth-child(3) { transition-delay: 0.25s; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (< 900px)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero__container {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2xl);
  }

  .hero__description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__visual {
    width: 280px;
    height: 280px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

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

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

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (< 640px)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root {
    --nav-height: 64px;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration) var(--ease-out);
  }

  .navbar__nav.active {
    opacity: 1;
    visibility: visible;
  }

  .navbar__list {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

  .navbar__link {
    font-size: 1.2rem;
    padding: 0.7rem 1.5rem;
  }

  /* Hero */
  .hero {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__stats {
    gap: var(--space-md);
  }

  .hero__stat-value {
    font-size: 1.4rem;
  }

  .hero__visual {
    width: 220px;
    height: 220px;
  }

  .hero__orb-core {
    width: 65px;
    height: 65px;
    font-size: 1.8rem;
  }

  .hero__float {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* Sections */
  .section {
    padding: var(--space-3xl) var(--space-md);
  }

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

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

  .edu__card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

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

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

/* ═══════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
