/* Professional CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Premium Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, 
        var(--gray-50) 0%, 
        var(--white) 35%, 
        var(--gray-100) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Premium Logo Animation */
.premium-logo-container {
    position: relative;
    margin-bottom: 3rem;
}

.logo-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: backdropPulse 4s ease-in-out infinite;
}

.animated-logo {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 2rem;
}

.logo-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.ring-1 {
    width: 180px;
    height: 180px;
    border-color: var(--primary);
    opacity: 0.3;
    animation: ringRotate1 3s linear infinite;
}

.ring-2 {
    width: 150px;
    height: 150px;
    top: 15px;
    left: 15px;
    border-color: var(--accent);
    opacity: 0.5;
    animation: ringRotate2 2s linear infinite reverse;
}

.ring-3 {
    width: 120px;
    height: 120px;
    top: 30px;
    left: 30px;
    border-color: var(--primary-light);
    opacity: 0.7;
    animation: ringRotate3 4s linear infinite;
}

.logo-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: coreFloat 3s ease-in-out infinite;
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.6);
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.logo-letters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.letter {
    font-family: var(--font-display);
    font-weight: 800;
    color: white;
    text-shadow: 0 3px 8px rgba(0,0,0,0.4);
    animation: letterDance 2s ease-in-out infinite;
}

.letter-m {
    font-size: 42px;
    animation-delay: 0s;
}

.letter-w {
    font-size: 32px;
    opacity: 0.9;
    animation-delay: 0.1s;
}

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

.logo-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.logo-subtitle {
    color: var(--gray-600);
    font-size: 1.3rem;
    font-weight: 500;
    opacity: 0.8;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Premium Loader */
.premium-loader {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loader-track {
    width: 200px;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
    border-radius: 2px;
    animation: loaderFill 2.5s ease-in-out infinite;
}

.loader-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.dot-1 { animation-delay: 0s; }
.dot-2 { animation-delay: 0.2s; }
.dot-3 { animation-delay: 0.4s; }

/* Loading Messages */
.loading-messages {
    margin-top: 2rem;
    text-align: center;
    min-height: 40px;
    position: relative;
}

.loading-step {
    font-size: 1rem;
    color: var(--gray-600);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    white-space: nowrap;
}

.loading-step.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Floating Particles */
.loading-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 6s linear infinite;
}

.particle:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
    animation-duration: 5s;
}

.particle:nth-child(2) {
    left: 40%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.particle:nth-child(3) {
    left: 60%;
    animation-delay: 2s;
    animation-duration: 6s;
}

.particle:nth-child(4) {
    left: 80%;
    animation-delay: 3s;
    animation-duration: 8s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 4s;
    animation-duration: 5.5s;
}

/* Premium Loading Animations */
@keyframes backdropPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.1;
    }
}

@keyframes ringRotate1 {
    0% { transform: rotate(0deg); border-top-color: var(--primary); border-right-color: transparent; }
    25% { border-right-color: var(--primary); border-bottom-color: transparent; }
    50% { border-bottom-color: var(--primary); border-left-color: transparent; }
    75% { border-left-color: var(--primary); border-top-color: transparent; }
    100% { transform: rotate(360deg); border-top-color: var(--primary); }
}

@keyframes ringRotate2 {
    0% { transform: rotate(0deg); border-top-color: var(--accent); }
    100% { transform: rotate(-360deg); }
}

@keyframes ringRotate3 {
    0% { transform: rotate(0deg); border-top-color: var(--primary-light); }
    100% { transform: rotate(360deg); }
}

@keyframes coreFloat {
    0%, 100% { 
        transform: translate(-50%, -50%) translateY(0px) scale(1);
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    }
    33% { 
        transform: translate(-50%, -50%) translateY(-8px) scale(1.05);
        box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5);
    }
    66% { 
        transform: translate(-50%, -50%) translateY(4px) scale(0.98);
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    }
}

@keyframes titleGlow {
    0% { 
        color: var(--primary);
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
    100% { 
        color: var(--primary-light);
        text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    }
}

@keyframes letterDance {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        text-shadow: 0 3px 8px rgba(0,0,0,0.4);
    }
    25% { 
        transform: translateY(-3px) scale(1.1);
        text-shadow: 0 5px 12px rgba(0,0,0,0.5);
    }
    75% { 
        transform: translateY(2px) scale(0.95);
        text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    }
}

@keyframes loaderFill {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes dotBounce {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(50px) rotate(180deg);
        opacity: 0;
    }
}

/* Legacy loading styles */
.loading-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    animation: logoFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(255, 255, 255, 0.3));
}

.loading-text {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.loading-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
    100% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.3); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

