:root {
    --blue-primary: #4A90D9;
    --blue-dark: #2E5A8C;
    --purple-primary: #8B6BBF;
    --purple-light: #B8A0D9;
    --pink-primary: #E87AA4;
    --pink-light: #F5B5C8;
    --orange-primary: #F5A623;
    --orange-light: #FFD280;
    --teal-primary: #3DBDB5;
    --green-primary: #6BBF59;
    --yellow-primary: #FFE156;
    --bg-primary: #FEFCF8;
    --bg-cream: #FFF9F0;
    --bg-light-blue: #E8F4FD;
    --bg-light-purple: #F3EEFA;
    --bg-light-pink: #FDF0F4;
    --text-primary: #2D3047;
    --text-secondary: #5C6080;
    --text-muted: #8E92A8;
    --gradient-rainbow: linear-gradient(135deg, var(--blue-primary), var(--purple-primary), var(--pink-primary), var(--orange-primary));
    --gradient-blue-purple: linear-gradient(135deg, var(--blue-primary), var(--purple-primary));
    --gradient-pink-orange: linear-gradient(135deg, var(--pink-primary), var(--orange-primary));
    --gradient-teal-green: linear-gradient(135deg, var(--teal-primary), var(--green-primary));
    --shadow-soft: 0 4px 20px rgba(74, 144, 217, 0.15);
    --shadow-playful: 0 8px 30px rgba(139, 107, 191, 0.2);
    --shadow-card: 0 4px 15px rgba(45, 48, 71, 0.08);
    --border-light: rgba(139, 107, 191, 0.15);
    --font-display: 'Baloo 2', cursive;
    --font-body: 'Nunito', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin-bottom: 0.5rem; color: var(--text-primary); }
.section-title-accent { background: var(--gradient-blue-purple); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-subtitle { color: var(--text-secondary); font-size: 1.15rem; font-weight: 400; margin-bottom: 3rem; }

/* Decorative Blobs */
.blob-bg { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; z-index: -1; }
.blob-blue { background: var(--blue-primary); width: 400px; height: 400px; }
.blob-purple { background: var(--purple-light); width: 300px; height: 300px; }
.blob-pink { background: var(--pink-light); width: 350px; height: 350px; }
.blob-orange { background: var(--orange-light); width: 250px; height: 250px; }
.blob-teal { background: var(--teal-primary); width: 200px; height: 200px; }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1rem 0; background: rgba(254, 252, 248, 0.9); backdrop-filter: blur(20px); border-bottom: 2px solid var(--border-light); transition: all 0.3s ease; }
.nav.scrolled { padding: 0.6rem 0; box-shadow: var(--shadow-soft); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.nav-logo img { height: 50px; width: auto; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; font-weight: 600; transition: all 0.3s ease; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 3px; background: var(--gradient-pink-orange); border-radius: 2px; transition: width 0.3s ease; }
.nav-links a:hover { color: var(--purple-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { background: var(--gradient-pink-orange); color: white !important; padding: 0.7rem 1.5rem; border-radius: 50px; font-weight: 700; box-shadow: 0 4px 15px rgba(232, 122, 164, 0.3); }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232, 122, 164, 0.4); }
.nav-cta::after { display: none !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--purple-primary); border-radius: 3px; transition: all 0.3s ease; }

/* Hero Section */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 8rem 0 4rem; position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg-light-blue) 0%, var(--bg-primary) 100%); }
.hero .blob-blue { top: -100px; right: -100px; opacity: 0.3; }
.hero .blob-purple { bottom: 10%; left: -50px; opacity: 0.4; }
.hero .blob-pink { top: 30%; right: 10%; opacity: 0.25; width: 200px; height: 200px; }
.hero .blob-orange { bottom: 20%; right: 30%; opacity: 0.3; width: 150px; height: 150px; }

