/* ============================================================
   Yassine El Fannaoui — Portfolio
   Web Development · AI Automation · Cinematic AI Video · Affiliate Marketing
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Palette */
  --bg: #07070c;
  --bg-soft: #0c0d16;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f3f3f8;
  --text-muted: #a4a6b8;
  --text-faint: #6d6f82;

  --violet: #8b6bff;
  --violet-soft: #b6a2ff;
  --violet-deep: #5a3fd6;
  --indigo: #6f4fe0;
  --cyan: #4fd8e0;
  --amber: #ffb15c;

  --grad-1: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
  --grad-2: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  --grad-3: linear-gradient(135deg, var(--indigo) 0%, var(--violet-soft) 100%);

  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: min(1180px, 92vw);
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

body.menu-open { overflow: hidden; }

::selection { background: var(--violet); color: #fff; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--violet-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ BACKGROUND FX ============ */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(139,107,255,0.16) 0%, rgba(139,107,255,0) 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}
.cursor-glow.active { opacity: 1; }

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}
.orb-1 { width: 480px; height: 480px; top: -160px; left: -120px; background: var(--violet); animation: driftA 22s ease-in-out infinite; }
.orb-2 { width: 420px; height: 420px; bottom: -140px; right: -100px; background: var(--violet-deep); animation: driftB 26s ease-in-out infinite; }
.orb-3 { width: 360px; height: 360px; top: 45%; left: 60%; background: var(--cyan); opacity: 0.22; animation: driftC 30s ease-in-out infinite; }

@keyframes driftA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,80px) scale(1.15); } }
@keyframes driftB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-70px,-50px) scale(1.1); } }
@keyframes driftC { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-90px,60px); } }

main, .nav, footer { position: relative; z-index: 2; }

/* ============ GLASS ============ */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.glass:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--grad-1);
  opacity: 0;
  z-index: -1;
  filter: blur(18px);
  transition: opacity 0.4s ease;
}
.glass:hover .card-glow { opacity: 0.35; }

.featured-card { border-color: rgba(139,107,255,0.4); }
.featured-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-1);

  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}
.card-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--grad-1);
  color: #fff;
  box-shadow: 0 6px 18px rgba(139,107,255,0.4);
  z-index: 2;
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal-init { opacity: 0; }
.reveal-up.reveal-init { transform: translateY(36px); }
.reveal-left.reveal-init { transform: translateX(-36px); }
.reveal-right.reveal-init { transform: translateX(36px); }
.reveal-scale.reveal-init { transform: scale(0.88); }

.reveal-up, .reveal-left, .reveal-right, .reveal-scale {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal-in { opacity: 1 !important; transform: translate(0,0) scale(1) !important; }

.line.reveal-up { display: block; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(7,7,12,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
}
.nav.scrolled {
  padding: 12px clamp(20px, 5vw, 64px);
  background: rgba(7,7,12,0.85);
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-bracket { color: var(--violet-soft); }

.nav-links {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
}
.nav-link {
  position: relative;
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 6px 2px;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--grad-1);
  border-radius: 2px;
  transition: width 0.35s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  border: 1px solid transparent;
}
.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--grad-1);
  color: #fff;
  box-shadow: 0 10px 30px rgba(139,107,255,0.28);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(139,107,255,0.42); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-strong); }

.btn-full { width: 100%; justify-content: center; }

.btn-sent {
  background: linear-gradient(135deg, #3ddc97, #4fd8e0) !important;
  pointer-events: none;
}

.magnetic { will-change: transform; }

/* ============ LAYOUT / SECTIONS ============ */
.section {
  padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 64px);
  max-width: var(--container);
  margin: 0 auto;
}

.section-header { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--violet-soft);
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-bottom: 14px;
}
.section-intro { color: var(--text-muted); font-size: clamp(0.98rem, 1.4vw, 1.08rem); max-width: 60ch; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding: 140px clamp(20px, 5vw, 64px) 80px;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3ddc97;
  box-shadow: 0 0 0 0 rgba(61,220,151,0.6);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(61,220,151,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(61,220,151,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); }
}

