/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Deep Reflection Color Palette */
  --color-primary: hsl(270, 91%, 50%);
  --color-primary-hover: hsl(270, 91%, 60%);
  --color-primary-foreground: hsl(0, 0%, 100%);
  --color-background: hsl(0, 0%, 100%);
  --color-foreground: hsl(240, 10%, 15%);
  --color-muted: hsl(240, 5%, 96%);
  --color-muted-foreground: hsl(240, 4%, 46%);
  --color-accent: hsl(270, 70%, 96%);
  --color-border: hsl(240, 6%, 90%);
  
  /* Shadows */
  --shadow-card: 0 4px 20px -2px hsla(270, 91%, 50%, 0.1);
  --shadow-card-hover: 0 8px 30px -4px hsla(270, 91%, 50%, 0.2);
  --shadow-lg: 0 10px 40px -10px hsla(270, 91%, 50%, 0.3);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-foreground);
  background-color: var(--color-background);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  overflow: hidden;
}

.gradient-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    hsla(270, 91%, 50%, 0.05), 
    hsla(270, 70%, 96%, 0.05), 
    var(--color-background));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

.logo-container {
  margin-bottom: 2rem;
  animation: fadeIn 0.6s ease-out;
}

.logo {
  width: 12rem;
  height: auto;
  margin: 0 auto 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.8s ease-out;
}

.hero-subtitle {
  display: block;
  margin-top: 0.5rem;
  background: linear-gradient(to right, var(--color-primary), var(--color-primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  animation: fadeIn 1s ease-out;
}

.hero-description strong {
  color: var(--color-foreground);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 1.2s ease-out;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: hsla(270, 70%, 96%, 0.5);
  backdrop-filter: blur(8px);
}

.feature-icon {
  padding: 0.75rem;
  border-radius: 9999px;
  background-color: hsla(270, 91%, 50%, 0.1);
  color: var(--color-primary);
}

.feature-card h3 {
  font-weight: 600;
  color: var(--color-foreground);
  font-size: 1rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  text-align: center;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary-foreground);
  background-color: var(--color-primary);
  border: none;
  border-radius: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-lg);
}

.cta-button:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 50px -12px hsla(270, 91%, 50%, 0.4);
}

/* About Section */
.about-section {
  padding: 4rem 1rem;
  background-color: hsla(240, 5%, 96%, 0.3);
}

.about-container {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-foreground);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.125rem;
  color: var(--color-muted-foreground);
  line-height: 1.8;
}

.about-content p strong {
  color: var(--color-foreground);
}

.about-content p strong.text-primary {
  color: var(--color-primary);
}

/* Subjects Section */
.subjects-section {
  padding: 4rem 1rem;
}

.subjects-container {
  max-width: 72rem;
  margin: 0 auto;
}

.subjects-header {
  text-align: center;
  margin-bottom: 3rem;
}

.subjects-subtitle {
  font-size: 1.25rem;
  color: var(--color-muted-foreground);
  max-width: 32rem;
  margin: 0 auto;
}

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

.subject-card {
  display: block;
  text-decoration: none;
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  background-color: var(--color-background);
}

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

.card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-muted);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-foreground);
  transition: color 0.3s ease;
}

.subject-card:hover .card-content h3 {
  color: var(--color-primary);
}

.card-content p {
  color: var(--color-muted-foreground);
  flex: 1;
}

.card-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
  transition: gap 0.3s ease;
}

.subject-card:hover .card-link {
  gap: 0.75rem;
}

.card-link svg {
  transition: transform 0.3s ease;
}

.subject-card:hover .card-link svg {
  transform: translateX(4px);
}

/* CTA Section */
.cta-section {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, 
    hsla(270, 91%, 50%, 0.1), 
    hsla(270, 70%, 96%, 0.1), 
    var(--color-background));
}

.cta-container {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-foreground);
}

.cta-description {
  font-size: 1.25rem;
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.cta-button.primary {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}

.cta-button.secondary:hover {
  background-color: hsla(270, 91%, 50%, 0.1);
}

/* Footer */
.footer {
  padding: 2rem 1rem;
  border-top: 1px solid var(--color-border);
}

.footer-container {
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
  color: var(--color-muted-foreground);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .subjects-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-button {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