.hero-decor { position: absolute; pointer-events: none; }
.hero-star-1 { top: 15%; left: 10%; width: 30px; height: 30px; background: var(--orange-primary); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); animation: float 4s ease-in-out infinite; }
.hero-star-2 { top: 25%; right: 15%; width: 20px; height: 20px; background: var(--pink-primary); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); animation: float 3s ease-in-out infinite 0.5s; }
.hero-star-3 { bottom: 30%; left: 20%; width: 25px; height: 25px; background: var(--teal-primary); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); animation: float 5s ease-in-out infinite 1s; }
.hero-squiggle-1 { top: 40%; right: 8%; width: 50px; height: 25px; border: 4px solid var(--purple-light); border-radius: 50%; border-bottom-color: transparent; border-left-color: transparent; transform: rotate(-20deg); animation: wiggle 3s ease-in-out infinite; }
.hero-squiggle-2 { bottom: 25%; right: 25%; width: 40px; height: 20px; border: 3px solid var(--teal-primary); border-radius: 50%; border-bottom-color: transparent; border-left-color: transparent; transform: rotate(30deg); animation: wiggle 4s ease-in-out infinite 0.5s; }
.hero-dot-1 { top: 20%; left: 25%; width: 15px; height: 15px; background: var(--green-primary); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
.hero-dot-2 { bottom: 35%; left: 8%; width: 12px; height: 12px; background: var(--pink-primary); border-radius: 50%; animation: pulse 2.5s ease-in-out infinite 0.3s; }
.hero-dot-3 { top: 35%; left: 5%; width: 10px; height: 10px; background: var(--orange-primary); border-radius: 50%; animation: pulse 2s ease-in-out infinite 0.7s; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-15px) rotate(10deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-20deg); } 50% { transform: rotate(20deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.7; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }

.hero-content { text-align: center; max-width: 900px; position: relative; z-index: 1; }
.hero-logo { max-width: 400px; width: 90%; margin: 0 auto 2rem; animation: fadeInDown 0.8s ease both; }
.hero-logo img { width: 100%; height: auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.25rem; background: white; border: 2px solid var(--purple-light); border-radius: 50px; font-size: 0.9rem; font-weight: 600; color: var(--purple-primary); margin-bottom: 1.5rem; animation: fadeInUp 0.8s ease 0.2s both; box-shadow: var(--shadow-card); }
.hero-badge::before { content: ''; width: 10px; height: 10px; background: var(--green-primary); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
.hero-tagline { font-family: var(--font-display); font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 600; color: var(--purple-primary); margin-bottom: 1rem; animation: fadeInUp 0.8s ease 0.3s both; }
.hero-subtitle { font-size: clamp(1rem, 2.5vw, 1.2rem); color: var(--text-secondary); font-weight: 400; max-width: 650px; margin: 0 auto 2.5rem; line-height: 1.8; animation: fadeInUp 0.8s ease 0.5s both; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: fadeInUp 0.8s ease 0.7s both; }

.hero-platforms { margin-top: 4rem; padding-top: 3rem; border-top: 2px dashed var(--border-light); animation: fadeInUp 0.8s ease 0.9s both; }
.hero-platforms-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero-platforms-list { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.hero-platforms-list span { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text-secondary); padding: 0.5rem 1rem; background: white; border-radius: 10px; box-shadow: var(--shadow-card); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem; border-radius: 50px; font-family: var(--font-body); font-weight: 700; font-size: 1rem; text-decoration: none; transition: all 0.3s ease; cursor: pointer; border: none; }
.btn-primary { background: var(--gradient-blue-purple); color: white; box-shadow: 0 4px 20px rgba(74, 144, 217, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(74, 144, 217, 0.4); }
.btn-secondary { background: white; color: var(--purple-primary); border: 2px solid var(--purple-light); box-shadow: var(--shadow-card); }
.btn-secondary:hover { background: var(--bg-light-purple); border-color: var(--purple-primary); transform: translateY(-3px); }

/* About Section */
.about { padding: 6rem 0; background: var(--bg-cream); position: relative; overflow: hidden; }
.about .blob-purple { top: -100px; right: -100px; opacity: 0.2; }
.about .blob-teal { bottom: -50px; left: -50px; opacity: 0.2; }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.about-image { position: relative; }
.about-image-frame { position: relative; border-radius: 30px; overflow: hidden; background: white; padding: 1rem; box-shadow: var(--shadow-playful); transform: rotate(-2deg); transition: transform 0.3s ease; }
.about-image-frame:hover { transform: rotate(0deg); }
.about-image-inner { aspect-ratio: 4/5; background: linear-gradient(135deg, var(--bg-light-purple), var(--bg-light-pink)); border-radius: 24px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-weight: 600; }
.about-image-inner img { width: 100%; height: 100%; object-fit: cover; }
.about-image-decor-1 { position: absolute; top: -20px; right: -20px; width: 60px; height: 60px; background: var(--orange-primary); border-radius: 50%; z-index: 2; }
.about-image-decor-2 { position: absolute; bottom: -15px; left: -15px; width: 40px; height: 40px; background: var(--teal-primary); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); z-index: 2; }
.about-content h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1.5rem; line-height: 1.2; }
.about-content h2 span { color: var(--purple-primary); }
.about-content p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 1.1rem; line-height: 1.8; }
.about-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.about-highlight { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; background: white; border-radius: 16px; box-shadow: var(--shadow-card); transition: all 0.3s ease; }
.about-highlight:hover { transform: translateY(-4px); box-shadow: var(--shadow-playful); }
.about-highlight:nth-child(1) .about-highlight-icon { background: var(--gradient-blue-purple); }
.about-highlight:nth-child(2) .about-highlight-icon { background: var(--gradient-pink-orange); }
.about-highlight:nth-child(3) .about-highlight-icon { background: var(--gradient-teal-green); }
.about-highlight:nth-child(4) .about-highlight-icon { background: linear-gradient(135deg, var(--orange-primary), var(--yellow-primary)); }
.about-highlight-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.about-highlight-icon svg { width: 22px; height: 22px; stroke: white; }
.about-highlight-text { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }

