/* ========================================
   VITALIFE HEALTH SUPPLEMENTS - MAIN CSS
   Premium MLM Website Template
   ======================================== */

/* === ROOT VARIABLES === */
:root {
    /* Colors */
    --primary: #166534;
    --secondary: #0F766E;
    --accent: #A3E635;
    --background: #F8FAFC;
    --white: #FFFFFF;
    --black: #0F172A;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-700: #334155;
    --gray-900: #0F172A;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #166534, #0F766E);
    --gradient-accent: linear-gradient(135deg, #A3E635, #84CC16);
    --gradient-overlay: linear-gradient(135deg, rgba(22, 101, 52, 0.9), rgba(15, 118, 110, 0.9));
    --gradient-mesh: linear-gradient(135deg, rgba(22, 101, 52, 0.05) 0%, rgba(15, 118, 110, 0.05) 50%, rgba(163, 230, 53, 0.05) 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(163, 230, 53, 0.2), transparent 70%);
    --gradient-shimmer: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px rgba(163, 230, 53, 0.3);
    --shadow-colored: 0 10px 40px rgba(22, 101, 52, 0.2);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(10px);
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-900);
    background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 50%, #E2E8F0 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(22, 101, 52, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(15, 118, 110, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(163, 230, 53, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.1);
}
h2 { 
    font-size: clamp(2rem, 4vw, 3rem);
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.08);
}
h3 { 
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.06);
}
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* === UTILITY CLASSES === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-sm);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    animation: gradientShine 3s ease-in-out infinite;
    background-size: 200% auto;
}

@keyframes gradientShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.section {
    padding: var(--spacing-2xl) 0;
    position: relative;
    z-index: 1;
}

/* Premium Section Dividers */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.2;
}

.section:last-of-type::after {
    display: none;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title h2 {
    margin-bottom: var(--spacing-sm);
}

.section-title p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--black);
    box-shadow: var(--shadow-md), 0 0 20px rgba(163, 230, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(163, 230, 53, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-colored);
    transform: translateY(-2px);
}

