/* ==========================================================================
   G-STAR DANCE STUDIO - CONSOLIDATED STYLES
   Mobile-first, optimized, best practices
   ========================================================================== */

/* Base
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --bg: #1a1a1a;
    --text: #e0e0e0;
    --nav: rgba(45, 45, 45, .95);
    --card: #2d2d2d;
    --border: #404040;
    --feature: #242424;
    --primary: #e91e63;
    --grad1: #667eea;
    --grad2: #764ba2;
    --font-h: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-b: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font: 400 1rem/1.6 var(--font-b);
    color: var(--text);
    background: var(--bg)
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-h);
    font-weight: 800;
    letter-spacing: -.02em
}

h1,
h2 {
    font-family: var(--font-h);
    font-weight: 800;
    letter-spacing: -.02em
}

h3,
h4,
h5,
h6 {
    font-family: var(--font-h);
    font-weight: 700;
    letter-spacing: -.01em
}

p,
a,
li,
span,
label,
input,
textarea,
button {
    font-family: var(--font-b)
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

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

/* Navigation
   ========================================================================== */
.navbar {
    background: transparent;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .3);
    position: sticky;
    top: 0;
    z-index: 1000
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    transition: opacity .2s
}

.nav-brand:hover {
    opacity: .8
}

.nav-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.nav-logo-text {
    height: 30px;
    width: auto;
    object-fit: contain
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: .95rem;
    position: relative;
    padding: .5rem 0;
    transition: color .2s
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width .3s
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary)
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem
}

.lang-toggle {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
    padding: .5rem 1rem;
    min-width: 70px;
    height: 44px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s
}

.lang-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px)
}

/* styles.css - REPLACE .nav-toggle section (around line 100-130) */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    gap: 0;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 0;
}

.nav-toggle span:nth-child(1) {
    top: 6px;
}

.nav-toggle span:nth-child(2) {
    top: 13px;
}

.nav-toggle span:nth-child(3) {
    top: 20px;
}

/* Active state - Perfect X */
.nav-toggle.active span:nth-child(1) {
    top: 13px;
    transform: rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    top: 13px;
    transform: rotate(-45deg);
}

/* Hero
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* NEW: Sophisticated dark gradient with subtle pink glow */
    background:
        radial-gradient(circle at 70% 30%, rgba(233, 30, 99, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(233, 30, 99, 0.08) 0%, transparent 40%),
        linear-gradient(135deg, rgba(13, 13, 13, 0.75), rgba(26, 26, 26, 0.85));
    z-index: 2;
}

/* NEW: Add subtle animated glow effect */
.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(233, 30, 99, 0.1) 0%,
            transparent 40%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.hero:hover .hero-overlay::after {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    max-width: 900px;
    padding: 2rem
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -.03em;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, .3);
    line-height: 1.1
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 2.5rem;
    opacity: .95;
    font-weight: 500;
    letter-spacing: .05em
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap
}

/* Buttons
   ========================================================================== */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    border: 2px solid transparent
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, .4)
}

.btn-secondary {
    background: #fff;
    color: var(--grad1)
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .2)
}

.btn-outline {
    background: transparent;
    border-color: #fff;
    color: #fff
}

.btn-outline:hover {
    background: #fff;
    color: var(--grad1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, .3)
}

.btn-primary:active,
.btn-secondary:active,
.btn-outline:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2)
}

.btn-primary:focus,
.btn-secondary:focus,
.btn-outline:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px
}

/* ==========================================================================
   LANDING PAGE ENHANCEMENTS - Animations & Visual Polish
   ========================================================================== */

/* Hero Title Animation - Staggered word reveal */
.hero-title {
    overflow: hidden;
}

.hero-title,
.hero-subtitle {
    animation: fadeSlideUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.hero-subtitle {
    animation-delay: 0.3s;
}

.hero-subtitle:nth-of-type(2) {
    animation-delay: 0.5s;
}

.hero-cta {
    animation: fadeSlideUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
    opacity: 0;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Hero Video Parallax Effect */
.hero-video {
    transform: scale(1.1);
    transition: transform 0.3s ease-out;
}

/* Add subtle glow to primary buttons on hover */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

/* Feature Cards - Entrance Animation */
.feature-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.5s;
}

/* Feature Cards - Hover Lift Effect */
.feature-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* Feature Card Icon Animation */
.feature-card h3 {
    position: relative;
    display: inline-block;
}

.feature-card h3::after {
    content: '✨';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover h3::after {
    transform: translateY(-50%) scale(1);
    opacity: 1;
    right: -35px;
}

/* Genre Cards - Enhanced Entrance */
.genre-card {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: genreEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.genre-card:nth-child(1) {
    animation-delay: 0.2s;
}

.genre-card:nth-child(2) {
    animation-delay: 0.4s;
}

.genre-card:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes genreEntrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

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

/* Genre Overlay - Text Animation */
.genre-overlay h3 {
    transform: translateY(30px);
    opacity: 0;
}

.genre-card:hover .genre-overlay h3 {
    animation: textReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* CTA Section - Pulsing Button */
.cta-section .btn-secondary {
    animation: gentlePulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.cta-section .btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-section .btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

@keyframes gentlePulse {

    0%,
    100% {
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    }
}

/* Floating Elements - Decorative */
.hero::after,
.cta-section::after {
    content: '✨';
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    top: 20%;
    right: 10%;
    animation-delay: 1s;
}

.cta-section::after {
    top: 15%;
    left: 8%;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* Scroll Indicator - Hero Section */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator-text {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-align: center;
    opacity: 0.9;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    margin: 0 auto;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Hide scroll indicator on scroll */
.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}



/* Features & Cards
   ========================================================================== */
.features {
    padding: 80px 20px;
    background: var(--feature)
}

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

.feature-card,
.class-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .1);
    transition: transform .3s
}

.feature-card:hover,
.class-card:hover {
    transform: translateY(-5px)
}

.feature-card h3,
.class-card h3 {
    color: var(--primary);
    margin-bottom: 1rem
}

.class-time {
    color: #999;
    margin-bottom: 1rem;
    font-weight: 500
}

.class-price {
    font-size: 1.5rem;
    color: var(--grad1);
    font-weight: 700;
    margin-top: 1rem
}

/* Genres
   ========================================================================== */
.genres-section {
    padding: 80px 20px;
    background: var(--bg)
}

.genres-section h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -.02em
}

.genres-subtitle,
.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #999;
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto
}

.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem
}

.genre-card {
    background: var(--card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
    transition: all .5s cubic-bezier(.4, 0, .2, 1);
    position: relative
}

/* NEW: Subtle theme-matching gradient */
.genre-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.08), rgba(245, 87, 108, 0.08));
    opacity: 0;
    transition: opacity .4s;
    z-index: 1;
    pointer-events: none
}

.genre-card:hover::before {
    opacity: 1
}

.genre-card:hover {
    transform: translateY(-12px)scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .3)
}

.genre-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden
}

.genre-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.4, 0, .2, 1)
}

.genre-card:hover .genre-image img {
    transform: scale(1.15)rotate(2deg)
}

/* NEW: Primary brand color gradient overlay */
.genre-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.92), rgba(245, 87, 108, 0.92));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .4s
}

.genre-card:hover .genre-overlay {
    opacity: 1
}

.genre-overlay h3 {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .3);
    animation: slideUp .6s cubic-bezier(.4, 0, .2, 1)
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

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

.genre-content {
    padding: 2rem
}

.genre-content h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1rem
}

.genre-content p {
    color: var(--text);
    line-height: 1.8
}


/* CTA Section
   ========================================================================== */
.cta-section {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0
}

@keyframes gradient {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.cta-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 800
}

.cta-section p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 2.5rem;
    opacity: .95
}

/* Sections
   ========================================================================== */
.content-section,
.pricing-section {
    padding: 80px 20px
}

.pricing-section {
    padding-top: 20px
}

.content-section h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -.02em
}

.content-section h2 {
    font-size: clamp(1.75rem, 4vw, 2rem);
    margin: 2.5rem 0 1.5rem;
    color: var(--grad1);
    font-weight: 700;
    letter-spacing: -.01em
}

/* ==========================================================================
   CLASSES PAGE - Hero Banner & Enhancements
   ========================================================================== */

.classes-hero {
    position: relative;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    overflow: hidden;
    margin-bottom: 0;
}

.classes-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(233, 30, 99, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(102, 126, 234, 0.08) 0%, transparent 50%);
    animation: bgPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bgPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

.classes-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.classes-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), #f5576c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.classes-hero p {
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 2rem;
    animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    opacity: 0;
}

.classes-hero-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    opacity: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-badge i {
    color: var(--primary);
    font-size: 1rem;
}

/* Section Headers */
/* Calendar section container */
.calendar-section-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.calendar-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    opacity: 0;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--grad1), var(--grad2));
    border-radius: 2px;
}

.section-intro {
    font-size: 1.05rem;
    color: #999;
    max-width: 600px;
    margin: 1.5rem auto 0;
    line-height: 1.7;
}

/* Calendar Widget Enhancement */
.calendar-widget {
    animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
    opacity: 0;
}

/* Schedule Display Enhancement */
#schedule-display {
    animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
    opacity: 0;
}