:root {
    /* Professional Color Scheme */
    --primary: #1e40af;              /* Professional Blue */
    --primary-light: #3b82f6;        /* Light Blue */
    --primary-dark: #1e3a8a;         /* Dark Blue */
    --secondary: #64748b;            /* Slate Gray */
    --accent: #0ea5e9;               /* Sky Blue */
    --success: #10b981;              /* Green */
    --warning: #f59e0b;              /* Orange */
    --error: #ef4444;                /* Red */
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Poppins', system-ui, sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Dark Theme */
.dark-theme {
    --white: hsl(220, 13%, 13%);
    --gray-50: hsl(220, 13%, 16%);
    --gray-100: hsl(220, 13%, 20%);
    --gray-200: hsl(220, 13%, 28%);
    --gray-300: hsl(220, 9%, 38%);
    --gray-400: hsl(220, 9%, 50%);
    --gray-500: hsl(220, 9%, 64%);
    --gray-600: hsl(220, 13%, 76%);
    --gray-700: hsl(220, 13%, 85%);
    --gray-800: hsl(220, 13%, 92%);
    --gray-900: hsl(220, 13%, 98%);
    
    /* Dark theme specific adjustments */
    --primary: hsl(239, 84%, 72%);
    --primary-light: hsl(239, 84%, 78%);
    --primary-dark: hsl(239, 84%, 65%);
    --accent: hsl(199, 89%, 55%);
    --success: hsl(142, 76%, 45%);
    --warning: hsl(38, 92%, 60%);
    --error: hsl(0, 84%, 65%);
    
    color-scheme: dark;
}

.dark-theme .header {
    background: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid var(--gray-200);
}

.dark-theme .hero {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.dark-theme .company-trust,
.dark-theme .product-section,
.dark-theme .features-section,
.dark-theme .security-section,
.dark-theme .support-section {
    background: var(--gray-50);
}

.dark-theme .contact-section {
    background: var(--gray-100);
}

.dark-theme .footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.dark-theme .product-card,
.dark-theme .feature-card,
.dark-theme .specifications-card,
.dark-theme .trust-card,
.dark-theme .security-card,
.dark-theme .support-card {
    background: var(--white);
    border-color: var(--gray-200);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
}

.dark-theme .modal {
    backdrop-filter: blur(2px);
}

.dark-theme .modal-backdrop {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: none;
}

.dark-theme .modern-cart-content,
.dark-theme .cart-total {
    background: var(--white);
    color: var(--gray-900);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.dark-theme .modern-cart-footer {
    background: var(--gray-100);
}

.dark-theme input,
.dark-theme textarea,
.dark-theme select {
    background: var(--white);
    border-color: var(--gray-200);
    color: var(--gray-900);
}

.dark-theme .product-image-container {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
}

.dark-theme .product-showcase {
    background: linear-gradient(145deg, var(--gray-800) 0%, var(--gray-700) 100%);
    border: 1px solid var(--gray-600);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.dark-theme .hero-product {
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.4)) brightness(1.1);
}

.dark-theme .product-image {
    filter: brightness(1.2) contrast(1.2) saturate(1.1);
}

.dark-theme .trust-icon,
.dark-theme .feature-icon,
.dark-theme .security-icon {
    filter: brightness(1.3) contrast(1.1);
}

.dark-theme .hero-content h1 {
    color: var(--gray-900);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.dark-theme .hero-description {
    color: var(--gray-700);
}

.dark-theme .section-title {
    color: var(--primary);
}

.dark-theme .section-description {
    color: var(--gray-700);
}

/* Dark theme button and link improvements */
.dark-theme .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.dark-theme .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.dark-theme .btn-secondary {
    background: var(--gray-100);
    color: var(--gray-800);
    border-color: var(--gray-200);
}

.dark-theme .btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.dark-theme .btn-outline {
    border-color: var(--gray-600);
    color: var(--gray-700);
    background: transparent;
}

.dark-theme .btn-outline:hover {
    background: var(--gray-100);
    border-color: var(--gray-500);
    color: var(--gray-800);
}

.dark-theme .nav-link {
    color: var(--gray-600);
}

.dark-theme .nav-link:hover,
.dark-theme .nav-link.active {
    color: var(--primary);
    background: var(--gray-100);
}

/* Dark theme form elements */
.dark-theme input:focus,
.dark-theme textarea:focus,
.dark-theme select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Dark theme trust badges */
.dark-theme .trust-badge {
    background: var(--gray-100);
    color: var(--primary);
    border-color: var(--gray-200);
}

/* Dark theme specifications */
.dark-theme .spec-label {
    color: var(--gray-700);
}

.dark-theme .spec-value {
    color: var(--gray-800);
}

/* Dark theme loading screen */
.dark-theme .loading-screen {
    background: radial-gradient(ellipse at center, 
        var(--gray-100) 0%, 
        var(--gray-50) 35%, 
        var(--white) 100%);
}

.dark-theme .logo-title {
    color: var(--primary);
}

.dark-theme .logo-subtitle {
    color: var(--gray-600);
}

.dark-theme .loading-step {
    color: var(--gray-600);
}

.dark-theme .loader-track {
    background: var(--gray-200);
}

.dark-theme .particle {
    opacity: 0.4;
}

.dark-theme .logo-backdrop {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

/* Dark theme modern cart improvements */
.dark-theme .modern-toggle {
    background: var(--gray-100);
    border-color: var(--gray-200);
}

.dark-theme .modern-cart {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
    border-color: var(--gray-200);
}

.dark-theme .modern-cart .cart-icon svg {
    color: var(--gray-700);
}

.dark-theme .modern-cart .cart-label {
    color: var(--gray-700);
}

/* Base Styles */
body {
    font-family: var(--font-primary);
    background-color: var(--white);
    color: var(--gray-900);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
    padding-top: 80px; /* Space for fixed header */
}

body.loading {
    overflow: hidden;
}

body.loading .animate-on-scroll {
    opacity: 0 !important;
    transform: translateY(50px) !important;
}

body.loading .animate-fade-up {
    opacity: 0 !important;
    transform: translateY(30px) !important;
}

body.loading .animate-scale {
    opacity: 0 !important;
    transform: scale(0.9) !important;
}

body.loading .animate-slide-left {
    opacity: 0 !important;
    transform: translateX(-50px) !important;
}

body.loading .animate-slide-right {
    opacity: 0 !important;
    transform: translateX(50px) !important;
}

/* Page Animation Styles */
.page-content {
    opacity: 1;
    transform: translateY(0);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.loading .page-content {
    opacity: 0;
    transform: translateY(40px);
}

.page-content.loaded {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-up {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-scale {
    opacity: 1;
    transform: scale(1);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    font-family: var(--font-primary);
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: var(--primary);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.4);
    color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background-color: var(--gray-200);
}

.btn-outline {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2), 0 8px 16px rgba(255, 255, 255, 0.1);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full-width {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 99998 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header.header-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--gray-300);
}

.dark-theme .header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--gray-700);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.dark-theme .header.header-scrolled {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--gray-600);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

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

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

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

.theme-toggle {
    background: none;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: var(--gray-100);
    border-color: var(--primary);
    color: var(--primary);
}

.cart-button {
    position: relative;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--error);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
}

.cart-count.active {
    display: flex;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--gray-700);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: 
        linear-gradient(135deg, rgba(30, 64, 175, 0.95) 0%, rgba(59, 130, 246, 0.9) 100%),
        url('images/hero-bg.png') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

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

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.product-showcase {
    position: relative;
    max-width: 400px;
    background: linear-gradient(145deg, var(--white) 0%, var(--gray-50) 100%);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.hero-product {
    width: 100%;
    height: auto;
    filter: drop-shadow(var(--shadow-xl));
    animation: productFloat 6s ease-in-out infinite;
}

@keyframes productFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        filter: drop-shadow(var(--shadow-xl));
    }
    33% { 
        transform: translateY(-15px) rotate(1deg); 
        filter: drop-shadow(0 25px 35px rgba(30, 64, 175, 0.2));
    }
    66% { 
        transform: translateY(-8px) rotate(-1deg); 
        filter: drop-shadow(0 20px 30px rgba(30, 64, 175, 0.15));
    }
}

.showcase-features {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.feature-point {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.point-marker {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.2);
    animation: pointPulse 2s infinite;
}

.point-label {
    background-color: var(--white);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

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

/* Company Trust Section */
.company-trust {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-top: 1px solid var(--gray-200);
}

.trust-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.trust-info h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 2.25rem;
}

.trust-badges {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.trust-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.3);
    letter-spacing: 0.5px;
}

.company-details {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--gray-700);
}

.detail-value {
    color: var(--primary);
    font-weight: 600;
}

/* Product Section */
.product-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.product-header {
    text-align: center;
    margin-bottom: 2rem;
}

.product-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.product-price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.product-image-container {
    text-align: center;
    margin: 2rem 0;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-image {
    width: 200px;
    height: auto;
    filter: drop-shadow(var(--shadow));
}

.product-description {
    margin-bottom: 2rem;
}

.product-features h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.5rem 0;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
}

.features-list li:last-child {
    border-bottom: none;
}

.specifications-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.specifications-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.specs-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--gray-700);
}

