/* ===== 24HG Academy - style.css ===== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Share+Tech+Mono&display=swap');

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:       #0a0a0c;
  --bg-card:  #111115;
  --bg-card2: #16161b;
  --cyan:     #00e5ff;
  --magenta:  #e040fb;
  --white:    #eaeaea;
  --muted:    #8a8a9a;
  --border:   #1e1e26;
  --radius:   14px;
  --glow-c:   rgba(0, 229, 255, .35);
  --glow-m:   rgba(224, 64, 251, .3);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--magenta); }

.mono { font-family: 'Share Tech Mono', monospace; }

/* ---------- Utilities ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: .8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all .3s ease;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #00b8d4);
  color: var(--bg);
  box-shadow: 0 4px 24px var(--glow-c);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow-c);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  backdrop-filter: blur(16px);
  background: rgba(10, 10, 12, .75);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.navbar.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}
.nav-brand svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta { display: flex; gap: 12px; align-items: center; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 229, 255, .12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 30% 60%, rgba(224, 64, 251, .08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(0, 229, 255, .06) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: .7; transform: scale(1.05); }
}

/* Grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
}

/* Floating icons */
.floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.float-icon {
  position: absolute;
  font-size: 2rem;
  opacity: .15;
  animation: floatIcon 6s ease-in-out infinite;
}
.float-icon:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.float-icon:nth-child(2) { top: 25%; right: 12%; animation-delay: 1.5s; font-size: 2.5rem; }
.float-icon:nth-child(3) { bottom: 30%; left: 8%; animation-delay: 3s; }
.float-icon:nth-child(4) { top: 60%; right: 8%; animation-delay: 2s; font-size: 1.8rem; }
.float-icon:nth-child(5) { top: 10%; left: 45%; animation-delay: 4s; }
.float-icon:nth-child(6) { bottom: 15%; right: 25%; animation-delay: 1s; font-size: 2.2rem; }
.float-icon:nth-child(7) { bottom: 20%; left: 30%; animation-delay: 5s; }
.float-icon:nth-child(8) { top: 35%; left: 25%; animation-delay: 3.5s; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-20px) rotate(8deg); }
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, .08);
  border: 1px solid rgba(0, 229, 255, .2);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 28px;
  animation: fadeUp .8s ease-out;
}
.hero-badge .pulse-dot {
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.7); }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  animation: fadeUp .8s ease-out .15s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeUp .8s ease-out .3s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .8s ease-out .45s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-hint svg { color: var(--muted); }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* ---------- Features ---------- */
.features { padding: 100px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all .35s ease;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
  border-color: rgba(0, 229, 255, .25);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .4), 0 0 30px var(--glow-c);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: rgba(0, 229, 255, .08);
  border: 1px solid rgba(0, 229, 255, .15);
  transition: all .3s;
}
.feature-card:hover .feature-icon {
  background: rgba(0, 229, 255, .14);
  box-shadow: 0 0 20px var(--glow-c);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}

.feature-tag {
  display: inline-block;
  margin-top: 16px;
  font-family: 'Share Tech Mono', monospace;
  font-size: .75rem;
  color: var(--cyan);
  background: rgba(0, 229, 255, .06);
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid rgba(0, 229, 255, .12);
}

/* ---------- Courses ---------- */
.courses { padding: 100px 0; }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .35s ease;
}
.course-card:hover {
  border-color: rgba(224, 64, 251, .25);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .4), 0 0 24px var(--glow-m);
}

.course-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.course-thumb-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.course-thumb-bg.fps {
  background: linear-gradient(135deg, #0a1628, #0d2847);
}
.course-thumb-bg.strategy {
  background: linear-gradient(135deg, #1a0a28, #2d0d47);
}
.course-thumb-bg.admin {
  background: linear-gradient(135deg, #0a2818, #0d4723);
}

.course-level {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: 'Share Tech Mono', monospace;
  font-size: .7rem;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.course-level.beginner {
  background: rgba(0, 229, 255, .15);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, .25);
}
.course-level.intermediate {
  background: rgba(224, 64, 251, .15);
  color: var(--magenta);
  border: 1px solid rgba(224, 64, 251, .25);
}
.course-level.advanced {
  background: rgba(255, 171, 0, .15);
  color: #ffab00;
  border: 1px solid rgba(255, 171, 0, .25);
}

.course-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 12, .5);
  opacity: 0;
  transition: opacity .3s;
}
.course-card:hover .course-play { opacity: 1; }

.play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-size: 1.4rem;
  box-shadow: 0 4px 24px var(--glow-c);
  transition: transform .2s;
}
.play-btn:hover { transform: scale(1.1); }

.course-info { padding: 24px; }

.course-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: .82rem;
  color: var(--muted);
}
.course-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.course-card > .course-info > p {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 16px;
}

.course-progress {
  background: var(--border);
  border-radius: 4px;
  height: 4px;
  overflow: hidden;
}
.course-progress-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  width: 0%;
  transition: width 1.2s ease-out;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: .82rem;
  color: var(--muted);
}

.course-price {
  font-weight: 700;
  color: var(--cyan);
  font-size: 1rem;
}

/* ---------- Stats ---------- */
.stats {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 50% 80% at 20% 50%, rgba(0, 229, 255, .04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(224, 64, 251, .04) 0%, transparent 60%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 24px;
}

.stat-number {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: .85rem;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- CTA ---------- */
.cta {
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.cta-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 72px 40px;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta), var(--cyan));
  background-size: 200% 200%;
  animation: borderShift 4s ease-in-out infinite;
  z-index: -1;
  padding: 1px;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
}

@keyframes borderShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-box p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  color: var(--muted);
  font-size: .88rem;
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--muted);
}

.footer-socials {
  display: flex;
  gap: 16px;
}
.footer-socials a {
  color: var(--muted);
  font-size: 1.1rem;
  transition: color .2s, transform .2s;
}
.footer-socials a:hover {
  color: var(--cyan);
  transform: translateY(-2px);
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children .reveal { transition-delay: calc(var(--i, 0) * 100ms); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-secondary { display: none; }
  .hamburger { display: block; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .features-grid, .courses-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cta-box { padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ---------- Misc ---------- */
::selection {
  background: rgba(0, 229, 255, .25);
  color: var(--white);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #2a2a35; }
