/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
}

/* Color variables */
:root {
  --primary: #306bac;
  --primary-hover: #2558a0;
  --light-blue: #98b9f2;
  --purple-blue: #918ef4;
  --dark-navy: #141b41;
  --blue-50: #eff6ff;
  --indigo-50: #eef2ff;
  --blue-100: #dbeafe;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
}

/* Layout containers */
.page-container {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--indigo-50) 100%);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-small {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blue-100);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: transform 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
  position: relative;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  height: 2.5rem;
  width: auto;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--gray-900);
}

/* Added mobile menu toggle button styles */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.mobile-menu-toggle span {
  width: 2rem;
  height: 0.25rem;
  background: var(--gray-700);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.mobile-menu-toggle.open span:first-child {
  transform: rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.mobile-menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.nav {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Added mobile navigation menu styles */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blue-100);
  padding: 1rem;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.mobile-nav-link {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--blue-100);
  transition: color 0.2s;
}

.mobile-nav-link:hover {
  color: var(--primary);
}

.mobile-nav-link:last-of-type {
  border-bottom: none;
}

.mobile-cta {
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */
.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

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

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

.btn-large {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* Hide desktop CTA button on mobile */
@media (max-width: 767px) {
  .header .btn-primary:not(.mobile-cta) {
    display: none;
  }
}

/* Hero Section */
.hero {
  position: relative;
  padding: 3rem 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 0;
  }
}

.decorative-circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.circle {
  position: absolute;
  border-radius: 50%;
}

/* Made decorative circles responsive */
.circle-1 {
  top: 3rem;
  right: 2rem;
  width: 4rem;
  height: 4rem;
  background-color: var(--light-blue);
  opacity: 0.6;
}

@media (min-width: 768px) {
  .circle-1 {
    top: 5rem;
    right: 5rem;
    width: 8rem;
    height: 8rem;
  }
}

.circle-2 {
  top: 6rem;
  right: 5rem;
  width: 2rem;
  height: 2rem;
  background-color: var(--purple-blue);
  opacity: 0.8;
}

@media (min-width: 768px) {
  .circle-2 {
    top: 10rem;
    right: 10rem;
    width: 4rem;
    height: 4rem;
  }
}

.circle-3 {
  bottom: 3rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  background-color: var(--dark-navy);
  opacity: 0.7;
}

@media (min-width: 768px) {
  .circle-3 {
    bottom: 5rem;
    right: 2.5rem;
    width: 6rem;
    height: 6rem;
  }
}

.circle-4 {
  top: 8rem;
  left: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary);
  opacity: 0.5;
}

@media (min-width: 768px) {
  .circle-4 {
    top: 15rem;
    left: 5rem;
    width: 5rem;
    height: 5rem;
  }
}

.circle-5 {
  bottom: 6rem;
  left: 4rem;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--light-blue);
  opacity: 0.7;
}

@media (min-width: 768px) {
  .circle-5 {
    bottom: 10rem;
    left: 10rem;
    width: 3rem;
    height: 3rem;
  }
}

.hero-content {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero-title {
  font-size: 1.875rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
}

.text-primary {
  color: var(--primary);
}

.text-dark {
  color: var(--dark-navy);
}

.hero-description {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.125rem;
  }
}

/* Photo collage */
.photo-collage {
  position: relative;
}

.collage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .collage-grid {
    gap: 1rem;
  }
}

.collage-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .collage-column {
    gap: 1rem;
  }
}

.collage-offset {
  padding-top: 1rem;
}

@media (min-width: 768px) {
  .collage-offset {
    padding-top: 2rem;
  }
}

.photo-item {
  overflow: hidden;
  position: relative;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-rect {
  border-radius: 0.75rem;
  height: 6rem;
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--primary) 100%);
}

@media (min-width: 768px) {
  .photo-rect {
    border-radius: 1rem;
    height: 8rem;
  }
}

.photo-circle {
  border-radius: 50%;
}

.photo-small {
  width: 4rem;
  height: 4rem;
  margin-left: 1rem;
  background: linear-gradient(135deg, var(--purple-blue) 0%, var(--dark-navy) 100%);
}

@media (min-width: 768px) {
  .photo-small {
    width: 6rem;
    height: 6rem;
    margin-left: 2rem;
  }
}

.photo-medium {
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--purple-blue) 100%);
}

@media (min-width: 768px) {
  .photo-medium {
    width: 7rem;
    height: 7rem;
  }
}

.photo-tall {
  height: 7rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark-navy) 100%);
}

@media (min-width: 768px) {
  .photo-tall {
    height: 9rem;
  }
}

/* Welcome Section */
.welcome {
  padding: 3rem 0;
  background: white;
  text-align: center;
}

@media (min-width: 768px) {
  .welcome {
    padding: 4rem 0;
  }
}