.btn-outline {
    background: var(--glass-bg);
    color: var(--white);
    border: 2px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    box-shadow: var(--shadow-glow);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(22, 101, 52, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md), 0 0 40px rgba(22, 101, 52, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: iconPulse 2s ease-in-out infinite;
}

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

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-cta .btn-secondary,
.nav-cta .btn-primary {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

/* === FOOTER === */
.footer {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: var(--white);
    padding: var(--spacing-2xl) 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-accent);
    box-shadow: 0 0 20px rgba(163, 230, 53, 0.3);
}

.footer::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(163, 230, 53, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-top {
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer-logo i {
    font-size: 2rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    color: var(--white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-accent);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.social-link i {
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(163, 230, 53, 0.4);
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover i {
    transform: rotate(360deg);
    color: var(--primary-dark);
}

.footer-title {
    color: var(--white);
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
    text-shadow: 0 0 10px rgba(163, 230, 53, 0.3);
}

.footer-links a:hover::before {
    width: calc(100% - 5px);
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--accent);
    width: 20px;
}

.footer-bottom {
    padding: var(--spacing-md) 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

/* === SCROLL TO TOP === */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes rotateGradient {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.animate {
    animation-duration: 0.8s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.fadeInUp { animation-name: fadeInUp; }
.fadeIn { animation-name: fadeIn; }
.slideInLeft { animation-name: slideInLeft; }
.slideInRight { animation-name: slideInRight; }
.scaleIn { animation-name: scaleIn; }

/* Icon Animations */
.fas, .fab {
    transition: var(--transition);
}

.card:hover .fas,
.card:hover .fab {
    animation: pulse 1s ease-in-out infinite;
}

/* === SCROLL PROGRESS INDICATOR === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-accent);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(163, 230, 53, 0.5);
}

/* === GLASSMORPHISM UTILITIES === */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* === GRADIENT BORDERS === */
.gradient-border {
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.gradient-border:hover::before {
    opacity: 1;
}

/* === TEXT EFFECTS === */
.text-glow {
    text-shadow: 0 0 20px rgba(163, 230, 53, 0.5),
                 0 0 40px rgba(163, 230, 53, 0.3);
}

.text-shadow-sm {
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-md {
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.15);
}

.text-shadow-lg {
    text-shadow: 3px 6px 12px rgba(0, 0, 0, 0.2);
}

/* === PREMIUM OVERLAYS === */
.overlay-gradient {
    position: relative;
}

.overlay-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 1;
    pointer-events: none;
}

.overlay-gradient > * {
    position: relative;
    z-index: 2;
}

/* === SECTION BACKGROUNDS === */
.section-mesh {
    background: var(--gradient-mesh);
    position: relative;
}

.section-mesh::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(22, 101, 52, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(15, 118, 110, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* === HOVER GLOWS === */
.hover-glow {
    transition: var(--transition);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
    filter: brightness(1.05);
}

/* === CARDS === */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-shimmer);
    transition: left 0.5s;
    pointer-events: none;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(22, 101, 52, 0.15);
    border-color: rgba(163, 230, 53, 0.3);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card:hover .card-img {
    transform: scale(1.1) rotate(1deg);
}

.card-body {
    padding: var(--spacing-md);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.card-text {
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
}

/* === GRID LAYOUTS === */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .nav-wrapper {
        flex-wrap: wrap;
    }
    
    .logo {
        flex: 0 0 auto;
    }
    
    .nav-cta {
        gap: 0.5rem;
        flex: 0 0 auto;
    }
    
    .nav-cta .btn-secondary,
    .nav-cta .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .nav-menu {
        order: 4;
        width: 100%;
        margin-top: 1rem;
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--accent) transparent;
    }
    
    .nav-menu::-webkit-scrollbar {
        height: 4px;
    }
    
    .nav-menu::-webkit-scrollbar-track {
        background: rgba(22, 101, 52, 0.1);
        border-radius: 10px;
    }
    
    .nav-menu::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 10px;
    }
    
    .nav-link {
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .footer-bottom-content {
        justify-content: center;
        text-align: center;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}
/* === RIPPLE EFFECT === */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleAnimation 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* === TILT EFFECT === */
.card, .feature-card, .product-card, .tier-card {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
}

/* === SCROLL-TOP BUTTON GLOW === */
#scrollTop {
    background: var(--gradient-accent);
    box-shadow: 0 4px 15px rgba(163, 230, 53, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#scrollTop:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(163, 230, 53, 0.5);
}

#scrollTop i {
    transition: transform 0.3s ease;
}

#scrollTop:hover i {
    transform: translateY(-2px);
}

/* === PERFORMANCE OPTIMIZATIONS === */
.animate {
    will-change: transform, opacity;
}

.card:hover,
.feature-card:hover,
.product-card:hover {
    will-change: transform, box-shadow;
}

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

/* === FOCUS VISIBLE STATES === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}
/* === ENHANCED RESPONSIVE DESIGN === */

/* Tablets and Medium Devices */
@media (max-width: 991px) {
    /* Hero Section */
    .hero {
        padding: 100px 0 60px !important;
    }
    
    .hero-content {
        max-width: 100% !important;
    }
    
    .hero h1 {
        font-size: clamp(2rem, 6vw, 3rem) !important;
    }
    
    .hero p {
        font-size: 1.1rem !important;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .trust-badges {
        justify-content: center !important;
    }
    
    /* Stats Section */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    /* Income Preview Cards */
    .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .grid-3 .card {
        margin-top: 2rem !important;
        transform: scale(1) !important;
    }
    
    /* How It Works */
    .desktop-line {
        display: none !important;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    /* Container Padding */
    .container {
        padding: 0 1rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 80px 0 50px !important;
    }
    
    .hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
        margin-bottom: 1rem !important;
    }
    
    .hero p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 1rem !important;
        margin-top: 2rem !important;
    }
    
    .trust-badges > div {
        justify-content: center;
    }
    
    /* Stats Section */
    .stats-section {
        padding: 2rem 0 !important;
        margin-top: -30px !important;
    }
    
    .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .stat-card {
        padding: 1.5rem 1rem !important;
    }
    
    .stat-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.25rem !important;
    }
    
    /* Section Titles */
    .section-title h2 {
        font-size: 1.75rem !important;
    }
    
    .section-title p {
        font-size: 1rem !important;
    }
    
    /* Income Preview Section */
    .grid-3 .card {
        padding: 2rem 1.5rem !important;
        margin-top: 2.5rem !important;
    }
    
    .grid-3 .card h3 {
        font-size: 1.25rem !important;
    }
    
    .grid-3 .card > div:first-of-type {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }
    
    /* How It Works Section */
    .step-card > div > div:first-child {
        width: 90px !important;
        height: 90px !important;
        font-size: 2.5rem !important;
    }
    
    .step-card h3 {
        font-size: 1.25rem !important;
    }
    
    .step-card p {
        font-size: 0.95rem !important;
    }
    
    /* Features Grid */
    .features-grid .grid-3 {
        grid-template-columns: 1fr !important;
    }
    
    /* Products Grid */
    .products-grid .grid-3 {
        grid-template-columns: 1fr !important;
    }
    
    /* MLM Benefits */
    .mlm-benefits .grid-2 {
        grid-template-columns: 1fr !important;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1.5rem !important;
    }
    
    /* CTA Section */
    .cta-section h2 {
        font-size: 1.75rem !important;
    }
    
    .cta-section p {
        font-size: 1rem !important;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    /* Global Typography */
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    p {
        font-size: 0.9rem !important;
    }
    
    /* Hero Section */
    .hero {
        padding: 60px 0 40px !important;
    }
    
    .hero h1 {
        font-size: 1.5rem !important;
    }
    
    .hero p {
        font-size: 0.95rem !important;
    }
    
    .btn-large {
        padding: 0.875rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Stats */
    .stat-card h3 {
        font-size: 1.75rem !important;
    }
    
    /* Income Cards */
    .grid-3 .card {
        padding: 1.5rem 1rem !important;
    }
    
    .grid-3 .card > div:nth-child(3) {
        font-size: 2.5rem !important;
    }
    
    /* How It Works */
    .step-card > div > div:first-child {
        width: 80px !important;
        height: 80px !important;
        font-size: 2rem !important;
    }
    
    .step-card > div > div:first-child > div {
        width: 35px !important;
        height: 35px !important;
    }
    
    /* Decorative Elements - Hide on small screens */
    section > div[style*="position: absolute"][style*="radial-gradient"] {
        display: none !important;
    }
    
    /* Section Padding */
    .section {
        padding: 3rem 0 !important;
    }
    
    /* Container */
    .container {
        padding: 0 0.75rem !important;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.35rem !important;
    }
    
    .section-title h2 {
        font-size: 1.35rem !important;
    }
    
    .btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
    }
    
    .grid-3 .card > div:nth-child(3) {
        font-size: 2rem !important;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 50px 0 30px !important;
    }
    
    .section {
        padding: 2rem 0 !important;
    }
    
    .hero h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .hero p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
}

/* === MOBILE-FIRST UTILITIES === */
.mobile-center {
    text-align: center;
}

.mobile-stack {
    display: flex;
    flex-direction: column;
}

/* Hide decorative elements on mobile for performance */
@media (max-width: 768px) {
    .hero > div[style*="position: absolute"],
    section > div[style*="position: absolute"][style*="width: 400px"],
    section > div[style*="position: absolute"][style*="width: 500px"],
    section > div[style*="position: absolute"][style*="width: 300px"],
    section > div[style*="position: absolute"][style*="width: 200px"] {
        opacity: 0.3 !important;
        width: 200px !important;
        height: 200px !important;
    }
}

/* Product Cards Responsive */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 2rem;
    }
    
    .product-card img {
        height: 250px !important;
    }
}

/* Feature Cards Responsive */
@media (max-width: 768px) {
    .feature-card {
        padding: 1.5rem !important;
        margin-bottom: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem !important;
    }
}

/* Better button spacing on mobile */
@media (max-width: 768px) {
    .btn + .btn {
        margin-top: 0;
    }
    
    .hero-cta .btn {
        font-size: 0.95rem !important;
        padding: 1rem 1.5rem !important;
    }
}

/* Premium Products Section Stats - Mobile */
@media (max-width: 768px) {
    section[style*="Premium Products"] .grid-4 {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }
    
    section[style*="Premium Products"] .stat-card {
        font-size: 0.9rem;
    }
}

/* Income Preview - MOST POPULAR Badge Mobile Fix */
@media (max-width: 768px) {
    .grid-3 .card > div[style*="MOST POPULAR"] {
        font-size: 0.75rem !important;
        padding: 0.4rem 1rem !important;
        top: -10px !important;
    }
}

/* Ensure proper text wrapping */
@media (max-width: 480px) {
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    p, span, div {
        word-wrap: break-word;
    }
}

/* === FINAL RESPONSIVE OVERRIDES === */

/* Force responsive behavior on all grids */
@media (max-width: 991px) {
    .grid-2 {
        grid-template-columns: 1fr !important;
    }
    
    /* Two columns for stats on tablets */
    section .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    /* All grids single column on mobile */
    .grid-2,
    .grid-3,
    .grid-4,
    section .grid-3,
    section .grid-4,
    .container .grid-3,
    .container .grid-4 {
        grid-template-columns: 1fr !important;
    }
    
    /* Reset any transforms on mobile */
    .card,
    .product-card,
    .feature-card,
    .step-card {
        transform: none !important;
    }
    
    /* Full width buttons on mobile */
    .btn-large,
    .hero-cta .btn-large {
        width: 100% !important;
        text-align: center;
    }
}

/* Fix for Premium Products stats specifically */
@media (max-width: 991px) {
    section[style*="background: white"] .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    section[style*="background: white"] .grid-4 {
        grid-template-columns: 1fr !important;
    }
}

/* Ensure section backgrounds are visible */
@media (max-width: 768px) {
    .section,
    section {
        min-height: auto !important;
    }
}

/* Fix any overflow issues */
@media (max-width: 768px) {
    .container {
        overflow-x: hidden !important;
    }
    
    body {
        overflow-x: hidden !important;
    }
    
    .hero,
    .section {
        overflow-x: hidden !important;
    }
}

/* Center text on mobile for hero */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center !important;
    }
}

/* ============================================
   MOBILE HAMBURGER DRAWER MENU
   ============================================ */

/* Hamburger Button - Hidden by default (desktop) */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    z-index: 1001;
}

.hamburger-menu:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

.hamburger-menu:active {
    transform: scale(0.95);
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1998;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85%;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1999;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    right: 0;
}

/* Drawer Header */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.drawer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.drawer-logo i {
    font-size: 1.75rem;
    color: var(--accent);
}

.drawer-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drawer-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.drawer-close:active {
    transform: rotate(90deg) scale(0.9);
}

/* Drawer Navigation */
.drawer-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #334155;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
}

