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

:root {
  --bg: #020209;
  --p1: #7f5af0;
  --p2: #2cb67d;
  --p3: #ff6b6b;
  --gold: #ffd700;
  --text: #fffffe;
  --muted: #94a1b2;
  --glass: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

/* ========== CANVAS ========== */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ========== PROGRESS ========== */
.progress-bar {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--p1), var(--p2), var(--p3));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--p1);
}

/* ========== CURSOR ========== */
.cursor {
  width: 8px; height: 8px;
  background: var(--p1);
  border-radius: 50%;
  position: fixed; z-index: 9998;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.08s;
  box-shadow: 0 0 12px var(--p1);
}
.cursor-trail {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(127,90,240,0.5);
  border-radius: 50%;
  position: fixed; z-index: 9997;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: all 0.18s ease;
}
body:hover .cursor { opacity: 1; }

/* ========== NAV ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 64px;
  z-index: 1000;
  transition: all 0.4s;
}
.nav.scrolled {
  background: rgba(2,2,9,0.85);
  backdrop-filter: blur(24px);
  padding: 16px 64px;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem; font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 1px;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--p1);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-menu {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer; z-index: 1001;
}
.nav-menu span {
  width: 26px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}
.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: rgba(2,2,9,0.97);
  backdrop-filter: blur(30px);
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 36px; z-index: 999;
}
.mobile-nav.open { display: flex; }
.mob-link {
  font-family: 'Syne', sans-serif;
  font-size: 2rem; font-weight: 700;
  color: var(--text); text-decoration: none;
  transition: all 0.3s;
}
.mob-link:hover { color: var(--p1); }

/* ========== SECTIONS ========== */
.section {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 80px;
  overflow: hidden;
}

/* ========== GRADIENT TEXTS ========== */
.gradient-text {
  background: linear-gradient(135deg, var(--p1), var(--p2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text2 {
  background: linear-gradient(135deg, var(--p3), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== BIG NUMBER ========== */
.big-number {
  font-family: 'Syne', sans-serif;
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.06);
  position: absolute;
  top: 80px; right: 60px;
  user-select: none;
  pointer-events: none;
}

/* ========== SECTION 1 — HERO ========== */
.s1 { justify-content: center; text-align: center; flex-direction: column; }
.tag-line {
  font-size: 0.85rem; letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--p2); font-weight: 600;
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800; line-height: 1.05;
  margin-bottom: 28px;
}
.hero-title .line { display: block; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--muted); max-width: 600px;
  margin: 0 auto 48px; line-height: 1.8;
}
.hero-cta { display: flex; justify-content: center; }

/* CTA BUTTON */
.cta-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--p1), #5a3fd5);
  color: white; text-decoration: none;
  border: none; border-radius: 60px;
  font-size: 1rem; font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  position: relative; overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 8px 40px rgba(127,90,240,0.4);
}
.cta-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, #9f7ff5, var(--p1));
  opacity: 0; transition: opacity 0.3s;
}
.cta-btn:hover { transform: translateY(-4px); box-shadow: 0 16px 50px rgba(127,90,240,0.6); }
.cta-btn:hover::before { opacity: 1; }
.cta-btn span, .cta-btn > span { position: relative; z-index: 1; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transition: transform 0.3s;
  font-size: 1rem;
}
.cta-btn:hover .btn-icon { transform: translateY(3px); }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  color: var(--muted); font-size: 0.7rem;
  letter-spacing: 3px;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--p1), transparent);
  animation: line-pulse 2s ease-in-out infinite;
}
@keyframes line-pulse { 0%,100%{opacity:0.3; height:40px} 50%{opacity:1; height:70px} }

