/* ========================================
   RootDev - Global Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syne:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* CSS Variables */
:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: #1c2333;
  --bg-card-hover: #21293a;
  --accent-yellow: #f0b429;
  --accent-yellow-dark: #d4a017;
  --accent-yellow-light: #ffd166;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #656d76;
  --border-color: #30363d;
  --border-accent: #f0b429;
  --success: #3fb950;
  --danger: #f85149;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(240,180,41,0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

a {
  color: var(--accent-yellow);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-yellow-light);
}

p {
  color: var(--text-secondary);
  line-height: 1.8;
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

/* ========================================
   Layout Utilities
   ======================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

.text-center { text-align: center; }
.text-yellow { color: var(--accent-yellow); }
.text-muted { color: var(--text-muted); }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--accent-yellow);
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 60px;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--accent-yellow);
  color: #0d1117;
}

.btn-primary:hover {
  background: var(--accent-yellow-light);
  color: #0d1117;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,180,41,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent-yellow);
  border: 1.5px solid var(--accent-yellow);
}

.btn-outline:hover {
  background: var(--accent-yellow);
  color: #0d1117;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(13, 17, 23, 0.98);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo span {
  color: var(--accent-yellow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-yellow);
  background: rgba(240,180,41,0.08);
}

.nav-cta {
  background: var(--accent-yellow);
  color: #0d1117 !important;
  font-weight: 700;
  padding: 9px 20px;
}

.nav-cta:hover {
  background: var(--accent-yellow-light);
  color: #0d1117 !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   Cards
   ======================================== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-yellow), var(--accent-yellow-light));
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(240,180,41,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card:hover::before {
  opacity: 1;
}

/* ========================================
   Course Cards
   ======================================== */

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-yellow), var(--accent-yellow-light));
  opacity: 0;
  transition: var(--transition);
}

.course-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(240,180,41,0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.course-card:hover::before {
  opacity: 1;
}

.course-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(240,180,41,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.course-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.course-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.course-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.price-original {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-badge {
  font-size: 0.75rem;
  background: rgba(240,180,41,0.12);
  color: var(--accent-yellow);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(240,180,41,0.2);
}

.price-current {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-yellow);
  font-family: var(--font-mono);
  display: block;
  margin-bottom: 16px;
}

.course-link {
  color: var(--accent-yellow);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
  font-family: var(--font-display);
}

.course-link:hover {
  color: var(--accent-yellow-light);
  gap: 10px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.875rem;
  max-width: 280px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-yellow);
  margin-bottom: 20px;
  font-family: var(--font-display);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-yellow);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-contact-item a {
  color: var(--text-secondary);
}

.footer-contact-item a:hover {
  color: var(--accent-yellow);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: var(--accent-yellow);
}

/* ========================================
   Badge / Tag
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  background: rgba(240,180,41,0.1);
  color: var(--accent-yellow);
  border: 1px solid rgba(240,180,41,0.2);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(240,180,41,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240,180,41,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,180,41,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* ========================================
   Page Header (for inner pages)
   ======================================== */

.page-header {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(240,180,41,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-header-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--accent-yellow);
  margin-bottom: 16px;
}

.page-header-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Stats Strip
   ======================================== */

.stats-strip {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-yellow);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.98);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 70px 0;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(240,180,41,0.2); }
  50% { box-shadow: 0 0 40px rgba(240,180,41,0.4); }
}

.animate-fade-up {
  animation: fadeInUp 0.7s ease forwards;
}

.animate-fade {
  animation: fadeIn 0.7s ease forwards;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Breadcrumb
   ======================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-yellow);
}

.breadcrumb span {
  color: var(--text-muted);
}

/* Divider */
.divider {
  width: 60px;
  height: 3px;
  background: var(--accent-yellow);
  border-radius: 2px;
  margin: 20px auto;
}

/* ========================================
   Floating Action Buttons (WhatsApp + Call)
   ======================================== */

.fab-container {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.fab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  overflow: hidden;
  max-width: 180px;
}

.fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  max-width: 200px;
}

.fab svg {
  flex-shrink: 0;
}

.fab-label {
  font-size: 0.85rem;
  letter-spacing: 0.2px;
}

/* WhatsApp - green */
.fab-whatsapp {
  background: #25D366;
  color: #fff;
}

.fab-whatsapp:hover {
  background: #1ebe5d;
  color: #fff;
}

/* Call - yellow brand */
.fab-call {
  background: var(--accent-yellow);
  color: #0d1117;
}

.fab-call:hover {
  background: var(--accent-yellow-light);
  color: #0d1117;
}

/* Pulse animation on WhatsApp button */
@keyframes fab-pulse {
  0%   { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.35); }
  70%  { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0); }
}

.fab-whatsapp {
  animation: fab-pulse 2.5s ease-out infinite;
}

.fab-whatsapp:hover {
  animation: none;
}

/* Mobile — icon only, both visible */
@media (max-width: 640px) {
  .fab-container {
    bottom: 20px;
    right: 16px;
    gap: 10px;
  }

  .fab {
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    max-width: 54px;
  }

  .fab:hover {
    max-width: 54px;
    transform: translateY(-3px) scale(1.06);
  }

  .fab-label {
    display: none;
  }
}

/* Also hide label on very narrow screens */
@media (max-width: 380px) {
  .fab-container {
    right: 12px;
    bottom: 16px;
  }
}