.drawer-link i {
    font-size: 1.25rem;
    color: var(--primary);
    transition: all 0.3s ease;
    width: 24px;
    text-align: center;
}

.drawer-link:hover {
    background: linear-gradient(90deg, rgba(22, 101, 52, 0.08) 0%, transparent 100%);
    border-left-color: var(--primary);
    color: var(--primary);
}

.drawer-link:hover i {
    transform: translateX(3px);
    color: var(--secondary);
}

.drawer-link.active {
    background: linear-gradient(90deg, rgba(22, 101, 52, 0.12) 0%, rgba(22, 101, 52, 0.03) 100%);
    border-left-color: var(--accent);
    color: var(--primary);
    font-weight: 600;
}

.drawer-link.active i {
    color: var(--accent);
}

.drawer-link:active {
    transform: scale(0.98);
}

/* Drawer Footer */
.drawer-footer {
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.05), rgba(15, 118, 110, 0.05));
    border-top: 1px solid rgba(22, 101, 52, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.drawer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.drawer-btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.drawer-btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.3);
}

.drawer-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.3);
}

.drawer-btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 101, 52, 0.4);
}

.drawer-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Smooth Scrollbar for Drawer */
.drawer-nav::-webkit-scrollbar {
    width: 6px;
}

.drawer-nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.drawer-nav::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.drawer-nav::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Mobile Only - Show Hamburger, Hide Desktop Nav */
@media (max-width: 768px) {
    /* Show hamburger button */
    .hamburger-menu {
        display: block;
    }
    
    /* Hide desktop navigation menu */
    .nav-menu {
        display: none !important;
    }
    
    /* Hide desktop CTA buttons */
    .nav-cta {
        display: none !important;
    }
    
    /* Adjust navbar for mobile */
    .nav-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Tablet and Desktop - Hide Drawer Components */
@media (min-width: 769px) {
    .hamburger-menu,
    .mobile-drawer,
    .mobile-drawer-overlay {
        display: none !important;
    }
}

/* Prevent body scroll when drawer is open */
body.drawer-open {
    overflow: hidden;
}

/* Animation for drawer links - stagger effect */
.mobile-drawer.active .drawer-link {
    animation: slideInRight 0.3s ease forwards;
    opacity: 0;
}

.mobile-drawer.active .drawer-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-drawer.active .drawer-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-drawer.active .drawer-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-drawer.active .drawer-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-drawer.active .drawer-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Accessibility improvements */
.hamburger-menu:focus,
.drawer-close:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.drawer-link:focus {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mobile-drawer {
        border-left: 2px solid var(--primary);
    }
    
    .drawer-link {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .mobile-drawer,
    .mobile-drawer-overlay,
    .hamburger-menu,
    .drawer-close,
    .drawer-link {
        transition: none !important;
        animation: none !important;
    }
}

/* ============================================
   PRODUCT IMAGE RESPONSIVE FIXES
   ============================================ */

/* Base product image styles - mobile first */
.product-card .card-img,
.card-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 1rem 1rem 0 0;
}

/* Product card image container */
.product-card > div:first-child,
.card > div:first-child {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #f8fafc;
}

/* Ensure images don't break layout */
.product-card img,
.card img {
    max-width: 100%;
    height: auto;
}

/* Mobile Screens - All Sizes */
@media (max-width: 768px) {
    .product-card .card-img,
    .card-img {
        height: auto !important;
        aspect-ratio: 1/1;
        min-height: 200px;
        max-height: 350px;
    }
    
    .product-card > div:first-child {
        border-radius: 0.75rem 0.75rem 0 0;
    }
    
    /* Adjust badge positioning for mobile */
    .product-card > div:first-child > div[style*="position: absolute"] {
        top: 0.75rem !important;
        right: 0.75rem !important;
        font-size: 0.75rem !important;
        padding: 0.375rem 0.75rem !important;
    }
}

/* Small Mobile Devices (360px - 480px) */
@media (max-width: 480px) {
    .product-card .card-img,
    .card-img {
        aspect-ratio: 1/1;
        min-height: 180px;
        max-height: 300px;
    }
    
    .product-card {
        margin-bottom: 1.5rem !important;
    }
}

/* Extra Small Devices (< 360px) */
@media (max-width: 360px) {
    .product-card .card-img,
    .card-img {
        aspect-ratio: 1/1;
        min-height: 160px;
        max-height: 280px;
    }
}

/* Tablet Devices (768px - 991px) */
@media (min-width: 769px) and (max-width: 991px) {
    .product-card .card-img,
    .card-img {
        height: 220px !important;
        aspect-ratio: auto;
    }
}

/* Desktop Devices (> 991px) */
@media (min-width: 992px) {
    .product-card .card-img,
    .card-img {
        height: 250px !important;
        aspect-ratio: auto;
    }
}

/* Fix for product grid images on homepage */
section .grid-3 .card-img,
section .grid-3 .product-card img {
    width: 100% !important;
    object-fit: cover;
}

/* Prevent image distortion on all screens */
.product-card img[src*="product-"],
.card img[src*="product-"] {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4/3;
    object-fit: cover;
}

@media (max-width: 768px) {
    .product-card img[src*="product-"],
    .card img[src*="product-"] {
        aspect-ratio: 1/1;
    }
}

/* Loading state for images */
.card-img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Product detail page images */
.product-detail-image,
.detail-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 1rem;
}

