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

:root {
  /* Colors */
  --primary: #0a192f;
  --secondary: #1e3a8a;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.5);
  --gold: #f59e0b;
  --light: #f8fafc;
  --dark: #0f172a;
  --text-main: #334155;
  --text-muted: #64748b;
  --white: #ffffff;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 5%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a {
  color: var(--primary);
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-normal);
}

.logo-dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 16px;
  position: relative;
  transition: var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition-normal);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
  background: #2563eb;
}

.btn-primary::after {
  display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  background: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(10, 25, 47, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 650px;
  color: var(--white);
  animation: fadeUp 1s ease forwards;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
}

.hero h1 {
  font-size: 64px;
  color: var(--white);
  margin-bottom: 20px;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--accent), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

.btn-outline {
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  color: var(--white);
  border: 1px solid var(--white);
  transition: var(--transition-normal);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* Glass Card in Hero */
.hero-glass-card {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
  padding: 40px;
  width: 380px;
  z-index: 10;
  animation: fadeInRight 1s ease 0.3s forwards;
  opacity: 0;
}

.hero-glass-card h3 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 10px;
}

.hero-glass-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-bottom: 24px;
}

.glass-form .input-group {
  margin-bottom: 15px;
}

.glass-form input,
.glass-form select {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: var(--transition-fast);
}

.glass-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.glass-form input:focus,
.glass-form select:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.glass-form select option {
  color: var(--dark);
}

.btn-block {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: var(--transition-normal);
}

.btn-block:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats {
  padding: 80px 5%;
  background: var(--white);
  position: relative;
  margin-top: -50px;
  z-index: 20;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.stat-item {
  text-align: center;
}

.stat-item h2 {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 5px;
}

.stat-item p {
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

/* ==========================================================================
   Courses Section
   ========================================================================== */
.courses {
  padding: 100px 5%;
  background: var(--light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 40px;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.course-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: var(--transition-normal);
  position: relative;
  group: hover;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.course-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.course-card:hover .course-img {
  transform: scale(1.05);
}

.course-img-wrapper {
  overflow: hidden;
  position: relative;
}

.course-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--white);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.course-content {
  padding: 30px;
}

.course-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
  transition: var(--transition-fast);
}

.course-card:hover h3 {
  color: var(--accent);
}

.course-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--text-muted);
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.course-content p {
  margin-bottom: 25px;
  color: var(--text-muted);
  font-size: 15px;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.course-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.course-link {
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.course-link i {
  transition: var(--transition-fast);
}

.course-card:hover .course-link i {
  transform: translateX(5px);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
  padding: 100px 5%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  text-align: center;
  color: var(--white);
}

.cta h2 {
  color: var(--white);
  font-size: 40px;
  margin-bottom: 20px;
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 40px;
}

.cta .btn-primary {
  background: var(--white);
  color: var(--primary) !important;
  font-size: 18px;
  padding: 14px 32px;
}

.cta .btn-primary:hover {
  background: #f1f5f9;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 80px 5% 30px;
}

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

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  margin-bottom: 25px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 25px;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-fast);
}

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

.newsletter .input-group {
  display: flex;
  margin-top: 15px;
}

.newsletter input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border-radius: 8px 0 0 8px;
  outline: none;
}

.newsletter button {
  padding: 12px 20px;
  border: none;
  background: var(--accent);
  color: var(--white);
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-fast);
}

.newsletter button:hover {
  background: #2563eb;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translate(50px, -50%); }
  to { opacity: 1; transform: translate(0, -50%); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-glass-card {
    display: none;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }
  .hero-btns {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Add hamburger menu in real implementation */
  }
  .hero h1 {
    font-size: 48px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
