/* ============================================
   MAIN.CSS — Dorian Payet Portfolio
   Design System & Core Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
  /* Backgrounds */
  --bg:       #0d1117;
  --bg-1:     #0c1120;
  --bg-2:     #111827;
  --surface:  rgba(255,255,255,0.035);
  --surface-2:rgba(255,255,255,0.065);

  /* Borders */
  --border:        rgba(255,255,255,0.08);
  --border-accent: rgba(99,102,241,0.45);

  /* Text */
  --t1: #f1f5f9;
  --t2: #94a3b8;
  --t3: #475569;

  /* Brand */
  --blue:     #6366f1;
  --blue-l:   #818cf8;
  --purple:   #a855f7;
  --purple-l: #c084fc;
  --cyan:     #22d3ee;
  --green:    #4ade80;

  /* Gradients */
  --g1:    linear-gradient(135deg, #6366f1, #a855f7);
  --g2:    linear-gradient(135deg, #a855f7, #22d3ee);
  --g3:    linear-gradient(135deg, #818cf8 0%, #a855f7 50%, #22d3ee 100%);
  --g-hero:radial-gradient(ellipse at 15% 55%, rgba(99,102,241,.14) 0%, transparent 55%),
           radial-gradient(ellipse at 85% 15%, rgba(168,85,247,.10) 0%, transparent 50%),
           radial-gradient(ellipse at 50% 90%, rgba(34,211,238,.07) 0%, transparent 50%);

  /* Glows */
  --glow-b: 0 0 40px rgba(99,102,241,.30);
  --glow-p: 0 0 40px rgba(168,85,247,.28);
  --glow-card: 0 0 60px rgba(99,102,241,.12);

  /* Layout */
  --sp:  clamp(4.5rem, 9vw, 8rem);
  --max: 1200px;

  /* Timing */
  --t:      0.3s ease;
  --t-fast: 0.15s ease;

  /* Radii */
  --r-sm:  8px;
  --r:     16px;
  --r-lg:  24px;
  --r-full:9999px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--t1);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,.5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,.8); }
::selection { background: rgba(99,102,241,.25); }

/* ============ TYPOGRAPHY ============ */
h1,h2,h3,h4,h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; line-height: 1.2; color: var(--t1);
}
h1 { font-size: clamp(2.8rem, 6.5vw, 5.5rem); letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.55rem); }
h4 { font-size: 1.05rem; }
p  { color: var(--t2); }

.gradient-text {
  background: var(--g3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ LAYOUT ============ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}
section { padding: var(--sp) 0; position: relative; }

/* ============ SECTION HEADERS ============ */
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--blue-l); margin-bottom: 1rem;
}
.section-tag::before {
  content: ''; width: 28px; height: 2px;
  background: var(--g1); border-radius: 2px; flex-shrink: 0;
}
.section-subtitle {
  color: var(--t2); font-size: 1.1rem;
  max-width: 560px; line-height: 1.8;
  margin-top: .6rem; margin-bottom: 3.5rem;
}
.text-center { text-align: center; }
.text-center .section-tag     { justify-content: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ============ NAVIGATION ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 1.4rem 0; transition: var(--t);
}
.nav.scrolled {
  background: rgba(3,7,18,.85);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border); padding: .85rem 0;
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 2rem;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700;
  background: var(--g3);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  flex-shrink: 0; letter-spacing: -.02em;
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
}
.nav-link {
  font-size: .875rem; font-weight: 500; color: var(--t2);
  padding: .5rem .9rem; border-radius: var(--r-full); transition: var(--t-fast);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: var(--t1); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.nav-btn {
  font-size: .875rem; font-weight: 600;
  padding: .55rem 1.35rem; border-radius: var(--r-full);
  background: var(--g1); color: #fff; transition: var(--t); box-shadow: var(--glow-b);
}
.nav-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,.5); }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 38px; height: 38px; padding: 6px;
  border-radius: var(--r-sm); cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--t1);
  border-radius: 2px; transition: var(--t); transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ MOBILE MENU ============ */