/* Demos Section */
.demos { padding: 6rem 0; background: var(--bg-primary); position: relative; overflow: hidden; }
.demos .blob-pink { top: 10%; right: -100px; opacity: 0.2; }
.demos .blob-blue { bottom: 10%; left: -100px; opacity: 0.2; }
.demos-header { text-align: center; margin-bottom: 3rem; }
.demo-categories { display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 3rem; flex-wrap: wrap; }
.demo-category-btn { padding: 0.7rem 1.5rem; background: white; border: 2px solid var(--border-light); border-radius: 50px; color: var(--text-secondary); font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.demo-category-btn:hover { border-color: var(--purple-primary); color: var(--purple-primary); }
.demo-category-btn.active { background: var(--gradient-blue-purple); border-color: transparent; color: white; box-shadow: 0 4px 15px rgba(74, 144, 217, 0.3); }
.demos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 1.5rem; }
.demo-card { background: white; border: 2px solid var(--border-light); border-radius: 24px; padding: 1.5rem; transition: all 0.3s ease; position: relative; overflow: hidden; }
.demo-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient-rainbow); opacity: 0; transition: opacity 0.3s ease; }
.demo-card:hover { border-color: var(--purple-light); transform: translateY(-6px); box-shadow: var(--shadow-playful); }
.demo-card:hover::before { opacity: 1; }
.demo-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; }
.demo-card-info h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.25rem; }
.demo-card-info span { font-size: 0.9rem; color: var(--text-muted); }
.demo-card-category { padding: 0.4rem 0.9rem; background: var(--bg-light-purple); border-radius: 20px; font-size: 0.75rem; color: var(--purple-primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.demo-player { display: flex; align-items: center; gap: 1rem; }
.demo-play-btn { width: 52px; height: 52px; background: var(--gradient-blue-purple); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; flex-shrink: 0; box-shadow: 0 4px 15px rgba(74, 144, 217, 0.3); }
.demo-play-btn:hover { transform: scale(1.1); box-shadow: 0 6px 25px rgba(74, 144, 217, 0.4); }
.demo-play-btn svg { width: 22px; height: 22px; fill: white; margin-left: 3px; }
.demo-play-btn.playing svg { margin-left: 0; }
.demo-progress-container { flex: 1; }
.demo-progress { width: 100%; height: 8px; background: var(--bg-light-purple); border-radius: 4px; cursor: pointer; position: relative; overflow: hidden; }
.demo-progress-bar { height: 100%; background: var(--gradient-pink-orange); border-radius: 4px; width: 0%; transition: width 0.1s linear; }
.demo-time { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; font-weight: 600; }

/* Specialties Section */
.specialties { padding: 6rem 0; background: linear-gradient(180deg, var(--bg-light-purple) 0%, var(--bg-light-pink) 100%); position: relative; overflow: hidden; }
.specialties-header { text-align: center; margin-bottom: 4rem; }
.specialties-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.specialty-card { text-align: center; padding: 2.5rem 2rem; background: white; border-radius: 30px; box-shadow: var(--shadow-card); transition: all 0.3s ease; position: relative; }
.specialty-card::before { content: ''; position: absolute; top: -3px; left: -3px; right: -3px; bottom: -3px; background: var(--gradient-rainbow); border-radius: 33px; z-index: -1; opacity: 0; transition: opacity 0.3s ease; }
.specialty-card:hover { transform: translateY(-10px); }
.specialty-card:hover::before { opacity: 1; }
.specialty-icon { width: 90px; height: 90px; margin: 0 auto 1.5rem; border-radius: 24px; display: flex; align-items: center; justify-content: center; }
.specialty-card:nth-child(3n+1) .specialty-icon { background: var(--gradient-blue-purple); }
.specialty-card:nth-child(3n+2) .specialty-icon { background: var(--gradient-teal-green); }
.specialty-card:nth-child(3n+3) .specialty-icon { background: var(--gradient-pink-orange); }
.specialty-icon svg { width: 45px; height: 45px; stroke: white; }
.specialty-card h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-primary); }
.specialty-card p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; }

/* Studio Section */
.studio { padding: 6rem 0; background: var(--bg-primary); position: relative; overflow: hidden; }
.studio .blob-teal { top: 10%; left: -100px; opacity: 0.2; }
.studio .blob-orange { bottom: 10%; right: -100px; opacity: 0.2; }
.studio-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.studio-content h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1.5rem; line-height: 1.2; }
.studio-content h2 span { color: var(--purple-primary); }
.studio-content > p { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.1rem; line-height: 1.8; }
.equipment-list { display: flex; flex-direction: column; gap: 1rem; }
.equipment-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: white; border-radius: 16px; box-shadow: var(--shadow-card); transition: all 0.3s ease; }
.equipment-item:hover { transform: translateX(10px); box-shadow: var(--shadow-playful); }
.equipment-item:nth-child(4n+1) .equipment-icon { background: var(--gradient-blue-purple); }
.equipment-item:nth-child(4n+2) .equipment-icon { background: var(--gradient-pink-orange); }
.equipment-item:nth-child(4n+3) .equipment-icon { background: var(--gradient-teal-green); }
.equipment-item:nth-child(4n+4) .equipment-icon { background: linear-gradient(135deg, var(--orange-primary), var(--yellow-primary)); }
.equipment-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.equipment-icon svg { width: 24px; height: 24px; stroke: white; }
.equipment-info h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.25rem; }
.equipment-info p { font-size: 0.9rem; color: var(--text-muted); }
.studio-photos { position: relative; }
.studio-image-frame { position: relative; border-radius: 30px; overflow: hidden; background: white; padding: 1rem; box-shadow: var(--shadow-playful); transform: rotate(2deg); transition: transform 0.3s ease; }
.studio-image-frame:hover { transform: rotate(0deg); }
.studio-carousel { border-radius: 24px; overflow: hidden; position: relative; }
.studio-carousel-inner { display: flex; transition: transform 0.5s ease; }
.studio-carousel-slide { min-width: 100%; }
.studio-carousel-slide img { width: 100%; height: 350px; object-fit: cover; }
.carousel-nav { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; }
.carousel-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid white; background: transparent; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.carousel-dot.active { background: white; }
.carousel-arrows { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); display: flex; justify-content: space-between; padding: 0 0.5rem; }
.carousel-arrow { width: 40px; height: 40px; background: white; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; box-shadow: var(--shadow-card); }
.carousel-arrow:hover { background: var(--purple-primary); }
.carousel-arrow:hover svg { stroke: white; }
.carousel-arrow svg { width: 20px; height: 20px; stroke: var(--text-primary); }
.studio-image-decor-1 { position: absolute; top: -20px; left: -20px; width: 60px; height: 60px; background: var(--teal-primary); border-radius: 50%; z-index: 2; }
.studio-image-decor-2 { position: absolute; bottom: -15px; right: -15px; width: 40px; height: 40px; background: var(--pink-primary); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); z-index: 2; }

