/* ============================================================
   YAHIA EL-KERDANY — PORTFOLIO
   Design System: Dark / Deep space with electric-blue accents
   ============================================================ */

/* ---- TOKENS ---- */
:root {
  /* Colors */
  --bg:           #070810;
  --bg-2:         #0c0e1a;
  --bg-3:         #121424;
  --surface:      rgba(255,255,255,0.04);
  --surface-hi:   rgba(255,255,255,0.08);
  --border:       rgba(255,255,255,0.07);
  --border-hi:    rgba(255,255,255,0.14);

  --text-primary:   #f0f2ff;
  --text-secondary: #8890b0;
  --text-muted:     #444866;

  --accent:       #4f7dff;
  --accent-glow:  rgba(79,125,255,0.35);
  --accent-2:     #9b6bff;
  --accent-3:     #35e8c4;
  --neon:         #5bf0ff;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout:    cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 12vw, 160px);
  --nav-h: 72px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; } /* We do smooth scroll in JS */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ============================================================
   CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s var(--ease-out-expo), width 0.25s var(--ease-out-expo), height 0.25s var(--ease-out-expo), background 0.25s;
  mix-blend-mode: screen;
}
.cursor-follower {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(79,125,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s var(--ease-out-expo), width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), opacity 0.3s;
}
.cursor.hovering { width: 22px; height: 22px; background: var(--accent-2); }
.cursor-follower.hovering { width: 56px; height: 56px; opacity: 0.5; }

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  z-index: 9000;
  transition: width 0.1s linear;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 64px);
  z-index: 1000;
  transition: background 0.4s var(--ease-out-expo), backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7,8,16,0.8);
  backdrop-filter: blur(24px) saturate(180%);
  border-color: var(--border);
}
.nav-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out-expo);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--surface-hi);
  border: 1px solid var(--border-hi);
  color: var(--text-primary);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

/* ============================================================
   MAGNETIC BUTTON
   ============================================================ */
.magnetic-btn {
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transition: transform 0.4s var(--ease-spring);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.7;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(79,125,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(155,107,255,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% 50%, rgba(7,8,16,0) 30%, var(--bg) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 clamp(24px, 5vw, 64px);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border-hi);
  border-radius: 100px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeSlideUp 0.7s 0.3s var(--ease-out-expo) forwards;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 8px var(--accent-3);
  animation: pulse-dot 2s infinite;
}
.eyebrow-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 8px var(--accent-3); }
  50% { box-shadow: 0 0 18px var(--accent-3), 0 0 36px rgba(53,232,196,0.3); }
}

/* Hero name */
.hero-name {
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 28px;
}
.name-line {
  display: block;
  overflow: hidden;
}
.char-wrap {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: charReveal 0.9s var(--ease-out-expo) forwards;
}
.name-line:first-child .char-wrap { animation-delay: 0.5s; }
.name-line:last-child .char-wrap {
  animation-delay: 0.7s;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes charReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero subtitle */
.hero-subtitle-wrap {
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s 0.9s var(--ease-out-expo) forwards;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.hero-role-morph {
  height: 26px;
  overflow: hidden;
  position: relative;
}
.role-item {
  display: block;
  font-size: 14px;
  color: var(--accent-3);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.5s var(--ease-out-expo);
}
.role-item.active { opacity: 1; transform: translateY(0); }
.role-item.exit  { opacity: 0; transform: translateY(-24px); }

/* Hero actions */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s 1.1s var(--ease-out-expo) forwards;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  letter-spacing: -0.01em;
  box-shadow: 0 0 40px var(--accent-glow), 0 2px 0 rgba(255,255,255,0.1) inset;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
}
.hero-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s var(--ease-out-expo);
}
.hero-cta:hover::after { left: 160%; }
.hero-cta:hover {
  background: color-mix(in srgb, var(--accent) 80%, white);
  box-shadow: 0 0 64px var(--accent-glow), 0 2px 0 rgba(255,255,255,0.1) inset;
}
.btn-arrow {
  display: inline-block;
  animation: bounceY 2s infinite var(--ease-inout);
}
@keyframes bounceY {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
.hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.secondary-line {
  display: inline-block;
  width: 24px; height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease-out-expo);
}
.hero-secondary:hover { color: var(--text-primary); }
.hero-secondary:hover .secondary-line { width: 40px; }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeSlideUp 0.8s 1.5s var(--ease-out-expo) forwards;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s 1.5s infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Floating parallax layers */
.hero-float {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: floatDrift linear infinite;
}
.float-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,125,255,0.15), transparent 70%);
  top: -200px; right: -100px;
  animation-duration: 20s;
}
.float-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(155,107,255,0.12), transparent 70%);
  bottom: -100px; left: -50px;
  animation-duration: 28s;
  animation-direction: reverse;
}
.float-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(53,232,196,0.08), transparent 70%);
  top: 40%; left: 40%;
  animation-duration: 22s;
}
@keyframes floatDrift {
  0% { transform: translate(0,0) rotate(0deg); }
  33% { transform: translate(30px,-20px) rotate(120deg); }
  66% { transform: translate(-20px,30px) rotate(240deg); }
  100% { transform: translate(0,0) rotate(360deg); }
}