/* ==========================================================================
   CLASS LEVELS - Clean List Layout (No Cards)
   ========================================================================== */

.class-levels {
    margin-top: 4rem;
    animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
    opacity: 0;
}

.levels-heading {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2rem);
    color: var(--grad1);
    margin-bottom: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
    width: 100%;
}

.levels-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--grad1), var(--grad2));
    border-radius: 2px;
}

.levels-table {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.level-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInFromLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.level-row:first-child {
    padding-top: 0;
}

.level-row:last-child {
    border-bottom: none;
}

.level-row:nth-child(1) {
    animation-delay: 0.8s;
}

.level-row:nth-child(2) {
    animation-delay: 0.9s;
}

.level-row:nth-child(3) {
    animation-delay: 1.0s;
}

@keyframes slideInFromLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.level-badge {
    font-size: 1.5rem;
    /* CHANGED: smaller size */
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    line-height: 1.5;
    /* CHANGED: increased line height */
    display: flex;
    flex-direction: column;
    /* ADDED: stack stars vertically */
    align-items: center;
    gap: 0.1rem;
}

/* Make each star display as block for vertical stacking */
.level-badge::before {
    content: attr(data-stars);
    display: block;
    white-space: pre-line;
}

.level-info {
    flex: 1;
}

.level-info h4 {
    color: var(--text);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.level-info p {
    color: #aaa;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ==========================================================================
   PRICING SECTION - Enhanced Animations
   ========================================================================== */

.pricing-section {
    padding-top: 60px;
}

.pricing-section h2 {
    animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.pricing-section .class-grid {
    margin-top: 3rem;
}

/* Pricing Cards - Enhanced */
.pricing-section .class-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.pricing-section .class-card:nth-child(1) {
    animation-delay: 0.1s;
}

.pricing-section .class-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pricing-section .class-card:nth-child(3) {
    animation-delay: 0.3s;
}

.pricing-section .class-card:nth-child(4) {
    animation-delay: 0.4s;
}

.pricing-section .class-card:nth-child(5) {
    animation-delay: 0.5s;
}

.pricing-section .class-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, #f5576c, var(--primary));
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    z-index: 10;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(233, 30, 99, 0.6);
    }
}

.pricing-section .class-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(233, 30, 99, 0.25);
}

.pricing-section .class-card.popular:hover {
    transform: translateY(-8px) scale(1.07);
    box-shadow: 0 16px 50px rgba(233, 30, 99, 0.35);
}

/* Price animation on hover */
.class-price {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.class-card:hover .class-price {
    transform: scale(1.1);
    color: var(--primary);
}

/* CTA Section Enhancement */
.pricing-section+.cta-section {
    animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
    opacity: 0;
}

/* ==========================================================================
   CLASSES PAGE - Additional Animations & Effects
   ========================================================================== */

/* Popular card emphasis animation */
@keyframes emphasizePopular {

    0%,
    100% {
        transform: scale(1.05);
    }

    50% {
        transform: scale(1.08);
    }
}

/* Count badge pulse */
@keyframes countPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Date pulse animation */
@keyframes datePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(233, 30, 99, 0.4);
    }
}

/* Hero badge click state */
.hero-badge:active {
    transform: translateY(-1px) scale(0.98);
}

/* Pricing card focus state for accessibility */
.pricing-section .class-card:focus {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.pricing-section .class-card:focus:not(:focus-visible) {
    outline: none;
}

/* Level card focus state */
.level-card:focus {
    outline: 3px solid var(--grad1);
    outline-offset: 3px;
}

.level-card:focus:not(:focus-visible) {
    outline: none;
}

/* Smooth transitions for pricing cards */
.pricing-section .class-card {
    will-change: transform;
}

.pricing-section .class-card h3,
.pricing-section .class-card p,
.pricing-section .class-card .class-price {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-section .class-card:hover h3 {
    color: var(--primary);
}

/* Enhanced CTA section entrance */
.pricing-section+.cta-section h2 {
    animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards, textGlow 3s ease-in-out 1.7s infinite;
    opacity: 0;
}

.pricing-section+.cta-section p {
    animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.0s forwards;
    opacity: 0;
}

.pricing-section+.cta-section .btn-secondary {
    animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.1s forwards;
    opacity: 0;
}

/* Performance optimization */
.classes-hero,
.calendar-widget,
.level-card,
.pricing-section .class-card {
    will-change: transform, opacity;
}

/* ==========================================================================
   MODERN CALENDAR WIDGET
   ========================================================================== */

.calendar-widget {
    background: var(--card);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
}

.month-nav-btn {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.month-nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
}

.calendar-grid {
    width: 100%;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
}

.calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-date {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    background: var(--feature);
    border: 2px solid transparent;
    min-height: 50px;
}

.calendar-date.other-month {
    opacity: 0.3;
    cursor: default;
}

.calendar-date.other-month:hover {
    background: var(--feature);
    transform: none;
}

.calendar-date:not(.other-month):hover {
    background: var(--border);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calendar-date.selected {
    background: linear-gradient(135deg, var(--grad1), var(--grad2));
    color: #fff;
    border-color: var(--grad1);
    font-weight: 700;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.calendar-date.today:not(.selected) {
    border-color: var(--primary);
    font-weight: 600;
}

.date-number {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.calendar-date.selected .date-number {
    font-weight: 700;
}

.date-indicator {
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: auto;
    opacity: 0;
    transition: opacity 0.3s;
}

.calendar-date.has-classes .date-indicator {
    opacity: 1;
}

.calendar-date.selected .date-indicator {
    background: #fff;
}

/* Schedule Display - Modern Cards */
#schedule-display {
    background: var(--feature);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.schedule-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--grad1);
}

.class-count-badge {
    background: var(--primary);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.schedule-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-card {
    background: var(--card);
    border-radius: 12px;
    padding: 1.25rem;
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.schedule-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.schedule-card-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.schedule-card-row:last-child {
    margin-bottom: 0;
}

.schedule-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.schedule-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
}

.schedule-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.schedule-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
    font-size: 1rem;
}

#schedule-display {
    border: 2px solid var(--border);
    padding: 25px;
    background: var(--feature);
    border-radius: 10px
}

#schedule-date {
    margin-bottom: 20px;
    color: var(--grad1);
    font-size: 1.5rem
}


/* Pricing Cards
   ========================================================================== */
.pricing-section .class-card {
    position: relative
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, #f5576c, var(--primary));
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, .4);
    z-index: 10
}

.pricing-section .class-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(233, 30, 99, .2)
}

/* ==========================================================================
   G-STAR DANCE STUDIO - PART 2
   About, Gallery, Contact, Footer, Modals, Responsive
   ========================================================================== */

/* About Page
   ========================================================================== */
.about-hero-simple {
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    text-align: center;
    position: relative;
    overflow: hidden
}

.about-hero-simple::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-30px)
    }
}

.about-hero-simple h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), #f5576c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1
}

.about-hero-simple .lead {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #999
}

.about-story {
    padding: 80px 20px;
    background: var(--bg);
    position: relative
}

.about-story::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    margin-left: 50%;
    transform: translateX(-50%);
    opacity: 0.3
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1
}

.story-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 1.8rem;
    color: #ccc;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    text-align: justify;
}

.story-content p:nth-child(1) {
    animation-delay: 0.1s
}

.story-content p:nth-child(2) {
    animation-delay: 0.3s
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

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

.instructors-simple {
    padding: 80px 20px;
    background: linear-gradient(to bottom, var(--bg) 0%, var(--feature) 100%)
}

.instructors-simple h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -.02em
}

.instructor-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem
}

.instructor-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: var(--card);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden
}

.instructor-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), #f5576c);
    opacity: 0;
    transition: opacity 0.3s
}

.instructor-item:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2)
}

.instructor-item:hover::before {
    opacity: 1
}

.instructor-photo-circle {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: 0 0 30px rgba(233, 30, 99, 0.3);
    transition: all 0.3s;
    position: relative;
    z-index: 1
}

.instructor-item:hover .instructor-photo-circle {
    box-shadow: 0 0 40px rgba(233, 30, 99, 0.5);
    transform: scale(1.05)
}

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

.instructor-details h3 {
    font-size: 1.8rem;
    margin-bottom: .5rem;
    color: var(--text)
}

.instructor-details .role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem
}

.instructor-details p {
    color: #ccc;
    line-height: 1.7
}

.studio-photos {
    padding: 80px 20px;
    background: linear-gradient(to bottom, var(--feature) 0%, var(--bg) 100%);
    position: relative
}

.studio-photos h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -.02em
}

.photo-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    grid-auto-flow: dense
}

.photo-item-simple {
    border-radius: 20px;
    overflow: hidden;
    background: var(--card);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.photo-item-simple::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1
}

.photo-item-simple:hover::before {
    opacity: 1
}

.photo-item-simple:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3)
}

.photo-item-simple.large {
    grid-column: span 2;
    grid-row: span 2
}

.photo-item-simple.photo-item {
    cursor: pointer;
    /* NEW: Only clickable photos get pointer cursor */
}

.photo-item-simple img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1)
}

.photo-item-simple:hover img {
    transform: scale(1.1)
}

.photo-item-simple.large img {
    min-height: 400px
}

.photo-item-simple p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    text-align: center;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 2;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
    letter-spacing: 0.5px
}

