/* ===== ACADEMYX – STYLE.CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg:        #080c14;
  --bg2:       #0d1220;
  --bg3:       #111828;
  --blue:      #3b82f6;
  --blue-dark: #2563eb;
  --blue-glow: rgba(59,130,246,0.15);
  --text:      #e8eef8;
  --muted:     #6b7a9a;
  --border:    rgba(59,130,246,0.12);
  --radius:    12px;
  --ff-head:   'Space Grotesk', sans-serif;
  --ff:        'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,12,20,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.logo {
  font-family: var(--ff-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--blue); }

.btn-nav {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 9px 22px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}
.btn-nav:hover { background: var(--blue-dark) !important; color: #fff !important; }

.hamburger {
  display: none;
  background: none; border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg2);
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.mobile-menu.open { display: flex; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute;
  top: 20%;
  right: 0;
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  max-width: 780px;
}
.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.tag {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.hero h1 {
  font-family: var(--ff-head);
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero h1 span { color: var(--blue); }

.hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 40px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: var(--ff);
  transition: all var(--transition);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59,130,246,0.3);
}
.btn-large { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: rgba(59,130,246,0.2);
  border-radius: 50%;
  font-size: 0.7rem;
}

.hero-numbers {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.number-item strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}
.number-item span {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

/* ── SECTION COMMONS ── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-header h2 span { color: var(--blue); }

/* ── COURSES ── */
.courses { padding: 100px 0; }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.course-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59,130,246,0.3);
  box-shadow: 0 20px 48px rgba(59,130,246,0.08);
}
.course-visual {
  position: relative;
  height: 180px;
  display: flex;
  align-items: flex-start;
  padding: 16px;
}
.cat-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cat-web       { background: rgba(59,130,246,0.9);  color: #fff; }
.cat-marketing { background: rgba(16,185,129,0.9);  color: #fff; }
.cat-design    { background: rgba(139,92,246,0.9);  color: #fff; }
.cat-video     { background: rgba(245,158,11,0.9);  color: #000; }
.cat-data      { background: rgba(20,184,166,0.9);  color: #fff; }
.cat-lang      { background: rgba(239,68,68,0.9);   color: #fff; }

.course-body { padding: 22px; }
.course-body h3 {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.course-body p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.course-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.course-price {
  font-family: var(--ff-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
}
.enroll-btn {
  background: transparent;
  border: 1px solid rgba(59,130,246,0.4);
  color: var(--blue);
  padding: 8px 18px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
}
.enroll-btn:hover { background: var(--blue); color: #fff; }

/* ── SCHEDULE ── */
.schedule {
  padding: 100px 0;
  background: var(--bg2);
}
.table-wrapper { overflow-x: auto; }
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.schedule-table th {
  padding: 14px 16px;
  font-family: var(--ff-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.schedule-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--muted);
  font-size: 0.85rem;
}
.lesson {
  display: block;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}
.lesson small { font-weight: 400; font-size: 0.72rem; }
.lesson-web       { background: rgba(59,130,246,0.12); color: #93c5fd; }
.lesson-marketing { background: rgba(16,185,129,0.12); color: #6ee7b7; }
.lesson-design    { background: rgba(139,92,246,0.12); color: #c4b5fd; }
.lesson-video     { background: rgba(245,158,11,0.12); color: #fcd34d; }
.lesson-data      { background: rgba(20,184,166,0.12); color: #5eead4; }
.lesson-lang      { background: rgba(239,68,68,0.12);  color: #fca5a5; }

/* ── TRAINERS ── */
.trainers { padding: 100px 0; }
.trainers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.trainer-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition);
}
.trainer-card:hover {
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-4px);
}
.trainer-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
}
.trainer-card h3 {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.trainer-role {
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 12px;
}
.trainer-bio {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── CTA BANNER ── */
.cta-banner {
  padding: 100px 0;
  background:
    radial-gradient(ellipse 80% 100% at 50% 100%, rgba(59,130,246,0.12) 0%, transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-text .section-label { text-align: left; }
.cta-text h2 {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
}
.cta-text h2 span { color: var(--blue); }
.cta-text p { color: var(--muted); font-size: 1rem; }

/* ── REGISTRATION ── */
.registration { padding: 100px 0; }
.reg-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.reg-info .section-label { text-align: left; }
.reg-info h2 {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 20px;
}
.reg-info h2 span { color: var(--blue); }
.reg-info > p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
  line-height: 1.8;
}
.features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-item {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
}

.reg-form {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group select {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--ff);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.form-group select option { background: var(--bg3); }
.form-success {
  display: none;
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.3);
  color: #34d399;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 48px 24px 36px;
}
.footer-inner > div:first-child p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 8px;
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--blue); }
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--blue); color: var(--blue); }
.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .trainers-grid { grid-template-columns: 1fr 1fr; }
  .reg-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .courses-grid { grid-template-columns: 1fr; }
  .trainers-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; }
  .hero-numbers { gap: 24px; }
}