.hero-title { margin-bottom: 18px; }
.hero-title .line { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
.name-gradient {
  background: var(--grad-1);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 18px;
}
.highlight { color: var(--cyan); }

.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 56ch;
  margin-bottom: 32px;
}
.hero-desc strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  background: var(--grad-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-num.infinity { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.stat-label { font-size: 0.78rem; color: var(--text-faint); margin-top: 2px; }
.stat-divider { width: 1px; height: 34px; background: var(--border); }

/* hero visual */
.hero-visual {
  position: relative;
  height: clamp(300px, 34vw, 440px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.visual-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.ring-1 { width: 78%; height: 78%; animation: spin 26s linear infinite; }
.ring-2 { width: 96%; height: 96%; border-style: dashed; animation: spin 40s linear infinite reverse; }
.ring-3 { width: 60%; height: 60%; border-color: var(--border-strong); animation: spin 20s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.visual-core {
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--grad-1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 70px rgba(139,107,255,0.5);
  animation: floatCore 5s ease-in-out infinite;
}
@keyframes floatCore { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.core-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.core-icon { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.core-text { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; color: #fff; }

.floating-tag {
  position: absolute;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  animation: floatTag 6s ease-in-out infinite;
}
.tag-1 { top: 6%; left: -4%; animation-delay: 0s; }
.tag-2 { top: 18%; right: -8%; animation-delay: 0.6s; }
.tag-3 { bottom: 22%; left: -10%; animation-delay: 1.2s; }
.tag-4 { bottom: 6%; right: -6%; animation-delay: 1.8s; }
.tag-5 { top: 48%; left: 42%; animation-delay: 2.4s; }
@keyframes floatTag { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}
.scroll-line {
  width: 1px; height: 34px;
  background: linear-gradient(var(--violet-soft), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  top: -20px; left: 0;
  width: 100%; height: 20px;
  background: linear-gradient(var(--text), transparent);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0% { top: -20px; } 100% { top: 40px; } }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 40px; }
.about-grid-4 { grid-template-columns: repeat(4, 1fr); }
.about-card { padding: 30px 26px; }
.about-icon { font-size: 1.9rem; margin-bottom: 16px; }
.about-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.about-card p { color: var(--text-muted); font-size: 0.94rem; }
.about-card p strong { color: var(--text); font-weight: 600; }

.mission-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px;
}
.mission-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
}
.mission-banner h3 { font-size: 1.1rem; margin-bottom: 8px; }
.mission-banner p { color: var(--text-muted); font-size: 0.95rem; }
.mission-banner p strong { color: var(--text); font-weight: 600; }

/* ============ STORY ============ */
.story-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.story-content p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.98rem; }
.story-content p strong { color: var(--text); font-weight: 600; }
.story-aside { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 100px; }
.story-card { padding: 26px; }
.story-card h3 { font-size: 1.05rem; margin-bottom: 16px; }
.facts-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.facts-list li:last-child { border-bottom: none; }
.fact-label { color: var(--text-faint); }
.fact-value { color: var(--text); font-weight: 500; text-align: right; }
.fact-value a { color: var(--violet-soft); }
.fact-value a:hover { color: var(--cyan); }

.story-quote { padding: 24px; border-left: 3px solid var(--violet); }
.story-quote p { font-style: italic; color: var(--text); margin-bottom: 10px; }
.story-quote span { color: var(--text-faint); font-size: 0.85rem; }

/* ============ SOFT SKILLS ============ */
.soft-skills-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.soft-skill-card { padding: 24px 20px; }
.soft-skill-icon { font-size: 1.5rem; margin-bottom: 12px; }
.soft-skill-card h3 { font-size: 1rem; margin-bottom: 8px; }
.soft-skill-card p { color: var(--text-muted); font-size: 0.87rem; }

/* ============ GOALS ============ */
.goals-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 34px; }
.goal-card { padding: 28px 24px; }
.goal-number {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.5;
  margin-bottom: 8px;
}
.goal-card h3 { font-size: 1.02rem; margin-bottom: 10px; }
.goal-card p { color: var(--text-muted); font-size: 0.9rem; }
.goal-card p strong { color: var(--text); font-weight: 600; }

.interests-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.interest-label { color: var(--text-faint); font-size: 0.88rem; margin-right: 4px; }
.interest-tag {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.interest-tag:hover { border-color: var(--violet-soft); color: var(--text); transform: translateY(-2px); }

/* ============ SKILLS ============ */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-card { padding: 26px 24px; }
.skill-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.skill-icon { font-size: 1.4rem; }
.skill-header h3 { font-size: 1.02rem; }
.skill-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
  margin-bottom: 14px;
}
.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad-2);
  transition: width 1.4s var(--ease);
}
.skill-bar.learning .skill-fill { background: var(--grad-1); }
.skill-card p { color: var(--text-muted); font-size: 0.88rem; }

/* ============ SERVICES ============ */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { padding: 30px 24px; }
.service-icon {
  font-size: 1.7rem;
  margin-bottom: 16px;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--surface-strong);
  display: flex; align-items: center; justify-content: center;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ============ WORK ============ */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card { overflow: hidden; padding: 0; }
.work-image { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.work-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-placeholder { transform: scale(1.08) rotate(-2deg); }
.gradient-1 { background: var(--grad-1); }
.gradient-2 { background: var(--grad-2); }
.gradient-3 { background: var(--grad-3); }
.work-overlay { position: absolute; top: 14px; left: 14px; }
.work-tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(7,7,12,0.55);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.work-body { padding: 22px 22px 26px; }
.work-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.work-body p { color: var(--text-muted); font-size: 0.9rem; }

/* ============ CONTACT ============ */
.contact-wrapper { padding: clamp(30px, 5vw, 56px); position: relative; overflow: hidden; }
.contact-glow {
  position: absolute;
  top: -30%; right: -10%;
  width: 420px; height: 420px;
  background: var(--grad-1);
  filter: blur(120px);
  opacity: 0.22;
  pointer-events: none;
}
.contact-desc { color: var(--text-muted); margin-top: 8px; max-width: 56ch; }
.contact-direct { display: flex; flex-wrap: wrap; gap: 16px; margin: 28px 0 0; }
.contact-direct-large { margin-bottom: 6px; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.contact-link:hover { border-color: var(--violet-soft); transform: translateY(-2px); background: var(--surface-strong); }

/* ============ FOOTER ============ */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 32px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.85rem;
}
.footer-brand { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand strong { color: var(--text-muted); }
.footer-social { display: flex; gap: 10px; }
.footer-social-link {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.footer-social-link:hover { border-color: var(--violet-soft); transform: translateY(-2px); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { transition: color 0.3s ease; }
.footer-links a:hover { color: var(--text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .about-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .soft-skills-grid { grid-template-columns: repeat(3, 1fr); }
  .goals-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(78vw, 340px);
    height: 100vh;
    background: rgba(9,9,16,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transition: right 0.45s var(--ease);
    border-left: 1px solid var(--border);
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; }

  .hero { grid-template-columns: 1fr; padding-top: 120px; text-align: left; }
  .hero-visual { order: -1; height: 280px; margin-bottom: 10px; }
  .floating-tag { font-size: 0.68rem; padding: 6px 12px; }

  .story-layout { grid-template-columns: 1fr; }
  .story-aside { position: static; }
}

@media (max-width: 640px) {
  .about-grid, .about-grid-4 { grid-template-columns: 1fr; }
  .soft-skills-grid { grid-template-columns: repeat(2, 1fr); }
  .goals-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; row-gap: 14px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .orb { display: none; }
}