.photo-item-simple:hover p {
    transform: translateY(0)
}

/* Studio photos - entrance animation */
.photo-item-simple {
    animation: photoFadeIn 0.6s ease-out forwards;
    opacity: 0
}

.photo-item-simple:nth-child(1) {
    animation-delay: 0.1s
}

.photo-item-simple:nth-child(2) {
    animation-delay: 0.2s
}

.photo-item-simple:nth-child(3) {
    animation-delay: 0.3s
}

.photo-item-simple:nth-child(4) {
    animation-delay: 0.4s
}

.photo-item-simple:nth-child(5) {
    animation-delay: 0.5s
}

@keyframes photoFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

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

/* Reviews Horizontal Carousel */
.reviews-simple {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--bg) 0%, rgba(102, 126, 234, 0.05) 100%);
    overflow: hidden;
}

.reviews-simple h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 3rem;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -.02em;
}

.reviews-carousel-wrapper {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
    padding: 1rem 0;
}

.reviews-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 2rem 2rem;
    margin: 0 -2rem;
    cursor: grab;
}

.reviews-carousel:active {
    cursor: grabbing;
}

/* Hide scrollbar but keep functionality */
.reviews-carousel::-webkit-scrollbar {
    height: 8px;
}

.reviews-carousel::-webkit-scrollbar-track {
    background: var(--feature);
    border-radius: 10px;
    margin: 0 2rem;
}

.reviews-carousel::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
    transition: background 0.3s;
}

.reviews-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* For Firefox */
.reviews-carousel {
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--feature);
}

.review-card {
    flex: 0 0 auto;
    width: 400px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-8px) scale(1.02);
    z-index: 10;
}

/* Pause auto-scroll on hover */
.reviews-carousel:hover {
    scroll-snap-type: none;
}

.review-content {
    background: var(--card);
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.review-card:hover .review-content {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    border-left-width: 6px;
}

.quote-icon {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.08;
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.review-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    font-style: italic;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.author-name {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    font-style: normal;
}

.scroll-hint {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    margin-top: 2rem;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}


/* Gallery Page
   ========================================================================== */
/* ==========================================================================
   GALLERY PAGE - Hero Banner (Matches Classes Page)
   ========================================================================== */

.gallery-hero {
    position: relative;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    overflow: hidden;
    margin-bottom: 0;
}

.gallery-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(233, 30, 99, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(102, 126, 234, 0.08) 0%, transparent 50%);
    animation: bgPulse 8s ease-in-out infinite;
    pointer-events: none;
}

.gallery-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.gallery-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), #f5576c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gallery-hero p {
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 0;
    animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    opacity: 0;
}

.performance-highlights {
    padding: 80px 20px;
    background: var(--bg);
    margin-bottom: 0;
}

.performance-highlights h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -.02em
}

.featured-performance {
    max-width: 1000px;
    margin: 0 auto 4rem;
    background: var(--card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
    transition: transform .3s
}

.featured-performance:hover {
    transform: translateY(-5px)
}

.featured-media {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
    background: #000
}

.featured-media video {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s
}

.featured-performance:hover .play-overlay {
    background: rgba(0, 0, 0, .5)
}

.play-button-large {
    width: 80px;
    height: 80px;
    background: rgba(233, 30, 99, .3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    transition: all .3s;
    border: 3px solid #fff
}

.featured-performance:hover .play-button-large {
    transform: scale(1.1);
    background: rgba(233, 30, 99, 1)
}

.featured-info {
    padding: 2.5rem
}

.featured-info h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: .5rem
}

.featured-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    color: #999;
    flex-wrap: wrap
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: .5rem
}

.featured-description {
    color: var(--text);
    line-height: 1.8;
    font-size: 1.05rem
}

/* ==========================================================================
   FEATURED SHOWCASE WITH VIDEO CAROUSEL
   ========================================================================== */

/* Latest Label Badge - Keep existing */
.latest-label {
    text-align: center;
    margin-bottom: 1.5rem;
}

.badge-new {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), #f5576c);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(233, 30, 99, 0.6);
    }
}

/* Featured Showcase Container */
.featured-showcase {
    max-width: 1000px;
    margin: 0 auto 5rem;
    background: var(--card);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Showcase Header */
.showcase-header {
    text-align: center;
    margin-bottom: 2rem;
}

.showcase-header h3 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.showcase-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #999;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

/* Video Switcher Tabs */
.showcase-video-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
    scrollbar-width: thin;
}

.showcase-video-tabs::-webkit-scrollbar {
    height: 4px;
}

.showcase-video-tabs::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.showcase-tab {
    flex: 1;
    min-width: 150px;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.showcase-tab .tab-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    letter-spacing: 1px;
}

.showcase-tab .tab-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

.showcase-tab:hover {
    background: rgba(233, 30, 99, 0.05);
}

.showcase-tab.active {
    border-bottom-color: var(--primary);
}

.showcase-tab.active .tab-number {
    color: var(--primary);
}

.showcase-tab.active .tab-label {
    color: var(--primary);
}

/* Video Container */
.showcase-video-container {
    position: relative;
}

.showcase-video {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.showcase-video.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.video-description {
    margin-top: 1.5rem;
    color: #ccc;
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: center;
}

/* ==========================================================================
   PAST PERFORMANCES - HORIZONTAL TIMELINE
   ========================================================================== */

.past-performances-timeline {
    margin-top: 5rem;
    padding-top: 3rem;
    position: relative;
}

/* Timeline line decoration */
.past-performances-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--primary));
}

.timeline-heading {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--text);
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
}

.timeline-heading::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
}

/* Timeline Container */
.timeline-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 2rem 0;
}

/* Timeline Item */
.timeline-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
    opacity: 0;
    animation: slideInFromLeft 0.6s ease-out forwards;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    animation: slideInFromRight 0.6s ease-out forwards;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Timeline Date Badge */
.timeline-date {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--grad1), var(--grad2));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    position: relative;
    z-index: 2;
}

.timeline-date .month {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-date .year {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Timeline Card */
.timeline-card {
    flex: 1;
    background: var(--card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    gap: 1.5rem;
}

.timeline-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

/* Timeline Thumbnail */
.timeline-thumb {
    position: relative;
    width: 280px;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.timeline-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-card:hover .timeline-thumb video {
    transform: scale(1.15);
}

.timeline-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.timeline-card:hover .timeline-play {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    transform: translate(-50%, -50%) scale(1.15);
}

/* Timeline Info */
.timeline-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-info h4 {
    color: var(--text);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.timeline-info p {
    color: #999;
    line-height: 1.7;
    font-size: 0.95rem;
}

.class-videos h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -.02em;
}

.class-videos .section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #999;
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.video-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap
}

.video-tab {
    padding: 12px 30px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 25px;
    color: var(--text);
    cursor: pointer;
    transition: all .3s;
    font-weight: 600
}

.video-tab:hover {
    border-color: #667eea;
    transform: translateY(-2px)
}

.video-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: #fff
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    min-height: 400px;
    align-items: start
}

.video-card {
    background: var(--card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
    transition: all .3s
}

.video-card.hidden {
    display: none
}

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

.video-thumb {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    overflow: hidden;
    cursor: pointer
}

.video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .8;
    transition: all .3s
}

.video-card:hover .video-thumb video {
    opacity: 1;
    transform: scale(1.05)
}

/* NEW: Unified play button theme - matches timeline-play */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.video-card:hover .video-play-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    transform: translate(-50%, -50%) scale(1.15);
    border-color: rgba(255, 255, 255, 0.8);
}

.video-info {
    padding: 1.5rem
}

.video-info h4 {
    color: var(--text);
    margin-bottom: .5rem;
    font-size: 1.1rem
}

.video-meta {
    color: #999;
    font-size: .9rem
}

.social-feed {
    padding: 80px 20px;
    background: var(--bg);
    text-align: center
}

.social-feed h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -.02em
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto
}

.social-card {
    background: var(--card);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
    transition: all .3s;
    text-decoration: none
}

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .2)
}

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

.social-card h3 {
    color: var(--text);
    margin-bottom: .5rem;
    font-size: 1.3rem
}

.social-card p {
    color: #999;
    font-size: .95rem
}

.photo-gallery {
    padding: 80px 20px;
    background: var(--bg)
}

.photo-gallery h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -.02em
}

.gallery-grid-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .15);
    transition: all .3s
}

.photo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .25)
}

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

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

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
    opacity: 0;
    transition: opacity .3s;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem
}

.photo-item:hover .photo-overlay {
    opacity: 1
}

.photo-caption {
    color: #fff;
    font-size: .95rem;
    font-weight: 500
}

/* Lightbox & Video Modals
   ========================================================================== */
.lightbox,
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, .95);
    align-items: center;
    justify-content: center;
    padding: 2rem
}

.lightbox.active,
.video-modal.active {
    display: flex
}

.lightbox-content,
.video-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative
}

.video-modal-content {
    width: 100%;
    max-width: 1200px
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px
}

.lightbox-close,
.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s
}

.lightbox-close:hover,
.video-modal-close:hover {
    transform: scale(1.2)
}

.video-modal-close {
    top: -50px;
    z-index: 10001
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all .3s;
    z-index: 10000
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, .2);
    transform: translateY(-50%)scale(1.1)
}

