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

:root {
  --primary: #0F172A;
  --accent-purple: #6D28D9;
  --accent-blue: #0EA5E9;
  --text-light: #64748B;
  --text-dark: #1E293B;
  --white: #FFFFFF;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --bg-light: #F8FAFC;
  --bg-gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  --shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(226, 232, 240, 0.3);
}

.header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.logo svg {
  margin-right: 8px;
  color: var(--accent-purple);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-purple);
}

.nav-link.active {
  color: var(--accent-purple);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--accent-purple);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  line-height: 1;
}

.btn-primary {
  background: var(--bg-gradient);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

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

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

/* Hero Section */
.hero {
  background: var(--bg-gradient);
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="music" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23music)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 20px;
  margin-bottom: 32px;
  opacity: 0.9;
  line-height: 1.5;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero .btn {
  margin: 8px;
  animation: fadeInUp 1s ease 0.4s both;
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 64px;
}

.section-title h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-title p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 32px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Card Styles */
.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.3);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-content {
  padding: 24px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.card-description {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.5;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-light);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.badge-beginner {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.badge-intermediate {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.badge-advanced {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--white);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.5;
}

/* Forms */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(226, 232, 240, 0.5);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: var(--white);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Instructor Profile */
.instructor-card {
  text-align: center;
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.instructor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.instructor-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--accent-purple);
}

.instructor-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.instructor-specialty {
  color: var(--accent-purple);
  font-weight: 500;
  margin-bottom: 16px;
}

.instructor-bio {
  color: var(--text-light);
  line-height: 1.5;
  font-size: 14px;
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 64px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent-purple);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* Course Detail Styles */
.course-hero {
  background: var(--bg-gradient);
  color: var(--white);
  padding: 120px 0 60px;
}

.course-info {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.course-image {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.course-sidebar {
  background: var(--white);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}

.course-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 24px;
}

.course-features {
  list-style: none;
  margin: 24px 0;
}

.course-features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  color: var(--text-dark);
}

.course-features li svg {
  margin-right: 8px;
  color: var(--success);
}

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

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

.fade-in {
  animation: fadeIn 1s ease;
}

.fade-in-up {
  animation: fadeInUp 1s ease;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page Styles */
.page {
  padding-top: 90px;
  min-height: calc(100vh - 90px);
}

.page-header {
  background: var(--bg-light);
  padding: 60px 0;
  text-align: center;
}

.page-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.page-description {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  padding: 60px 0;
}

/* About Page Specific */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-dark);
}

.about-content h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
  margin: 40px 0 16px;
}

.about-content p {
  margin-bottom: 20px;
}

/* Contact Page */
.contact-info {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 16px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-item svg {
  margin-right: 16px;
  color: var(--accent-purple);
}

/* Auth Pages */
.auth-container {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  padding: 40px 0;
}

.auth-form {
  width: 100%;
  max-width: 400px;
}

.auth-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 32px;
}

.auth-link {
  text-align: center;
  margin-top: 24px;
  color: var(--text-light);
}

.auth-link a {
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 500;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 32px 24px;
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .grid {
    gap: 24px;
  }

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

  .course-sidebar {
    position: static;
  }

  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .card-content {
    padding: 20px;
  }

  .form-container {
    padding: 24px;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-purple {
  color: var(--accent-purple);
}

.text-blue {
  color: var(--accent-blue);
}

.bg-light {
  background-color: var(--bg-light);
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden {
  display: none;
}