/* ==========================================
   WEALSTAR - Nature-Inspired Premium CSS
   White, Green, Blue, and Gold Color Palette
   ========================================== */

:root {
    --white: #ffffff;
    --mint-green: #f8faf9;
    --soft-leaf-green: #7fa38c;
    --accent-gold: #c5a880;
    --accent-gold-hover: #b09163;
    --primary-green: #14352f;
    --primary-color: #14352f;
    --primary-blue: #0f2b48;
    --cream: #FAF9F6;
    --dark-green: #0b1f1c;
    --text-color: #2b2e2c;
    --light-text: #6c757d;
    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-bg-hover: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(255, 255, 255, 0.65);
    --glass-border-light: rgba(20, 53, 47, 0.08);
    --glass-shadow: 0 10px 30px 0 rgba(20, 53, 47, 0.06);
    --glass-shadow-hover: 0 20px 45px 0 rgba(20, 53, 47, 0.12);
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 15px 35px rgba(20, 53, 47, 0.08);
    --shadow-soft: 0 5px 20px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 20px 45px rgba(15, 43, 72, 0.12);
    --border-radius-lg: 20px;
    --border-radius-md: 14px;
    --border-radius-pill: 50px;
}

[data-theme="dark"] {
    --mint-green: #101614;
    --white: #17201c;
    --cream: #141b18;
    --text-color: #f1f3f2;
    --light-text: #adb5bd;
    --glass-bg: rgba(23, 32, 28, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-light: rgba(255, 255, 255, 0.06);
    --primary-blue: #7097c2;
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);
    --dark-green: #080c0a;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    max-width: 100%;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--mint-green);
    overflow-x: hidden !important;
    max-width: 100%;
    width: 100%;
    position: relative;
    line-height: 1.65;
    transition: background-color 0.4s, color 0.4s;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(20, 53, 47, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(197, 168, 128, 0.05) 0%, transparent 40%);
}

/* Fullscreen Screen Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.loader-leaf {
    animation: pulseLeaf 1s ease-in-out infinite alternate;
}
@keyframes pulseLeaf {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* FontAwesome Icon Shims & Pro-to-Free Fallbacks */
.fa-sparkles::before,
.fas.fa-sparkles::before {
    content: "\e2ca" !important; /* wand-magic-sparkles */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
.fa-balance-scale::before {
    content: "\f24e" !important; /* scale-balanced */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
.fa-fire-alt::before {
    content: "\f7e4" !important; /* fire-flame-curved */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
.fa-shield-alt::before {
    content: "\f3ed" !important; /* shield-halved */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
.fa-prescription-bottle-alt::before {
    content: "\f485" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
.fa-phone-alt::before {
    content: "\f879" !important; /* phone-flip */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
.fa-map-marker-alt::before {
    content: "\f3c5" !important; /* location-dot */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
.fa-check-circle::before {
    content: "\f058" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
.fa-info-circle::before {
    content: "\f05a" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

h1, h2, h3, h4, h5, .brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Glassmorphism System */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.glass-panel:hover {
    background: var(--glass-bg-hover);
    box-shadow: var(--glass-shadow-hover);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.9);
}

.glass-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 25px rgba(20, 53, 47, 0.05);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(20, 53, 47, 0.1);
    border-color: rgba(197, 168, 128, 0.4);
}

.glass-badge {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-pill);
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Sticky Navbar Glass */
.navbar {
    transition: var(--transition);
    padding: 16px 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(20, 53, 47, 0.08);
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 30px rgba(20, 53, 47, 0.08);
    border-bottom-color: rgba(20, 53, 47, 0.12);
}

.nav-link {
    font-weight: 600;
    color: var(--text-color) !important;
    margin: 0 10px;
    padding: 8px 12px !important;
    border-radius: 8px;
    position: relative;
    font-size: 0.92rem;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 12px;
    right: 12px;
    background-color: var(--primary-green);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 24px);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-green) !important;
    background: rgba(20, 53, 47, 0.04);
}

/* Buttons */
.btn-nature {
    background-color: var(--primary-green);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(20, 53, 47, 0.2);
}

.btn-nature:hover {
    background-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(197, 168, 128, 0.3);
    color: white;
}

.btn-outline-nature {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    background: transparent;
}

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

.btn-gold {
    background-color: var(--accent-gold);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    transition: var(--transition);
}
.btn-gold:hover {
    background-color: var(--accent-gold-hover);
    color: white;
    transform: translateY(-3px);
}

/* Sections */
.section-padding {
    padding: 100px 0;
}

.bg-gradient-nature {
    background: linear-gradient(135deg, var(--mint-green) 0%, var(--cream) 100%);
}

.text-accent {
    color: var(--primary-green);
}
[data-theme="dark"] .text-accent {
    color: var(--accent-gold);
}

/* Hero Section */
.hero-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 180px 0 140px;
    color: white;
    z-index: 1;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 53, 47, 0.9) 0%, rgba(15, 43, 72, 0.8) 100%);
    z-index: -1;
}

.hero-banner h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-banner p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: var(--accent-gold);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--mint-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-green);
}
[data-theme="dark"] .feature-icon-wrapper {
    color: var(--accent-gold);
}