/* ============================================================
   SECTION LABELS & REVEALS
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--accent);
}

/* Reveal animations */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.reveal-up.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0,0);
}
[data-delay="80"].reveal-up  { transition-delay: 0.08s; }
[data-delay="100"].reveal-up { transition-delay: 0.1s; }
[data-delay="120"].reveal-up { transition-delay: 0.12s; }
[data-delay="160"].reveal-up { transition-delay: 0.16s; }
[data-delay="200"].reveal-up { transition-delay: 0.2s; }
[data-delay="240"].reveal-up { transition-delay: 0.24s; }
[data-delay="320"].reveal-up { transition-delay: 0.32s; }
[data-delay="400"].reveal-up { transition-delay: 0.4s; }

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(24px) saturate(180%);
  position: relative;
  overflow: hidden;
}
.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(79,125,255,0.08), transparent 70%);
  pointer-events: none;
  transition: opacity 0.4s;
  opacity: 0;
}
.glass-card:hover .card-glow { opacity: 1; }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: var(--section-pad) clamp(24px, 5vw, 64px);
}
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}
.about-heading {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.about-heading em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}
.stat-num::after { content: '+'; font-size: 20px; color: var(--accent); }
.stat-item:last-child .stat-num::after { content: '%'; }
.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* About visual card */
.about-card { padding: 36px; }
.about-card-inner { display: flex; flex-direction: column; gap: 24px; }
.about-avatar {
  position: relative;
  width: 80px; height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spinRing 6s linear infinite;
}
@keyframes spinRing {
  to { transform: rotate(360deg); }
}
.avatar-core {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.about-card-detail { display: flex; flex-direction: column; gap: 4px; }
.detail-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.detail-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.status-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-3) !important;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 0 rgba(53,232,196,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(53,232,196,0); }
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills {
  padding: var(--section-pad) clamp(24px, 5vw, 64px);
  background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent);
}
.skills-inner { max-width: 1200px; margin: 0 auto; }
.skills-heading {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 56px;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.skill-category {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out-expo);
}
.skill-category:hover {
  border-color: var(--border-hi);
  box-shadow: 0 0 40px rgba(79,125,255,0.05), 0 1px 0 var(--border-hi) inset;
  transform: translateY(-4px);
}
.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.skill-cat-icon {
  font-size: 20px;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(79,125,255,0.2), rgba(155,107,255,0.2));
  border: 1px solid var(--border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-style: normal;
}
.skill-cat-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.skill-items { display: flex; flex-direction: column; gap: 16px; }
.skill-item { display: flex; flex-direction: column; gap: 8px; }
.skill-name { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.skill-bar {
  height: 4px;
  background: var(--surface-hi);
  border-radius: 4px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 4px;
  transition: width 1.2s var(--ease-out-expo);
  box-shadow: 0 0 8px var(--accent-glow);
}
.skill-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--surface-hi);
  border: 1px solid var(--border-hi);
  color: var(--text-secondary);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease-spring);
  cursor: default;
}
.skill-tag:hover {
  background: rgba(79,125,255,0.15);
  border-color: rgba(79,125,255,0.4);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   HOBBIES
   ============================================================ */
.hobbies {
  padding: var(--section-pad) clamp(24px, 5vw, 64px);
}
.hobbies-inner { max-width: 1200px; margin: 0 auto; }
.hobbies-heading {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 56px;
}
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.hobby-card {
  padding: 32px 28px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s var(--ease-out-expo);
  cursor: default;
}
.hobby-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s;
}
.hobby-bg-1 { background: linear-gradient(135deg, rgba(79,125,255,0.12), transparent); }
.hobby-bg-2 { background: linear-gradient(135deg, rgba(255,169,79,0.10), transparent); }
.hobby-bg-3 { background: linear-gradient(135deg, rgba(255,79,79,0.10), transparent); }
.hobby-bg-4 { background: linear-gradient(135deg, rgba(79,209,255,0.10), transparent); }
.hobby-bg-5 { background: linear-gradient(135deg, rgba(155,107,255,0.12), transparent); }
.hobby-bg-6 { background: linear-gradient(135deg, rgba(53,232,196,0.10), transparent); }
.hobby-card:hover { border-color: var(--border-hi); }
.hobby-card:hover .hobby-bg { opacity: 1; }
.hobby-icon {
  font-size: 32px;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  transition: transform 0.3s var(--ease-spring);
}
.hobby-card:hover .hobby-icon { transform: scale(1.15) rotate(-5deg); }
.hobby-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
}
.hobby-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  position: relative;
}

/* ============================================================
   TILT CARD (3D transform)
   ============================================================ */