@media (max-width: 768px) {
    .product-detail-image,
    .detail-image {
        aspect-ratio: 1/1;
        max-height: 400px;
    }
}

/* Fix overflow issues */
@media (max-width: 768px) {
    .product-card,
    .card {
        overflow: hidden;
    }
    
    .product-card > div,
    .card > div {
        overflow: hidden;
    }
}

/* Additional mobile image optimizations */
@media (max-width: 768px) {
    /* Product cards full width on mobile */
    .grid-3 .product-card,
    .grid-3 .card {
        width: 100%;
    }
    
    /* Ensure proper card body spacing */
    .product-card .card-body,
    .card .card-body {
        padding: 1.25rem !important;
    }
    
    /* Product title sizing */
    .product-card .card-title,
    .card .card-title {
        font-size: 1.125rem !important;
        line-height: 1.4;
        margin-bottom: 0.75rem !important;
    }
    
    /* Product description text */
    .product-card .card-text,
    .card .card-text {
        font-size: 0.9rem !important;
        line-height: 1.6;
    }
    
    /* Price display */
    .product-card .card-body > div:first-child > div,
    div[style*="font-size: 1.5rem"] {
        font-size: 1.35rem !important;
    }
    
    /* Star ratings on mobile */
    .product-card .fas.fa-star {
        font-size: 0.875rem;
    }
    
    /* Button adjustments */
    .product-card .btn {
        font-size: 0.875rem !important;
        padding: 0.75rem 1rem !important;
    }
}

