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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Old Standard TT", serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Navigation */
.navbar {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  margin-left: 10%;
}
.nav-brand h1 {
  font-size: 1.8rem;
  color: #8b4513;
  margin: 0;
  margin-left: 10%;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-left: auto;
  margin-right: 5%;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #8b4513;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #8b4513;
  transition: width 0.3s ease;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: 0.3s;
}

/* Sections */
.section {
  padding: 3rem 0;
  min-height: auto;
  display: block;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #8b4513;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #8b4513;
}

/* Home Section */
#home {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.hero-content {
  flex: 1;
  max-width: 50%;
  padding-right: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  color: #8b4513;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero-description {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: #8b4513;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.cta-button:hover {
  background: #a0522d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.learn-more-link {
  color: #8b4513;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.learn-more-link:hover {
  color: #a0522d;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 50%;
}

.dance-silhouette {
  width: 330px;
  height: 440px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.dance-silhouette img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Story Section */
#story {
  background: #ffffff;
  padding: 4rem 0;
}

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

.story-content.reversed {
  grid-template-columns: 1fr 1fr;
}

.story-content.reversed .story-text {
  order: 2;
}

.story-content.reversed .story-image {
  order: 1;
}

.story-text p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.cultural-elements {
  width: 100%;
  height: 440px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cultural-elements img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  background: #f8f9fa;
}

/* About Section */
#about {
  background: #f8f9fa;
  padding: 4rem 0;
  position: relative;
}

#about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("Gallery/Gallery(10).jpg") center/cover;
  opacity: 0.15;
  z-index: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.about-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  color: #8b4513;
  margin-bottom: 1rem;
}

.about-card p {
  color: #666;
  line-height: 1.6;
}