.training { padding: 6rem 0; background: var(--bg-cream); position: relative; overflow: hidden; }
.training .blob-orange { top: 20%; right: -80px; opacity: 0.2; }
.training-header { text-align: center; margin-bottom: 4rem; }
/* Horizontal scroller wrapper */
.training-scroller { overflow-x: auto; overflow-y: hidden; position: relative; -webkit-overflow-scrolling: touch; }
/* hide native scrollbar */
.training-scroller::-webkit-scrollbar { height: 8px; display: none; }
.training-scroller { -ms-overflow-style: none; scrollbar-width: none; }
/* Flex track for horizontal scrolling */
.training-grid { display: flex; gap: 1.5rem; align-items: stretch; padding-bottom: 0.5rem; width: max-content; }

/* Play/Pause control for training scroller */

/* Training items - clickable to open lightbox */
.training-item { position: relative; aspect-ratio: 3/4; background: white; border-radius: 20px; overflow: hidden; cursor: pointer !important; transition: all 0.3s ease; box-shadow: var(--shadow-card); padding: 0.5rem; flex: 0 0 320px; }
.training-item:hover { transform: scale(1.03) rotate(1deg); box-shadow: var(--shadow-playful); }
.training-item-inner { width: 100%; height: 100%; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, var(--bg-light-blue), var(--bg-light-purple)); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.training-item img { width: 100%; height: 100%; object-fit: cover; }
.training-item-overlay { position: absolute; inset: 0.5rem; background: linear-gradient(to top, rgba(45, 48, 71, 0.95), transparent 60%); border-radius: 16px; opacity: 0; transition: opacity 0.3s ease; display: flex; align-items: flex-end; padding: 1.25rem; pointer-events: none; }
.training-item:hover .training-item-overlay { opacity: 1; pointer-events: auto; }
.training-item-info h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: white; margin-bottom: 0.25rem; }
.training-item-info span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }

/* Custom scrollbar for manual scrolling */
.training-scrollbar {
    margin-top: 1.5rem;
    padding: 0 1rem;
}

.training-scrollbar-track {
    position: relative;
    height: 50px;
    background: white;
    border-radius: 25px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.training-scrollbar-thumb {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    min-width: 120px;
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-primary));
    border-radius: 25px;
    cursor: grab;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(139, 107, 191, 0.3);
}

.training-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--purple-light), var(--pink-light));
    box-shadow: 0 4px 20px rgba(139, 107, 191, 0.5);
    transform: scale(1.02);
}

.training-scrollbar-thumb:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.training-scrollbar-thumb.dragging {
    cursor: grabbing !important;
    transform: scale(0.98);
}

.training-scrollbar-label {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    user-select: none;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.training-scrollbar-label::before {
    content: '⇄';
    font-size: 1.2rem;
}

/* Hide scrollbar on mobile since touch scrolling works great */
@media (max-width: 768px) {
    .training-scrollbar {
        display: none;
    }
}

/* Conventions Section */
.conventions { padding: 6rem 0; background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-light-blue) 100%); position: relative; overflow: hidden; }
.conventions .blob-purple { top: 10%; left: -80px; opacity: 0.2; }
.conventions-header { text-align: center; margin-bottom: 4rem; }
.conventions-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.conventions-panel { background: white; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-card); }
.conventions-panel-header { padding: 1.25rem 1.5rem; background: linear-gradient(135deg, var(--bg-light-purple), var(--bg-light-pink)); display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: all 0.3s ease; }
.conventions-panel-header:hover { background: var(--bg-light-purple); }
.conventions-panel-header h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 0.75rem; }
.conventions-panel-header h3 svg { width: 24px; height: 24px; stroke: var(--purple-primary); }
.conventions-toggle { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; }
.conventions-toggle svg { width: 20px; height: 20px; stroke: var(--purple-primary); }
.conventions-panel.open .conventions-toggle { transform: rotate(180deg); }
.conventions-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.conventions-panel.open .conventions-body { max-height: 500px; }

/* On small/mobile viewports, allow the opened convention panel body to scroll
   vertically if its content is taller than the viewport. This constrains the
   panel to the available screen height and provides an inner scrollbar. */