/* Fix for Samsung Galaxy and similar devices */
@media (max-width: 412px) {
    .product-card .card-img,
    .card-img {
        aspect-ratio: 1/1;
        min-height: 200px;
        max-height: 320px;
    }
}

/* iPhone SE and small screens */
@media (max-width: 375px) {
    .product-card .card-img,
    .card-img {
        min-height: 180px;
        max-height: 280px;
    }
    
    .product-card .card-body,
    .card .card-body {
        padding: 1rem !important;
    }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
    .product-card .card-img,
    .card-img {
        max-height: 250px;
    }
}

/* Fix for card images showing fully without cutoff */
.product-card .card-img,
.card .card-img,
img.card-img {
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #f8fafc;
    padding: 1rem;
}

/* Override mobile restrictions to show full image */
@media (max-width: 768px) {
    .product-card .card-img,
    .card-img,
    img.card-img {
        height: auto !important;
        min-height: 250px !important;
        max-height: 450px !important;
        aspect-ratio: auto !important;
        object-fit: contain !important;
        padding: 1rem;
    }
}

/* Ensure image container doesn't crop */
/* .product-card > div:first-child,
.card > div:first-child {


} */

@media (max-width: 480px) {
    .product-card .card-img,
    .card-img {
        min-height: 220px !important;
        max-height: 400px !important;
    }
}

