
:root {
    --bg-base: #1c140f;
    --bg-surface: #2a1e16;
    --bg-surface-light: rgba(255, 255, 255, 0.05);
    --text-primary: #f5ebe6;
    --text-secondary: #bbaea6;
    --accent-gold: #cba258;
    --accent-hover: #b08945;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

/* --- Lenis Styles --- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Hide page content until loader finishes */
body > header, body > main, body > footer, body > .navbar, body > .contact-cta {
    opacity: 0;
    transition: opacity 1.2s ease-in;
}
body.page-loaded > header,
body.page-loaded > main,
body.page-loaded > footer,
body.page-loaded > .navbar,
body.page-loaded > .contact-cta {
    opacity: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

a { color: var(--text-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-gold); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 6rem 0; }
.section-bg { background-color: var(--bg-surface); }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; color: var(--accent-gold); letter-spacing: 2px; word-break: normal; overflow-wrap: normal; text-wrap: wrap; }
.section-divider { display: none; }
.section-subtitle { color: var(--text-secondary); font-size: 1.1rem; max-width: 700px; margin: 0 auto; }

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

/* Buttons */
.btn {
    display: inline-block; padding: 0.8rem 2.5rem; border-radius: 30px;
    font-family: var(--font-body); font-weight: 500; font-size: 1rem;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.3s, border-color 0.3s, color 0.3s;
    cursor: pointer; text-align: center;
}
.btn-primary { background-color: var(--accent-gold); color: #1a120b; border: 2px solid var(--accent-gold); }
.btn-primary:hover { background-color: var(--accent-hover); border-color: var(--accent-hover); color: #1a120b; }
.btn-outline { background-color: transparent; border: 1px solid rgba(255,255,255,0.3); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background: transparent; padding: 2rem 0;
    z-index: 9999 !important; transition: all 0.4s ease !important;
}
.navbar.scrolled {
    background: rgba(28, 20, 15, 0.9) !important;
    backdrop-filter: blur(15px) !important; -webkit-backdrop-filter: blur(15px) !important;
    padding: 0.8rem 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; min-height: 80px; }
.nav-logo {
    height: 75px;
    width: 75px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent-gold);
    transition: height 0.4s ease, width 0.4s ease, border-color 0.4s ease;
    flex-shrink: 0;
}
.navbar.scrolled .nav-logo { height: 50px; width: 50px; }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { font-family: var(--font-heading); font-size: 0.95rem; letter-spacing: 1px; }
.nav-links a.active, .nav-links a:hover { color: var(--accent-gold); }

.menu-toggle { display: none; }

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px; height: 60px;
    bottom: 40px; right: 40px;
    background-color: #25d366; color: #FFF;
    border-radius: 50px; text-align: center; font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}
.whatsapp-float:hover { background-color: #128C7E; color: #FFF; transform: scale(1.1); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 28px; }
}

/* Hero */
.hero {
    height: 100vh; position: relative;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
}
.hero-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.4) sepia(0.5) hue-rotate(-20deg) contrast(1.2);
    z-index: -2;
}
.hero::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(28, 20, 15, 0.2), var(--bg-base));
    z-index: -1;
}
.hero-content { z-index: 1; max-width: 800px; padding-top: 80px; }
.hero-title {
    font-size: 4.5rem; line-height: 1.2; letter-spacing: 3px;
    margin-bottom: 1rem; color: #fff; text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}
.hero-subtitle-top {
    font-family: var(--font-heading); font-size: 2.5rem; color: var(--accent-gold);
    display: block; margin-bottom: 2rem; letter-spacing: 2px;
}
.hero-desc { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2.5rem auto; }

/* About Grid */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-image { border-radius: 8px; width: 100%; object-fit: cover; border: 1px solid rgba(212,175,55,0.2); box-shadow: 0 15px 40px rgba(0,0,0,0.5); }

/* Cards */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.card {
    background: rgba(255,255,255,0.03); padding: 2.5rem; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05); text-align: center; transition: var(--transition);
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle 250px at var(--mouse-x, 0) var(--mouse-y, 0), rgba(212, 175, 55, 0.15), transparent 80%);
    opacity: 0; transition: opacity 0.3s ease; z-index: 0; pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card .btn { margin-top: auto; align-self: center; }
.card:hover { transform: translateY(-5px); border-color: rgba(203, 162, 88, 0.3); }
.card-image {
    width: 100%; height: 180px; object-fit: cover;
    border-radius: 6px; margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    border: 1px solid rgba(203,162,88,0.2);
}
.card-title { font-size: 1.4rem; margin-bottom: 1rem; color: var(--accent-gold); }