/* Gallery Section */
#gallery {
  background: #ffffff;
  padding: 4rem 0;
}

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

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background: #fff;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  aspect-ratio: 4/3;
  tabindex: 0;
  border: 3px solid transparent;
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(139, 69, 19, 0.3);
  border-color: rgba(139, 69, 19, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(139, 69, 19, 0.9) 0%,
    rgba(139, 69, 19, 0.7) 50%,
    rgba(139, 69, 19, 0.3) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(20px);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-info {
  color: white;
  text-align: left;
}

.gallery-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-info p {
  font-size: 1rem;
  margin: 0;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Gallery Filter Buttons */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(139, 69, 19, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(139, 69, 19, 0.1);
}

.filter-btn {
  background: transparent;
  color: #8b4513;
  border: 2px solid #8b4513;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-family: "Old Standard TT", serif;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #8b4513;
  transition: left 0.3s ease;
  z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  left: 0;
}

.filter-btn:hover,
.filter-btn.active {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

/* Gallery Animation Classes */
.gallery-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:nth-child(1) {
  animation-delay: 0.1s;
}
.gallery-item:nth-child(2) {
  animation-delay: 0.2s;
}
.gallery-item:nth-child(3) {
  animation-delay: 0.3s;
}
.gallery-item:nth-child(4) {
  animation-delay: 0.4s;
}
.gallery-item:nth-child(5) {
  animation-delay: 0.5s;
}
.gallery-item:nth-child(6) {
  animation-delay: 0.6s;
}
.gallery-item:nth-child(7) {
  animation-delay: 0.7s;
}
.gallery-item:nth-child(8) {
  animation-delay: 0.8s;
}
.gallery-item:nth-child(9) {
  animation-delay: 0.9s;
}
.gallery-item:nth-child(10) {
  animation-delay: 1s;
}
.gallery-item:nth-child(11) {
  animation-delay: 1.1s;
}

/* Gallery item display states for filtering */
.gallery-item[style*="display: none"] {
  animation: none;
  opacity: 0;
  transform: scale(0.8);
}

.gallery-item[style*="display: block"] {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced hover effects */
.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.gallery-item:hover::before {
  transform: translateX(100%);
}

/* Gallery loading state */
.gallery-grid {
  min-height: 400px;
  position: relative;
}

.gallery-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(139, 69, 19, 0.02) 0%,
    rgba(139, 69, 19, 0.01) 100%
  );
  pointer-events: none;
  z-index: -1;
}

.gallery-item img {
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover img {
  transform: scale(1.1) rotate(1deg);
}

/* Gallery focus states for accessibility */
.gallery-item:focus {
  outline: 3px solid #8b4513;
  outline-offset: 2px;
}

.gallery-item:focus .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery filter button focus states */
.filter-btn:focus {
  outline: 3px solid #8b4513;
  outline-offset: 2px;
}

/* Gallery item loading animation */
.gallery-item.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Contact Section */
#contact {
  background: #f8f9fa;
  padding: 4rem 0;
}

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

.contact-info {
  position: relative;
  z-index: 1;
  text-align: left;
}

.social-media {
  margin-top: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: flex-start;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: #8b4513;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 2rem;
}

.social-link:hover {
  color: #a0522d;
  transform: translateY(-3px);
}

.directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: #8b4513;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 1rem;
  margin-right: 1rem;
}

.directions-btn:hover {
  background: #a0522d;
  transform: translateY(-2px);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: #25d366;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 1rem;
  margin-left: 1rem;
}

.whatsapp-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

.contact-info h3,
.contact-form h3 {
  color: #8b4513;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}

.contact-icon {
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.contact-item h4 {
  color: #8b4513;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: #666;
  margin: 0;
}

.contact-actions {
  position: relative;
  z-index: 1;
  text-align: left;
}

.contact-actions h3 {
  color: #8b4513;
  margin-bottom: 2rem;
}

.action-buttons {
  margin-bottom: 2rem;
}

.enrollment-info {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.enrollment-info h4 {
  color: #8b4513;
  margin-bottom: 1rem;
}

.enrollment-info p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #8b4513;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:hover {
  background: #a0522d;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
  display: flex;
}

/* Footer */
.footer {
  background: #333;
  color: white;
  padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
  color: #8b4513;
  margin-bottom: 1rem;
}

.footer-section p {
  color: #ccc;
  line-height: 1.6;
}

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

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

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #8b4513;
}

.map-container {
  margin-top: 1rem;
}

.map-placeholder {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
}

.map-placeholder span {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.map-placeholder p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #555;
  color: #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10rem;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    margin-left: auto;
    margin-right: 5%;
  }

  .navbar {
    left: 0;
    width: 100%;
    padding: 1rem 0;
    position: sticky;
    top: 0;
  }

  .nav-menu {
    position: fixed;
    top: 100%;
    right: 5%;
    width: auto;
    min-width: 200px;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 0 0 20px 20px;
    z-index: 999;
  }

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

  .container[style*="display: flex"] {
    flex-direction: column;
  }

  .hero-content {
    max-width: 100%;
    padding-right: 0;
    margin-bottom: 1rem;
    order: 1;
  }

  .hero-image {
    max-width: 100%;
    order: 2;
    /* margin-bottom: 2rem; */
  }

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

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

  .story-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .story-content .story-text {
    order: 1;
    margin-bottom: 1rem;
  }

  .story-content .story-image {
    order: 2;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .gallery-item {
    aspect-ratio: 4/3;
  }

  .gallery-overlay {
    padding: 1.5rem;
  }

  .gallery-info h3 {
    font-size: 1.3rem;
  }

  .gallery-info p {
    font-size: 0.9rem;
  }

  .gallery-filters {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .dance-silhouette {
    /* width: 275px;
    height: 330px; */
  }

  .section {
    padding: 3rem 0;
  }

  #home {
    padding-top: 6rem;
  }

  .footer-content {
    gap: 1rem;
  }

  .footer-bottom {
    gap: 1rem;
  }

  .scroll-to-top {
    display: flex !important;
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-content {
    max-width: 100%;
    padding-right: 0;
    margin-bottom: 1.5rem;
  }

  .hero-image {
    max-width: 100%;
  }

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

  .hero-subtitle {
    font-size: 1.2rem;
  }

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

  .dance-silhouette {
    /* width: 220px;
    height: 275px; */
  }

  .about-card {
    padding: 1.5rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

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

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

  .social-links {
    justify-content: center;
  }

  .directions-btn,
  .whatsapp-btn {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .gallery-item {
    aspect-ratio: 4/3;
  }

  .gallery-overlay {
    padding: 1rem;
  }

  .gallery-info h3 {
    font-size: 1.2rem;
  }

  .gallery-info p {
    font-size: 0.85rem;
  }

  .gallery-filters {
    gap: 0.5rem;
    margin-top: 1rem;
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    width: 100%;
    max-width: 200px;
  }

  .nav-brand h1 {
    font-size: 1.5rem;
  }

  .footer-content {
    gap: 1rem;
  }

  .footer-bottom {
    gap: 1rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