/* Full image display on all screens */
section .grid-3 .card-img,
section .grid-3 .product-card img {
    object-fit: contain !important;
    height: auto !important;
}

/* ============================================
   INCOME PREVIEW SECTION - RESPONSIVE
   ============================================ */

/* Desktop - Cards side by side */
@media (min-width: 992px) {
    /* Income preview grid */
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem !important;
        align-items: start !important;
    }
    
    /* Center card slightly elevated */
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card:nth-child(2) {
        transform: scale(1.05) !important;
        margin-top: 0 !important;
    }
}

/* Tablet - 2 columns then stack */
@media (min-width: 769px) and (max-width: 991px) {
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    /* Reset scale on tablet */
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card {
        transform: none !important;
        margin-top: 1.5rem !important;
    }
    
    /* Third card spans full width */
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card:nth-child(3) {
        grid-column: span 2;
        max-width: 500px;
        margin: 1.5rem auto 0;
    }
}

/* Mobile - Stack vertically */
@media (max-width: 768px) {
    /* Income preview section padding */
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] {
        padding: 3rem 0 !important;
    }
    
    /* Stack cards */
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        margin-top: 2rem !important;
    }
    
    /* Reset all card transforms and margins */
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card {
        transform: none !important;
        margin-top: 2rem !important;
        padding: 2rem 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Icon size reduction */
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card > div:first-of-type {
        width: 70px !important;
        height: 70px !important;
        font-size: 1.75rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    /* Price size adjustment */
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card > div:nth-child(3) {
        font-size: 2.5rem !important;
    }
    
    /* Title size */
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card h3 {
        font-size: 1.35rem !important;
    }
    
    /* "MOST POPULAR" badge positioning */
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card > div[style*="MOST POPULAR"] {
        font-size: 0.75rem !important;
        padding: 0.4rem 1.25rem !important;
        top: -12px !important;
    }
    
    /* List items spacing */
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 ul li {
        font-size: 0.9rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    /* Section title */
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .section-title h2 {
        font-size: 1.75rem !important;
    }
    
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .section-title p {
        font-size: 1rem !important;
    }
}

/* Small mobile - Further optimizations */
@media (max-width: 480px) {
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] {
        padding: 2.5rem 0 !important;
    }
    
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 {
        gap: 1.25rem !important;
        margin-top: 1.5rem !important;
    }
    
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card {
        padding: 1.75rem 1.25rem !important;
        margin-top: 1.75rem !important;
    }
    
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card > div:first-of-type {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }
    
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card > div:nth-child(3) {
        font-size: 2.25rem !important;
    }
    
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card h3 {
        font-size: 1.25rem !important;
    }
    
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 ul li {
        font-size: 0.85rem !important;
    }
    
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .section-title h2 {
        font-size: 1.5rem !important;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card {
        padding: 1.5rem 1rem !important;
    }
    
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card > div:nth-child(3) {
        font-size: 2rem !important;
    }
    
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 ul li {
        font-size: 0.8rem !important;
        line-height: 1.6 !important;
    }
}

/* View Complete Plan button responsive */
section[style*="linear-gradient(135deg, #166534, #0F766E)"] a[href*="mlm-plan"] {
    display: inline-block;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] a[href*="mlm-plan"] {
        width: 100%;
        max-width: 400px;
        text-align: center;
        padding: 1rem 2rem !important;
    }
}

/* Hover effects - disable on touch devices */
@media (hover: hover) and (pointer: fine) {
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card:hover {
        transform: translateY(-8px) !important;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2) !important;
    }
    
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card:nth-child(2):hover {
        transform: scale(1.08) translateY(-8px) !important;
    }
}