/* Blog Cards */
.blog-card { padding: 0; text-align: left; overflow: hidden; }
.blog-card-img { width: 100%; height: 220px; object-fit: cover; }
.blog-card-content { padding: 2rem; }
.blog-meta { color: var(--accent-gold); font-size: 0.85rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s; transform-style: preserve-3d; }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); filter: grayscale(20%); }
.gallery-item:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.5); z-index: 2; transform: translateY(-5px); }
.gallery-item:hover img { transform: scale(1.1); filter: grayscale(0%); }
.gallery-overlay {
    position: absolute; bottom: -60px; left: 0; width: 100%; padding: 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff; text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: var(--font-heading); opacity: 0;
}
.gallery-item:hover .gallery-overlay { bottom: 0; opacity: 1; }
.gallery-grid:hover .gallery-item:not(:hover) { filter: blur(3px) brightness(0.7); transform: scale(0.98); }

/* Lightbox */
#lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 5, 2, 0.5); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
}
#lightbox.active { opacity: 1; pointer-events: auto; }
#lightbox-img {
    max-width: 90%; max-height: 85vh; border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 40px rgba(212,175,55,0.2);
    transform: scale(0.85); opacity: 0; transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#lightbox.active #lightbox-img { transform: scale(1); opacity: 1; }
#lightbox-close {
    position: absolute; top: 30px; right: 40px; color: #fff; font-size: 3rem;
    cursor: pointer; transition: color 0.3s; line-height: 1;
}
#lightbox-close:hover { color: var(--accent-gold); }

/* Page Headers — background-attachment: scroll (fixes iOS Safari jank) */
.page-header {
    padding: 10rem 0 4rem; text-align: center;
    background: url('assets/carnatic_hero.webp') no-repeat center 65%/cover;
    background-attachment: scroll;
    position: relative; z-index: 1;
}
.page-header::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(28, 20, 15, 0.85); z-index: -1; }

/* Unique page header backgrounds */
.about-header, .courses-header, .gallery-header, .blog-header,
.faq-header, .contact-header, .privacy-header, .sitemap-header, .terms-header {
    background: url('assets/page_header_bg.webp') no-repeat center 60% / cover !important;
    background-attachment: scroll !important;
}
.page-title { font-size: 3.5rem; color: var(--accent-gold); letter-spacing: 2px; }

/* Dynamic UI Effects */
.particle-note {
    position: absolute; bottom: -20px; color: var(--accent-gold);
    pointer-events: none; z-index: 5; animation: floatUp linear forwards;
}
@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-300px) rotate(360deg); opacity: 0; }
}

/* Advanced Footer */
.footer {
    padding: 6rem 0 2rem;
    background: linear-gradient(to bottom, #0d0703, #050301);
    border-top: 1px solid rgba(203,162,88,0.15);
    position: relative; overflow: hidden;
}
.footer::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 60%; height: 1px; background: linear-gradient(to right, transparent, rgba(203,162,88,0.5), transparent);
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 4rem; margin-bottom: 4rem; }
.footer-logo { max-width: 140px; margin-bottom: 1.5rem; border-radius: 50%; border: 2px solid rgba(203,162,88,0.4); box-shadow: 0 0 30px rgba(0,0,0,0.5); transition: transform 0.4s; }
.footer-logo:hover { transform: scale(1.05); }
.footer-desc { color: rgba(215,200,190,0.8); line-height: 1.8; margin-bottom: 2rem; }
.footer-socials { display: flex; gap: 1rem; }
.social-icon {
    position: relative; display: block; line-height: 0;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.05); color: var(--accent-gold);
    transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.05);
    text-decoration: none;
}
.social-icon svg {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 20px; height: 20px; fill: currentColor;
}
.social-icon:hover { background: var(--accent-gold); color: #0d0703; transform: translateY(-3px); }

.footer-title {
    color: #fff; font-size: 1.2rem; margin-bottom: 2rem; letter-spacing: 2px;
    position: relative; padding-bottom: 0.8rem;
}
.footer-title::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 40px; height: 2px; background: var(--accent-gold);
}

.footer-links li { margin-bottom: 1rem; }
.footer-links a { color: rgba(215,200,190,0.8); display: inline-block; transition: all 0.3s; position: relative; }
.footer-links a:hover { color: var(--accent-gold); transform: translateX(5px); }

.footer-contact li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; color: rgba(215,200,190,0.8); line-height: 1.6; }
.contact-icon { color: var(--accent-gold); font-size: 1.2rem; flex-shrink: 0; margin-top: 3px; }