.tilt-card { transform-style: preserve-3d; perspective: 800px; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects {
  padding: var(--section-pad) clamp(24px, 5vw, 64px);
  background: linear-gradient(180deg, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent);
}
.projects-inner { max-width: 1200px; margin: 0 auto; }
.projects-heading {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 56px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.project-card {
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color 0.3s, box-shadow 0.4s;
  cursor: pointer;
}
.project-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 20px 80px rgba(0,0,0,0.4), 0 0 60px rgba(79,125,255,0.08);
}
.project-bg {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  transition: opacity 0.4s, transform 0.6s var(--ease-out-expo);
}
.project-card:hover .project-bg { opacity: 0.9; transform: scale(1.04); }
.project-bg-1 {
  background: linear-gradient(160deg, rgba(79,125,255,0.3) 0%, rgba(53,232,196,0.1) 50%, transparent 100%);
}
.project-bg-2 {
  background: linear-gradient(160deg, rgba(155,107,255,0.3) 0%, rgba(79,125,255,0.1) 50%, transparent 100%);
}
.project-bg-3 {
  background: linear-gradient(160deg, rgba(53,232,196,0.25) 0%, rgba(79,125,255,0.15) 50%, transparent 100%);
}
.project-content {
  position: relative;
  z-index: 2;
  padding: 32px;
}
.project-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.project-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border-hi);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease-spring);
  letter-spacing: 0.04em;
}
.project-card:hover .project-tag {
  border-color: rgba(79,125,255,0.4);
  color: var(--accent);
  transform: translateY(-1px);
}
.project-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}
.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.project-type {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.project-arrow {
  font-size: 18px;
  color: var(--accent);
  transition: transform 0.3s var(--ease-spring);
}
.project-card:hover .project-arrow { transform: translate(4px, -4px); }

/* Project sweep light effect */
.project-sweep {
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transition: left 0.6s var(--ease-out-expo);
  pointer-events: none;
  z-index: 3;
}
.project-card:hover .project-sweep { left: 200%; }

/* ============================================================
   ASPIRATIONS
   ============================================================ */
.aspirations {
  padding: var(--section-pad) clamp(24px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.aspirations-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.aspirations-text { margin: 32px 0; }
.aspiration-line {
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo), color 0.5s;
}
.aspiration-line.highlight {
  color: var(--text-primary);
}
.aspiration-line.visible {
  opacity: 1;
  transform: translateY(0);
}
.aspirations-sub {
  max-width: 560px;
  margin-top: 40px;
}
.aspirations-sub p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Orb backgrounds */
.aspirations-bg-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.orb-1 {
  width: 500px; height: 500px;
  background: rgba(79,125,255,0.12);
  top: -10%; right: -5%;
  animation: orbDrift 18s infinite var(--ease-inout) alternate;
}
.orb-2 {
  width: 350px; height: 350px;
  background: rgba(155,107,255,0.10);
  bottom: -10%; left: -5%;
  animation: orbDrift 24s infinite var(--ease-inout) alternate-reverse;
}
.orb-3 {
  width: 250px; height: 250px;
  background: rgba(53,232,196,0.07);
  top: 50%; left: 40%;
  animation: orbDrift 20s infinite var(--ease-inout) alternate;
}
@keyframes orbDrift {
  from { transform: translate(0,0); }
  to   { transform: translate(40px, 30px); }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: var(--section-pad) clamp(24px, 5vw, 64px);
  background: linear-gradient(180deg, transparent, var(--bg-2) 30%);
}
.contact-inner { max-width: 1000px; margin: 0 auto; }
.contact-heading {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 48px;
}
.contact-heading em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contact-panel {
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.glass-input {
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  resize: none;
}
.glass-input::placeholder { color: var(--text-muted); }
.glass-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,125,255,0.15);
  background: rgba(79,125,255,0.04);
}
.submit-btn {
  position: relative;
  width: 100%;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.25s, box-shadow 0.25s, transform 0.3s var(--ease-spring);
  box-shadow: 0 0 40px var(--accent-glow);
}
.submit-btn:hover {
  background: color-mix(in srgb, var(--accent) 80%, white);
  box-shadow: 0 0 60px var(--accent-glow);
}
.btn-shimmer {
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s var(--ease-out-expo);
  pointer-events: none;
}
.submit-btn:hover .btn-shimmer { left: 200%; }

.contact-info-side { display: flex; flex-direction: column; gap: 32px; }
.info-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.info-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.2s;
}
.info-value:hover { color: var(--accent); }
.social-links { display: flex; flex-direction: column; gap: 10px; }
.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease-spring);
}
.social-link:hover {
  background: var(--surface-hi);
  border-color: var(--border-hi);
  color: var(--text-primary);
  transform: translateX(4px);
}
.social-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--surface-hi);
  border: 1px solid var(--border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
}
.contact-availability {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--accent-3);
  font-weight: 500;
  padding: 12px 16px;
  background: rgba(53,232,196,0.06);
  border: 1px solid rgba(53,232,196,0.15);
  border-radius: 10px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 32px clamp(24px, 5vw, 64px);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-name {
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   KEYFRAMES HELPERS
   ============================================================ */
@keyframes fadeSlideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .hero-name { font-size: clamp(44px, 14vw, 72px); }
  .hero-actions { flex-direction: column; gap: 16px; }
  .about-stats { gap: 24px; }
  .projects-grid { grid-template-columns: 1fr; }
  .hobbies-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

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