/* ========== SECTION 2 — WORLD ========== */
.s2 { gap: 80px; }
.s2-left { flex: 1; }
.s2-left h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 24px;
}
.s2-left p {
  color: var(--muted); line-height: 1.9;
  font-size: 1.05rem; max-width: 480px;
  margin-bottom: 40px;
}
.stats-row { display: flex; gap: 32px; }
.stat-box {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 24px;
  text-align: center; backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.stat-box:hover { border-color: var(--p1); transform: translateY(-4px); }
.snum {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem; font-weight: 800;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-box > span:last-of-type { color: var(--p1); font-weight: 700; font-size: 1.2rem; }
.stat-box p { color: var(--muted); font-size: 0.8rem; margin-top: 4px; }

.s2-right {
  flex: 1;
  display: flex; flex-direction: column; gap: 20px;
}
.planet-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 20px 28px;
  backdrop-filter: blur(20px);
  transition: all 0.4s;
  animation-delay: var(--d, 0s);
}
.planet-card:hover {
  border-color: rgba(127,90,240,0.4);
  transform: translateX(12px);
  box-shadow: -6px 0 30px rgba(127,90,240,0.2);
}
.planet {
  width: 70px; height: 70px; border-radius: 50%;
  flex-shrink: 0;
  animation: planet-spin 6s linear infinite;
}
@keyframes planet-spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
.p1 {
  background: radial-gradient(circle at 35% 35%, #4fc3f7, #0277bd, #01579b);
  box-shadow: 0 0 30px rgba(79,195,247,0.5), inset -10px -5px 20px rgba(0,0,0,0.4);
}
.p2 {
  background: radial-gradient(circle at 35% 35%, #ef9a9a, #c62828, #8b0000);
  box-shadow: 0 0 30px rgba(239,154,154,0.4), inset -10px -5px 20px rgba(0,0,0,0.4);
}
.p3 {
  background: radial-gradient(circle at 35% 35%, #ffe082, #f9a825, #e65100);
  box-shadow: 0 0 40px rgba(255,224,130,0.5), inset -10px -5px 20px rgba(0,0,0,0.3);
  position: relative;
}
.p3::after {
  content: '';
  position: absolute; top: 50%; left: -12px;
  width: 94px; height: 20px;
  border-radius: 50%;
  border: 3px solid rgba(255,224,130,0.5);
  transform: translateY(-50%) rotateX(70deg);
}
.planet-info strong { display: block; font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.planet-info span { color: var(--muted); font-size: 0.9rem; }

/* ========== SECTION 3 — TECH ========== */
.s3 { flex-direction: column; }
.s3-center { text-align: center; margin-bottom: 64px; }
.s3-center h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800; margin-bottom: 16px;
}
.s3-center p { color: var(--muted); font-size: 1.05rem; }
.tech-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; width: 100%;
}
.tech-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 32px;
  backdrop-filter: blur(20px);
  transition: all 0.4s;
  position: relative; overflow: hidden;
  animation-delay: var(--d, 0s);
}
.tech-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--p1), var(--p2));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s;
}
.tech-card:hover::before { transform: scaleX(1); }
.tech-card:hover {
  border-color: rgba(127,90,240,0.3);
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.tech-icon-3d {
  font-size: 2.5rem; margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(127,90,240,0.5));
  transition: transform 0.3s;
}
.tech-card:hover .tech-icon-3d { transform: scale(1.2) rotate(5deg); }
.tech-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 10px;
}
.tech-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.tech-bar {
  height: 4px; background: rgba(255,255,255,0.06);
  border-radius: 4px; overflow: hidden;
}
.tech-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--p1), var(--p2));
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}
.tech-fill.animated { width: var(--w); }
.tech-pct {
  display: block; text-align: right;
  font-size: 0.8rem; color: var(--p1);
  font-weight: 700; margin-top: 6px;
}