.lightbox-prev {
    left: 20px
}

.lightbox-next {
    right: 20px
}

.lightbox-caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 1rem
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 10px;
    overflow: hidden
}

.video-player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain
}

.video-modal-info {
    color: #fff;
    padding: 1.5rem 0;
    font-family: var(--font-b)
}

.video-modal-info h3 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    margin-bottom: .5rem;
    font-family: var(--font-h);
    font-weight: 700
}

.video-modal-meta {
    color: #999;
    font-size: .95rem
}

/* YouTube-style controls with gradient */
.custom-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.7) 60%,
            transparent 100%);
    padding: 3rem 1rem 1rem;
    /* Extended padding for better gradient */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    /* Allow clicks through when hidden */
}

.custom-video-controls.show {
    opacity: 1;
    pointer-events: auto;
    /* Enable clicks when visible */
}

.video-player-wrapper:hover {
    opacity: 1
}

/* YouTube-style seek feedback animation */
.seek-feedback {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    z-index: 10002;
}

.seek-feedback.left {
    left: 20%;
}

.seek-feedback.right {
    right: 20%;
}

.seek-feedback i {
    font-size: 3rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
}

.seek-feedback span {
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

/* Progress bar - YouTube style */
.progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, .3);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: .8rem;
    position: relative;
    transition: height 0.2s ease;
}

.progress-bar:hover {
    height: 8px;
}

.progress-filled {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    width: 0;
    transition: width .1s;
    position: relative;
}

.progress-filled::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.progress-bar:hover .progress-filled::after {
    opacity: 1;
    width: 14px;
    height: 14px;
    right: -7px;
}

.controls-row {
    display: flex;
    align-items: center;
    gap: 1rem
}

.control-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.control-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.control-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.2);
}


.control-btn.play-pause {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%
}

.time-display {
    color: #fff;
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
    min-width: 100px
}

.volume-control {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto
}

.volume-slider {
    width: 80px;
    height: 4px;
    appearance: none;
    background: rgba(255, 255, 255, .3);
    border-radius: 2px;
    outline: 0;
    cursor: pointer
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none
}

.fullscreen-btn {
    margin-left: .5rem
}

/* ==========================================================================
   CONTACT PAGE - MODERNIZED
   ========================================================================== */

/* Contact Hero */
.contact-hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 100px 20px 60px;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.contact-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), #f5576c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #999;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--card);
    border-radius: 50px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.3s;
}

.contact-badge i {
    color: var(--primary);
    font-size: 1rem;
}

/* Contact Main Content */
.contact-main {
    padding: 80px 20px;
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    /* ADD THIS */
}

/* Modern Contact Form */
.contact-form-wrapper {
    position: relative;
    width: 100%;
    /* ADD THIS */
}

.contact-form-card {
    background: var(--card);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    position: sticky;
    top: 100px;
    width: 100%;
    /* ADD THIS */
}

.contact-form-card h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--grad1);
    font-weight: 700;
}

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

/* Floating Label Form Fields */
/* Contact Form Fields - FIXED double border */
.form-field {
    position: relative;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 1rem 1rem 0.5rem;
    background: var(--feature);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-b);
    color: var(--text);
    transition: all 0.3s;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 1.5rem;
}

.form-field label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #999;
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--primary);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
    outline: none;
}

.form-field input:focus+label,
.form-field textarea:focus+label,
.form-field input:not(:placeholder-shown)+label,
.form-field textarea:not(:placeholder-shown)+label {
    top: 0.25rem;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

.form-field input:not(:placeholder-shown),
.form-field textarea:not(:placeholder-shown) {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.form-required {
    position: absolute;
    right: 1rem;
    top: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.form-field input::-webkit-inner-spin-button,
.form-field input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-field input[type="number"] {
    -moz-appearance: textfield;
}

.form-field input:-webkit-autofill,
.form-field input:-webkit-autofill:hover,
.form-field input:-webkit-autofill:focus,
.form-field textarea:-webkit-autofill,
.form-field textarea:-webkit-autofill:hover,
.form-field textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--feature) inset !important;
    -webkit-text-fill-color: var(--text) !important;
    border: 2px solid var(--border) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Submit Button */
.btn-full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

.btn-full i {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.btn-full:hover i {
    transform: translateX(4px);
}

#formStatus {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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


/* Contact Info Sidebar */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    transition: all 0.3s;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.contact-info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 700;
}

.contact-info-card p {
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.address {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

/* Link Button */
.link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--feature);
    color: var(--primary);
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.link-button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateX(4px);
}

.link-button i {
    font-size: 1rem;
}

/* Hours List */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--feature);
    border-radius: 10px;
    font-size: 0.95rem;
}

.hours-row span:first-child {
    font-weight: 600;
    color: var(--text);
}

.hours-row span:last-child {
    color: #aaa;
}

.hours-row.closed span:last-child {
    color: #666;
    font-style: italic;
}

/* Contact Methods */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: var(--feature);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.contact-method:hover {
    background: var(--bg);
    border-color: var(--primary);
    transform: translateX(4px);
}

.contact-method i {
    font-size: 1.2rem;
    color: var(--primary);
    width: 24px;
    text-align: center;
}

/* Social Connect Grid */
.social-connect-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.social-connect-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: var(--feature);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.social-connect-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.social-connect-item i,
.social-connect-item .xhs-icon {
    font-size: 1.8rem;
}

.social-connect-item.instagram:hover {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    border-color: transparent;
}

.social-connect-item.wechat:hover {
    background: #07c160;
    color: #fff;
    border-color: transparent;
}

.social-connect-item.xiaohongshu:hover {
    background: #ff2442;
    color: #fff;
    border-color: transparent;
}

/* Map Section */
.contact-map-section {
    padding: 80px 20px;
    background: var(--feature);
}

.contact-map-section h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
    color: var(--text);
    font-weight: 800;
}

.map-container-modern {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 50%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--border);
    transition: all 0.3s;
    max-width: 1200px;
    margin: 0 auto;
}

.map-container-modern:hover {
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(-4px);
}

.map-container-modern iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

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

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

.contact-info-card:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-info-card:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-info-card:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-info-card:nth-child(4) {
    animation-delay: 0.4s;
}


/* ==========================================================================
   FOOTER - MODERNIZED
   ========================================================================== */

footer {
    background: linear-gradient(to bottom, var(--bg) 0%, #0d0d0d 100%);
    color: var(--text);
    padding: 4rem 20px 2rem;
    margin-top: 0;
    border-top: 1px solid rgba(102, 126, 234, .2);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.footer-section:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-section:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-start;
}

.footer-brand-logo {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3));
    transition: all .3s;
}

.footer-brand-logo:hover {
    filter: brightness(1.1) drop-shadow(0 6px 12px rgba(233, 30, 99, .4));
    transform: translateY(-2px);
}

.footer-section p {
    color: #999;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-section h4 {
    margin-bottom: 1.25rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--primary), transparent);
}

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

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

.footer-section a {
    color: #aaa;
    text-decoration: none;
    transition: all .3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-section ul a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all .3s;
}

.footer-section ul a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

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

.social-links a {
    color: #aaa;
    text-decoration: none;
    transition: all .3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    /* REMOVED: background, padding, border, border-radius */
}

.social-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
    /* REMOVED: background, border-color, translateY, box-shadow */
}

.social-links a i {
    font-size: 1.2rem;
    transition: transform .3s;
}

.social-links a:hover i {
    transform: scale(1.15);
    /* REMOVED: rotate */
}

/* Add arrow on hover like Quick Links */
.social-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all .3s;
}

.social-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, .05);
    color: #666;
}

.footer-bottom p {
    font-size: 0.9rem;
    margin: 0;
}


/* WeChat Modal
   ========================================================================== */
.wechat-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn .3s
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.wechat-modal-content {
    background: var(--card);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    animation: slideUp .3s;
    border: 2px solid var(--border)
}

.wechat-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text);
    cursor: pointer;
    transition: all .3s;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%
}

.wechat-close:hover {
    color: var(--primary);
    background: var(--feature);
    transform: rotate(90deg)
}

.wechat-modal-content h3 {
    color: #07c160;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600
}

.qr-code-container {
    background: #fff;
    padding: 1.5rem;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .15)
}

.qr-code {
    width: 200px;
    height: 200px;
    display: block;
    border-radius: 10px
}

.wechat-id {
    color: var(--text);
    font-size: 1.1rem;
    margin-top: 1rem
}

.wechat-id strong {
    color: #07c160
}

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

/* ========================================================================
   Interactive Elements - Consistent Transitions
   ======================================================================== */

a,
button,
.video-tab,
.day-tab,
.photo-item,
.video-card,
.genre-card,
.class-card,
.feature-card,
.instructor-item,
.social-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1)
}

.photo-item img,
.video-thumb video,
.genre-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1)
}

/* ========================================================================
   Section Spacing Consistency
   ======================================================================== */

.features,
.genres-section,
.performance-highlights,
.class-videos,
.photo-gallery,
.social-feed,
.about-story,
.instructors-simple,
.studio-photos,
.reviews-simple,
.pricing-section {
    margin-bottom: 0;
    margin-top: 0
}

section+section {
    border-top: 1px solid transparent
}

