/* --- 🎨 Custom CSS for Sonani Dukan 🎨 --- */

:root {
    --gold: #D4AF37;
    --maroon: #800000;
    --ivory: #FFF8E1;
    --dark: #1a1a1a;
    --light-gold: #fbf5e2;
}

/* Base Styles */
body {
    font-family: 'Noto Sans Gujarati', sans-serif;
    background-color: var(--ivory);
    color: var(--dark);
    overflow-x: hidden;
    cursor: none; /* Hide default cursor */
}
::selection {
    background-color: var(--gold);
    color: var(--dark);
}

/* Keyframe Animations */
@keyframes gold-shimmer {
    0%, 100% { text-shadow: 0 0 8px rgba(255, 215, 0, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 223, 115, 1); }
}
@keyframes sparkle {
    0%, 100% { text-shadow: 0 0 10px #fff, 0 0 20px var(--gold), 0 0 30px #ffc; }
    50% { text-shadow: 0 0 20px #fff, 0 0 40px var(--gold), 0 0 60px #ffc, 0 0 80px var(--gold); }
}
@keyframes border-glow {
    from { box-shadow: 0 0 20px rgba(212, 175, 55, 0.2); }
    to { box-shadow: 0 0 30px 10px rgba(212, 175, 55, 0.5); }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--maroon);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}
#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}
.preloader-logo {
    font-family: 'Laila', serif;
    font-size: 3rem;
    animation: gold-shimmer 2.5s infinite;
}

/* Custom Cursor (Desktop Only) */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    left: 0;
    top: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    z-index: 10000;
}
@media (max-width: 992px) {
    body { cursor: auto; }
    .custom-cursor { display: none; }
}

/* Utility Classes */
.gold-text {
    background: linear-gradient(145deg, #F0D578, #C89B3F, #F0D578);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}
.section-title {
    font-family: 'Laila', serif;
    animation: sparkle 5s infinite;
}

/* Top Bar & Navbar */
.top-bar {
    background-color: var(--maroon);
    color: var(--ivory);
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar a { color: var(--ivory); text-decoration: none; }
.top-bar i { color: var(--gold); }
.navbar {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-color: transparent;
}
.navbar.scrolled {
    background-color: rgba(255, 248, 225, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.navbar-brand { font-family: 'Laila', serif; font-size: 2rem; animation: gold-shimmer 4s infinite; }
.navbar-nav .nav-link { color: var(--dark); font-weight: 500; }

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://www.transparenttextures.com/patterns/az-subtle.png'), var(--dark);
    position: relative;
    overflow: hidden;
    color: white;
}
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; text-align: center; }
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.5);
}
.word-wrapper {
    display: inline-block;
    overflow: hidden;
    margin: 0 0.2em;
}
.word-wrapper span {
    display: inline-block;
    transform: translateY(110%);
}
.hero-cta {
    background: var(--gold);
    border: 2px solid var(--gold);
    color: var(--dark);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}
.hero-cta:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
}
.hero-cta.secondary {
    background: transparent;
    color: var(--gold);
}
.cta-container {
    opacity: 0; /* Initially hidden for JS animation */
}

/* Categories Section */
#categories { background-color: var(--light-gold); }
.categories-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}
.categories-scroll-wrapper::-webkit-scrollbar { display: none; }
.category-item {
    text-align: center;
    flex: 0 0 150px;
    margin: 0 15px;
    scroll-snap-align: center;
}
.category-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.category-icon img { max-width: 65%; }
.category-item:active .category-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

/* Products Section */
#products { background-color: var(--ivory); }
.product-card {
    background: #fff;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-image-wrapper img {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.product-card:active {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.product-card:active .product-image-wrapper img {
    transform: scale(1.1) rotate(3deg) translateZ(30px);
}
.btn-cart {
    background: var(--maroon);
    color: white;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-cart:active {
    background-color: #600000;
    box-shadow: 0 0 20px rgba(128, 0, 0, 0.6);
}

/* About Section */
#about { background-color: var(--light-gold); }
.about-image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}
.about-image-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--gold);
    z-index: 2;
}
.founder-signature path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

/* Testimonials Section */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    height: 100%;
}
.star-rating { color: var(--gold); font-size: 1.2rem; }

/* Contact & Footer */
.form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 15px;
}
.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
    border-color: var(--gold);
}
.map-embed {
    border: 5px solid var(--gold);
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    width: 100%;
}
footer {
    background-color: var(--maroon);
    color: var(--ivory);
    padding: 4rem 0 2rem;
}
footer a {
    color: var(--ivory);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}
footer .social-icons a { font-size: 1.5rem; margin: 0 10px; }