.nav-mobile {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(3,7,18,.97);
  backdrop-filter: blur(20px); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link {
  font-size: 1.5rem; font-weight: 600; padding: .75rem 2rem;
}
.nav-mobile-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  color: var(--t1); font-size: 1.2rem; cursor: pointer; transition: var(--t-fast);
}
.nav-mobile-close:hover { background: var(--surface-2); color: var(--t1); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 80px; overflow: hidden; position: relative;
  background: var(--g-hero);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(100px);
  animation: orb-float 9s ease-in-out infinite;
}
.hero-orb-1 {
  width: 700px; height: 700px;
  background: rgba(99,102,241,.11); top: -150px; left: -200px; animation-delay: 0s;
}
.hero-orb-2 {
  width: 550px; height: 550px;
  background: rgba(168,85,247,.09); top: 20%; right: -180px; animation-delay: -3.5s;
}
.hero-orb-3 {
  width: 450px; height: 450px;
  background: rgba(34,211,238,.07); bottom: -80px; left: 35%; animation-delay: -6s;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 75%);
}
.hero-content { position: relative; z-index: 2; max-width: 880px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--blue-l);
  background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.25);
  border-radius: var(--r-full); padding: .45rem 1.1rem; margin-bottom: 2rem;
}
.hero-badge-dot {
  width: 8px; height: 8px; background: var(--blue-l);
  border-radius: 50%; animation: pulse-dot 2.2s infinite; flex-shrink: 0;
}
.hero-greeting {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-family: 'Space Grotesk', sans-serif; font-weight: 400;
  color: var(--t2); margin-bottom: .4rem; display: block;
}
.hero-name {
  font-size: clamp(3rem, 8.5vw, 6.5rem); font-weight: 700;
  letter-spacing: -.05em; line-height: .95; margin-bottom: .7rem;
}
.hero-title {
  font-size: clamp(1.3rem, 3vw, 2.1rem); font-weight: 500;
  font-family: 'Space Grotesk', sans-serif; color: var(--t2);
  margin-bottom: 1.5rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.hero-title-accent {
  background: var(--g1); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700;
}
.hero-desc {
  font-size: clamp(.95rem, 1.6vw, 1.15rem); color: var(--t2);
  max-width: 560px; line-height: 1.85; margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem;
}
.hero-stats { display: flex; gap: 3rem; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 2.1rem; font-weight: 700;
  line-height: 1; margin-bottom: .2rem;
  background: var(--g3); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-stat-label {
  font-size: .75rem; color: var(--t3); text-transform: uppercase; letter-spacing: .12em;
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: center;
}
.about-img-wrap { position: relative; }
.about-img-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 4/5;
}
.about-img-badge {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  background: rgba(3,7,18,.92); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--r);
  padding: .8rem 1.2rem; display: flex; align-items: center; gap: 12px;
}
.about-badge-icon {
  width: 38px; height: 38px; background: var(--g1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: #fff; flex-shrink: 0;
}
.about-badge-text strong { display: block; font-size: .9rem; color: var(--t1); font-weight: 600; }
.about-badge-text span   { font-size: .75rem; color: var(--t3); }
.about-lead {
  font-size: 1.15rem; color: var(--t1); line-height: 1.85; margin-bottom: 1.25rem;
}
.about-text { color: var(--t2); line-height: 1.9; margin-bottom: 2rem; }
.about-highlights {
  display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 2.5rem;
}
.about-hl {
  display: flex; align-items: center; gap: 10px;
  font-size: .875rem; color: var(--t2);
}
.about-hl::before {
  content: ''; width: 6px; height: 6px;
  background: var(--blue-l); border-radius: 50%; flex-shrink: 0;
}
.about-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============ EXPERIENCE / TIMELINE ============ */
.exp-section {
  background: linear-gradient(180deg, transparent, rgba(99,102,241,.025) 40%, transparent);
}
.timeline { position: relative; padding-left: 3.25rem; }
.timeline::before {
  content: ''; position: absolute; left: 12px; top: 6px; bottom: 6px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), var(--purple) 60%, rgba(168,85,247,0));
}
.tl-item {
  position: relative; margin-bottom: 2.5rem;
  opacity: 0; transform: translateX(-20px);
  transition: opacity .6s ease, transform .6s ease;
}
.tl-item.visible { opacity: 1; transform: translateX(0); }
.tl-dot {
  position: absolute; left: -3rem; top: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px rgba(99,102,241,.1); transition: var(--t);
}
.tl-dot::after {
  content: ''; width: 8px; height: 8px;
  border-radius: 50%; background: var(--blue); transition: var(--t);
}
.tl-item:hover .tl-dot {
  border-color: var(--purple); box-shadow: 0 0 0 6px rgba(168,85,247,.15), var(--glow-p);
}
.tl-item:hover .tl-dot::after { background: var(--purple); }
.tl-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.75rem 2rem; transition: var(--t);
}
.tl-card:hover {
  border-color: var(--border-accent); background: var(--surface-2);
  transform: translateX(6px); box-shadow: var(--glow-card);
}
.tl-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: .6rem; flex-wrap: wrap;
}
.tl-period {
  font-size: .75rem; font-weight: 700; color: var(--blue-l);
  background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.2);
  padding: .28rem .85rem; border-radius: var(--r-full); white-space: nowrap;
  letter-spacing: .04em;
}
.tl-title  { font-size: 1.1rem; font-weight: 700; color: var(--t1); margin-bottom: .15rem; }
.tl-company {
  font-size: .875rem; color: var(--blue-l); font-weight: 500;
  margin-bottom: .8rem; display: flex; align-items: center; gap: 6px;
}
.tl-desc { font-size: .9rem; color: var(--t2); line-height: 1.8; margin-bottom: 1rem; }
.tl-list {
  display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1rem;
}
.tl-list li {
  font-size: .875rem; color: var(--t2); display: flex; align-items: flex-start; gap: 10px;
}
.tl-list li::before {
  content: ''; width: 5px; height: 5px; background: var(--blue-l);
  border-radius: 50%; flex-shrink: 0; margin-top: .55rem;
}