/* Mobile - Disable hover transform */
@media (max-width: 768px) {
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card:hover {
        transform: none !important;
    }
}

/* Ensure proper spacing for decorative elements on mobile */
@media (max-width: 768px) {
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] > div[style*="position: absolute"] {
        opacity: 0.3 !important;
    }
}

/* Container responsive padding */
@media (max-width: 768px) {
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 480px) {
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* ============================================
   INCOME CARDS - SMALLER & CENTERED (MOBILE)
   ============================================ */

/* Mobile - Make cards smaller and centered */
@media (max-width: 768px) {
    /* Center cards container */
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 {
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Make cards smaller with max-width */
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card {
        max-width: 350px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 1.5rem 1.25rem !important;
    }
    
    /* Smaller icon */
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card > div:first-of-type {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Smaller price */
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card > div:nth-child(3) {
        font-size: 2rem !important;
        margin: 0.75rem 0 !important;
    }
    
    /* Smaller title */
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card h3 {
        font-size: 1.15rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    /* Smaller "Per Month" text */
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card > p {
        font-size: 0.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Smaller list items */
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 ul {
        padding: 0 !important;
    }
    
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 ul li {
        font-size: 0.85rem !important;
        margin-bottom: 0.35rem !important;
        line-height: 1.5 !important;
    }
    
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 ul li i {
        font-size: 0.9rem !important;
    }
    
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 ul li span {
        font-size: 0.85rem !important;
    }
}

/* iPhone and small mobile - even smaller */
@media (max-width: 480px) {
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card {
        max-width: 320px !important;
        padding: 1.25rem 1rem !important;
        margin-top: 1.5rem !important;
    }
    
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card > div:first-of-type {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.35rem !important;
        margin-bottom: 0.85rem !important;
    }
    
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card > div:nth-child(3) {
        font-size: 1.85rem !important;
    }
    
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card h3 {
        font-size: 1.1rem !important;
    }
    
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 ul li {
        font-size: 0.8rem !important;
    }
}

/* Extra small - compact version */
@media (max-width: 390px) {
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card {
        max-width: 300px !important;
        padding: 1rem 0.85rem !important;
    }
    
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card > div:first-of-type {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.25rem !important;
    }
    
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 .card > div:nth-child(3) {
        font-size: 1.75rem !important;
    }
    
    section[style*="linear-gradient(135deg, #166534, #0F766E)"] .grid-3 ul li {
        font-size: 0.75rem !important;
        margin-bottom: 0.3rem !important;
    }
}

/* ============================================
   FEATURES SECTION - RESPONSIVE & SMALLER
   ============================================ */

/* Desktop - 3 columns */
@media (min-width: 992px) {
    .features-grid .grid-3,
    section[style*="Premium daily wellness products"] .grid-3 {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem !important;
    }
}

/* Tablet - 2 columns */
@media (min-width: 769px) and (max-width: 991px) {
    .features-grid .grid-3,
    section[style*="Premium daily wellness products"] .grid-3 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}

/* Mobile - Single column, smaller cards, centered */
@media (max-width: 768px) {
    .features-grid .grid-3,
    section[style*="Premium daily wellness products"] .grid-3 {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
        align-items: center !important;
    }
    
    /* Smaller feature cards */
    .feature-card,
    section[style*="Premium daily wellness products"] .card {
        max-width: 380px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 1.5rem 1.25rem !important;
    }
    
    /* Smaller icon container */
    .feature-card > div:first-child,
    section[style*="Premium daily wellness products"] .card > div:first-child {
        width: 80px !important;
        height: 120px !important;
        margin-bottom: 1rem !important;
    }
    
    /* Smaller icon */
    .feature-card i,
    section[style*="Premium daily wellness products"] .card i {
        font-size: 1.75rem !important;
    }
    
    /* Smaller title */
    .feature-card h3,
    section[style*="Premium daily wellness products"] .card h3 {
        font-size: 1.15rem !important;
        margin-bottom: 0.65rem !important;
    }
    
    /* Smaller description */
    .feature-card p,
    section[style*="Premium daily wellness products"] .card p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
}

/* Small mobile - even smaller */
@media (max-width: 480px) {
    .features-grid .grid-3,
    section[style*="Premium daily wellness products"] .grid-3 {
        gap: 1rem !important;
    }
    
    .feature-card,
    section[style*="Premium daily wellness products"] .card {
        max-width: 340px !important;
        padding: 1.25rem 1rem !important;
    }
    
    .feature-card > div:first-child,
    section[style*="Premium daily wellness products"] .card > div:first-child {
        width: 70px !important;
        height: 110px !important;
        margin-bottom: 0.85rem !important;
    }
    
    .feature-card i,
    section[style*="Premium daily wellness products"] .card i {
        font-size: 1.5rem !important;
    }
    
    .feature-card h3,
    section[style*="Premium daily wellness products"] .card h3 {
        font-size: 1.05rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .feature-card p,
    section[style*="Premium daily wellness products"] .card p {
        font-size: 0.85rem !important;
        line-height: 1.55 !important;
    }
}

/* Extra small screens */
@media (max-width: 390px) {
    .feature-card,
    section[style*="Premium daily wellness products"] .card {
        max-width: 320px !important;
        padding: 1rem 0.85rem !important;
    }
    
    .feature-card > div:first-child,
    section[style*="Premium daily wellness products"] .card > div:first-child {
        width: 65px !important;
        height: 100px !important;
    }
    
    .feature-card i,
    section[style*="Premium daily wellness products"] .card i {
        font-size: 1.35rem !important;
    }
    
    .feature-card h3,
    section[style*="Premium daily wellness products"] .card h3 {
        font-size: 1rem !important;
    }
    
    .feature-card p,
    section[style*="Premium daily wellness products"] .card p {
        font-size: 0.8rem !important;
    }
}

/* Section title responsive */
@media (max-width: 768px) {
    section[style*="Premium daily wellness products"] .section-title h2 {
        font-size: 1.65rem !important;
    }
    
    section[style*="Premium daily wellness products"] .section-title p {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    section[style*="Premium daily wellness products"] .section-title h2 {
        font-size: 1.45rem !important;
    }
    
    section[style*="Premium daily wellness products"] .section-title p {
        font-size: 0.9rem !important;
    }
}
