/* =============================================
   KALPATARU ATTA MILL - IMPROVED STYLESHEET
   ============================================= */

/* --- ROOT VARIABLES & RESET --- */
:root {
    /* Colors */
    --primary-red: #C42A1C;
    --primary-green: #1B5E20;
    --primary-gold: #E86C00;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-cream: #FDFBF7;
    --bg-light: #f9f9f9;
    --border-color: #e5e5e5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Transitions */
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.3rem; }
p { margin-bottom: 1rem; }

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-red);
}

/* --- UTILITY CLASSES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    color: var(--primary-green);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 50px;
}

.bg-light {
    background-color: var(--bg-light);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes rotateCircle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.reveal {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.reveal:nth-child(1) { animation-delay: 0.1s; }
.reveal:nth-child(2) { animation-delay: 0.2s; }
.reveal:nth-child(3) { animation-delay: 0.3s; }
.reveal:nth-child(4) { animation-delay: 0.4s; }

.reveal.active {
    opacity: 1;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 4px 15px rgba(196, 42, 28, 0.3);
}

.btn-primary:hover {
    background: #a52115;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(196, 42, 28, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-green);
    color: white;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary-green);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    transition: color var(--transition);
}

.link-btn:hover {
    color: var(--primary-red);
}

/* --- NAVIGATION BAR --- */
.navbar {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    flex-shrink: 0;
}

.logo {
    max-height: 70px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* --- MARQUEE BANNER --- */
.marquee-container {
    background: var(--primary-green);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    color: white;
}

.marquee-text {
    display: inline-block;
    font-weight: 500;
    letter-spacing: 2px;
    font-size: 0.9rem;
    animation: marquee 25s linear infinite;
    padding-right: 50px;
}

.marquee-text span {
    color: var(--primary-gold);
    margin: 0 15px;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, rgba(255, 253, 247, 0.95), rgba(255, 238, 217, 0.9)),
                url('https://images.unsplash.com/photo-1596040033229-a9821ebd058d?auto=format&fit=crop&q=80&w=1200') center/cover;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(232, 108, 0, 0.05), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(232, 108, 0, 0.15);
    color: var(--primary-gold);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 25px;
    border: 1px solid rgba(232, 108, 0, 0.3);
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-green);
}

.hero-title span {
    color: var(--primary-red);
    display: inline-block;
    position: relative;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* --- STATS SECTION --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-gold);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    font-family: var(--font-heading);
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* --- TRUST BADGES SECTION --- */
.trust-section {
    padding: 50px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.trust-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
    display: block;
}

.trust-item p {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    color: var(--primary-green);
    margin-bottom: 20px;
    font-size: 2.8rem;
}