/* ========== SECTION 4 — TIMELINE ========== */
.s4 { justify-content: center; }
.s4-content { width: 100%; max-width: 900px; margin: 0 auto; }
.s4-content > h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800; margin-bottom: 60px;
  text-align: center;
}
.timeline {
  position: relative;
  padding-left: 0;
}
.timeline::before {
  content: '';
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--p1), var(--p2), transparent);
  transform: translateX(-50%);
}
.tl-item {
  display: flex; align-items: center;
  margin-bottom: 48px;
  position: relative;
}
.tl-item:nth-child(odd) { flex-direction: row; }
.tl-item:nth-child(even) { flex-direction: row-reverse; }
.tl-year {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem; font-weight: 800;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  width: 50%; padding: 0 48px;
  text-align: center;
}
.tl-card {
  width: 50%; padding: 24px 28px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  transition: all 0.3s;
}
.tl-card:hover { border-color: var(--p1); transform: scale(1.02); }
.tl-card h4 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem; font-weight: 700; margin-bottom: 8px;
  color: var(--p2);
}
.tl-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* ========== SECTION 5 — CONTACT ========== */
.s5 { flex-direction: column; }
.s5-content { text-align: center; width: 100%; max-width: 800px; margin: 0 auto; }
.s5-content > h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800; margin-bottom: 16px;
}
.s5-content > p { color: var(--muted); margin-bottom: 48px; font-size: 1.05rem; }
.contact-orbs {
  display: flex; gap: 24px;
  justify-content: center; margin-bottom: 56px;
  flex-wrap: wrap;
}
.orb-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 28px 36px;
  backdrop-filter: blur(20px);
  text-align: center;
  transition: all 0.4s;
  animation-delay: var(--d, 0s);
}
.orb-card:hover { border-color: var(--p1); transform: translateY(-8px); }
.orb {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 12px;
  animation: orb-float 3s ease-in-out infinite;
}
.orb-1 { background: radial-gradient(135deg, #7f5af0, #5a3fd5); box-shadow: 0 8px 30px rgba(127,90,240,0.4); }
.orb-2 { background: radial-gradient(135deg, #2cb67d, #1a8a5a); box-shadow: 0 8px 30px rgba(44,182,125,0.4); animation-delay: 0.5s; }
.orb-3 { background: radial-gradient(135deg, #ff6b6b, #cc4444); box-shadow: 0 8px 30px rgba(255,107,107,0.4); animation-delay: 1s; }
@keyframes orb-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.orb-card span { font-size: 0.8rem; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.orb-card p { font-weight: 600; margin-top: 4px; }

.s5-form { text-align: left; }
.s5-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.s5-form input, .s5-form textarea {
  width: 100%; padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 0.95rem;
  outline: none; transition: all 0.3s;
  margin-bottom: 16px;
}
.s5-form input:focus, .s5-form textarea:focus {
  border-color: var(--p1);
  background: rgba(127,90,240,0.06);
  box-shadow: 0 0 0 3px rgba(127,90,240,0.15);
}
.s5-form textarea { resize: vertical; }
.s5-form .cta-btn { width: 100%; justify-content: center; }
.s5-success {
  display: none; margin-top: 16px;
  padding: 14px; border-radius: 12px;
  background: rgba(44,182,125,0.1);
  border: 1px solid var(--p2);
  color: var(--p2); text-align: center;
  font-weight: 600;
}

/* ========== FOOTER ========== */
.footer {
  position: relative; z-index: 1;
  text-align: center; padding: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.9rem;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal, .reveal-left, .reveal-right, .reveal-up {
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.4,0,0.2,1);
}
.reveal { transform: translateY(50px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-up { transform: translateY(60px); transition-delay: var(--d, 0s); }

.reveal.visible, .reveal-left.visible, .reveal-right.visible, .reveal-up.visible {
  opacity: 1; transform: translate(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .section { padding: 100px 48px; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { padding: 20px 40px; }
  .nav.scrolled { padding: 14px 40px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu { display: flex; }
  .nav { padding: 18px 24px; }
  .section { padding: 90px 24px; }
  .s2 { flex-direction: column; }
  .tech-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 24px; }
  .tl-item, .tl-item:nth-child(even) { flex-direction: column; align-items: flex-start; padding-left: 60px; }
  .tl-year { width: auto; padding: 0; text-align: left; margin-bottom: 8px; }
  .tl-card { width: 100%; }
  .s5-fields { grid-template-columns: 1fr; }
  .big-number { font-size: 5rem; right: 20px; }
  .contact-orbs { flex-direction: column; align-items: center; }
}