/* ========================================================================
   Form Enhancement
   ======================================================================== */

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(102, 126, 234, 0.5)
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
    opacity: 0.8
}

.contact-form button[type="submit"] {
    width: 100%;
    max-width: 300px;
    margin: 1rem auto 0;
    display: block
}

/* ========================================================================
   Accessibility - Focus States
   ======================================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.video-tab:focus-visible,
.day-tab:focus-visible,
.nav-menu a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px
}

/* ==========================================================================
   WECHAT FLOATING WIDGET
   ========================================================================== */

.wechat-floating-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

/* Collapsed Button */
.wechat-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #07c160, #06a94d);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(7, 193, 96, .4);
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    font-family: var(--font-b);
}

.wechat-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(7, 193, 96, .5);
    background: linear-gradient(135deg, #06a94d, #058a3f);
}

.wechat-trigger:active {
    transform: translateY(-1px);
}

.wechat-trigger i {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.wechat-trigger:hover i {
    transform: scale(1.1);
}

/* Expanded Popup */
.wechat-popup {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 1rem;
    background: var(--card);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
    border: 1px solid rgba(255, 255, 255, .1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    min-width: 280px;
}

.wechat-floating-widget.expanded .wechat-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wechat-popup-content {
    text-align: center;
}

.wechat-popup h4 {
    color: #07c160;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.wechat-popup h4::before {
    content: '💬';
    font-size: 1.3rem;
}

.wechat-qr-wrapper {
    background: #fff;
    padding: 1rem;
    border-radius: 16px;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
    border: 2px solid #07c160;
}

.wechat-qr-img {
    width: 180px;
    height: 180px;
    display: block;
    border-radius: 8px;
}

.wechat-popup-id {
    color: var(--text);
    font-size: 0.9rem;
    margin: 0;
    padding: 0.5rem 1rem;
    background: rgba(7, 193, 96, .1);
    border-radius: 10px;
    border: 1px solid rgba(7, 193, 96, .2);
}

.wechat-popup-id strong {
    color: #07c160;
    font-weight: 700;
}

/* Arrow pointing to button */
.wechat-popup-arrow {
    position: absolute;
    bottom: -8px;
    right: 2rem;
    width: 16px;
    height: 16px;
    background: var(--card);
    border-right: 1px solid rgba(255, 255, 255, .1);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    transform: rotate(45deg);
}

/* NEW: Copyable WeChat ID styles */
.wechat-popup-id {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.2s;
    position: relative;
}

.wechat-popup-id:hover {
    background: rgba(7, 193, 96, 0.15);
    transform: scale(1.02);
}

.wechat-popup-id:active {
    transform: scale(0.98);
}

.wechat-id-value {
    font-weight: 700;
    color: #07c160;
}

.wechat-copy-icon {
    margin-left: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.wechat-popup-id:hover .wechat-copy-icon {
    opacity: 1;
}

.wechat-copy-hint {
    animation: fadeInUp 0.3s ease-out;
}

/* Tablet - Stack form and sidebar */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-form-card {
        position: relative;
        top: 0;
    }

    .contact-info-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Responsive - Mobile First
   ========================================================================== */
@media(max-width:768px) {

    .seek-feedback {
        font-size: 1.5rem;
    }

    .seek-feedback i {
        font-size: 2rem;
    }

    .seek-feedback span {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .seek-feedback.left {
        left: 15%;
    }

    .seek-feedback.right {
        right: 15%;
    }

    .progress-filled::after {
        opacity: 1;
        width: 14px;
        height: 14px;
        right: -7px;
    }

    .progress-bar {
        height: 8px;
        padding: 10px 0;
    }

    .progress-bar:hover {
        height: 8px;
    }

    .hero-overlay::after {
        opacity: 0.3;
        /* Show subtle glow always on mobile */
    }

    .hero-badge:active,
    .level-card:active,
    .pricing-section .class-card:active {
        transform: scale(0.98);
    }

    .classes-hero {
        padding: 100px 20px 60px;
    }

    .classes-hero-badges {
        gap: 1rem;
        flex-direction: row;
        /* NEW: Allow horizontal wrapping */
        justify-content: center;
    }

    .hero-badge {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
        width: auto;
        /* NEW: Shrink to content */
        min-width: 44px;
        /* NEW: Maintain touch target */
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-intro {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .level-row {
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .level-badge {
        font-size: 1.3rem;
        width: 50px;
    }

    .level-info h4 {
        font-size: 1.2rem;
    }

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

    .pricing-section .class-card.popular {
        transform: scale(1);
    }

    .pricing-section .class-card.popular:hover {
        transform: translateY(-8px) scale(1.02);
    }

    /* Reduce animation complexity on mobile for performance */
    .hero-video {
        transform: scale(1) !important;
    }

    /* Simplify feature card animations */
    .feature-card::before {
        display: none;
    }

    /* Adjust scroll indicator for mobile */
    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-indicator-text {
        font-size: 0.75rem;
    }

    .scroll-arrow {
        width: 20px;
        height: 20px;
    }

    /* Reduce floating element size */
    .hero::after,
    .cta-section::after {
        font-size: 1.5rem;
    }


    /* Ensure smooth animations on mobile */
    .feature-card,
    .genre-card {
        will-change: transform;
    }

    .genres-section,
    .performance-highlights,
    .class-videos,
    .social-feed,
    .about-story,
    .instructors-simple,
    .studio-photos,
    .reviews-simple {
        padding: 60px 20px
    }

    /* Class videos - Mobile specific */
    .class-videos {
        padding: 60px 20px;
    }

    .class-videos h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .class-videos .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .video-tabs {
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .video-tab {
        padding: 10px 20px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .cta-section {
        padding: 80px 20px
    }

    .genres-section h2,
    .class-videos h2,
    .social-feed h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem
    }

    .section-subtitle,
    .genres-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem
    }

    .nav-logo {
        width: 32px;
        height: 32px
    }

    .nav-logo-text {
        height: 24px
    }

    .lang-toggle {
        min-width: 55px;
        height: 36px;
        font-size: .75rem;
        padding: .35rem .65rem
    }

    /* Mobile Navigation - FIXED */

    .nav-toggle {
        display: flex;
        z-index: 1002;
        position: relative;
    }

    /* FIX: Keep nav-toggle fixed when menu is active */
    .nav-menu.active~.nav-controls .nav-toggle {
        position: fixed;
        top: 17px;
        right: 20px;
        z-index: 1003;
    }

    /* Full-screen overlay menu */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(45, 45, 45, 0.98));
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
    }

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

    .nav-menu::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at 20% 80%, rgba(233, 30, 99, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 50%);
        animation: gradientShift 8s ease-in-out infinite;
        pointer-events: none;
        z-index: 0;
    }

    @keyframes gradientShift {

        0%,
        100% {
            opacity: 0.5;
        }

        50% {
            opacity: 0.8;
        }
    }

    .nav-menu li {
        width: 100%;
        max-width: 400px;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: none;
        padding: 0 1rem;
        position: relative;
        z-index: 1;
    }

    .nav-menu.active li:nth-child(1) {
        animation: slideInUp 0.5s 0.1s forwards;
    }

    .nav-menu.active li:nth-child(2) {
        animation: slideInUp 0.5s 0.2s forwards;
    }

    .nav-menu.active li:nth-child(3) {
        animation: slideInUp 0.5s 0.3s forwards;
    }

    .nav-menu.active li:nth-child(4) {
        animation: slideInUp 0.5s 0.4s forwards;
    }

    .nav-menu.active li:nth-child(5) {
        animation: slideInUp 0.5s 0.5s forwards;
    }

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

    .nav-menu a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.5rem 2rem;
        text-align: center;
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text);
        position: relative;
        border-radius: 16px;
        margin: 0.5rem 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        min-height: auto;
        word-break: normal;
        white-space: nowrap;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu a:hover {
        color: #fff;
        background: rgba(233, 30, 99, 0.15);
        transform: scale(1.05);
    }

    .nav-menu a.active {
        background: linear-gradient(135deg, var(--primary), #f5576c);
        color: #fff;
        box-shadow: 0 8px 30px rgba(233, 30, 99, 0.4);
        transform: scale(1.05);
        border-left: none;
    }

    .nav-menu a::before {
        content: '→';
        position: absolute;
        left: 1.5rem;
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s;
        font-size: 1.2rem;
    }

    .nav-menu a:hover::before,
    .nav-menu a.active::before {
        opacity: 1;
        transform: translateX(0);
    }

    /* FIX: Close hint - visible and positioned */
    .nav-menu::after {
        content: attr(data-close-hint);
        position: fixed;
        bottom: 3rem;
        left: 50%;
        transform: translateX(-50%);
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.9rem;
        font-weight: 500;
        text-align: center;
        letter-spacing: 0.5px;
        opacity: 0;
        transition: opacity 0.3s 0.6s;
        pointer-events: none;
        z-index: 2;
        /* background: rgba(0, 0, 0, 0.3); */
        padding: 0.75rem 1.5rem;
        border-radius: 25px;
        backdrop-filter: blur(10px);
        white-space: nowrap;
    }

    .nav-menu.active::after {
        opacity: 1;
    }

    .nav-container {
        height: 64px;
        padding: 0 15px;
    }

    .hero {
        min-height: 500px;
        height: 80vh;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }

    .hero-cta {
        gap: 1rem;
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-outline {
        width: 100%;
        max-width: 320px;
    }

    .btn-primary,
    .btn-outline {
        padding: 12px 24px;
        font-size: .95rem
    }

    .class-card:nth-child(5) {
        transform: none
    }

    .pricing-section .class-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 1.5rem
    }

    .about-hero-simple {
        padding: 100px 20px 60px
    }

    .about-hero-simple::before {
        width: 300px;
        height: 300px;
        right: -20%
    }

    .about-story {
        padding: 60px 20px
    }

    .about-story::after {
        display: none
    }

    .instructor-item {
        padding: 1.5rem;
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
        text-align: center
    }


    .instructor-item:hover {
        transform: translateY(-5px)
    }


    .instructor-photo-circle {
        width: 100px;
        /* was 120px */
        height: 100px;
        border-width: 3px
            /* NEW - thinner border */
    }

    .photo-grid-simple {
        grid-template-columns: 1fr;
        gap: 1.5rem
    }

    .photo-item-simple.large {
        grid-column: span 1;
        grid-row: span 1
    }

    .photo-item-simple img {
        min-height: 250px
    }

    .photo-item-simple.large img {
        min-height: 300px
    }

    .photo-item-simple p {
        transform: translateY(0);
        font-size: 0.95rem;
        padding: 1rem
    }

    footer {
        padding: 3rem 20px 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 2rem;
    }

    .footer-logo {
        justify-content: center;
        text-align: center;
    }

    .footer-brand-logo {
        max-width: 150px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        align-items: center;
        /* CHANGED from stretch */
    }


    .footer-bottom {
        font-size: 0.85rem;
    }

    .gallery-hero {
        padding: 100px 20px 60px;
    }


    .gallery-hero h1 {
        font-size: 2rem
    }

    .gallery-hero p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .featured-media {
        height: 300px
    }

    .featured-info {
        padding: 1.5rem
    }

    .featured-info h3 {
        font-size: 1.5rem
    }

    .featured-meta {
        flex-direction: column;
        gap: .5rem
    }

    .genres-section h2,
    .class-videos h2,
    .social-feed h2 {
        font-size: 2rem
    }

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

    .genre-image {
        height: 250px
    }

    .genre-overlay h3 {
        font-size: 2.5rem;
        letter-spacing: 2px
    }

    .genre-content {
        padding: 1.5rem
    }

    .genre-content h3 {
        font-size: 1.5rem
    }

    .play-button-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem
    }

    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .video-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .video-thumb {
        height: 220px;
    }

    .map-section {
        margin-top: 2rem;
        padding: 1rem 0
    }

    .map-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem
    }

    .map-container {
        padding-bottom: 75%;
        border-radius: 10px
    }

    .wechat-modal-content {
        padding: 2rem 1.5rem;
        max-width: 350px
    }

    .wechat-modal-content h3 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem
    }

    .qr-code-container {
        padding: 1rem
    }

    .qr-code {
        width: 180px;
        height: 180px
    }

    .wechat-close {
        top: 10px;
        right: 15px;
        font-size: 1.8rem;
        width: 30px;
        height: 30px
    }

    .lightbox {
        padding: 1rem
    }

    .lightbox-content {
        max-width: 95vw
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem
    }

    .lightbox-prev {
        left: 5px
    }

    .lightbox-next {
        right: 5px
    }

    .lightbox-close {
        top: 5px;
        right: 5px;
        font-size: 2rem;
        width: 35px;
        height: 35px
    }

    .lightbox-caption {
        position: relative;
        bottom: auto;
        margin-top: 1rem;
        padding: 0 .5rem;
        font-size: .9rem
    }

    .video-modal-close {
        top: 5px;
        right: 5px;
        font-size: 2rem;
        width: 35px;
        height: 35px
    }

    .video-modal {
        padding: 1rem
    }

    .video-modal-content {
        max-width: 95vw
    }

    .custom-video-controls {
        opacity: 1 !important;
        padding: 1rem .8rem .8rem
    }

    .controls-row {
        gap: .5rem
    }

    .control-btn {
        font-size: 1rem;
        padding: .4rem;
        min-width: 44px;
        min-height: 44px
    }

    .volume-slider {
        width: 60px
    }

    .time-display {
        font-size: .8rem;
        min-width: 85px
    }

    /* Reviews Carousel */
    .reviews-simple {
        padding: 60px 20px;
    }

    .review-card {
        width: 320px;
    }

    .review-content {
        padding: 2rem;
    }

    .review-content p {
        font-size: 1.05rem;
    }

    .reviews-carousel {
        padding: 1rem 1rem 2rem;
        margin: 0 -1rem;
        gap: 1.5rem;
    }

    .content-section .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .calendar-section-wrapper {
        margin-left: 0;
        margin-right: 0;
    }

    .calendar-widget {
        padding: 1rem;
        margin: 1.5rem 0;
        border-radius: 16px;
    }

    .calendar-header {
        gap: 1rem;
        padding-left: 0;
        padding-right: 0;
    }

    .calendar-header h3 {
        font-size: 1.2rem;
        word-break: break-word;
        padding: 0 0.5rem;
        flex: 1;
        text-align: center;
    }

    .month-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
        flex-basis: 36px;
        flex-shrink: 0;
        padding: 0;
    }

    .weekday {
        font-size: 0.7rem;
        padding: 0.4rem 0;
    }

    .calendar-date {
        min-height: 44px;
        padding: 0.4rem;
        border-radius: 10px;
        box-sizing: border-box;
    }


    .date-number {
        font-size: 0.85rem;
    }

    .date-indicator {
        width: 4px;
        height: 4px;
    }

    #schedule-display {
        padding: 1.25rem;
    }

    .schedule-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .schedule-header h2 {
        font-size: 1.25rem;
    }

    /* NEW: Condensed mobile schedule cards */
    .schedule-card {
        padding: 0.875rem;
        border-left-width: 3px;
    }

    .schedule-card-row {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.4rem;
    }

    .schedule-card-row:last-child {
        margin-bottom: 0;
    }

    .schedule-icon {
        font-size: 0.95rem;
        width: 20px;
    }

    .schedule-label {
        display: none;
        /* Hide labels on mobile to save space */
    }

    .schedule-value {
        font-size: 0.9rem;
        flex: 1;
    }

    /* Make time more prominent */
    .schedule-card-row:first-child .schedule-value {
        font-weight: 700;
        color: var(--primary);
        font-size: 0.95rem;
    }

    /* Compact empty state */
    .schedule-empty {
        padding: 2rem 1rem;
        font-size: 0.9rem;
    }

    /*  wechat floating widget */
    .wechat-floating-widget {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .wechat-trigger {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .wechat-trigger i {
        font-size: 1.3rem;
    }

    .wechat-popup {
        padding: 1.25rem;
        min-width: 260px;
        margin-bottom: 0.75rem;
    }

    .wechat-popup h4 {
        font-size: 1rem;
    }

    .wechat-qr-img {
        width: 160px;
        height: 160px;
    }

    .wechat-popup-id {
        font-size: 0.85rem;
    }

    /* Contact Hero - Mobile optimized */
    .contact-hero {
        padding: 80px 20px 50px;
    }

    .contact-hero::before {
        width: 300px;
        height: 300px;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-hero p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .contact-badges {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
        width: 100%;
        margin: 0 auto;
    }

    .contact-badge {
        display: flex;
        flex: 0 1 auto;
        align-items: center;
        justify-content: center;
        min-width: 140px;
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    .contact-badge i {
        flex-shrink: 0;
    }

    .contact-badge span {
        display: inline-block;
    }

    /* Contact Main - Mobile layout */
    .contact-main {
        padding: 50px 0;
    }

    .contact-main .container {
        padding: 0;
    }

    .contact-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Form wrapper - Full width on mobile */
    .contact-form-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        margin: 0;
    }

    .contact-form-card {
        width: 100%;
        max-width: 100%;
        padding: 1.75rem 1.25rem;
        margin: 0;
        border-radius: 16px;
    }

    .contact-form-card h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Form fields - Mobile optimized */
    .modern-contact-form {
        gap: 1.25rem;
    }

    .form-field input,
    .form-field textarea {
        padding: 0.875rem;
        font-size: 1rem;
        border-radius: 10px;
    }

    .form-field label {
        left: 0.875rem;
        font-size: 0.95rem;
    }

    .form-field input:focus+label,
    .form-field textarea:focus+label,
    .form-field input:not(:placeholder-shown)+label,
    .form-field textarea:not(:placeholder-shown)+label {
        top: 0.35rem;
        font-size: 0.7rem;
    }

    .form-required {
        right: 0.875rem;
        top: 0.875rem;
    }

    .form-field textarea {
        min-height: 100px;
        padding-top: 1.25rem;
    }

    /* Button - Full width on mobile */
    .btn-full {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    #formStatus {
        margin-top: 1rem;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    /* Sidebar - Full width stack on mobile */
    .contact-info-sidebar {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .contact-info-card {
        width: 100%;
        max-width: 100%;
        padding: 1.5rem;
        margin: 0;
        border-radius: 16px;
    }

    .card-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .contact-info-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

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

    /* Contact methods - Stack on mobile */
    .contact-methods {
        gap: 0.625rem;
    }

    .contact-method {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    /* Hours list - Compact on mobile */
    .hours-row {
        padding: 0.625rem;
        font-size: 0.875rem;
    }

    /* Social connect - Single column */
    .social-connect-grid {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }

    .social-connect-item {
        padding: 0.875rem;
        font-size: 0.85rem;
    }

    .social-connect-item i,
    .social-connect-item .xhs-icon {
        font-size: 1.5rem;
    }

    /* Map - Mobile aspect ratio */
    .contact-map-section {
        padding: 50px 20px;
    }

    .contact-map-section h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .map-container-modern {
        padding-bottom: 75%;
        border-radius: 16px;
    }

    .featured-showcase {
        padding: 1.5rem;
        border-radius: 16px;

    }

    .showcase-video-tabs {
        gap: 0.5rem;
        padding-bottom: 0.5rem;

    }

    .showcase-tab {
        min-width: 120px;
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }

    .showcase-tab .tab-number {
        font-size: 0.7rem;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .timeline-date {
        width: 80px;
        height: 80px;
    }

    .timeline-card {
        flex-direction: column;
        width: 100%;
    }

    .timeline-thumb {
        width: 100%;
        height: 200px;
    }

    .timeline-info {
        padding: 1.5rem;
        text-align: left;

    }

    .timeline-info h4 {
        font-size: 1.2rem;
    }

}

@media(max-width:640px) {
    .schedule-table {
        border: 0
    }

    .schedule-table thead {
        display: none
    }

    .schedule-table tbody,
    .schedule-table tr,
    .schedule-table td {
        display: block;
        width: 100%
    }

    .schedule-table tr {
        margin-bottom: 1rem;
        background: var(--card);
        border: 2px solid var(--border);
        border-radius: 10px;
        padding: 0;
        overflow: hidden
    }

    .schedule-table tr:hover {
        border-color: var(--primary)
    }

    .schedule-table td {
        border: none;
        padding: .75rem 1rem;
        text-align: left;
        position: relative;
        border-bottom: 1px solid var(--border)
    }

    .schedule-table td:last-child {
        border-bottom: none
    }

    .schedule-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary);
        display: block;
        margin-bottom: .25rem;
        font-size: .85rem;
        text-transform: uppercase;
        letter-spacing: .5px
    }

    .schedule-table td[colspan="4"] {
        text-align: center;
        padding: 2rem 1rem
    }

    .schedule-table td[colspan="4"]::before {
        display: none
    }

    /* Mobile phones - Force single column */
    .video-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .video-thumb {
        height: 200px;
    }

}

@media(max-width:480px) {

    /* Further reduce animations on very small screens */
    @keyframes bounce {

        0%,
        100% {
            transform: translateX(-50%) translateY(0);
        }

        50% {
            transform: translateX(-50%) translateY(-5px);
        }
    }

    .classes-hero {
        padding: 80px 15px 50px;
    }

    .classes-hero-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .level-row {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .level-badge {
        width: 100%;
    }

    /* Simplify genre overlay animation */
    .genre-overlay h3 {
        font-size: 2rem;
    }

    .nav-logo {
        width: 32px;
        height: 32px
    }

    .nav-logo-text {
        height: 22px
    }

    .lang-toggle {
        min-width: 55px;
        font-size: .75rem
    }

    .cta-button {
        width: 62px;
        height: 62px;
        font-size: .6rem;
        padding: .45rem .25rem;
        gap: .1rem;
        line-height: .95;
        font-weight: 700
    }

    .cta-icon {
        font-size: 1.15rem;
        margin-bottom: .15rem
    }

    .map-container {
        padding-bottom: 100%
    }

    .qr-code {
        width: 160px;
        height: 160px
    }

    .pricing-section .class-grid {
        max-width: 100%;
        gap: 1rem
    }

    .class-card {
        padding: 1.5rem
    }

    .lightbox-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        border-width: 1px
    }

    .lightbox-prev {
        left: 2px
    }

    .lightbox-next {
        right: 2px
    }

    .lightbox-close {
        width: 30px;
        height: 30px;
        font-size: 1.8rem
    }

    .custom-video-controls {
        padding: .8rem .5rem .5rem
    }

    .controls-row {
        gap: .3rem
    }

    .control-btn {
        font-size: .9rem;
        padding: .3rem;
        min-width: 40px;
        min-height: 40px
    }

    .volume-slider {
        width: 50px
    }

    .time-display {
        font-size: .75rem;
        min-width: 80px
    }

    /* Reviews Carousel */
    .review-card {
        width: 280px;
    }

    .review-content {
        padding: 1.5rem;
    }

    .review-content p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .quote-icon {
        font-size: 4rem;
        top: 1rem;
        left: 1rem;
    }

    .scroll-hint {
        font-size: 0.85rem;
    }

    /* Class Schedule */
    .calendar-date {
        min-height: 40px;
        padding: 0.3rem;
        border-radius: 8px;
    }

    .date-number {
        font-size: 0.8rem;
    }

    /* NEW: Extra condensed for very small screens */
    .schedule-card {
        padding: 0.75rem;
        border-radius: 10px;
    }

    .schedule-card-row {
        gap: 0.4rem;
        margin-bottom: 0.35rem;
    }

    .schedule-icon {
        font-size: 0.85rem;
        width: 18px;
    }

    .schedule-value {
        font-size: 0.85rem;
    }

    .schedule-card-row:first-child .schedule-value {
        font-size: 0.9rem;
    }

    .class-count-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }

    footer {
        padding: 2.5rem 15px 1.25rem;
    }

    .footer-brand-logo {
        max-width: 130px;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    /* wechat floating widget */
    .wechat-floating-widget {
        bottom: 1.25rem;
        right: 1.25rem;
    }

    .wechat-trigger {
        padding: 0.65rem 0.875rem;
        font-size: 0.8rem;
    }

    .wechat-trigger span {
        display: none;
        /* Show icon only on very small screens */
    }

    .wechat-trigger {
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .wechat-trigger i {
        font-size: 1.5rem;
    }

    .wechat-popup {
        right: -0.5rem;
        /* Center better on small screens */
    }

    .wechat-popup-arrow {
        right: 1.5rem;
    }

    .contact-hero {
        padding: 70px 15px 40px;
    }

    .contact-hero h1 {
        font-size: 1.75rem;
    }

    .contact-badges {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        width: 100%;
    }

    .contact-badge {
        display: flex;
        width: auto;
        min-width: 200px;
        max-width: 280px;
        justify-content: center;
        align-items: center;
    }

    .contact-main {
        padding: 40px 0;
    }

    .contact-grid {
        gap: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 0 15px;
    }

    .contact-form-card {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .contact-form-card h2 {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }

    .modern-contact-form {
        gap: 1rem;
    }

    .form-field input,
    .form-field textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .form-field label {
        left: 0.75rem;
        font-size: 0.9rem;
    }

    .form-required {
        right: 0.75rem;
        top: 0.75rem;
    }

    .btn-full {
        padding: 0.8rem 1.25rem;
        font-size: 0.95rem;
    }

    .contact-info-sidebar {
        padding: 0 15px;
        gap: 1rem;
    }

    .contact-info-card {
        padding: 1.25rem;
    }

    .card-icon {
        font-size: 1.75rem;
    }

    .contact-info-card h3 {
        font-size: 1.1rem;
    }

    .contact-map-section {
        padding: 40px 15px;
    }

    .map-container-modern {
        padding-bottom: 100%;
    }

    /* FIX: Ensure map section container is full width on mobile */
    .contact-map-section .container {
        padding: 0 15px;
    }

    .showcase-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .timeline-date {
        width: 70px;
        height: 70px;
    }

    .timeline-date .month {
        font-size: 0.95rem;
    }

    .timeline-info h4 {
        font-size: 1.2rem;
    }

    .gallery-hero {
        padding: 80px 15px 50px;
    }

    .content-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .calendar-widget {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .calendar-header {
        gap: 0.75rem;
    }

    .calendar-header h3 {
        font-size: 1.1rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .month-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
        flex-basis: 32px;
    }

    .calendar-dates {
        gap: 3px;
    }

    .calendar-weekdays {
        gap: 3px;
    }

    .calendar-date {
        min-height: 40px;
        padding: 0.3rem;
        border-radius: 8px;
    }

    .form-field input,
    .form-field textarea {
        font-size: 0.95rem;
        padding-left: 0.875rem;
        padding-right: 0.875rem;
        border-width: 2px;
    }

    .form-field label {
        left: 0.875rem;
    }

    .form-required {
        right: 0.875rem;
    }

    /* Class videos - Small phones */
    .class-videos {
        padding: 50px 15px;
    }

    .class-videos h2 {
        font-size: 1.75rem;
    }

    .class-videos .section-subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .video-tabs {
        padding: 0 0.5rem;
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .video-tabs::-webkit-scrollbar {
        display: none;
    }

    .video-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    /* Video grid inherits from 640px breakpoint - stays single column */
    .video-grid {
        padding: 0 0.5rem;
        gap: 1.25rem;
    }
}

/* iPhone 17 Pro & similar (390px-430px) - Pixel perfect */
@media (max-width: 430px) and (min-width: 390px) {

    /* Calendar - Classes page */
    .calendar-widget {
        padding: 1rem;
        margin-left: 0;
        margin-right: 0;
    }

    .calendar-header {
        display: grid;
        grid-template-columns: 36px 1fr 36px;
        gap: 0.5rem;
        align-items: center;
    }

    .calendar-header h3 {
        text-align: center;
        padding: 0;
        margin: 0;
    }

    /* Hero CTA - Home page */
    .hero-cta {
        align-items: center;
        justify-content: center;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-outline {
        width: 100%;
        max-width: min(320px, calc(100vw - 3rem));
    }

    /* Contact page - Perfect centering */
    .contact-main .container {
        padding: 0;
    }

    .contact-grid {
        padding: 0;
    }

    .contact-form-wrapper {
        padding: 0 20px;
    }

    .contact-info-sidebar {
        padding: 0 20px;
    }

    .contact-form-card,
    .contact-info-card {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Touch devices
   ========================================================================== */
/* ==========================================================================
   Touch Device Optimizations
   ========================================================================== */

/* Show overlays by default on touch devices (no hover available) */
@media (hover: none) and (pointer: coarse) {

    /* Gallery photo overlays - always visible on touch */
    .gallery-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.9));
        padding: 1rem;
    }

    .gallery-overlay h4 {
        font-size: 1rem;
    }

    .photo-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    }

    /* Video controls always visible on touch devices */
    .custom-video-controls {
        opacity: 1 !important;
    }

    .video-player-wrapper:hover .custom-video-controls {
        opacity: 1 !important;
    }

    /* Larger touch targets for better mobile UX */
    .control-btn,
    .lightbox-nav,
    .nav-menu a,
    .day-tab {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }

    /* Progress bar - increase touch area */
    .progress-bar {
        height: 8px;
        padding: 8px 0;
        cursor: pointer;
        margin-bottom: 1rem;
    }

    .progress-bar:hover {
        height: 8px;
    }

    /* Volume slider - increase touch area */
    .volume-slider {
        height: 20px;
        padding: 10px 0;
        cursor: pointer;
    }

    .volume-slider::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
        margin-top: -6px;
    }

    .volume-slider::-moz-range-thumb {
        width: 16px;
        height: 16px;
    }

    /* Prevent iOS zoom on double tap */
    button,
    a,
    input,
    select,
    textarea {
        touch-action: manipulation;
    }

    /* Reviews Carousel */
    .review-card:hover {
        transform: none;
    }

    .reviews-carousel {
        scroll-snap-type: x mandatory;
    }

    .reviews-carousel::-webkit-scrollbar {
        display: none;
    }

    .reviews-carousel {
        scrollbar-width: none;
    }

}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {

    /* Fix volume slider appearance */
    .volume-slider {
        -webkit-appearance: none;
        background: rgba(255, 255, 255, 0.3);
    }

    .volume-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        background: white;
        border-radius: 50%;
        cursor: pointer;
    }

    /* Ensure fullscreen button shows on iOS mobile */
    @media (max-width: 768px) {
        .fullscreen-btn {
            display: flex;
        }
    }

    /* Fix video sizing on iOS */
    .hero-video,
    .featured-media video,
    .video-thumb video {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Android Chrome specific fixes */
@media (max-width: 768px) {

    /* Prevent viewport zoom on input focus */
    input,
    select,
    textarea {
        font-size: 16px;
    }

    /* Fix video controls on Android */
    .custom-video-controls {
        padding: 1rem 0.8rem 0.8rem;
    }

    /* Ensure touch-friendly spacing */
    .controls-row {
        gap: 0.5rem;
    }

    .control-btn {
        font-size: 1rem;
        padding: 0.4rem;
        min-width: 44px;
        min-height: 44px;
    }

    /* Volume control touch-friendly */
    .volume-control {
        gap: 0.3rem;
        display: flex;
        align-items: center;
    }

    .volume-slider {
        width: 60px;
        height: 20px;
        padding: 10px 0;
        cursor: pointer;
    }

    .time-display {
        font-size: 0.8rem;
        min-width: 85px;
    }

    /* Fullscreen button - increase touch target */
    .fullscreen-btn,
    #muteBtn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Very small touch devices */
@media (max-width: 480px) and (hover: none) {

    /* Further increase touch targets */
    .control-btn,
    .lightbox-nav {
        min-width: 48px;
        min-height: 48px;
    }

    /* Make modals more touch-friendly */
    .lightbox-close,
    .video-modal-close,
    .wechat-close {
        min-width: 44px;
        min-height: 44px;
    }

    .featured-media {
        height: 250px
    }

    .featured-info {
        padding: 1.25rem
    }

    .featured-info h3 {
        font-size: 1.3rem
    }

    .genres-section,
    .performance-highlights,
    .class-videos {
        padding: 50px 15px
    }

    .instructor-item {
        padding: 1.25rem
    }
}

/* FIX: iPhone SE specific (320px width) */
@media (max-width: 375px) {
    .contact-form-card {
        padding: 1.25rem 0.875rem;
    }

    .contact-info-card {
        padding: 1.25rem;
    }

    .form-field input,
    .form-field textarea {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }

    .form-field label {
        left: 0.875rem;
    }

    .form-required {
        right: 0.875rem;
    }

    .social-connect-grid {
        gap: 0.5rem;
    }

    .social-connect-item {
        padding: 0.875rem 0.5rem;
        font-size: 0.8rem;
    }

    .btn-full {
        font-size: 0.95rem;
        padding: 0.875rem 1.5rem;
    }

    .classes-hero-badges {
        gap: 0.75rem;
        /* Tighter spacing on small screens */
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {

    /* Reduce hero height in landscape */
    .hero {
        height: 100vh;
        min-height: 400px;
    }

    /* Reduce modal padding in landscape */
    .lightbox,
    .video-modal {
        padding: 0.5rem;
    }

    /* Optimize video modal for landscape */
    .video-modal-info {
        padding: 0.5rem 0;
    }

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

/* Prevent text selection on UI controls */
.nav-menu,
.nav-toggle,
.lang-toggle,
.cta-button,
.btn-primary,
.btn-secondary,
.btn-outline,
.video-tab,
.day-tab,
.control-btn,
.lightbox-nav,
.carousel-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Smooth scrolling for touch */
html {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth
}

/* Fix sticky elements on iOS */
.navbar {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Optimize touch scrolling */
.nav-menu,
.video-grid,
.genres-grid {
    -webkit-overflow-scrolling: touch;
}

/* Reduced motion preference support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-indicator {
        animation: none;
    }

    .hero-video {
        transform: scale(1) !important;
    }

    .classes-hero h1,
    .classes-hero p,
    .classes-hero-badges,
    .section-header,
    .calendar-widget,
    #schedule-display,
    .class-levels,
    .level-card,
    .pricing-section .class-card,
    .pricing-section+.cta-section {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .classes-hero-bg {
        animation: none;
    }

    .popular-badge {
        animation: none;
    }
}

/* FIX: Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ADD: Smooth scroll for schedule section */
#schedule-display {
    scroll-margin-top: 80px;
    /* Accounts for sticky navbar */
}

/* ==========================================================================
   COPYRIGHT PROTECTION & ASSET SECURITY
   ========================================================================== */

/* Disable right-click on images (basic deterrent) */
img {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* Disable right-click on videos */
video {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* Re-enable pointer events for video controls */
video::-webkit-media-controls,
video::-webkit-media-controls-enclosure {
    pointer-events: auto;
}

/* Re-enable for logos and interactive elements */
.nav-logo img,
.footer-logo img,
.footer-brand-logo,
button img,
a img {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    user-select: auto;
    -webkit-user-drag: auto;
    pointer-events: auto;
}

/* Prevent text selection of proprietary content */
.hero-title,
.hero-subtitle,
.instructor-details p,
.story-content p {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

/* Allow selection for user convenience areas */
.contact-info-card,
.schedule-card,
footer,
form {
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
}

/* Disable screenshot keyboard shortcuts (limited effectiveness) */
@media print {
    body::after {
        content: 'CONFIDENTIAL - © 2025 G-STAR DANCE STUDIO - DO NOT COPY';
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
        font-size: 72px;
        color: rgba(233, 30, 99, 0.1);
        z-index: 9999;
        pointer-events: none;
    }
}

/* Video watermark overlay */
.hero-video::after,
.featured-media video::after,
.video-thumb video::after,
.timeline-thumb video::after {
    content: 'G-STAR DANCE STUDIO';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 10;
    font-family: var(--font-h);
    letter-spacing: 1px;
}

/* Video container - position relative for watermark */
.hero,
.featured-media,
.video-thumb,
.timeline-thumb {
    position: relative;
}

/* Persistent watermark on video player */
.video-player-wrapper::before {
    content: '© G-STAR DANCE STUDIO';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    pointer-events: none;
    z-index: 10001;
    font-family: var(--font-b);
    letter-spacing: 0.5px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

/* FORCE thumb visible on all video modals - override everything */
.video-modal.active .progress-filled::after {
    opacity: 1 !important;
    width: 16px !important;
    height: 16px !important;
    right: -8px !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
    z-index: 10 !important;
}

/* Even larger on tablets/larger screens */
@media (min-width: 768px) {
    .video-modal.active .progress-filled::after {
        width: 18px !important;
        height: 18px !important;
        right: -9px !important;
        border: 2px solid var(--primary) !important;
    }
}