/* Category Filter */
.filter-btn {
    border: 1px solid var(--primary-green);
    background: transparent;
    color: var(--primary-green);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    margin: 5px;
    transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--primary-green);
    color: white;
}

[data-theme="dark"] .filter-btn {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}
[data-theme="dark"] .filter-btn.active, [data-theme="dark"] .filter-btn:hover {
    background: var(--accent-gold);
    color: var(--dark-green);
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-premium);
}

.product-img-wrapper {
    overflow: hidden;
    height: 400px;
    position: relative;
    background: #fdfdfd;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-blue);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Why Choose Us Cards */
.why-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    height: 100%;
}
.why-card:hover {
    transform: scale(1.03);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow);
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
}
.testimonial-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--accent-gold);
}
.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stats Item */
.stat-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    border-bottom: 4px solid var(--accent-gold);
}
.stat-item h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-green);
}
[data-theme="dark"] .stat-item h2 {
    color: var(--accent-gold);
}

/* Blog Cards */
.blog-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    height: 100%;
}
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}
.blog-img-wrapper {
    height: 200px;
    overflow: hidden;
}
.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.08);
}

/* Gallery Section */
.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius-md);
    position: relative;
    height: 250px;
    box-shadow: var(--shadow-soft);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 53, 47, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* FAQ accordion custom styling */
.accordion-item {
    background: transparent;
    border: none;
    margin-bottom: 16px;
}
.accordion-button {
    font-weight: 600;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-md) !important;
    padding: 20px 24px;
    box-shadow: 0 4px 15px rgba(20, 53, 47, 0.04);
    transition: var(--transition);
}
.accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-green);
    border-color: rgba(197, 168, 128, 0.4);
    box-shadow: 0 8px 25px rgba(20, 53, 47, 0.08);
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(20, 53, 47, 0.12);
}
.accordion-body {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top: none;
    border-bottom-left-radius: var(--border-radius-md);
    border-bottom-right-radius: var(--border-radius-md);
    padding: 20px 24px;
    color: #4a5568;
    line-height: 1.7;
}

/* Floating Widgets */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    color: white;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    z-index: 1000;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 50%;
}
#back-to-top:hover {
    transform: translateY(-5px);
}

/* Hero Carousel Glass Styling */
.hero-slider-section {
    position: relative;
    padding-top: 20px;
    padding-bottom: 40px;
    overflow: hidden;
}
.hero-slider-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(20, 53, 47, 0.08);
    overflow: hidden;
}
.hero-product-img-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.hero-product-img {
    max-height: 480px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 20px;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: drop-shadow(0 20px 30px rgba(20, 53, 47, 0.15));
}
.hero-slider-card:hover .hero-product-img {
    transform: scale(1.04) rotate(1deg);
}

.hero-glass-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 53, 47, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 53, 47, 0.12);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.floating-glass-stat {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(20, 53, 47, 0.12);
    border-radius: 18px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    animation: floatBadge 4s ease-in-out infinite alternate;
}
.floating-stat-1 {
    top: 12%;
    left: 4%;
}
.floating-stat-2 {
    bottom: 12%;
    right: 4%;
    animation-delay: 2s;
}
@keyframes floatBadge {
    0% { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}

/* Benefit Cards in Glass Grid */
.benefit-glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    padding: 24px 20px;
    box-shadow: 0 8px 24px rgba(20, 53, 47, 0.04);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.benefit-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-green);
    opacity: 0;
    transition: var(--transition);
}
.benefit-glass-card:hover {
    background: rgba(255, 255, 255, 0.96);
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(20, 53, 47, 0.1);
    border-color: rgba(197, 168, 128, 0.5);
}
.benefit-glass-card:hover::before {
    opacity: 1;
}
.benefit-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
    background: rgba(20, 53, 47, 0.08);
    color: var(--primary-green);
    transition: var(--transition);
}
.benefit-glass-card:hover .benefit-icon-circle {
    background: var(--primary-green);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

/* Benefit Filter Nav Pills */
.benefit-pill-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
}
.benefit-pill-btn {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 53, 47, 0.12);
    color: var(--text-color);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}