.about-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-img {
    width: 100%;
    max-width: 700px;
    height: auto;
    object-fit: contain;
    background: #fff;
    padding: 10px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.about-img:hover {
    transform: scale(1.02);
}

.about-list {
    list-style: none;
    margin-top: 25px;
}

.about-list li {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.about-list i {
    color: var(--primary-red);
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* --- PRODUCTS SECTION --- */
.products-bg {
    background-color: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    padding: 25px 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-gold);
}

.spice-animation-wrapper {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    background: rgba(232, 108, 0, 0.08);
}

.spice-animation-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(232, 108, 0, 0.2);
    animation: rotateCircle 12s linear infinite;
}

.spice-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.product-card h3 {
    color: var(--primary-green);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.product-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-info {
    margin: 15px 0;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-red);
}

/* --- FAQ SECTION --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-green);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background-color var(--transition);
}

.faq-item summary:hover {
    background-color: rgba(232, 108, 0, 0.05);
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 20px 20px;
    color: var(--text-light);
    line-height: 1.8;
}

/* --- CONTACT SECTION --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
    display: block;
}

.contact-card h3 {
    color: var(--primary-green);
    margin-bottom: 10px;
}

.contact-card a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.contact-card a:hover {
    color: var(--primary-red);
}

/* --- FOOTER --- */
.footer {
    background: linear-gradient(135deg, var(--primary-green) 0%, #0D3812 100%);
    color: white;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(232, 108, 0, 0.1), transparent);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

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

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a,
.footer-section .link-btn {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-section a:hover,
.footer-section .link-btn:hover {
    color: var(--primary-gold);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--primary-gold);
    color: var(--primary-green);
    transform: translateY(-3px);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.heart {
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    color: var(--text-light);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color var(--transition);
}

.close-btn:hover {
    color: var(--primary-red);
}

.modal-body h2 {
    color: var(--primary-green);
    margin-bottom: 20px;
    margin-top: 10px;
}

.modal-body h4 {
    color: var(--primary-red);
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-body p {
    color: var(--text-light);
    line-height: 1.8;
}

/* --- FLOATING WHATSAPP BUTTON --- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all var(--transition);
    animation: bounce 2s infinite;
}

.floating-whatsapp:hover {
    background: #128C7E;
    transform: scale(1.1);
    animation: none;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }

    .section-padding {
        padding: 50px 0;
    }

    /* Navigation */
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: white;
        gap: 0;
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.show-menu {
    max-height: 450px; /* Increased from 300px to fit all 6 items */
    overflow-y: auto;  /* Allows internal scrolling on very small screens */
    }

    .nav-links li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hero */
    .hero {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Trust Grid */
    .trust-grid {
        grid-template-columns: 1fr;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-img {
        height: 300px;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }

    /* Floating Button */
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Typography */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    .container {
        padding: 0 15px;
    }

    .section-padding {
        padding: 40px 0;
    }

    .hero-badge {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 20px;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
    }

    /* FAQ */
    .faq-item summary {
        padding: 15px;
        font-size: 0.95rem;
    }

    .faq-item p {
        padding: 0 15px 15px;
        font-size: 0.9rem;
    }
}

/* --- ACCESSIBILITY --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}


.fssai-box{text-align:center;background:#fff;padding:30px;border-radius:15px;box-shadow:var(--shadow-md);border:1px solid var(--border-color);}
.review-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;}
.review-card{background:#fff;padding:25px;border-radius:12px;box-shadow:var(--shadow-md);}
.cookie-box{position:fixed;bottom:20px;left:20px;max-width:380px;background:#fff;padding:24px;border-radius:16px;box-shadow:0 10px 40px rgba(0,0,0,0.15);z-index:5000;display:none;border:1px solid #e5e5e5;animation:slideUp 0.4s ease;}
@keyframes slideUp{from{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}

@media (max-width: 480px) {
  #aiChatBtn {
    bottom: 85px !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 1.2rem !important;
  }
}
/* =============================================
   MANDATORY MOBILE FIXES (Appended)
   ============================================= */

/* 1. Global Image Reset - Forces all images to stay inside the screen */
img {
    max-width: 100%;
    height: auto;
}

/* 2. Responsive Table Wrapper - Allows the comparison table to swipe left/right */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

/* 3. Mobile Overrides for rigid grids */
@media (max-width: 480px) {
    /* Overrides the 250px minimum so review cards fit on tiny screens */
    .review-grid {
        grid-template-columns: 1fr; 
    }
}
/* ====================================================
   5. Responsive Fixes & Performance Optimizations
   ==================================================== */

/* Global Overflow Fixes to prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
    width: 100%;
}

* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Animation performance optimization */
.reveal, 
.hero-title, 
.hero-brand-drop, 
.interactive-card, 
.plan-card,
.splash-bg {
    will-change: transform, opacity;
}

/* Wide-angle PC (1600px+) support */
@media screen and (min-width: 1600px) {
    .container { max-width: 1400px !important; }
    .hero-title { font-size: 4.5rem !important; }
    .hero-desc { font-size: 1.25rem !important; }
}

/* iPad/tablet layout improvements (1024px & 768px) */
@media screen and (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .section-nav-dots { display: none; } /* Hide fixed dots on tablet/mobile to prevent clutter */
}

@media screen and (max-width: 768px) {
    .bot-message-popup { display: none !important; } /* Hide auto-bot popup on small screens to save space */
}

/* Large phone (480px) breakpoint fixes */
@media screen and (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .hero-brand-drop { font-size: 1.2rem; }
    .hero-desc { font-size: 0.95rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    
    /* Reposition Widget button for smaller screens */
    #aiChatBtn {
        bottom: 80px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
    }
}

/* iOS Safari fixes */
@supports (-webkit-touch-callout: none) {
    /* Fixes iOS fixed background rendering bug */
    .hero, .splash-screen { background-attachment: scroll !important; } 
    /* Prevents auto-zoom on form inputs inside iOS devices */
    input, textarea, select { font-size: 16px !important; } 
}

/* Print Styles (Hides non-essential elements for clean paper prints) */
@media print {
    .navbar, 
    .footer, 
    .bot-message-popup, 
    #spiceChatWidget, 
    #aiChatBtn, 
    .section-nav-dots, 
    .scroll-down-btn, 
    .go-to-top {
        display: none !important;
    }
    
    body { background: #fff !important; color: #000 !important; }
    
    .interactive-card, .plan-card { 
        box-shadow: none !important; 
        border: 1px solid #ccc !important; 
        page-break-inside: avoid; 
    }
    
    .hero-title { color: #000 !important; }
}
/* =============================================
   NEW ADDED FEATURES & RESPONSIVE FIXES
   ============================================= */

/* --- 1. SPLASH SCREEN --- */
.splash-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #faf6f0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out;
    overflow: hidden;
}
.splash-content {
    text-align: center;
    z-index: 2;
}
.splash-logo {
    width: 150px;
    margin-bottom: 20px;
    animation: pulseLogo 2s infinite;
}
.splash-spice {
    position: absolute;
    opacity: 0;
    animation: fadeFloat 4s forwards;
    pointer-events: none;
}
.spice1 {
    top: 10%; left: 10%; width: 200px;
    filter: blur(2px); animation-delay: 0.2s;
}
.spice2 {
    bottom: 10%; right: 10%; width: 250px;
    filter: blur(3px); animation-delay: 0.5s;
}

@keyframes pulseLogo {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
@keyframes fadeFloat {
    0% { opacity: 0; transform: translateY(30px) rotate(0deg); }
    100% { opacity: 0.3; transform: translateY(-20px) rotate(15deg); }
}

/* --- 2. BOT POPUP --- */
.bot-popup {
    position: fixed;
    bottom: 170px;
    right: 30px;
    background: #fff;
    padding: 16px 22px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    z-index: 997;
    border-left: 4px solid #1B5E20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 250px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #2c2520;
    line-height: 1.4;
}
.bot-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.close-bot-popup {
    position: absolute;
    top: 4px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #999;
}
.close-bot-popup:hover { color: #333; }

/* --- 3. HERO ANIMATION (BRAND DROP) --- */
.hero-brand-drop {
    font-family: 'Playfair Display', serif;
    color: #c59b27;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
    animation: dropDownText 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    opacity: 0;
    transform: translateY(-50px);
    letter-spacing: 0px;
}
@keyframes dropDownText {
    0% { opacity: 0; transform: translateY(-50px); letter-spacing: 0px; }
    100% { opacity: 1; transform: translateY(0); letter-spacing: 4px; }
}
.hero-title.delayed-fade {
    opacity: 0;
    animation: fadeInReveal 1s forwards;
    animation-delay: 1s;
}
@keyframes fadeInReveal {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- 4. NAVIGATION DOTS --- */
.nav-dots-container {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 900;
}
.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #c59b27;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}
.nav-dot.active, .nav-dot:hover {
    background: #c59b27;
    transform: scale(1.2);
}
.nav-dot::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: #2c2520;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav-dot:hover::before {
    opacity: 1;
    visibility: visible;
}

/* iOS Safari Specific Background Fix */
@supports (-webkit-touch-callout: none) {
    .hero { background-attachment: scroll !important; }
}

/* Printer Friendly Styles */
@media print {
    .navbar, .footer, .scroll-down-btn, .go-to-top, .nav-dots-container,
    #spiceChatWidget, #aiChatBtn, #bot-popup, .floating-whatsapp, #cookieConsent {
        display: none !important;
    }
    body { background: #fff !important; color: #000 !important; }
    * { box-shadow: none !important; }
    .interactive-card, .plan-card { border-color: #999 !important; }
    .hero { background: none !important; color: #000 !important; }
}

/* Large Phone (480px) */
@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem !important; }
    .hero-brand-drop { font-size: 1.1rem; letter-spacing: 2px !important; }
    .nav-dots-container { display: none; } /* Hide on very small screens to avoid clutter */
    .plan-card { padding: 25px 20px !important; }
    .bot-popup { right: 15px; bottom: 150px; }
}

/* Tablet & iPad Layout Improvements (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .hero-title { font-size: 3rem !important; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-list { text-align: left; display: inline-block; }
}

/* Wide-angle PC (1600px+) */
@media (min-width: 1600px) {
    .container { max-width: 1400px !important; }
    .hero-title { font-size: 4.5rem !important; }
    .section-title { font-size: 3.2rem !important; }
    .hero-desc { font-size: 1.3rem !important; max-width: 800px; }
}
/* Flip Cards for Process & Spice Guide */
  .flip-card-wrapper {
    background-color: transparent;
    perspective: 1000px;
    min-height: 320px;
  }
  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
  }
  .flip-card-wrapper:hover .flip-card-inner {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
  }
  .flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    background: #fff;
    padding: 40px 30px;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  }
  .flip-card-back {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    border: 2px solid #c59b27;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #faf6f0;
  }