/* ============ SKILLS ============ */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem;
}
.skill-cat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.75rem; transition: var(--t);
  opacity: 0; transform: translateY(20px);
}
.skill-cat.visible { opacity: 1; transform: translateY(0); }
.skill-cat:hover {
  border-color: var(--border-accent); background: var(--surface-2); box-shadow: var(--glow-card);
}
.skill-cat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1.2rem;
}
.icon-blue   { background: rgba(99,102,241,.15); color: var(--blue-l); }
.icon-purple { background: rgba(168,85,247,.15); color: var(--purple-l); }
.icon-cyan   { background: rgba(34,211,238,.12); color: var(--cyan); }
.icon-green  { background: rgba(74,222,128,.12); color: var(--green); }
.icon-orange { background: rgba(251,146,60,.12); color: #fb923c; }
.skill-cat-title { font-size: .95rem; font-weight: 700; color: var(--t1); margin-bottom: 1.1rem; }
.skill-list { display: flex; flex-direction: column; gap: .75rem; }
.skill-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.skill-name { font-size: .85rem; color: var(--t2); white-space: nowrap; min-width: 80px; }
.skill-bar-wrap {
  flex: 1; height: 4px; background: var(--surface-2);
  border-radius: 4px; overflow: hidden;
}
.skill-bar {
  height: 100%; background: var(--g1); border-radius: 4px;
  width: 0; transition: width 1.3s cubic-bezier(.4, 0, .2, 1);
}
.skill-bar.animated { width: var(--w); }
.skill-pct { font-size: .72rem; font-weight: 600; color: var(--t3); width: 30px; text-align: right; }

/* ============ PROJECTS ============ */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem;
}
.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; transition: var(--t);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(24px);
}
.project-card.visible { opacity: 1; transform: translateY(0); }
.project-card:hover {
  border-color: var(--border-accent); transform: translateY(-7px); box-shadow: var(--glow-card);
}
.project-visual {
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
}
.project-visual::after {
  content: ''; position: absolute; inset: 0;
  background: var(--g1); opacity: 0; transition: var(--t);
}
.project-card:hover .project-visual::after { opacity: .12; }
.project-badge {
  position: absolute; top: 1rem; right: 1rem;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--blue-l); background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.22); border-radius: var(--r-full);
  padding: .28rem .75rem; z-index: 1;
}.formation-logo {
  max-width: 120px; max-height: 120px; object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(99,102,241,.2));
  transition: all .3s ease;
}
.project-card:hover .formation-logo {
  filter: drop-shadow(0 12px 32px rgba(99,102,241,.35));
  transform: scale(1.05);
}.project-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.project-title {
  font-size: 1.1rem; font-weight: 700; color: var(--t1);
  margin-bottom: .55rem; transition: color var(--t-fast);
}
.project-card:hover .project-title { color: var(--blue-l); }
.project-desc { font-size: .875rem; color: var(--t2); line-height: 1.75; margin-bottom: 1.2rem; flex: 1; }
.project-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1.2rem; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.project-links { display: flex; gap: .6rem; }

