/* ===================================
   GOLD SCOOP GHEE - 2026 FUTURISTIC ENHANCEMENTS
   Modern Glassmorphism & Advanced Animations
   =================================== */

/* Enhanced Glassmorphism Effects */
/* Enhanced Glassmorphism Effects - iOS Style */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 8px 32px 0 rgba(27, 67, 50, 0.1),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
}

/* Global Mobile Optimizations */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* iOS-like Scroll Physics */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    overscroll-behavior-y: none;
    /* Prevents bounce effect on body for app-like feel */
}

/* Modern Card Enhancements */
.card {
    background: rgba(255, 255, 255, 0.85);
    /* More translucent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-2xl) !important;
    padding: var(--spacing-xl);
    box-shadow:
        0 10px 40px -10px rgba(27, 67, 50, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    /* Bouncy spring-like transition */
    overflow: hidden;
    border: 1px solid rgba(212, 165, 116, 0.15);
    position: relative;
    transform-style: preserve-3d;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1B4332, #D4A574, #E5B56D);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 20px 60px -15px rgba(27, 67, 50, 0.2),
        0 0 0 1px rgba(212, 165, 116, 0.3);
    border-color: rgba(212, 165, 116, 0.3);
}

.card:active {
    transform: scale(0.98);
    /* Tactile press effect */
}

.card:hover::before {
    opacity: 1;
}

/* Futuristic Navigation - Floating Glass Bar */
.navbar {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(30px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
    padding: var(--spacing-sm) 0 !important;
    box-shadow:
        0 10px 40px -10px rgba(0, 0, 0, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.3) inset !important;
    border-bottom: 1px solid rgba(212, 165, 116, 0.1) !important;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.nav-link {
    position: relative;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    border-radius: var(--radius-lg) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.1), rgba(212, 165, 116, 0.1));
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary) !important;
    transform: translateY(-2px);
}

/* Modern Button Styles */
/* Modern Button Styles - iOS Tactile Feel */
.btn-primary {
    background: linear-gradient(135deg, #D4A574 0%, #E5B56D 100%) !important;
    color: white !important;
    box-shadow:
        0 4px 15px rgba(212, 165, 116, 0.4),
        0 2px 5px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    /* Spring transition */
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow:
        0 8px 25px rgba(212, 165, 116, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.btn-primary:active {
    transform: scale(0.94) !important;
    /* Significant tactile feedback */
    box-shadow: 0 2px 10px rgba(212, 165, 116, 0.3) !important;
}

/* Product Card Enhancements */
.product-card {
    background: white;
    border-radius: var(--radius-2xl) !important;
    overflow: hidden;
    box-shadow:
        0 10px 40px -10px rgba(27, 67, 50, 0.1),
        0 0 0 1px rgba(27, 67, 50, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    border: 1px solid rgba(212, 165, 116, 0.1) !important;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(229, 181, 109, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-15px) !important;
    box-shadow:
        0 25px 60px -15px rgba(27, 67, 50, 0.2),
        0 0 0 1px rgba(212, 165, 116, 0.2),
        0 0 50px rgba(229, 181, 109, 0.15) !important;
    border-color: rgba(212, 165, 116, 0.3) !important;
}

.product-card:hover::after {
    opacity: 1;
}

.product-image {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

/* Feature Card Modern Design */
.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 247, 240, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl) !important;
    padding: var(--spacing-2xl);
    box-shadow:
        0 10px 40px -10px rgba(27, 67, 50, 0.08),
        0 0 0 1px rgba(212, 165, 116, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(229, 181, 109, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.03) !important;
    box-shadow:
        0 20px 60px -15px rgba(27, 67, 50, 0.15),
        0 0 0 1px rgba(212, 165, 116, 0.2),
        0 0 40px rgba(229, 181, 109, 0.1) !important;
}

.feature-icon {
    background: linear-gradient(135deg, #D4A574 0%, #E5B56D 100%) !important;
    box-shadow:
        0 8px 25px rgba(212, 165, 116, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #1B4332, #D4A574);
    border-radius: 50%;
    opacity: 0;
    z-index: -1;
    transition: all 0.4s ease;
    filter: blur(10px);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow:
        0 12px 35px rgba(212, 165, 116, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.feature-card:hover .feature-icon::after {
    opacity: 0.6;
    inset: -8px;
}

/* Hero Section Modern Enhancement */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--color-bg-body), transparent);
    pointer-events: none;
}

/* Animated Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #1B4332, #D4A574, #E5B56D, #1B4332);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Pulse Glow Effect */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(212, 165, 116, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(212, 165, 116, 0.6);
    }
}

.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-beige);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1B4332, #D4A574);
    border-radius: 10px;
    border: 2px solid var(--color-beige);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #D4A574, #E5B56D);
}

/* Smooth Page Transitions */
.page-transition {
    animation: pageLoad 0.6s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Input Fields */
.form-input,
.form-textarea,
.form-select {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(212, 165, 116, 0.2) !important;
    border-radius: var(--radius-lg) !important;
    padding: var(--spacing-md) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 1rem !important;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none !important;
    border-color: var(--color-secondary) !important;
    box-shadow:
        0 0 0 4px rgba(212, 165, 116, 0.1),
        0 4px 12px rgba(212, 165, 116, 0.15) !important;
    transform: translateY(-2px);
}

/* Newsletter Section Modern */
.newsletter-section {
    background: linear-gradient(135deg, rgba(250, 247, 240, 0.8) 0%, rgba(244, 241, 229, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-3xl);
    text-align: center;
    box-shadow:
        0 10px 40px -10px rgba(27, 67, 50, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-md);
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-input {
    flex: 1;
    min-width: 250px;
    padding: var(--spacing-md) var(--spacing-lg) !important;
    border: 2px solid rgba(212, 165, 116, 0.3) !important;
    border-radius: var(--radius-lg) !important;
    font-size: 1rem;
    transition: all 0.3s ease !important;
    background: white !important;
}

.newsletter-input:focus {
    outline: none !important;
    border-color: var(--color-secondary) !important;
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.1) !important;
}

/* WhatsApp Button Modern */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow:
        0 8px 25px rgba(37, 211, 102, 0.4),
        0 0 0 0 rgba(37, 211, 102, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow:
            0 8px 25px rgba(37, 211, 102, 0.4),
            0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow:
            0 8px 25px rgba(37, 211, 102, 0.4),
            0 0 0 15px rgba(37, 211, 102, 0);
    }
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

/* Mobile Bottom Nav Modern */
.mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow:
        0 -4px 30px rgba(27, 67, 50, 0.1),
        0 -1px 0 rgba(212, 165, 116, 0.1) inset !important;
    border-top: 1px solid rgba(212, 165, 116, 0.15) !important;
}

.mobile-bottom-nav a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
}

.mobile-bottom-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #1B4332, #D4A574);
    transition: width 0.3s ease;
}

.mobile-bottom-nav a:hover::before,
.mobile-bottom-nav a.active::before {
    width: 60%;
}

/* Testimonial Modern Design */
.testimonial {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 247, 240, 0.95) 100%) !important;
    backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl) !important;
    box-shadow:
        0 15px 50px -10px rgba(27, 67, 50, 0.15),
        0 0 0 1px rgba(212, 165, 116, 0.1) !important;
    border: 1px solid rgba(212, 165, 116, 0.15) !important;
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.3), transparent);
    margin: var(--spacing-3xl) 0;
}

