html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f9f9f9;
    color: #222;
}

header {
    background: #333;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    background: #777054;
}

.logo {
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Athene Voyage', serif;
    position: relative;
    cursor: pointer;
    text-shadow: 0 2px 10px rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;s
    line-height: 1;
}

.logo-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(-20px);
    animation: logoFadeIn 0.8s ease forwards;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo-text:nth-child(1) {
    animation-delay: 0.3s;
}

.logo-text:nth-child(2) {
    animation-delay: 0.6s;
    margin-left: 1rem;
}

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

.logo::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #DECEBF, transparent);
    transition: width 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo:hover {
    transform: translateY(-2px);
    text-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.logo:hover .logo-text:nth-child(1) {
    transform: translateX(5px);
    color: #DECEBF;
}

.logo:hover .logo-text:nth-child(2) {
    transform: translateX(10px);
    color: #DECEBF;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #DECEBF, transparent);
    transition: width 0.6s ease;
}

.logo:hover {
    transform: translateY(-2px);
    text-shadow: 0 4px 15px rgba(255,255,255,0.2);
    letter-spacing: 1px;
}

.logo:hover::after {
    width: 100%;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s, background 0.2s;
    font-family: 'Athene Voyage', serif;
    padding: 0.25em 0.8em;
    border-radius: 6px;
}

.nav-links li a.active,
.nav-links li a:hover {
    color: #fff;
    background: #DECEBF;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 32px;
    height: 28px;
    justify-content: space-between;
}

.burger span {
    display: block;
    height: 4px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.splash {
    padding: 0;
    text-align: center;
    background: none;
}

.hero-image-container {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
    height: 80vh;
    min-height: 400px;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin-bottom: 0;
}

.hero-poster {
    width: 100vw;
    height: 110vh;
    min-height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    width: 90%;
    text-shadow: 0 2px 16px rgba(0,0,0,0.35);
    z-index: 2;
}

.animated-text {
    opacity: 0;
    animation: fadeInUp 1s forwards;
    animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-text:nth-child(1) {
    animation-delay: 0.2s;
}

.animated-text:nth-child(2) {
    animation-delay: 0.7s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

footer {
    text-align: center;
    padding: 1rem 0;
    background: #777054;
    color: #fff;
    margin-top: 2rem;
    font-size: 0.95rem;
    font-family: 'Athene Voyage', serif;
}

#about {
    position: relative;
    background: #f9f9f9;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('pulse images/Studio.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: 0;
}

.about-animated-section {
    position: relative;
    padding: 4rem 0;
    background: #f9f9f9;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.about-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

.about-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-animated {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2.5rem;
    margin: 3rem auto 0 auto;
    position: relative;
}

.about-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.2rem 1.5rem 1.2rem;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    animation: aboutFadeInUp 1s forwards;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.about-left {
    animation-delay: 0.2s;
}
.about-center {
    animation-delay: 0.5s;
}
.about-right {
    animation-delay: 0.8s;
}

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

.about-img {
    width: 100%;
    max-width: 380px;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.about-card:hover .about-img {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.about-card:hover .about-heading {
    transform: translateY(5px);
    color: #5c5741;
}

.about-card:hover .about-desc {
    transform: translateY(5px);
    color: #333;
}

.about-heading {
    font-family: 'Athene Voyage', serif;
    font-size: 1.5rem;
    color: #777054;
    margin: 0.5rem 0 0.7rem 0;
    text-align: center;
    transition: all 0.4s ease;
}

.about-desc {
    font-family: 'Cinema Sunday', cursive;
    color: #555;
    font-size: 1.1rem;
    text-align: center;
    margin: 0;
    transition: all 0.4s ease;
}

.classes-bg-section {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2.5rem;
    margin: 3rem auto 0 auto;
    max-width: 1200px;
    padding: 2rem 1rem 3rem 1rem;
}

.class-bg-card {
    flex: 1 1 0;
    min-width: 0;
    min-height: 340px;
    height: 380px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: classBgFadeInUp 1s forwards, zoomBg 12s infinite alternate ease-in-out;
}

/* ✅ updated paths (no `..`) */
.class-bg-mat {
    background-image: url('pulse images/poster.jpg');
    animation-delay: 0.2s;
}

.class-bg-reformer {
    background-image: url(src/pulse images/store sign.jpg);
    animation-delay: 0.6s;
}

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

.class-bg-content {
    background: linear-gradient(0deg, rgba(119,112,84,0.92) 80%, rgba(119,112,84,0.0) 100%);
    width: 100%;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    text-align: left;
    position: relative;
}

.class-bg-heading {
    font-family: 'Athene Voyage', serif;
    color: #fff;
    font-size: 2.5rem;
    margin: 0 0 0.7rem 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.class-bg-subheading {
    font-family: 'Cinema Sunday', cursive;
    color: #fff;
    font-size: 1.25rem;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* New Classes Section Styles */
.classes-section {
    padding: 4rem 2rem;
}

.classes-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2.5rem;
    margin: 3rem auto 0 auto;
    max-width: 1200px;
}

.class-card {
    flex: 1;
    position: relative;
    min-height: 400px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.class-card:hover {
    transform: translateY(-8px);
}

.class-image {
    width: 100%;
    height: 100%;
    min-height: 180px;
    max-height: none;
    object-fit: cover;
    display: block;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
    opacity: 1;
    flex: 1 1 auto; /* Make image fill available space */
}

.class-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(119,112,84,0.9) 0%, rgba(119,112,84,0) 30%, rgba(119,112,84,0) 60%, rgba(119,112,84,0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background 0.3s ease;
}

.class-card:hover .class-overlay {
    background: rgba(119,112,84,0.95);
}

.class-title {
    color: #fff;
    margin: 0;
    font-size: 2.5rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.class-description {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    color: #fff;
    font-family: 'Cinema Sunday', cursive;
    font-size: 1.2rem;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.class-card:hover .class-description {
    opacity: 1;
    transform: translateY(0);
}

.class-card:hover .class-title {
    transform: translateY(-10px);
}

/* Contact Section Styles */
.contact-section {
    padding: 6rem 2rem;
    background: #f9f9f9;
}

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

.contact-images {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    perspective: 1000px;
}

.image-container {
    flex: 1;
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.image-container.left {
    animation-delay: 0s;
}

.image-container.right {
    animation-delay: -3s;
}

.contact-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-container:hover .contact-img {
    transform: translateY(-10px) scale(1.02);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: #fff;
    padding: 2rem;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(30px);
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:nth-child(4) { animation-delay: 0.4s; }

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: #777054;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    overflow: hidden;
}

.icon-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    animation: pulse 2s ease-in-out infinite;
}

.icon-wrapper i {
    color: #fff;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.contact-card h3 {
    font-family: 'Athene Voyage', serif;
    color: #777054;
    margin: 1rem 0;
    font-size: 1.5rem;
}

.contact-card p {
    font-family: 'Cinema Sunday', cursive;
    color: #666;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate3d(1, 1, 0, 0deg);
    }
    50% {
        transform: translateY(-20px) rotate3d(1, 1, 0, 2deg);
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .classes-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .class-card {
        min-height: 300px;
    }
    
    .class-title {
        font-size: 2rem;
    }

    .contact-images {
        flex-direction: column;
    }

    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .about-animated-section, .classes-section, .contact-section {
    padding: 2rem 1rem;
  }
  .about-animated {
    flex-direction: column;
    align-items: center;
  }
  .about-card {
    width: 90%;
    margin-bottom: 2rem;
  }
  .classes-container {
    flex-direction: column;
    align-items: center;
  }
  .class-card {
    width: 90%;
    margin-bottom: 2rem;
  }
  .contact-container {
    flex-direction: column;
    align-items: center;
  }
  .contact-images {
    flex-direction: row;
    justify-content: center;
    margin-bottom: 1rem;
  }
  .contact-info {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .contact-card {
    width: 45%;
    margin: 1rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0;
    min-height: 56px;
    position: relative;
    height: 56px;
  }
  .logo {
    font-size: 1.5rem;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .nav-links,
  .burger {
    display: none !important;
  }

  /* Splash image and hero text */
  .splash {
    padding: 0;
    margin: 0;
    min-height: 100vh; /* Stretch splash section to fill viewport */
    background: #222;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    overflow: hidden;
  }
  .hero-image-container {
    height: 100vh;
    min-height: 520px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: block;
    position: relative;
  }
  .hero-poster {
    width: 100%;
    height: 100%;
    min-height: 520px;
    max-height: 100vh;
    object-fit: cover;
    display: block;
    border-radius: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
  }
  .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    padding: 0 1rem;
  }
  .hero-text h1,
  .hero-text p {
    width: 100%;
    text-align: center;
    margin: 0.5rem 0;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0,0,0,0.35);
    font-size: 2.2rem !important;
    line-height: 1.2;
  }
  .hero-text h1 {
    font-size: 2.2rem !important;
  }
  .hero-text p {
    font-size: 1.1rem !important;
  }

  /* Classes section: images fill card, text visible */
  .class-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    width: 95vw;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    position: relative;
  }
  .class-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: none;
    object-fit: cover;
    display: block;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
    opacity: 1;
    flex: 1 1 auto;
  }
  .class-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem 1rem 1.5rem 1rem;
    background: linear-gradient(180deg, rgba(119,112,84,0.85) 0%, rgba(119,112,84,0.3) 60%, rgba(119,112,84,0.85) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    z-index: 2;
  }
  .class-title {
    color: #fff;
    margin: 0 0 0.7rem 0;
    font-size: 1.5rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    text-align: center;
    z-index: 3;
    position: relative;
    line-height: 1.2;
  }
  .class-description {
    margin-bottom: 0.5rem;
    z-index: 2;
    position: relative;
    color: #fff !important;
    opacity: 1 !important;
    font-size: 1rem !important;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
    background: none;
    line-height: 1.4;
    font-family: 'Athene Voyage', serif !important;
    text-align: center;
  }
}

/* Ensure images and cards are always responsive */
.hero-poster,
.about-img,
.class-image,
.contact-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 10px;
}

/* Hide burger menu on desktop */
.burger {
  display: none;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #777054;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.back-to-top.visible {
    opacity: 0.6;
    visibility: visible;
    transform: translateY(0);
    animation: float 6s ease-in-out infinite;
}

.back-to-top:hover {
    opacity: 1;
    background: #DECEBF;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    animation: none;
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}
/* Hide burger menu on desktop */
.burger {
  display: none;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #777054;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.back-to-top.visible {
    opacity: 0.6;
    visibility: visible;
    transform: translateY(0);
    animation: float 6s ease-in-out infinite;
}

.back-to-top:hover {
    opacity: 1;
    background: #DECEBF;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    animation: none;
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}
