/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --deep-violet: #4B2E83;
  --lavender: #C7B8EA;
  --mist-silver: #E8E8F0;
  --rose-gold: #E6A4A4;
  --white: #FFFFFF;
  
  --font-body: 'Poppins', sans-serif;
  --font-heading: 'Cinzel Decorative', serif;
  
  --shadow-light: 0 2px 10px rgba(75, 46, 131, 0.1);
  --shadow-medium: 0 4px 20px rgba(75, 46, 131, 0.15);
  --shadow-heavy: 0 8px 30px rgba(75, 46, 131, 0.2);
  
  --border-radius: 8px;
  --border-radius-large: 16px;
  
  --transition-fast: all 0.2s ease;
  --transition-smooth: all 0.3s ease;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--deep-violet);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 1rem 0;
  font-weight: 400;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin: 0 0 1rem 0;
  font-weight: 400;
}

/* Layout utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--deep-violet);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-light);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--deep-violet);
}

.nav-logo {
  width: 40px;
  height: 40px;
}

.nav-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--deep-violet);
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rose-gold);
  transition: var(--transition-fast);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--deep-violet);
  margin: 2px 0;
  transition: var(--transition-fast);
}

/* Hero section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(75, 46, 131, 0.8) 0%, 
    rgba(199, 184, 234, 0.6) 50%, 
    rgba(230, 164, 164, 0.7) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 2rem;
}

.hero-title {
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 300;
}

.hero-cta {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

/* Features section */
.features {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--white) 0%, var(--mist-silver) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  color: var(--deep-violet);
  margin-bottom: 1rem;
}

.feature-card p {
  color: #666;
  margin: 0;
}

/* About preview section */
.about-preview {
  padding: 6rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  color: var(--deep-violet);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: #666;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.about-image {
  border-radius: var(--border-radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Classes preview */
.classes-preview {
  padding: 6rem 0;
  background: var(--mist-silver);
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.class-card {
  background: var(--white);
  border-radius: var(--border-radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
}

.class-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.class-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.class-content {
  padding: 1.5rem;
}

.class-content h3 {
  color: var(--deep-violet);
  margin-bottom: 1rem;
}

.class-content p {
  color: #666;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  line-height: 1;
}

.btn-primary {
  background: var(--rose-gold);
  color: var(--white);
}

.btn-primary:hover {
  background: #d49494;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: transparent;
  color: var(--deep-violet);
  border: 2px solid var(--lavender);
}

.btn-secondary:hover {
  background: var(--lavender);
  color: var(--white);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Footer */
.footer {
  background: var(--deep-violet);
  color: var(--white);
  padding: 3rem 0 1rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer-section h3,
.footer-section h4 {
  color: var(--lavender);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-section ul li a:hover {
  color: var(--rose-gold);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: inline-block;
  font-size: 1.5rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-links a:hover {
  transform: scale(1.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: var(--lavender);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--rose-gold);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--deep-violet);
  color: var(--white);
  padding: 1rem;
  z-index: 1000;
  transform: translateY(100%);
  transition: var(--transition-smooth);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-medium);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .classes-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --deep-violet: #2D1B56;
    --rose-gold: #C28888;
  }
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--rose-gold);
  outline-offset: 2px;
}

.btn:focus {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}