.footer-newsletter p { color: rgba(215,200,190,0.8); margin-bottom: 1.2rem; font-size: 0.95rem; line-height: 1.6; }
.newsletter-form { display: flex; gap: 0.5rem; }
.newsletter-input {
    flex: 1; padding: 0.8rem 1rem; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 4px;
    color: #fff; outline: none; transition: border-color 0.3s;
}
.newsletter-input:focus { border-color: var(--accent-gold); }
.newsletter-btn {
    padding: 0.8rem 1.2rem; background: var(--accent-gold); border: none;
    color: #0d0703; border-radius: 4px; cursor: pointer; font-weight: 600;
    transition: opacity 0.3s;
}
.newsletter-btn:hover { opacity: 0.9; }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(215,200,190,0.6); font-size: 0.9rem; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom-links a { color: rgba(215,200,190,0.6); margin-left: 1.5rem; transition: color 0.3s; }
.footer-bottom-links a:hover { color: var(--accent-gold); }

/* Stat Banner */
.stat-banner {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(20, 15, 12, 0.6); border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px; padding: 4rem 2rem; backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); margin-top: 2rem;
}
.stat-item { flex: 1; text-align: center; padding: 0 2rem; }
.stat-divider {
    width: 1px; height: 120px;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0), rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0));
}
.stat-number {
    font-size: 4.5rem; font-family: 'Playfair Display', serif; color: var(--accent-gold);
    line-height: 1; margin-bottom: 1rem; text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}
