/* --- Mahavel Theme (Maharatri Aesthetic) --- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary-saffron: #FF9933;
    --primary-maroon: #7B1B1B;
    --accent-gold: #D4AF37;
    --text-dark: #2c1e1e;
    /* Warmer dark */
    --text-light: #FDFBF7;
    /* Soft white */
    --bg-light: #FFF8E7;
    /* Very light cream for divine feel */
    --font-heading: "Lora", serif;
    /* More ornamental */
    --font-body: "Poppins", sans-serif;
    /* Elegant and classical */
    --transition-speed: 0.3s;
    --bg1: linear-gradient(135deg, #D4AF37, #FFD700, #B8860B);
    --bg2: linear-gradient(135deg, #8C6A03, #C9A227, #F5D76E);
    --bg3: linear-gradient(135deg, #E6C76E, #F7E27A, #C9A44C);
}

/* --- Reset & Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    /* Increased for elegance */
    font-size: 1.2rem;
    /* Cormorant tends to be small, so bumping size */
    overflow-x: hidden;
    cursor: url("/Images/vel.png") 10 10, auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-maroon);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 90px 0;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    border-radius: 50px;
    /* Rounded buttons are more graceful */
    cursor: url('./Images/vel2.png') 10 10, auto;
    transition: all var(--transition-speed);
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-maroon);
    color: var(--text-light);
    border: 2px solid var(--primary-maroon);
}

/* .btn-primary:hover {
    background-color: transparent;
    color: var(--primary-maroon);
} */

.btn-secondary {
    /* background-color: transparent;
    color: var(--text-light); */
    border: 2px solid var(--text-light);
    background-color: var(--text-light);
    cursor: url('./Images/vel2.png') 10 10, auto;
    color: var(--primary-maroon);
}

/* .btn-secondary:hover {
} */

/* --- Top Bar --- */
.top-bar {
    background-color: var(--primary-maroon);
    color: var(--text-light);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info span {
    margin-right: 20px;
}

.top-bar-info i {
    color: var(--accent-gold);
    margin-right: 5px;
}

/* --- Header & Navigation --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-speed);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-maroon);
    display: flex;
    cursor: url('./Images/vel2.png') 10 10, auto;
    align-items: center;
}

.logo span {
    color: var(--primary-saffron);
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    font-family: var(--font-body);
    /* Keep nav slightly cleaner than headers */
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-maroon);
    text-transform: uppercase;
    position: relative;
    cursor: url('./Images/vel2.png') 10 10, auto;
    letter-spacing: 1px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-saffron);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-maroon);
    cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 80px 20px 20px;
    transition: 0.3s ease-in-out;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav li {
    margin: 20px 0;
}

.mobile-nav a {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 90vh;
    /* Taller hero for impact */
    /* Darker overlay for better text contrast against detailed image */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('./website.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    /* Parallax Effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

/* Fallback if live image doesn't work locally */
.hero-section.fallback-bg {
    background-color: #2b0a0a;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--accent-gold);
    /* Bright gold */
    margin-bottom: 15px;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 25px;
    color: #fff;
    /* White pops better on dark complex backgrounds */
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
    /* Strong shadow for separation */
    line-height: 1.1;
}

.hero-text {
    font-size: 1.3rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- About Section --- */
.about-section {
    position: relative;
    background-color: #fff;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border: 5px solid var(--accent-gold);
}

.about-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #fff;
    margin: 10px;
    z-index: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-content .sub-title {
    color: var(--primary-saffron);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.about-content p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1rem;
}

.ornament {
    width: 100px;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* --- Rituals / Services Section --- */
.rituals-section {
    background-color: var(--bg-light);
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
    /* Dotted pattern */
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid transparent;
}

.service-box:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--primary-saffron);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: #fff4e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-saffron);
    font-size: 2rem;
    transition: 0.3s;
}

.service-box:hover .service-icon {
    background-color: var(--primary-saffron);
    color: #fff;
}

.service-box h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-box p {
    color: #666;
    font-size: 0.95rem;
}

/* --- Shop Section & Categories --- */
.featured-section {
    background-color: var(--bg-light);
    text-align: center;
}

.shop-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.shop-cat-btn {
    background: transparent;
    border: 1px solid #ccc;
    padding: 10px 25px;
    margin: 5px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    color: #555;
    transition: 0.3s;
}

.shop-cat-btn.active,
.shop-cat-btn:hover {
    background-color: var(--primary-maroon);
    color: #fff;
    border-color: var(--primary-maroon);
}


.section-title {
    font-size: 2.5rem;
    color: var(--primary-maroon);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-saffron);
    margin: 10px auto 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    transition: transform 0.3s;
    border-bottom: 3px solid var(--primary-maroon);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-img {
    background: #f0f0f0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img img {
    height: 100%;
    transition: transform 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

/* --- Footer --- */
footer {
    background-color: #1a0505;
    color: #ccc;
    padding: 80px 0 20px;
    position: relative;
    border-top: 5px solid var(--accent-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--primary-saffron);
    margin-bottom: 25px;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-gold);
}

.footer-links li {
    margin-bottom: 12px;
    border-bottom: 1px dashed #333;
    padding-bottom: 8px;
    transition: 0.3s;
}

.footer-links li:last-child {
    border-bottom: none;
}

.footer-links a {
    display: block;
}

.footer-links a:hover {
    color: var(--primary-saffron);
    padding-left: 10px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: var(--primary-saffron);
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 25px;
    font-size: 0.9rem;
    color: #777;
}

/* --- Product Image Magnifier --- */
#magnifier {
    position: fixed;
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary-maroon);
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 9999;
    display: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    background-color: #fff;
}


/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .top-bar {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .desktop-only {
        display: none;
    }
}