/* ============ TAGS ============ */
.tag {
  display: inline-block; font-size: .72rem; font-weight: 600;
  padding: .28rem .75rem; border-radius: var(--r-full);
  background: rgba(99,102,241,.08); color: var(--blue-l);
  border: 1px solid rgba(99,102,241,.18); transition: var(--t-fast);
}
.tag:hover { background: rgba(99,102,241,.16); }
.tag.purple { background: rgba(168,85,247,.08); color: var(--purple-l); border-color: rgba(168,85,247,.2); }
.tag.cyan   { background: rgba(34,211,238,.08); color: var(--cyan);     border-color: rgba(34,211,238,.2); }
.tag.green  { background: rgba(74,222,128,.08); color: var(--green);    border-color: rgba(74,222,128,.2); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ============ CONTACT ============ */
.contact-section {
  background: linear-gradient(180deg, transparent, rgba(168,85,247,.025) 40%, transparent);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.45fr; gap: 5rem; align-items: start;
}
.contact-lead { font-size: 1.05rem; color: var(--t2); line-height: 1.85; margin-bottom: 2.5rem; }
.contact-items { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 2.5rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.2rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); transition: var(--t-fast); cursor: default;
  font-size: .9rem; color: var(--t2);
}
.contact-item:hover { border-color: var(--border-accent); background: var(--surface-2); color: var(--t1); }
.contact-item-icon {
  width: 40px; height: 40px; background: var(--g1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .875rem; flex-shrink: 0;
}
.contact-socials { display: flex; gap: .75rem; }
.social-btn {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  color: var(--t2); font-size: 1rem; transition: var(--t);
}
.social-btn:hover {
  background: var(--surface-2); border-color: var(--border-accent);
  color: var(--blue-l); transform: translateY(-3px);
}
.contact-form-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2.5rem;
}
.contact-form-title {
  font-size: 1.2rem; font-weight: 700; color: var(--t1); margin-bottom: 1.75rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--t2); margin-bottom: .5rem;
}
.form-input, .form-textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: .8rem 1rem;
  color: var(--t1); font-size: .9rem; transition: var(--t-fast); outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--t3); }
.form-input:focus, .form-textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-submit {
  width: 100%; padding: .95rem; background: var(--g1); color: #fff;
  font-size: .95rem; font-weight: 700; border-radius: var(--r-full);
  transition: var(--t); box-shadow: var(--glow-b);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(99,102,241,.5); }
.form-success {
  display: none; text-align: center; padding: 2rem;
  color: var(--green); font-weight: 600; font-size: 1rem;
}

/* ============ FOOTER ============ */
footer {
  background: var(--bg-1); border-top: 1px solid var(--border); padding: 3.5rem 0 2rem;
}
.footer-inner {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 3rem; margin-bottom: 3rem;
}
.footer-logo {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700;
  background: var(--g3); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: .7rem;
}
.footer-desc { font-size: .85rem; color: var(--t3); line-height: 1.75; max-width: 260px; margin-bottom: 1.5rem; }
.footer-col-title {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; color: var(--t1); margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: .875rem; color: var(--t3); transition: var(--t-fast); }
.footer-links a:hover { color: var(--blue-l); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: .8rem; color: var(--t3); }
.footer-bottom a { color: var(--blue-l); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .925rem;
  padding: .8rem 1.9rem; border-radius: var(--r-full); transition: var(--t);
  cursor: pointer; border: none; outline: none; line-height: 1; white-space: nowrap;
}
.btn-primary {
  background: var(--g1); color: #fff; box-shadow: 0 4px 20px rgba(99,102,241,.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 35px rgba(99,102,241,.5); }
.btn-ghost {
  background: transparent; color: var(--t1);
  border: 1px solid var(--border); background: var(--surface);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-accent); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--blue-l); border: 1px solid rgba(99,102,241,.35);
}
.btn-outline:hover { background: rgba(99,102,241,.1); transform: translateY(-2px); }

/* small link button */
.link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 600; color: var(--t2);
  padding: .42rem .95rem; border-radius: var(--r-full);
  border: 1px solid var(--border); background: var(--surface); transition: var(--t-fast);
}
.link-btn:hover { color: var(--t1); border-color: var(--border-accent); background: var(--surface-2); }
.link-btn.primary { background: var(--g1); color: #fff; border: none; box-shadow: var(--glow-b); }
.link-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(99,102,241,.4); }

/* ============ AVAILABLE BADGE ============ */
.available-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; color: var(--green);
  background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.25);
  border-radius: var(--r-full); padding: .38rem 1rem;
}
.available-dot {
  width: 8px; height: 8px; background: var(--green);
  border-radius: 50%; animation: pulse-dot 2.2s infinite;
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }
.reveal-d5 { transition-delay: .5s; }