.stat-plus { font-size: 2.5rem; vertical-align: super; margin-left: 2px; opacity: 0.8; }
.stat-label { font-size: 1.4rem; color: #fff; margin-bottom: 0.8rem; letter-spacing: 1px; }
.stat-desc { color: rgba(215, 200, 190, 0.7); font-size: 0.95rem; line-height: 1.5; }

/* Mobile Navigation Toggle */
.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 10001; }
.menu-toggle span { width: 30px; height: 2px; background: var(--text-primary); transition: var(--transition); border-radius: 2px; }
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
    .navbar {
        background: rgba(28, 20, 15, 0.95) !important;
        backdrop-filter: blur(15px) !important; -webkit-backdrop-filter: blur(15px) !important;
        padding: 0.8rem 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    }
    .navbar .nav-logo { height: 50px !important; width: 50px !important; }
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(20, 15, 12, 0.98); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
        flex-direction: column; justify-content: center; align-items: center;
        gap: 2rem; transform: translateY(-100%); opacity: 0; pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease; z-index: 10000;
    }
    .nav-links.active { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav-links li { margin: 0; }
    .nav-links a { font-size: 1.5rem; }
    .nav-socials { margin-left: 0 !important; padding-left: 0 !important; border-left: none !important; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.2); width: 80%; justify-content: center; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle-top { font-size: 1.8rem; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-contact li { justify-content: center; }
    .stat-banner { flex-direction: column; gap: 3rem; padding: 3rem 1.5rem; }
    .stat-divider { width: 60%; height: 1px; background: linear-gradient(to right, rgba(212,175,55,0), rgba(212,175,55,0.4), rgba(212,175,55,0)); }
    .section { padding: 4rem 0; }
    body.menu-open { overflow: hidden; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle-top { font-size: 1.4rem; letter-spacing: 3px; }
    .section-title { font-size: clamp(1.6rem, 8vw, 2.2rem); line-height: 1.3; word-break: normal !important; overflow-wrap: normal !important; hyphens: none !important; }
    .gallery-grid, .blog-grid, .form-grid, .courses-grid { grid-template-columns: 1fr; }
    h3[style*="font-size: 4.5rem"] { font-size: 3.5rem !important; }
}

/* Floating Social Media Bar */
.floating-socials {
    position: fixed; top: 50%; right: 0;
    transform: translateY(-50%); display: flex; flex-direction: column; z-index: 1000;
}
.float-icon {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; color: #fff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative; right: -4px;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.4);
}
.float-icon.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.float-icon.youtube { background: #FF0000; }
.float-icon.facebook { background: #1877F2; }
.float-icon:first-child { border-top-left-radius: 8px; }
.float-icon:last-child { border-bottom-left-radius: 8px; }
.float-icon:hover { right: 0; width: 56px; }

@media (max-width: 768px) {
    .floating-socials { transform: translateY(-50%) scale(0.85); transform-origin: right center; }
}

/* Page Transitions */
body.page-transition { animation: pageFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
body.page-transition-out { animation: pageFadeOut 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; pointer-events: none; }

/* FAQ Accordion Styles */
.faq-category-title {
    font-size: 1.8rem; color: var(--accent-gold);
    margin-bottom: 1.5rem; margin-top: 3rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3); padding-bottom: 0.5rem;
}
.faq-category-title:first-child { margin-top: 0; }
.faq-item {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px; margin-bottom: 1rem; overflow: hidden; transition: all 0.3s ease;
}
.faq-item:hover { border-color: rgba(203, 162, 88, 0.3); background: rgba(255,255,255,0.05); }
.faq-question {
    font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-primary);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem; transition: color 0.3s ease;
}
.faq-question:hover { color: var(--accent-gold); }
.faq-question .toggle { font-size: 1.5rem; color: var(--accent-gold); transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    color: var(--text-secondary); padding: 0 1.5rem; opacity: 0;
}
.faq-answer.open { max-height: 400px; padding: 0 1.5rem 1.5rem 1.5rem; opacity: 1; }
.faq-item.active { border-color: rgba(203, 162, 88, 0.5); background: rgba(20, 15, 12, 0.8); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.faq-item.active .faq-question { color: var(--accent-gold); }
.faq-item.active .toggle { transform: rotate(180deg); }

/* Support CTA */
.support-cta {
    text-align: center; margin-top: 4rem; padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(20, 15, 12, 0.9), rgba(42, 30, 22, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.2); border-radius: 12px;
}
.support-cta h3 { font-size: 2rem; color: #fff; margin-bottom: 1rem; }
.support-cta p { color: var(--text-secondary); margin-bottom: 2rem; }

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(20px); filter: blur(10px); }
    to { opacity: 1; transform: none; filter: none; }
}
@keyframes pageFadeOut {
    from { opacity: 1; transform: translateY(0); filter: blur(0px); }
    to { opacity: 0; transform: translateY(-20px); filter: blur(10px); }
}

/* Text Split Reveal */
.split-text-wrapper { display: inline-block; overflow: hidden; vertical-align: bottom; }
.char {
    display: inline-block; opacity: 0; transform: translateY(100%);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.char.revealed { opacity: 1; transform: translateY(0); }

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 3px;
    background: transparent; z-index: 100001; pointer-events: none;
}
.scroll-progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(to right, #cb9b51, #f6e27a, #f6f2c0, #cb9b51);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transition: width 0.1s ease-out;
}

/* Page Loader */
.page-loader {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(rgba(28, 20, 15, 0.85), rgba(28, 20, 15, 0.95)), url('assets/about_header_bg.webp') center/cover;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    z-index: 999999;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
}
.loader-ripple-container {
    position: relative; width: 150px; height: 150px;
    display: flex; justify-content: center; align-items: center; margin-bottom: 2rem;
}
.loader-ripple {
    position: absolute; width: 100%; height: 100%; border-radius: 50%;
    border: 1px solid var(--accent-gold); opacity: 0;
    animation: rippleAnimation 2.5s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
}
.loader-ripple.delay-1 { animation-delay: 1.25s; }
@keyframes rippleAnimation {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}
.loader-logo {
    position: relative; z-index: 2; width: 150px; height: 150px;
    border-radius: 50%; object-fit: cover; opacity: 0; transform: scale(0.9);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: pulseLoader 2s infinite ease-in-out, fadeLoaderIn 0.8s forwards;
}
.loader-message {
    color: var(--accent-gold); font-size: 1rem; letter-spacing: 2px; opacity: 0;
    animation: fadeLoaderIn 0.8s 0.3s forwards;
    font-family: 'Playfair Display', serif; font-style: italic;
}
.page-loader.loaded { opacity: 0; visibility: hidden; }
@keyframes pulseLoader {
    0% { filter: drop-shadow(0 0 10px rgba(212,175,55,0.1)); }
    50% { filter: drop-shadow(0 0 30px rgba(212,175,55,0.6)); }
    100% { filter: drop-shadow(0 0 10px rgba(212,175,55,0.1)); }
}
@keyframes fadeLoaderIn { to { opacity: 1; transform: scale(1); } }

/* Magnetic & Tilt Helpers */
.magnetic { display: inline-block; }
.tilt-card { transform-style: preserve-3d; transform: perspective(1000px); }
.tilt-content { transform: translateZ(30px); }

/* =========================================
   YOUTUBE FACADE (Performance)
   ========================================= */
.yt-facade {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    cursor: pointer; background: #000;
    display: flex; align-items: center; justify-content: center;
}
.yt-facade img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.85; transition: opacity 0.3s; display: block;
}
.yt-facade:hover img { opacity: 1; }
.yt-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 68px; height: 48px; background: rgba(212,0,0,0.9);
    border: none; border-radius: 12px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s, background 0.2s; pointer-events: none;
}
.yt-facade:hover .yt-play-btn { background: #cc0000; transform: translate(-50%, -50%) scale(1.12); }
.yt-play-btn svg { width: 24px; height: 24px; fill: #fff; margin-left: 4px; }

/* Video Gallery */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.video-container {
    position: relative; padding-bottom: 56.25%; height: 0;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-container:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(212,175,55,0.3); }
.video-container iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}

/* =========================================
   CONTENT VISIBILITY (Rendering Performance)
   ========================================= */
.footer {
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}

/* =========================================
   REDUCED MOTION ACCESSIBILITY
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-bg-instrument { will-change: auto; }
    .whatsapp-float { animation: none; }
    .loader-logo { animation: fadeLoaderIn 0.5s forwards; }
    .loader-ripple { animation: none; opacity: 0; }
}