@media (max-width: 768px) {
    .conventions-panel.open .conventions-body {
        /* keep header/other chrome visible; adjust the 140px if you have
           larger fixed headers or additional controls */
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-right: 0.5rem; /* avoid content getting hidden under scrollbar */
    }
}
.conventions-list { padding: 1.5rem; }
.convention-item { padding: 1rem; border: 2px solid var(--border-light); border-radius: 16px; margin-bottom: 1rem; transition: all 0.3s ease; }
.convention-item:last-child { margin-bottom: 0; }
.convention-item:hover { border-color: var(--purple-light); background: var(--bg-light-purple); }
.convention-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.25rem; }
.convention-details { font-size: 0.85rem; color: var(--text-muted); display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.convention-description { font-size: 0.9rem; color: var(--text-secondary); }

/* Contact Section */
.contact { padding: 6rem 0; background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-light-blue) 100%); position: relative; overflow: hidden; }
.contact .blob-purple { bottom: -100px; left: 20%; opacity: 0.2; }
.contact .blob-pink { top: 20%; right: -100px; opacity: 0.15; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1.5rem; line-height: 1.2; }
.contact-info h2 span { color: var(--pink-primary); }
.contact-info p { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.8; margin-bottom: 2rem; }
.contact-methods { display: flex; flex-direction: column; gap: 1rem; }
.contact-method { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; background: white; border-radius: 20px; text-decoration: none; color: var(--text-primary); box-shadow: var(--shadow-card); transition: all 0.3s ease; }
.contact-method:hover { transform: translateX(10px); box-shadow: var(--shadow-playful); }
.contact-method:nth-child(1) .contact-method-icon { background: var(--gradient-blue-purple); }
.contact-method:nth-child(2) .contact-method-icon { background: var(--gradient-pink-orange); }
.contact-method-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-method-icon svg { width: 26px; height: 26px; stroke: white; }
.contact-method-text { display: flex; flex-direction: column; }
.contact-method-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.contact-method-value { font-weight: 700; font-size: 1.05rem; }
.contact-form-wrapper { background: white; padding: 2.5rem; border-radius: 30px; box-shadow: var(--shadow-playful); position: relative; }
.contact-form-wrapper::before { content: ''; position: absolute; top: -3px; left: -3px; right: -3px; bottom: -3px; background: var(--gradient-rainbow); border-radius: 33px; z-index: -1; }
.contact-form h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--text-primary); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-primary); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 1rem 1.25rem; background: var(--bg-cream); border: 2px solid var(--border-light); border-radius: 14px; color: var(--text-primary); font-family: var(--font-body); font-size: 1rem; transition: all 0.3s ease; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--purple-primary); background: white; box-shadow: 0 0 0 4px rgba(139, 107, 191, 0.1); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit { width: 100%; padding: 1.1rem; background: var(--gradient-pink-orange); border: none; border-radius: 50px; color: white; font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(232, 122, 164, 0.3); }
.form-submit:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(232, 122, 164, 0.4); }
.social-links { display: flex; gap: 0.75rem; margin-top: 2rem; }
.social-link { width: 46px; height: 46px; background: white; border: 2px solid var(--border-light); border-radius: 14px; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.3s ease; }
.social-link:hover { background: var(--gradient-blue-purple); border-color: transparent; transform: translateY(-4px); }
.social-link svg { width: 22px; height: 22px; fill: var(--text-secondary); }
.social-link:hover svg { fill: white; }

/* Footer */
.footer { padding: 3rem 0; background: var(--bg-primary); border-top: 2px dashed var(--border-light); }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo img { height: 45px; width: auto; }
.footer-copy { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }

/* Featured Audio Player */
.featured-audio-player { position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top: 3px solid var(--purple-primary); padding: 1rem 2rem; display: none; align-items: center; gap: 1rem; z-index: 1000; box-shadow: 0 -5px 30px rgba(139, 107, 191, 0.2); }
.featured-audio-player.active { display: flex; }
.featured-audio-info { flex: 1; }
.featured-audio-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.featured-audio-subtitle { font-size: 0.8rem; color: var(--text-muted); }
.featured-audio-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 0.5rem; }
.featured-audio-close:hover { color: var(--pink-primary); }

/* Make modal dialogs viewport-safe and let the body scroll when content is tall */
.modal,
.admin-modal {
  /* ensure modal sits within viewport */
  --modal-vertical-margin: 20px;
}

/* Dialog as a flex container so content can size itself */
.modal .modal-dialog,
.admin-modal .modal-dialog {
  max-width: 900px; /* keep your existing width */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0; /* allow children to shrink */
}

/* Constrain overall modal content height to viewport */
.modal .modal-content,
.admin-modal .modal-content {
  max-height: calc(100vh - (var(--modal-vertical-margin) * 2));
  display: flex;
  flex-direction: column;
  overflow: hidden; /* prevent page scroll inside modal content */
  box-sizing: border-box;
}

/* Make the modal body scrollable when content is too tall */
.modal .modal-body,
.admin-modal .modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  /* subtract header/footer space if you have them; adjust as needed */
  max-height: calc(100vh - 160px);
  box-sizing: border-box;
}

/* Ensure header/footer stay visible */
.modal .modal-header,
.modal .modal-footer,
.admin-modal .modal-header,
.admin-modal .modal-footer {
  flex: 0 0 auto;
}

/* Optional: for very small viewports make modal almost full-screen */
@media (max-height: 500px) {
  .modal .modal-content,
  .admin-modal .modal-content {
    max-height: calc(100vh - 10px);
  }
  .modal .modal-body,
  .admin-modal .modal-body {
    max-height: calc(100vh - 120px);
  }
}

/* Responsive */
@media (max-width: 1024px) {
    .about-grid, .studio-grid, .contact-grid, .conventions-container { grid-template-columns: 1fr; gap: 3rem; }
    .about-image, .studio-photos { order: -1; max-width: 400px; margin: 0 auto; }
}
@media (max-width: 768px) {
    .nav-links { 
        position: fixed; 
        top: 0; 
        left: 0; 
        right: 0; 
        bottom: 0; 
        width: 100%;
        height: 100vh;
        background-color: #FFF9F0; 
        flex-direction: column; 
        align-items: center; 
        justify-content: center; 
        gap: 2rem; 
        opacity: 0; 
        visibility: hidden; 
        transition: all 0.3s ease; 
        z-index: 1000;
        margin: 0;
        padding: 0;
    }
    .nav-links.active { opacity: 1; visibility: visible; }
    .nav-links li { list-style: none; }
    .nav-links a { font-size: 1.5rem; color: #2D2A4A; }
    .nav-toggle { display: flex; z-index: 1001; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .specialties-grid, .demos-grid { grid-template-columns: 1fr; }
    .about-highlights { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; justify-content: center; }
    .hero-decor { opacity: 0.5; }
}
@media (max-width: 480px) {
    .hero-platforms-list { gap: 1rem; }
    .hero-platforms-list span { font-size: 0.9rem; padding: 0.4rem 0.8rem; }
    /* Keep training scroller horizontal on small screens rather than stacking vertically */
    .training-grid { display: flex; gap: 1rem; align-items: stretch; padding-bottom: 0.5rem; width: max-content; }
    /* Slightly narrower cards on small screens for better fit */
    .training-item { flex: 0 0 260px; }
    .demo-categories { gap: 0.5rem; }
    .demo-category-btn { padding: 0.6rem 1rem; font-size: 0.85rem; }
}

/* ============================================
   CUSTOM SECTIONS - Styled to match built-in sections
   ============================================ */

/* Base custom section */
.custom-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.custom-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Background variations */
.custom-bg-primary { background: var(--bg-primary); }
.custom-bg-cream { background: var(--bg-cream); }
.custom-bg-purple-pink { background: linear-gradient(180deg, var(--bg-light-purple) 0%, var(--bg-light-pink) 100%); }
.custom-bg-blue { background: linear-gradient(180deg, var(--bg-light-blue) 0%, var(--bg-primary) 100%); }
.custom-bg-light-purple { background: var(--bg-light-purple); }

/* ---- IMAGE TYPE: Grid Layout ---- */
.custom-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.custom-image-card {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.custom-image-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--gradient-rainbow);
    border-radius: 23px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-image-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: var(--shadow-playful);
}

.custom-image-card:hover::before {
    opacity: 1;
}

.custom-image-card-inner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.custom-image-card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.custom-image-card:hover .custom-image-card-inner img {
    transform: scale(1.05);
}

.custom-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 48, 71, 0.9), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}