/* Vegetarian Mark - Indian Standard */
.veg-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #2e7d32;
    /* Green */
    padding: 2px;
    margin-right: 8px;
    flex-shrink: 0;
}

.veg-mark::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: #2e7d32;
    border-radius: 50%;
}

.veg-label {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: #2e7d32;
    font-size: 0.9rem;
}

/* ===================================
   MOBILE COMPATIBILITY OVERRIDES
   =================================== */
@media (max-width: 480px) {

    .card,
    .product-card,
    .feature-card,
    .newsletter-section,
    .category-card {
        padding: 1rem !important;
        /* Reduced padding */
        border-radius: 1rem !important;
        width: 100% !important;
        /* Force full width */
        max-width: 100% !important;
        /* Prevent shrinking */
        box-sizing: border-box;
        touch-action: pan-y;
        /* Ensure vertical scroll prevails */
        transform: translateZ(0);
        /* Force hardware acceleration */
    }

    .grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .section {
        padding: 2rem 0 !important;
    }

    .navbar {
        padding: 0.5rem 0 !important;
    }

    .product-image {
        height: 320px !important;
        object-fit: cover !important;
        /* Ensure it fills */
    }

    .hero {
        padding: 4rem 0 2rem !important;
        min-height: auto !important;
    }

    .hero h1 {
        font-size: 2rem !important;
    }

    .timeline-vertical {
        padding-left: 30px !important;
    }

    .timeline-number {
        left: -30px !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 0.9rem !important;
    }

    /* Ensure no horizontal overflow */
    body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
}

/* Visibility Utilities for Story Layout */
.mobile-story-show {
    display: none;
}

.mobile-story-hide {
    display: block;
}

@media (max-width: 768px) {
    .mobile-story-show {
        display: block;
        width: 100%;
        margin: 1.5rem 0;
    }

    .mobile-story-hide {
        display: none !important;
    }
}

/* Hide Scrollbar for Mobile */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    display: none;
}

/* Desktop Product View Fix: Box Style requested by user */
@media (min-width: 1024px) {
    .product-card {
        max-width: 320px; /* Limit width similar to mobile box */
        margin: 0 auto;   /* Center in grid cell */
        display: flex;
        flex-direction: column;
        border-radius: 20px !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
        padding: 24px !important;
        background: #fff;
    }

    .product-image {
        height: 280px !important; /* Fixed height for consistency */
        width: 100% !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }
}