.benefit-pill-btn:hover, .benefit-pill-btn.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
    box-shadow: 0 6px 20px rgba(20, 53, 47, 0.2);
    transform: translateY(-2px);
}

/* Contact Glass Form */
.glass-input {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 53, 47, 0.12) !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    font-size: 0.95rem;
    transition: var(--transition);
}
.glass-input:focus {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: var(--primary-green) !important;
    box-shadow: 0 0 0 0.25rem rgba(20, 53, 47, 0.12) !important;
}

/* Contact Info Card */
.contact-info-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius-md);
    padding: 22px;
    box-shadow: 0 8px 25px rgba(20, 53, 47, 0.04);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
}
.contact-info-glass:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(20, 53, 47, 0.08);
}

/* Footer Section */
.main-footer {
    background: linear-gradient(180deg, #102621 0%, #091714 100%);
    color: #e8f5e9;
    padding: 80px 0 20px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-heading {
    position: relative;
    padding-bottom: 12px;
    display: inline-block;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-gold);
}
.footer-links-list li {
    margin-bottom: 12px;
}
.footer-links-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}
.footer-links-list a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}
.footer-newsletter-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius-md);
}

/* ==========================================
   AOS Performance Optimization & Anti-Horizontal Overflow
   ========================================== */

/* Accelerate AOS globally so animations are snappy and non-blocking */
[data-aos] {
    transition-duration: 0.4s !important;
}

/* Eliminate horizontal overflow caused by AOS translations on screens <= 991px */
@media (max-width: 991px) {
    [data-aos="fade-left"],
    [data-aos="fade-right"] {
        transform: translate3d(0, 18px, 0) !important;
        opacity: 0;
    }
    [data-aos="fade-left"].aos-animate,
    [data-aos="fade-right"].aos-animate {
        transform: translate3d(0, 0, 0) !important;
        opacity: 1;
    }
    .floating-glass-stat {
        display: none !important;
    }
    .hero-product-img {
        max-height: 320px;
    }
}

/* Image and Media Contained Safety */
img, svg, video, iframe {
    max-width: 100%;
    height: auto;
}

section, .section-padding, .hero-slider-section, .hero-banner, .main-footer {
    max-width: 100%;
    overflow-x: clip;
}

/* Mobile Screen Specifics */
@media (max-width: 768px) {
    .hero-banner h1, .display-4 {
        font-size: 1.85rem !important;
        line-height: 1.25;
    }
    .display-5 {
        font-size: 1.6rem !important;
        line-height: 1.25;
    }
    .section-padding {
        padding: 45px 0;
    }
    .hero-slider-card {
        padding: 1.25rem 1rem !important;
        border-radius: 20px;
    }
    .hero-glass-pill {
        font-size: 0.78rem;
        padding: 6px 14px;
        margin-bottom: 12px;
        max-width: 100%;
        white-space: normal;
        text-align: center;
        display: inline-flex;
    }
    .benefit-pill-nav {
        gap: 6px;
        margin-bottom: 25px;
    }
    .benefit-pill-btn {
        padding: 7px 12px;
        font-size: 0.8rem;
        white-space: normal;
        word-break: break-word;
        max-width: 100%;
    }
    .contact-info-glass {
        padding: 16px;
    }
    /* Gutter protection on mobile */
    .row.g-5 {
        --bs-gutter-x: 1.25rem;
        --bs-gutter-y: 1.5rem;
    }
    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1.25rem;
    }
    /* Modal responsive padding */
    .modal-body {
        padding: 1.25rem !important;
    }
    .glass-panel {
        padding: 1.25rem !important;
    }
    .main-footer {
        padding: 50px 0 20px;
    }
    .footer-top {
        margin-bottom: 2rem !important;
        padding-bottom: 2rem !important;
    }
    /* Ensure navbar collapses cleanly without overflowing */
    .navbar .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .navbar-collapse {
        margin-top: 10px;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 16px;
        padding: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }
}