.spec-value {
    color: var(--gray-600);
    font-weight: 500;
    text-align: right;
}

/* Features Section */
.features-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.15);
    background: linear-gradient(135deg, var(--white) 0%, #f1f5f9 100%);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray-600);
}

/* Security Section */
.security-section {
    padding: var(--section-padding);
    background-color: var(--gray-50);
}

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

.security-feature {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.security-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #10b981, #059669);
}

.security-feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
    background: linear-gradient(135deg, var(--white) 0%, #ecfdf5 100%);
}

.security-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.security-feature h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Support Section */
.support-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

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

.support-card {
    background-color: var(--gray-50);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background-color: var(--white);
}

.support-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.support-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.support-card .btn {
    margin-top: 1rem;
}

/* Contact Section */
.contact-section {
    padding: var(--section-padding);
    background-color: var(--gray-50);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.contact-item strong {
    display: block;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item span {
    color: var(--gray-600);
}

.contact-form-container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.contact-form h3 {
    color: var(--primary);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    background-color: var(--white);
    color: var(--gray-900);
    transition: var(--transition);
    font-family: var(--font-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99998 !important;
    backdrop-filter: blur(2px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    color: var(--primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--error);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.cart-total {
    text-align: right;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--gray-50);
    border-radius: var(--border-radius);
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--white);
    padding: 3rem 0 2rem;
}

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

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.company-info p {
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}

.footer-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-badge {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
}

.copyright {
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .trust-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: var(--border-radius);
        margin: 0.5rem;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .trust-badges {
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .brand-info {
        display: none;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .security-grid {
        grid-template-columns: 1fr;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }
}

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

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

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(30, 64, 175, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(30, 64, 175, 0.6);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Download Link Styling */
.download-section {
    margin-top: 1rem;
    text-align: center;
}

.download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.download-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.download-link span {
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* Modern Cart & Theme Toggle Styles */
.modern-toggle {
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.modern-toggle:hover .toggle-icon svg {
    color: white;
}

.toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.toggle-icon svg {
    transition: all 0.3s ease;
    color: var(--gray-600);
}

.moon-icon {
    display: none;
}

.dark-theme .sun-icon {
    display: none;
}

.dark-theme .moon-icon {
    display: block;
}

/* Modern Cart Button */
.cart-container {
    position: relative;
}

.modern-cart {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    min-width: 85px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.modern-cart::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.5s;
}

.modern-cart:hover::before {
    left: 100%;
}

.modern-cart:hover {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.modern-cart:hover .cart-icon svg {
    color: white;
    transform: scale(1.1);
}

.modern-cart:hover .cart-label {
    color: white;
}

.modern-cart:hover .cart-badge {
    background: white;
    color: var(--primary);
    transform: scale(1.1);
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon svg {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--gray-600);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--error);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.cart-badge.active {
    opacity: 1;
    transform: scale(1);
    animation: cartBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes cartBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.cart-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Modal Styles */
.modern-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99998 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: none;
}

.modern-cart-content {
    background: var(--white);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.modern-modal.active .modern-cart-content {
    transform: scale(1) translateY(0);
}

.cart-header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-icon-large {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.cart-title h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
}

.modern-close {
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
}

.modern-close:hover {
    background: var(--error);
    color: white;
    transform: scale(1.1);
}

.modern-cart-items {
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.modern-cart-items:empty::before {
    content: "Your cart is empty";
    display: block;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
    font-size: 16px;
    background: var(--gray-50);
    margin: 20px;
    border-radius: 12px;
    border: 2px dashed var(--gray-200);
}

.modern-cart-footer {
    padding: 20px 28px 28px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.cart-summary {
    margin-bottom: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.total-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-700);
}

.total-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-display);
}

.cart-actions {
    display: flex;
    gap: 12px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.btn-outline:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    transform: translateY(-1px);
}

.btn-premium {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    border: none;
    color: white;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 2;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-premium:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* Modern Cart Item Styling */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: var(--gray-50);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item h4 {
    margin: 0 0 4px 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
}

.cart-item p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-700);
}

.cart-item strong {
    font-size: 19px;
    font-weight: 800;
    color: var(--primary);
}

.cart-item .btn {
    margin-top: 8px;
    font-size: 12px;
    padding: 4px 12px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none; }
.visible { display: block; }

/* Premium Learn More Button Styles */
.hero .btn-outline.btn-large {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    color: var(--white) !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    letter-spacing: 0.5px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.hero .btn-outline.btn-large:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-4px) !important;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}


/* Enhanced Primary Button for Hero */
.hero .btn-primary.btn-large {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%) !important;
    border: none !important;
    color: var(--white) !important;
    font-weight: 700 !important;
    min-width: 200px;
    letter-spacing: 0.5px;
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero .btn-primary.btn-large:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    transform: translateY(-4px) !important;
    box-shadow: 
        0 20px 60px rgba(99, 102, 241, 0.4),
        0 8px 20px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}


/* Ensure header is always visible after loading */
body:not(.loading) .header {
    position: fixed !important;
    top: 0 !important;
    z-index: 99998 !important;
    display: block !important;
}
