@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://unpkg.com/aos@2.3.1/dist/aos.css');

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.mudra-loader {
    width: 60px;
    height: 60px;
    border: 5px solid var(--secondary-bg);
    border-top: 5px solid var(--accent-color);
    /* Gold Loader */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Audio Player --- */
.audio-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: var(--secondary-bg);
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    border: 2px solid var(--accent-color);
    transition: transform 0.3s;
}

.audio-player:hover {
    transform: scale(1.1);
    background: var(--accent-color);
    color: #000;
}

.audio-player.playing {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

:root {
    /* Theme: Dark & Gold */
    --primary-color: #000000;
    /* Pitch Black */
    --primary-dark: #b38f00;
    /* Dark Gold (for contrast logic if needed) or just used for active states */
    --accent-color: #FFD700;
    /* Golden Yellow */

    --bg-color: #050505;
    /* Almost Black Background */
    --secondary-bg: #111111;
    /* Dark Grey for sections */

    --text-color: #f5f5f5;
    /* Off-White Text */
    --text-muted: #aaaaaa;
    /* Grey Text */
    --text-light: #ffffff;

    --card-bg: #1a1a1a;
    /* Dark Card Background */
    --border-color: #FFD700;
    /* Gold Borders */

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-color);
    /* Headings are Gold */
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    /* Dark Black background on scroll */
    padding: 0.5rem 5%;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.1);
    /* Subtle Gold shadow */
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

/* Logo Image Styles */
.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

nav ul {
    display: flex;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

/* Reveal on Header Hover */
header:hover nav ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-light);
    position: relative;
    padding-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--accent-color);
}

.download-link {
    background: var(--accent-color);
    color: #000 !important;
    padding: 5px 15px !important;
    border-radius: 20px;
    font-weight: 700 !important;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-link i {
    color: #000 !important;
}

.download-link:hover {
    background: #fff !important;
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.download-link::after {
    display: none !important;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent-color);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background-color: #000;
    /* Fallback black */
    /* Using hero_bg.png for a majestic temple corridor look */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url('../assets/images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 1rem;
}

/* Fill the sides if contain leaves gaps - handled by bg color */

/* Alternate Hero for full cover if preferred by user later, but sticking to 'Fully Viewable' request */
/* If the image is landscape, contain might leave big black bars. Let's try cover centered if resolution is high. 
   Actually, user requested 'Fully Viewable'. Contain is the safest strict interpretation. */

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1.2s ease-out;
    padding: 0;
    /* Removed padding */
    /* Removed card styling (background, border, backdrop-filter) */
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    /* Minimum 2.5rem, prefers 6vw, max 5rem */
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    color: #fff;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: #000;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: var(--transition);
}

.btn:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* --- Page Headers --- */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.75)), url('../assets/images/hero_main.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    padding: 10rem 1rem 4rem;
    text-align: center;
    color: white;
    margin-bottom: 0;
    border-bottom: 2px solid var(--accent-color);
}

/* --- Sections --- */
.section {
    padding: 5rem 10%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50vw;
    transform: translateX(-50%);
    color: var(--accent-color);
}



.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--accent-color);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* --- Unifying Image Styles --- */
img {
    max-width: 100%;
    filter: sepia(0.1) contrast(1.05) brightness(1.05);
    /* Global enhancement for warm heritage feel */
    transition: var(--transition);
}

/* --- Classes Section --- */
.classes {
    background: var(--secondary-bg);
}

.class-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-bottom: 5px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 5px solid var(--accent-color);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* --- Shop & Gallery Styles --- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 0 5%;
}

.product-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.1);
    border-color: var(--accent-color);
}

.product-img,
.gallery-item {
    overflow: hidden;
    background: #000;
}

.product-img {
    height: 280px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--accent-color);
    font-weight: 700;
}

.product-price {
    font-weight: 700;
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

.add-btn {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.add-btn:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.gallery-item {
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-item:hover {
    border-color: var(--accent-color);
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* --- Footer --- */
footer {
    background: #000;
    color: var(--text-muted);
    padding: 4rem 10% 2rem;
    text-align: center;
    margin-top: auto;
    border-top: 2px solid var(--accent-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer-col h3 {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
}

.footer-col p,
.footer-col li {
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.social-links a:hover {
    color: #fff;
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Tablet & Small Laptop Optimization (1024px) --- */
@media (max-width: 1024px) {
    header {
        padding: 0.5rem 3%;
    }

    nav ul {
        gap: 1.5rem;
        /* Reduce spacing between links */
    }

    nav a {
        font-size: 0.95rem;
        /* Slightly smaller text */
    }

    .section {
        padding: 4rem 5%;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 5vw, 4rem);
        /* Fluid scaling */
    }

    .about-grid {
        gap: 2rem;
    }
}

/* --- Mobile Breakpoint (Expanded to include Tablets in Portrait) --- */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 5%;
        background: rgba(0, 0, 0, 0.9);
        /* Dark background for visibility on mobile */
    }

    .logo-img {
        height: 50px;
        /* Smaller logo on mobile */
    }

    .mobile-toggle {
        display: block;
        font-size: 1.8rem;
        color: var(--accent-color);
        cursor: pointer;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(0, 0, 0, 0.95);
        /* Solid dark background */
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
        border-top: 1px solid var(--accent-color);
        border-bottom: 3px solid var(--accent-color);
    }

    nav ul.active {
        display: flex;
        opacity: 1;
        /* Override opacity:0 from desktop hover styles */
        visibility: visible;
        transform: translateY(0);
    }

    nav ul li {
        margin: 1rem 0;
    }

    nav a {
        font-size: 1.2rem;
        color: #fff;
    }

    /* Hero Mobile Optimization */
    .hero {
        height: 80vh;
        /* Allow content to be seen sooner */
        background-position: center bottom;
        /* Focus on the statue */
        background-size: cover;
        /* Fill the screen on mobile */
        /* background-size contain is too small on mobile portrait */
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 5%;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-grid,
    .footer-content,
    .shop-grid,
    .class-cards {
        grid-template-columns: 1fr;
        /* Stack everything */
        gap: 2rem;
    }

    .about-image img {
        height: auto;
        max-height: 300px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h3 {
        display: inline-block;
    }
}