:root {
  /* Light theme variables */
  --primary-color-light: #1a1a1a;
  --secondary-color-light: #f0f0f0;
  --accent-color-light: #e63946;
  --dark-color-light: #FFAAAA;
  --text-color-light: #333;
  --bg-color-light: #ffffff;
  --card-bg-light: #f8f8f8;
  
  /* Dark theme variables */
  --primary-color-dark: #f0f0f0;
  --secondary-color-dark: #1a1a1a;
  --accent-color-dark: #ff4d5a;
  --dark-color-dark: #FF8888;
  --text-color-dark: #f0f0f0;
  --bg-color-dark: #121212;
  --card-bg-dark: #1e1e1e;
  
  /* Default to light theme */
  --primary-color: var(--primary-color-light);
  --secondary-color: var(--secondary-color-light);
  --accent-color: var(--accent-color-light);
  --dark-color: var(--dark-color-light);
  --text-color: var(--text-color-light);
  --bg-color: var(--bg-color-light);
  --card-bg: var(--card-bg-light);
}

/* Dark mode class */
body.dark-mode {
  --primary-color: var(--primary-color-dark);
  --secondary-color: var(--secondary-color-dark);
  --accent-color: var(--accent-color-dark);
  --dark-color: var(--dark-color-dark);
  --text-color: var(--text-color-dark);
  --bg-color: var(--bg-color-dark);
  --card-bg: var(--card-bg-dark);
}

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

html {
  scroll-behavior: smooth;
  font-size: 20px;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header Styles */
header {
  background-color: #121212;
  color: var(--secondary-color);
  padding: 0.5rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

header.scroll-down {
  transform: translateY(-100%);
}

header.scroll-up {
  transform: translateY(0);
}

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

.logo-container {
  display: flex;
  align-items: center;
}

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

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Burger Menu */
.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 5px;
  transition: all 0.3s ease;
}

/* Main Content */
main {
  padding-top: 60px;
}

section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-color);
  font-size: 2.5rem;
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  height: 600px;
  padding: 0;
  max-width: 100%;
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

/* About Section */
.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Modalities Section */
.modality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.modality-card {
  background-color: var(--card-bg);
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color);
}

.private{
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;

  & a{
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
  }
}

.modality-card:hover {
  cursor: grabbing;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modality-card i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.modality-card h3 {
  margin: 1rem 0;
  color: var(--text-color);
}

.class-schedule {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .class-schedule {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.class-schedule h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.class-schedule ul {
  list-style: none;
  padding: 0;
}

.class-schedule li {
  margin-bottom: 0.5rem;
}

.class-schedule p {
  margin: 0;
}

/* Contact Section */
.contact-info {
  text-align: center;
  margin-bottom: 2rem;
}
.contact-info a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info i {
  color: var(--accent-color);
  margin-right: 0.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: border-color 0.3s ease;
}

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

.contact-form button {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  border: none;
  padding: 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--accent-color-dark);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 1rem 0.5rem;
  margin-top: 1rem;
  font-size: 0.8rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.copy {
  margin-bottom: 0.5rem;
}

.copy a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.copy a:hover {
  color: var(--accent-color-dark);
}

.social-icons {
  margin-top: 0.5rem;
}

.social-icons a {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--accent-color);
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--secondary-color);
  border: none;
  cursor: pointer;
  z-index: 1000;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
  background-color: var(--accent-color-dark);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .nav-links {
    position: fixed;
    right: 0;
    top: 60px;
    height: calc(100vh - 60px);
    background-color: #121212;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    padding: 2rem 0;
  }

  .nav-links li {
    margin: 1.5rem 0;
    opacity: 0;
  }

  .burger {
    display: block;
  }

  .nav-active {
    transform: translateX(0%);
  }

  .carousel {
    height: 400px;
  }

  section {
    padding: 3rem 1rem;
  }

  h2 {
    font-size: 2rem;
  }

  .modality-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0.5rem;
  }
  
  .modality-card {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  /* Adjust text sizes for better readability */
  .modality-card h3 {
    font-size: 1.5rem;
  }
  
  .class-schedule h4 {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 12px;
  }

  .carousel {
    height: 300px;
  }

  .carousel-btn {
    padding: 0.5rem;
    font-size: 1rem;
    width: 40px;
    height: 40px;
  }

  .modality-grid {
    gap: 1rem;
  }

  .contact-form {
    width: 100%;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    bottom: 10px;
    right: 10px;
  }

  .modality-grid {
    gap: 1rem;
  }
  
  .modality-card {
    padding: 1.25rem;
    margin: 0 0.5rem;
  }
  .modality-card h3 {
    font-size: 1.3rem;
  }
  
  .class-schedule h4 {
    font-size: 1rem;
  }
  
  .modality-card p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}


/* Animation Keyframes */
@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
  opacity: 0;
}

.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}