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

:root {
  --primary: #0a0e27;
  --accent: #4f8ef7;
  --accent2: #a855f7;
  --gold: #f5a623;
  --white: #ffffff;
  --light: #e8edf8;
  --card-bg: rgba(255,255,255,0.05);
  --card-border: rgba(79,142,247,0.25);
  --gradient: linear-gradient(135deg, #0a0e27 0%, #111836 50%, #0d1b3e 100%);
  --glow: 0 0 20px rgba(79,142,247,0.35);
  --font: 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--primary);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== STARS BACKGROUND ===== */
.stars {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(79,142,247,0.04) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(168,85,247,0.04) 0%, transparent 60%);
}
.stars::before, .stars::after {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 45%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 20%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 70%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 35%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 85%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 90%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 75% 5%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 32% 78%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 48% 55%, rgba(255,255,255,0.3) 0%, transparent 100%);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 70px;
  background: rgba(10,14,39,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  height: 60px;
  background: rgba(10,14,39,0.97);
  box-shadow: var(--glow);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
}
.nav-logo img {
  height: 42px; width: auto;
  filter: drop-shadow(0 0 8px rgba(79,142,247,0.5));
  transition: transform 0.3s;
}
.nav-logo img:hover { transform: scale(1.05); }
.nav-logo span {
  font-size: 1.1rem; font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
}
.nav-links a {
  padding: 6px 16px; border-radius: 20px;
  font-size: 0.9rem; font-weight: 500; color: var(--light);
  transition: all 0.25s ease; position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  background: rgba(79,142,247,0.12);
}
.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent2)) !important;
  color: var(--white) !important;
  -webkit-text-fill-color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(79,142,247,0.3);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79,142,247,0.5) !important;
  background: linear-gradient(135deg, var(--accent2), var(--accent)) !important;
}
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block; width: 25px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 100px 5% 60px;
  position: relative; z-index: 1;
}
.hero-content { max-width: 800px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,166,35,0.15); border: 1px solid rgba(245,166,35,0.4);
  color: var(--gold); padding: 6px 16px; border-radius: 30px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.5px;
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease both;
}
.hero-badge .trophy { font-size: 1rem; }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.9s ease 0.1s both;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem; color: rgba(255,255,255,0.72);
  max-width: 580px; margin: 0 auto 40px;
  animation: fadeInUp 0.9s ease 0.2s both;
}
.hero-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 0.9s ease 0.3s both;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 50px;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.3s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(79,142,247,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79,142,247,0.55);
}
.btn-secondary {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-secondary:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(79,142,247,0.08);
  transform: translateY(-2px);
}
.hero-stats {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  margin-top: 70px;
  animation: fadeInUp 0.9s ease 0.4s both;
}
.stat {
  text-align: center;
}
.stat-number {
  font-size: 2.4rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.55); letter-spacing: 1px; text-transform: uppercase; }

/* ===== SECTION BASE ===== */
section { position: relative; z-index: 1; }
.section-inner { max-width: 1100px; margin: 0 auto; padding: 90px 5%; }
.section-tag {
  display: inline-block;
  background: rgba(79,142,247,0.12); border: 1px solid var(--card-border);
  color: var(--accent); padding: 4px 14px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px;
}
.section-subtitle { font-size: 1.05rem; color: rgba(255,255,255,0.62); max-width: 560px; }
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ===== CARDS ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px; padding: 32px;
  transition: all 0.35s ease;
  backdrop-filter: blur(8px);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(79,142,247,0.5);
  box-shadow: var(--glow), 0 20px 40px rgba(0,0,0,0.3);
}
.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(79,142,247,0.2), rgba(168,85,247,0.2));
  border: 1px solid rgba(79,142,247,0.2);
}
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 0.92rem; color: rgba(255,255,255,0.65); line-height: 1.6; }

.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* ===== FOCUS SECTION ===== */
.focus-section { background: linear-gradient(180deg, transparent, rgba(79,142,247,0.04), transparent); }

/* ===== COMPETITIONS ===== */
.competition-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px; padding: 28px 32px;
  display: flex; align-items: center; gap: 20px;
  transition: all 0.35s ease;
  backdrop-filter: blur(8px);
}
.competition-card:hover {
  transform: translateX(6px);
  border-color: rgba(79,142,247,0.5);
  box-shadow: var(--glow);
}
.comp-num {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; min-width: 44px;
}
.comp-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.comp-info p { font-size: 0.88rem; color: rgba(255,255,255,0.58); }
.comp-badge {
  margin-left: auto;
  background: rgba(79,142,247,0.12); border: 1px solid var(--card-border);
  color: var(--accent); padding: 4px 12px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}