.custom-image-card:hover .custom-image-overlay {
    opacity: 1;
}

.custom-image-caption {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.custom-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-light-purple), var(--bg-light-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 600;
}

/* ---- IMAGE TYPE: Scroll Layout ---- */
.custom-scroll-container {
    position: relative;
    overflow: hidden;
    margin: 0 -1.5rem;
    padding: 1rem 0;
}

.custom-scroll-track {
    overflow: hidden;
}

.custom-scroll-inner {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scrollLeft 30s linear infinite;
}

.custom-scroll-track.scroll-right .custom-scroll-inner {
    animation: scrollRight 30s linear infinite;
}

.dual-scroll .custom-scroll-track {
    margin-bottom: 1.5rem;
}

.dual-scroll .custom-scroll-track:last-child {
    margin-bottom: 0;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.custom-scroll-container .custom-image-card {
    flex: 0 0 300px;
}

/* Pause animation on hover */
.custom-scroll-container:hover .custom-scroll-inner {
    animation-play-state: paused;
}

/* ---- TEXT TYPE: Card Grid ---- */
.custom-text-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.custom-text-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 30px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
}

.custom-text-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--gradient-rainbow);
    border-radius: 33px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-text-card:hover {
    transform: translateY(-10px);
}

.custom-text-card:hover::before {
    opacity: 1;
}

.custom-text-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-text-card:nth-child(4n+1) .custom-text-icon { background: var(--gradient-blue-purple); }
.custom-text-card:nth-child(4n+2) .custom-text-icon { background: var(--gradient-teal-green); }
.custom-text-card:nth-child(4n+3) .custom-text-icon { background: var(--gradient-pink-orange); }
.custom-text-card:nth-child(4n+4) .custom-text-icon { background: linear-gradient(135deg, var(--orange-primary), var(--yellow-primary)); }

.custom-text-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
}

.custom-text-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.custom-text-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* ---- MIXED TYPE: Image + Text Layout ---- */
/* Mixed Section - Horizontal Card Layout */
.custom-mixed-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.custom-mixed-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.custom-mixed-card {
    display: flex;
    flex-direction: row;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.custom-mixed-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-playful);
    border-color: var(--purple-light);
}

.custom-mixed-card-image {
    flex: 0 0 280px;
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.custom-mixed-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.custom-mixed-card:hover .custom-mixed-card-image img {
    transform: scale(1.05);
}

.custom-mixed-card-image .custom-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light-purple);
    color: var(--text-muted);
    font-weight: 600;
}

.custom-mixed-card-text {
    flex: 1;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.custom-mixed-card-text h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.custom-mixed-card-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 1024px) {
    .custom-mixed-card-image {
        flex: 0 0 220px;
    }
    
    .custom-mixed-card-text {
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .custom-mixed-card {
        flex-direction: column;
    }
    
    .custom-mixed-card-image {
        flex: none;
        height: 200px;
    }
    
    .custom-mixed-card-text {
        padding: 1.25rem;
    }
    
    .custom-mixed-card-text h3 {
        font-size: 1.2rem;
    }
    
    .custom-section {
        padding: 4rem 0;
    }
    
    .custom-section-header {
        margin-bottom: 2.5rem;
    }
    
    .custom-image-grid,
    .custom-text-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .custom-scroll-container .custom-image-card {
        flex: 0 0 260px;
    }
    
    .custom-text-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .custom-scroll-container .custom-image-card {
        flex: 0 0 220px;
    }
}

/* ============================================
   SOCIAL DRAWER (Desktop Only)
   ============================================ */
.social-drawer {
    position: fixed;
    top: 100px;
    left: 20px;
    z-index: 999;
    display: none;
}

@media (min-width: 1024px) {
    .social-drawer {
        display: block;
    }
}

.social-drawer-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--purple-light);
    box-shadow: var(--shadow-playful);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.social-drawer-toggle:hover {
    background: var(--gradient-blue-purple);
    border-color: transparent;
    transform: scale(1.1);
}

.social-drawer-toggle:hover svg {
    stroke: white;
}

.social-drawer-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--purple-primary);
    transition: all 0.3s ease;
}

.drawer-icon-open {
    display: none;
}

.social-drawer.open .drawer-icon-closed {
    display: none;
}

