/* 
   Sri Lakshmi Sangeeta Nrutya Sikshanalayam
   Royal Immersive Design System v2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    /* Brand Colors - Royal Theme */
    --color-primary: #B10058;
    /* Rani Pink */
    --color-gold: #D4AF37;
    /* Antique Gold */
    --color-gold-light: #F4E29E;

    /* Backgrounds & Surfaces */
    --bg-dark: #1a0510;
    /* Very dark magenta-black */
    --bg-pattern: #2a0a1a;
    --glass-surface: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing */
    --section-gap: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: #f0f0f0;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography Overrides */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.5px;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    color: var(--color-gold-light);
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-gold);
    margin-bottom: 2rem;
}

p {
    font-size: 1.1rem;
    color: rgba(240, 240, 240, 0.85);
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

/* Utility Utilities */
.text-gold {
    color: var(--color-gold);
}

.text-pink {
    color: var(--color-primary);
}

.font-serif {
    font-family: var(--font-heading);
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: transparent;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--color-primary);
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
    border: none;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    color: white;
    border-color: var(--color-primary);
}

/* Navigation - Floating Glass */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: 0.3s;
}

header.scrolled {
    background: rgba(26, 5, 16, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}

nav {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    color: var(--color-gold);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1.2;
    color: white;
}

.logo-text span {
    display: block;
    font-size: 0.8rem;
    color: var(--color-gold);
    letter-spacing: 1px;
    font-family: var(--font-body);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: 0.3s;
}

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

/* Hero Section - Parallax */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(26, 5, 16, 0.8)), url('assets/images/hero.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    /* Prevent white edges on movement */
    z-index: -1;
}

.hero-content {
    max-width: 1000px;
    padding: 0 20px;
    z-index: 2;
    opacity: 0;
    /* Animated in JS */
    transform: translateY(30px);
}

.hero-subtitle {
    display: block;
    color: var(--color-gold);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

/* Immersive Sections */
.immersive-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
}

.immersive-section.reverse {
    direction: rtl;
    /* Easy way to swap columns specifically for grid */
}

.immersive-section.reverse>* {
    direction: ltr;
    /* Reset text direction */
}

.img-pane {
    position: relative;
    height: 100%;
    min-height: 60vh;
    overflow: hidden;
}

.img-pane img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.1s linear;
    /* Smooth parallax */
}

.content-pane {
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-dark);
    position: relative;
}

/* Pattern Overlay for Content Panes */
.content-pane::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(var(--color-primary) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.05;
    pointer-events: none;
}

.glass-card {
    background: var(--glass-surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 4px;
    /* Slightly soft corners */
}

/* Card Grid for Classes */
.grid-section {
    padding: var(--section-gap) 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.art-card {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    /* group: hover; removed */
}

.art-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

.art-card:hover img {
    transform: scale(1.1);
}

.art-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, black, transparent);
    color: white;
}

.art-overlay h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--color-gold);
}

/* Footer */
footer {
    background: #0f0308;
    padding: 80px 40px 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
}

.footer-col h4 {
    color: var(--color-gold);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.footer-col ul li {
    list-style: none;
    margin-bottom: 12px;
    opacity: 0.7;
}

.footer-col ul li:hover {
    opacity: 1;
    color: var(--color-primary);
}

.copyright {
    text-align: center;
    margin-top: 80px;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.9rem;
}

/* Mobile */
.mobile-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 900px) {

    .immersive-section,
    .immersive-section.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        /* Reset direction for mobile stack */
    }

    .img-pane {
        min-height: 400px;
    }

    .content-pane {
        padding: 40px 20px;
    }

    h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: black;
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }
}

/* Utilities for JS Animation */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}