/* ===== ACHIEVEMENT BANNER ===== */
.achievement-banner {
  background: linear-gradient(135deg, rgba(245,166,35,0.1), rgba(79,142,247,0.1));
  border: 1px solid rgba(245,166,35,0.35);
  border-radius: 20px; padding: 48px; text-align: center;
  position: relative; overflow: hidden;
  margin: 48px 0;
}
.achievement-banner::before {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(245,166,35,0.05), transparent, rgba(79,142,247,0.05), transparent);
  animation: rotateBg 12s linear infinite;
}
.achievement-banner .trophy-big { font-size: 3.5rem; margin-bottom: 16px; position: relative; z-index: 1; }
.achievement-banner h2 {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800;
  color: var(--gold); margin-bottom: 10px; position: relative; z-index: 1;
}
.achievement-banner p { font-size: 1rem; color: rgba(255,255,255,0.72); position: relative; z-index: 1; max-width: 500px; margin: 0 auto; }

/* ===== JOIN STEPS ===== */
.step-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px; padding: 32px 28px; text-align: center;
  position: relative; transition: all 0.35s ease;
  backdrop-filter: blur(8px);
}
.step-card:hover { transform: translateY(-6px); border-color: rgba(79,142,247,0.5); box-shadow: var(--glow); }
.step-number {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}
.step-icon { font-size: 2.2rem; margin: 16px 0 14px; }
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 0.87rem; color: rgba(255,255,255,0.6); }

/* ===== ABOUT SECTION ===== */
.about-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-placeholder {
  width: 100%; aspect-ratio: 4/5; border-radius: 20px;
  background: linear-gradient(135deg, rgba(79,142,247,0.15), rgba(168,85,247,0.15));
  border: 1px dashed rgba(79,142,247,0.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: rgba(255,255,255,0.4); font-size: 0.9rem; text-align: center;
}
.about-img-placeholder .placeholder-icon { font-size: 3rem; opacity: 0.5; }
.about-img-placeholder p { font-size: 0.82rem; padding: 0 20px; }
.about-founder-img {
  width: 100%; aspect-ratio: 4/5; border-radius: 20px;
  object-fit: cover; object-position: center top;
  display: block;
  box-shadow: 0 8px 40px rgba(79,142,247,0.25);
}
.about-img-badge {
  position: absolute; bottom: -16px; right: -16px;
  background: linear-gradient(135deg, var(--gold), #f97316);
  border-radius: 14px; padding: 14px 20px; text-align: center;
  box-shadow: 0 8px 24px rgba(245,166,35,0.35);
}
.about-img-badge .badge-num { font-size: 1.8rem; font-weight: 800; color: var(--white); line-height: 1; }
.about-img-badge .badge-label { font-size: 0.68rem; color: rgba(255,255,255,0.9); font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.about-content .section-subtitle { margin-bottom: 28px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tag {
  background: rgba(79,142,247,0.1); border: 1px solid var(--card-border);
  color: var(--accent); padding: 6px 14px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600;
}

/* ===== MISSION SECTION ===== */
.mission-section { background: linear-gradient(180deg, transparent, rgba(168,85,247,0.04), transparent); }

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
}
.cta-box {
  background: linear-gradient(135deg, rgba(79,142,247,0.08), rgba(168,85,247,0.08));
  border: 1px solid var(--card-border);
  border-radius: 24px; padding: 72px 40px;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
}
.cta-box h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.cta-box p { color: rgba(255,255,255,0.65); margin-bottom: 36px; font-size: 1.05rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--card-border);
  padding: 40px 5% 30px; text-align: center;
  position: relative; z-index: 1;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 16px;
}
.footer-logo img { height: 36px; filter: drop-shadow(0 0 6px rgba(79,142,247,0.4)); }
.footer-logo span {
  font-weight: 700; font-size: 1rem;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
footer p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-social { margin: 18px 0 4px; }
.footer-fb-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1877f2; color: #fff; font-weight: 600; font-size: 0.85rem;
  padding: 9px 20px; border-radius: 8px; text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.footer-fb-btn:hover { background: #1464d8; transform: translateY(-2px); }
.footer-divider { width: 60px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); margin: 20px auto; border-radius: 2px; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 140px 5% 80px; text-align: center;
  background: linear-gradient(180deg, rgba(79,142,247,0.06) 0%, transparent 100%);
  position: relative; z-index: 1;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 0;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 14px; }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.62); max-width: 560px; margin: 0 auto; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rotateBg {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(79,142,247,0.3); }
  50% { box-shadow: 0 0 25px rgba(79,142,247,0.7); }
}

.float-anim { animation: float 4s ease-in-out infinite; }

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(35px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== VALUES / TIMELINE ===== */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before {
  content: '';
  position: absolute; left: -38px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 8px rgba(79,142,247,0.6);
}
.timeline-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--accent); }
.timeline-item p { font-size: 0.9rem; color: rgba(255,255,255,0.65); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 70px; left: 0; right: 0;
    background: rgba(10,14,39,0.98); border-bottom: 1px solid var(--card-border);
    padding: 16px 5%;
  }
  .hamburger { display: flex; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .competition-card { flex-direction: column; text-align: center; }
  .comp-badge { margin: 8px auto 0; }
  .about-img-badge { right: 0; }
}