.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.875rem;
  }
}

.welcome-text {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .welcome-text {
    margin-bottom: 2rem;
  }
}

.feature-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 3rem;
  }
}

.feature-card {
  border: 1px solid var(--blue-100);
  border-radius: 0.5rem;
  padding: 1.25rem;
  text-align: center;
  background: white;
  transition: box-shadow 0.2s;
}

@media (min-width: 768px) {
  .feature-card {
    padding: 1.5rem;
  }
}

.feature-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--blue-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .feature-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }
}

.feature-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .feature-title {
    font-size: 1rem;
  }
}

.feature-description {
  font-size: 0.75rem;
  color: var(--gray-600);
}

@media (min-width: 768px) {
  .feature-description {
    font-size: 0.875rem;
  }
}

/* Gallery Section */
.gallery {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--indigo-50) 100%);
}

@media (min-width: 768px) {
  .gallery {
    padding: 4rem 0;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
}

@media (min-width: 768px) {
  .gallery-item {
    border-radius: 1rem;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-gradient-1 {
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--primary) 100%);
}

.gallery-gradient-2 {
  background: linear-gradient(135deg, var(--purple-blue) 0%, var(--dark-navy) 100%);
}

.gallery-gradient-3 {
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--purple-blue) 100%);
}

.gallery-gradient-4 {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark-navy) 100%);
}

/* Classes Section */
.classes {
  padding: 3rem 0;
  background: white;
}

@media (min-width: 768px) {
  .classes {
    padding: 4rem 0;
  }
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 2rem;
  }
}

.section-icon {
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark-navy) 100%);
  border-radius: 50%;
  margin-right: 0.75rem;
}

@media (min-width: 768px) {
  .section-icon {
    width: 2rem;
    height: 2rem;
  }
}

.classes-description {
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 64rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .classes-description {
    margin-bottom: 3rem;
    font-size: 1rem;
  }
}

.classes-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .classes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .classes-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.class-card {
  border: 1px solid var(--blue-100);
  border-radius: 0.5rem;
  overflow: hidden;
  background: white;
  transition: box-shadow 0.2s;
}

.class-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.class-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

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

.class-gradient-1 {
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--primary) 100%);
}

.class-gradient-2 {
  background: linear-gradient(135deg, var(--purple-blue) 0%, var(--dark-navy) 100%);
}

.class-gradient-3 {
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--purple-blue) 100%);
}

.class-gradient-4 {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark-navy) 100%);
}

.class-content {
  padding: 0.75rem;
}

@media (min-width: 768px) {
  .class-content {
    padding: 1rem;
  }
}

.class-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .class-title {
    font-size: 1rem;
  }
}

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

/* Contact Section */
.contact {
  padding: 3rem 0;
  background: linear-gradient(90deg, var(--light-blue) 0%, var(--primary) 100%);
}

@media (min-width: 768px) {
  .contact {
    padding: 4rem 0;
  }
}

.contact-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .contact-card {
    padding: 2rem;
  }
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.contact-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .contact-title {
    font-size: 1.5rem;
  }
}

.contact-description {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .contact-description {
    font-size: 1rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-input,
.form-textarea {
  padding: 0.75rem;
  border: 1px solid var(--blue-100);
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-textarea {
  min-height: 5rem;
  resize: vertical;
}

@media (min-width: 768px) {
  .form-textarea {
    min-height: 6rem;
  }
}

/* Footer */
.footer {
  background: var(--dark-navy);
  color: white;
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .footer {
    padding: 3rem 0;
  }
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.footer-logo-img {
  height: 1.75rem;
  width: auto;
  filter: brightness(0) invert(1);
}

@media (min-width: 768px) {
  .footer-logo-img {
    height: 2rem;
  }
}

.footer-logo-text {
  font-size: 1.125rem;
  font-weight: bold;
}

@media (min-width: 768px) {
  .footer-logo-text {
    font-size: 1.25rem;
  }
}

.footer-tagline {
  color: #bfdbfe;
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .footer-tagline {
    font-size: 0.875rem;
  }
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-title {
    font-size: 1rem;
  }
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #bfdbfe;
}

@media (min-width: 768px) {
  .footer-links {
    font-size: 0.875rem;
  }
}

.footer-link {
  color: #bfdbfe;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: white;
}

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

.social-link {
  width: 1.75rem;
  height: 1.75rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

@media (min-width: 768px) {
  .social-link {
    width: 2rem;
    height: 2rem;
  }
}

.social-link:hover {
  background-color: var(--primary-hover);
}

/* Enhanced responsive adjustments for better mobile experience */
@media (max-width: 479px) {
  .container,
  .container-small {
    padding: 0 0.75rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .hero-description {
    font-size: 0.875rem;
  }

  .btn-large {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 767px) {
  .container,
  .container-small {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.375rem;
  }
}