.social-drawer.open .drawer-icon-open {
    display: block;
}

.social-drawer-content {
    position: absolute;
    top: 60px;
    left: 0;
    background: white;
    border-radius: 25px;
    padding: 0;
    box-shadow: var(--shadow-playful);
    border: 2px solid var(--purple-light);
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-drawer.open .social-drawer-content {
    max-height: 400px;
    opacity: 1;
    padding: 0.5rem;
    gap: 0.25rem;
}

.social-drawer-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-drawer-link:hover {
    background: var(--gradient-pink-orange);
    color: white;
    transform: scale(1.15);
}

.social-drawer-link svg {
    width: 22px;
    height: 22px;
}

/* ============================================
   CUSTOM SECTION LINKS
   ============================================ */
.custom-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.custom-card-link:hover {
    text-decoration: none;
}

.custom-mixed-card-link:hover .custom-mixed-card-text h3 {
    color: var(--purple-primary);
}

/* ============================================
   STUDIO SOUND DEMO PLAYER
   ============================================ */
.studio-sound-demo {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    border: 2px solid var(--border-light);
    position: relative;
    z-index: 1;
}

.studio-sound-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.studio-sound-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--gradient-teal-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.studio-sound-icon svg {
    width: 22px;
    height: 22px;
    stroke: white;
}

.studio-sound-info h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.studio-sound-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.studio-sound-player {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.studio-sound-btn {
    width: 48px;
    height: 48px;
    background: var(--gradient-blue-purple);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.3);
}

.studio-sound-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(74, 144, 217, 0.4);
}

.studio-sound-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
    margin-left: 2px;
}

.studio-sound-btn.playing svg {
    margin-left: 0;
}

.studio-sound-progress {
    flex: 1;
}

.studio-sound-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-light-purple);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.studio-sound-bar-fill {
    height: 100%;
    background: var(--gradient-teal-green);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
}

.studio-sound-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 600;
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */
.section-divider {
    position: relative;
    /* Minimal padding since images are absolutely positioned and don't need reserved space */
    padding-top: 0;
    padding-bottom: 0;
    /* Just enough height for absolutely positioned images to have a container */
    min-height: 0;
    margin-bottom: 0;
    /* Gap between the image edge and the visible divider line */
    --divider-gap: 400px;
    /* Transparent background - let section colors meet at the seam */
    background: transparent;
    display: block;
    /* Ensure images have space but don't create visible gaps */
    overflow: visible;
}

/* The divider line stays centered on the page and sits behind images */
.divider-line {
    position: absolute;
    left: 50%;
    /* place the thin line at the top edge of the divider area so it sits
       visually at the seam between sections (no background band) */
    top: 0;
    transform: translateX(-50%) translateY(-50%);
    /* make the decorative divider line span almost the full viewport width
       but keep a reasonable max so it doesn't become excessively long on huge screens */
    width: min(calc(100vw - 48px), 1200px);
    height: 4px;
    border-radius: 2px;
    /* sit above section backgrounds but below divider images */
    z-index: 2;
}

.divider-rainbow .divider-line {
    background: var(--gradient-rainbow);
}

.divider-purple .divider-line {
    background: linear-gradient(90deg, transparent, var(--purple-primary), transparent);
}

.divider-blue .divider-line {
    background: linear-gradient(90deg, transparent, var(--blue-primary), transparent);
}

.divider-pink .divider-line {
    background: linear-gradient(90deg, transparent, var(--pink-primary), transparent);
}

.divider-teal .divider-line {
    background: linear-gradient(90deg, transparent, var(--teal-primary), transparent);
}

.divider-orange .divider-line {
    background: linear-gradient(90deg, transparent, var(--orange-primary), transparent);
}

.divider-image {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Divider image sizes: small = original, medium = current, large = extra large */
.section-divider.divider-size-small { --divider-img-w: 50px; --divider-img-half: 25px; }
.section-divider.divider-size-medium { --divider-img-w: 150px; --divider-img-half: 75px; }
.section-divider.divider-size-large { --divider-img-w: 300px; --divider-img-half: 150px; }

.section-divider .divider-image img {
    width: var(--divider-img-w);
    height: var(--divider-img-w);
    object-fit: cover;
    border-radius: 12px;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.12));
    display: block;
    /* allow clicks to pass through the decorative images so they don't block
       interactive elements nearby */
    pointer-events: none;
}

/* Position left/right images so they overlap the centered divider line while keeping
   the divider visible on the other side of the image. Adjust the offset (12px)
   if you want more or less line showing beside the image. */
.divider-image-left {
    /* prefer pushing the image far left, but clamp so it never leaves the viewport */
    left: clamp(12px, calc(50% - (var(--divider-img-half) + var(--divider-gap))), calc(100% - var(--divider-img-w) - 12px));
}
.divider-image-right {
    /* prefer pushing the image far right, but clamp so it never leaves the viewport */
    left: clamp(calc(var(--divider-img-w) + 12px), calc(50% + (var(--divider-img-half) + var(--divider-gap))), calc(100% - var(--divider-img-w) - 12px));
}

@media (max-width: 768px) {
    /* Reduce the gap on small screens so images don't get pushed too far */
    .section-divider { 
        --divider-gap: 12px;
        /* No padding needed - images are absolutely positioned */
    }
}

/* Spacer element inserted after the divider to hide the lower background band
   while keeping section spacing stable. The spacer pulls the next section up
   by `--divider-overlap` without changing the divider's own layout. */
.section-divider-spacer {
    --divider-overlap: 12px; /* default overlap amount; tweak if needed */
    height: var(--divider-overlap);
    margin-top: calc(-1 * var(--divider-overlap));
    pointer-events: none;
    background: transparent;
}