/* ============ DIVIDER ============ */
.section-divider {
  border: none; border-top: 1px solid var(--border);
  margin: 0; opacity: .5;
}

/* ============ KEYFRAMES ============ */
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(35px, -25px) scale(1.04); }
  66%       { transform: translate(-22px, 18px) scale(.96); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(99,102,241,.5); }
  50%       { opacity: .7; transform: scale(1.15); box-shadow: 0 0 0 7px rgba(99,102,241,0); }
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Hero stagger animations */
.hero-badge     { animation: hero-in .6s .15s both; }
.hero-greeting  { animation: hero-in .6s .3s  both; }
.hero-name      { animation: hero-in .8s .45s both; }
.hero-title     { animation: hero-in .6s .65s both; }
.hero-desc      { animation: hero-in .6s .8s  both; }
.hero-actions   { animation: hero-in .6s .95s both; }
.hero-stats     { animation: hero-in .6s 1.1s both; }

/* page hero (pages/*.html) */
.page-hero {
  padding-top: calc(80px + 4rem);
  padding-bottom: 4rem;
  background: var(--g-hero);
  position: relative; overflow: hidden;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; color: var(--blue-l);
  background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.22);
  border-radius: var(--r-full); padding: .4rem 1rem; margin-bottom: 1.2rem;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: .75rem; }
.page-hero p  { font-size: 1.1rem; max-width: 520px; }

/* ============ SCROLL ARROW ============ */
.scroll-arrow {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 3rem 0; pointer-events: none;
}
.scroll-arrow-icon {
  font-size: 2rem; color: var(--blue-l); margin-bottom: .5rem;
  animation: bounce-arrow 2.5s infinite;
  filter: drop-shadow(0 4px 12px rgba(99,102,241,.3));
}
.scroll-arrow-text {
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--t3); animation: pulse-glow 2s infinite;
}
@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(16px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,.6); }
  50% { box-shadow: 0 0 0 10px rgba(99,102,241,0); }
}
/* ============ CAROUSEL ============ */
.carousel-wrapper { margin-top: 3rem; }
.carousel-container {
  position: relative; width: 100%; max-width: 800px; margin: 0 auto;
  overflow: hidden; border-radius: var(--r-lg);
}
.carousel-track {
  display: flex; border-radius: var(--r-lg);
  aspect-ratio: 16/9; background: var(--bg-1);
  border: 1px solid var(--border);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}
.carousel-slide {
  min-width: 100%; flex-shrink: 0; display: flex;
  align-items: center; justify-content: center;
  width: 100%; height: 100%; position: relative;
}
.carousel-slide iframe {
  width: 100% !important; height: 100% !important; border-radius: var(--r-lg);
  display: block; border: none;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; background: rgba(99,102,241,.2);
  border: 1px solid var(--border); border-radius: var(--r);
  color: var(--t1); font-size: 1.2rem; display: flex;
  align-items: center; justify-content: center; transition: all .3s ease;
  z-index: 10;
}
.carousel-btn:hover {
  background: rgba(99,102,241,.4); transform: translateY(-50%) scale(1.1);
}
.carousel-btn-prev { left: 1rem; }
.carousel-btn-next { right: 1rem; }

.carousel-indicators {
  display: flex; justify-content: center; gap: 10px; margin-top: 1.5rem;
}
.indicator {
  width: 10px; height: 10px; background: var(--t3);
  border: none; border-radius: 50%; cursor: pointer;
  transition: all .3s ease; opacity: .5;
}
.indicator.active {
  opacity: 1; background: var(--blue-l); width: 28px; border-radius: var(--r-full);
}

/* ============ SCROLL INDICATOR ============ */
@keyframes scroll-down {
  0% { transform: translateY(-20px); opacity: 0; }
  10% { opacity: .4; }
  50% { opacity: .4; }
  90% { opacity: 0; }
  100% { transform: translateY(40px); opacity: 0; }
}

.scroll-indicator {
  position: fixed; left: 2rem; bottom: 5rem; z-index: 100;
  width: 24px; height: 40px; pointer-events: none;
  opacity: .5; transition: opacity .3s ease;
}

.scroll-indicator:hover {
  opacity: .8;
}

.scroll-indicator svg {
  width: 100%; height: 100%; color: var(--blue-l);
  stroke-width: 1.5; filter: drop-shadow(0 2px 8px rgba(99,102,241,.3));
  animation: scroll-down 2s infinite;
}

@media (max-width: 768px) {
  .scroll-indicator {
    display: none;
  }
}