@media (max-width: 768px) {
    .section-divider-spacer { --divider-overlap: 8px; }
}

/* Medium screens: keep images visible but still offset from center */
@media (max-width: 1200px) {
    .section-divider { --divider-gap: 120px; }
}

@media (max-width: 768px) {
    /* Divider images smaller on mobile */
    .section-divider.divider-size-small .divider-image img {
        width: 40px;
        height: 40px;
    }
    .section-divider.divider-size-medium .divider-image img {
        width: 120px;
        height: 120px;
    }
    .section-divider.divider-size-large .divider-image img {
        width: 240px;
        height: 240px;
    }
}

/* ============================================
   RESUME DOWNLOAD BUTTON
   ============================================ */
.resume-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    background: white;
    border: 2px solid var(--purple-light);
    border-radius: 50px;
    color: var(--purple-primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.resume-download-btn:hover {
    background: var(--gradient-purple-pink);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-playful);
}

.resume-download-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* ============================================
   360° PANORAMA VIEWER
   ============================================ */
.studio-360-viewer {
    width: 100%;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-dark);
    position: relative;
}

.studio-360-viewer canvas {
    width: 100%;
    height: 100%;
}

.studio-360-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.studio-360-viewer.interacting .studio-360-hint {
    opacity: 0;
}

@media (max-width: 768px) {
    .studio-360-viewer {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .studio-360-viewer {
        height: 220px;
    }
}

/* ================================
   FORM STATUS & SPINNER
   ================================ */
.form-status {
    margin-top: 1rem;
    padding: 0;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.form-status.success {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(107, 191, 89, 0.15), rgba(61, 189, 181, 0.15));
    color: #2d8f5e;
    border: 1px solid rgba(107, 191, 89, 0.3);
}

.form-status.error {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(232, 122, 164, 0.15), rgba(245, 166, 35, 0.15));
    color: #c44569;
    border: 1px solid rgba(232, 122, 164, 0.3);
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ================================
   LIGHTBOX
   ================================ */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: auto; /* Add scrollbars for oversized images */
    border-radius: 12px;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    display: block; /* Remove inline spacing */
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    /* Allow natural image size with scrollbars in container */
}

/* Make the lightbox image responsive on small screens: fit inside viewport
   and allow zoom/pan behaviour when toggled. */
.lightbox-content .lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto; /* center */
    transition: transform 0.12s ease;
    touch-action: pinch-zoom; /* allow pinch to zoom on supporting browsers */
}

/* Zoomed state (applies a scale and enables panning) */
.lightbox-overlay.zoomed .lightbox-image {
    transform-origin: center center;
    /* transform will be set dynamically via JS to control translate + scale */
    touch-action: none; /* allow JS-driven panning */
    cursor: grab;
}
.lightbox-overlay.zoomed .lightbox-image:active {
    cursor: grabbing;
}

.lightbox-caption {
    text-align: center;
    color: white;
    margin-top: 1rem;
    font-size: 1rem;
    opacity: 0.9;
}

/* Custom scrollbar for lightbox content */
.lightbox-content::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.lightbox-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.lightbox-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.lightbox-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Firefox scrollbar styling */
.lightbox-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.1);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-nav {
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.5);
    }

    /* On small screens move the lightbox close button inside the content
       and place it top-left so it's easier to tap and consistently visible */
    .lightbox-close {
        top: 12px;
        left: 12px;
        right: auto;
        background: rgba(255,255,255,0.95);
        color: var(--text-primary);
        border-radius: 8px;
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        box-shadow: 0 6px 18px rgba(45,48,71,0.12);
        opacity: 1;
        z-index: 10001;
    }

    .lightbox-close:hover {
        background: white;
        opacity: 1;
    }
}

/* Make images clickable for lightbox */
.lightbox-trigger {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.lightbox-trigger:hover {
    transform: scale(1.02);
}

/* ================================
   PAGE LOADING ANIMATION
   ================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-cream);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 120px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--purple-light);
    border-top-color: var(--purple-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ================================
   SECTION REVEAL ANIMATIONS
   ================================ */
.reveal-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for items */
.reveal-item:nth-child(1) { transition-delay: 0.1s; }
.reveal-item:nth-child(2) { transition-delay: 0.2s; }
.reveal-item:nth-child(3) { transition-delay: 0.3s; }
.reveal-item:nth-child(4) { transition-delay: 0.4s; }
.reveal-item:nth-child(5) { transition-delay: 0.5s; }
.reveal-item:nth-child(6) { transition-delay: 0.6s; }

/* ================================
   HERO ENHANCEMENTS
   ================================ */
/* Parallax blobs */
.hero .blob-bg {
    transition: transform 0.1s ease-out;
}

/* Typing animation for tagline */
.typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--purple-primary);
    animation: typing 3s steps(40) 1s forwards, blink 0.7s step-end infinite;
    max-width: 0;
}

.typing-text.done {
    border-right: none;
    max-width: 100%;
}

@keyframes typing {
    from { max-width: 0; }
    to { max-width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Video background option */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.3;
}

/* ================================
   LAZY LOADING PLACEHOLDER
   ================================ */
.lazy-image {
    background: linear-gradient(135deg, var(--bg-light-purple), var(--bg-light-blue));
    background-size: 200% 200%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.lazy-image.loaded {
    animation: none;
    background: transparent;
}

/* ================================
   SEEKABLE DEMO PROGRESS BAR
   ================================ */
.demo-progress-container {
    cursor: pointer;
}

.demo-progress {
    position: relative;
}

.demo-progress::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 16px;
    cursor: pointer;
}
