/* ============================
   Quantonic Legacy Innovations
   Enhanced Styles - Dark Theme
   With Animations, Accessibility, Mobile Nav
   UPDATED: 2025-12-05 - Consolidated with Mobile Fixes
   ============================ */

:root {
    /* Brand Colors */
    --quantum-primary: #00d4ff;
    --quantum-secondary: #a855f7;
    --quantum-gradient: linear-gradient(135deg, var(--quantum-primary), var(--quantum-secondary));
    
    /* Dark Theme */
    --dark-bg: #050505;
    --dark-surface: #0a0a0a;
    --dark-card: #1a1a1a;
    --dark-elevated: #252525;
    
    /* Text Colors */
    --light-text: #ffffff;
    --gray-text: #9ca3af;
    --muted-text: #6b7280;
    
    /* Borders & Overlays */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --overlay-light: rgba(255, 255, 255, 0.05);
    
    /* Status Colors */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Focus Colors (Accessibility) */
    --focus-ring: #00d4ff;
    --focus-ring-offset: 3px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Mobile */
    --touch-min: 48px;
    --radius-lg: 12px;
}

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

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

html, body {
    width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100dvh;
}

/* ============================
   ACCESSIBILITY - Skip Link
   ============================ */
.skip-to-content {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--quantum-primary);
    color: var(--dark-bg);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 8px 0;
    transition: top var(--transition-normal);
}

.skip-to-content:focus {
    top: 0;
    outline: none;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ============================
   FOCUS INDICATORS
   ============================ */
*:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: var(--focus-ring-offset);
    box-shadow: 0 0 0 6px rgba(0, 212, 255, 0.15);
}

/* ============================
   LAYOUT
   ============================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    width: 100%;
}

main {
    min-height: 60vh;
    position: relative;
}

/* ============================
   HEADER & NAVIGATION
   ============================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: clamp(0.75rem, 2vw, 1.25rem) 0;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo */
.logo a {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 800;
    background: var(--quantum-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: opacity var(--transition-normal);
}

.logo a:hover {
    opacity: 0.85;
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    gap: clamp(0.25rem, 1vw, 0.5rem);
    list-style: none;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--gray-text);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    padding: 0.5rem clamp(0.75rem, 2vw, 1rem);
    border-radius: var(--radius-lg);
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--light-text);
    background: var(--overlay-light);
}

.nav-links a.active {
    color: var(--quantum-primary);
    background: rgba(0, 212, 255, 0.1);
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.nav-links li:hover .dropdown,
.nav-links li:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown a {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.dropdown a:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--quantum-primary);
}

/* CTA Button in Nav */
.nav-cta {
    background: var(--quantum-gradient) !important;
    color: white !important;
    font-weight: 600 !important;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

/* ============================================================
   QUICK FIX: Text Visibility Improvements
   Copy and paste these styles to fix the text display issue
   ============================================================ */

/* CRITICAL FIX #1: Add dark background to content area */
.download-content {
    padding: 35px;
    flex: 1;
    display: flex;
    flex-direction: column;
    /* Add semi-transparent dark background for better text contrast */
    background: linear-gradient(to bottom, 
        rgba(10, 15, 30, 0.5) 0%, 
        rgba(10, 15, 30, 0.7) 100%
    );
}

/* CRITICAL FIX #2: Make subtitle highly visible with bright cyan + glow */
.download-subtitle {
    color: #00d4ff; /* Bright cyan instead of CSS variable */
    font-size: 1em;
    margin-bottom: 18px;
    font-weight: 600;
    /* Add text shadow for contrast and cyan glow for visual appeal */
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 212, 255, 0.6);
}

/* CRITICAL FIX #3: Ensure title is pure white with strong shadow */
.download-title {
    font-size: 1.65em;
    color: #ffffff; /* Pure white for maximum contrast */
    margin-bottom: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); /* Strong shadow for depth */
}

/* IMPROVEMENT #4: Brighten description text */
.download-description {
    color: #e0e0e0; /* Brighter gray */
    font-size: 0.98em;
    line-height: 1.7;
    margin-bottom: 25px;
    flex: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); /* Subtle shadow */
}

/* IMPROVEMENT #5: Enhance highlight tags */
.highlight-tag {
    background: rgba(0, 212, 255, 0.15); /* More opaque */
    border: 1px solid rgba(0, 212, 255, 0.5); /* Stronger border */
    color: #00e5ff; /* Brighter cyan */
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.8em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.highlight-tag:hover {
    background: rgba(0, 212, 255, 0.25);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

/* IMPROVEMENT #6: Brighten meta labels and values */
.meta-label {
    color: #b0b0b0; /* Brighter gray */
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.meta-value {
    font-weight: 800;
    color: #ffffff; /* Pure white */
    font-size: 1.1em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* IMPROVEMENT #7: Make borders more visible */
.download-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* More visible */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 25px;
}

/* ============================================================
   USAGE INSTRUCTIONS:
   
   1. Open your downloads.php file
   2. Find the <style> section
   3. Locate each of these CSS rules
   4. Replace them with the versions above
   
   OR
   
   Simply add these at the end of your <style> section to override
   the existing rules (CSS cascade will apply the last-defined rules)
   ============================================================ */
/* ============================
   MOBILE NAVIGATION (Bottom Tab Bar)
   ============================ */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 999;
    padding: 0.5rem 0;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

.mobile-nav-tabs {
    display: flex;
    justify-content: space-around;
    list-style: none;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-nav-tabs a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--gray-text);
    font-size: 0.7rem;
    font-weight: 500;
    min-width: 60px;
    min-height: var(--touch-min);
    justify-content: center;
    transition: color var(--transition-fast);
}

.mobile-nav-tabs a svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.mobile-nav-tabs a.active,
.mobile-nav-tabs a:hover {
    color: var(--quantum-primary);
}

/* ============================
   HERO SECTION - MOBILE OPTIMIZED
   ============================ */
.hero {
    position: relative;
    width: 100vw;
    min-height: 100dvh;
    background: linear-gradient(135deg, #0a0f1e 0%, #1a1f3a 50%, #0f1628 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(80px, 15vh, 120px) clamp(1rem, 5vw, 2rem) clamp(40px, 10vh, 60px);
    overflow: visible;
    box-sizing: border-box;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    text-align: center;
    display: block;
    visibility: visible;
    opacity: 1;
}

.hero h1 {
    font-size: clamp(1.75rem, 8vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: clamp(1rem, 4vw, 2rem);
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
    display: block;
    visibility: visible;
    opacity: 1;
    background: var(--quantum-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle,
.hero p,
.hero-subtitle {
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: clamp(1.5rem, 6vw, 3rem);
    color: rgba(255, 255, 255, 0.85);
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 4vw, 2rem);
    flex-wrap: wrap;
    margin-top: clamp(1rem, 4vw, 2rem);
}

.hero-stat {
    text-align: center;
    color: var(--quantum-primary);
    font-size: clamp(1rem, 4vw, 1.25rem);
    font-weight: 700;
}

/* Hero Buttons */
.hero-buttons,
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: clamp(250px, 80vw, 400px);
    margin: 0 auto;
}

/* Quantum Decorations */
.quantum-decoration {
    position: absolute;
    opacity: 0.6;
    display: block;
    visibility: visible;
    pointer-events: none;
}

.quantum-decoration.left {
    top: clamp(20%, 30vh, 40%);
    left: clamp(-20%, -10vw, -5%);
    width: clamp(200px, 40vw, 400px);
    height: clamp(200px, 40vw, 400px);
    transform: scale(0.8);
}

.quantum-decoration.right {
    top: clamp(20%, 30vh, 40%);
    right: clamp(-20%, -10vw, -5%);
    width: clamp(200px, 40vw, 400px);
    height: clamp(200px, 40vw, 400px);
    transform: scale(0.8);
}

/* ============================
   BUTTONS
   ============================ */
.btn,
.cta-button {
    width: 100%;
    padding: clamp(1rem, 3vw, 1.25rem) 2rem;
    font-size: 1rem;
    min-height: var(--touch-min);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary,
.cta-button {
    background: var(--quantum-gradient);
    color: #000;
}

.btn-primary:hover,
.cta-button:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: var(--overlay-light);
    color: white;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--quantum-primary);
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    min-height: 40px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ============================
   PAGE HEADER
   ============================ */
.page-header {
    padding: 10rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.05) 0%, transparent 100%);
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--quantum-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--gray-text);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Title */
.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.2;
}

/* ============================
   SECTIONS
   ============================ */
section {
    padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem);
    width: 100%;
}

/* ============================
   GRIDS
   ============================ */
.products-grid,
.posts-grid,
.features-grid,
.blog-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    margin-top: 2rem;
    width: 100%;
}

@media (min-width: 769px) {
    .products-grid,
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .blog-posts {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

/* ============================
   CARDS
   ============================ */
.product-card,
.post-card,
.feature-card {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-sizing: border-box;
}

.product-card:hover,
.post-card:hover,
.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--quantum-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-card h3,
.post-card h3,
.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.product-card p,
.post-card p,
.feature-card p {
    color: var(--gray-text);
    line-height: 1.7;
}

/* ============================
   PRICE
   ============================ */
.price {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--quantum-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ============================
   BADGES
   ============================ */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--quantum-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* ============================
   FORMS
   ============================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--light-text);
}

.form-group .required::after {
    content: " *";
    color: var(--error);
}

.form-group input,
.form-group textarea,
.form-group select,
input,
textarea,
select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--overlay-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--light-text);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-normal);
    min-height: var(--touch-min);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--quantum-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--muted-text);
}

.form-help {
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-top: 0.25rem;
}

.field-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ============================
   ALERTS
   ============================ */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.alert-info {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--quantum-primary);
}

/* ============================
   CONTENT TYPOGRAPHY
   ============================ */
.post-content h2,
.page-content h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.post-content h3,
.page-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #e5e7eb;
}

.post-content p,
.page-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #d1d5db;
}

.post-content a,
.page-content a {
    color: var(--quantum-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.post-content a:hover,
.page-content a:hover {
    color: var(--quantum-secondary);
    text-decoration: underline;
}

.post-content ul,
.post-content ol,
.page-content ul,
.page-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: #d1d5db;
}

.post-content li,
.page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.post-content img,
.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.post-content blockquote,
.page-content blockquote {
    border-left: 4px solid var(--quantum-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--gray-text);
    font-style: italic;
}

.post-content code,
.page-content code {
    background: var(--overlay-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--quantum-primary);
}

.post-content pre,
.page-content pre {
    background: rgba(20, 20, 20, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.post-content pre code,
.page-content pre code {
    background: none;
    padding: 0;
    color: #e5e7eb;
}

/* Tables */
.post-content table,
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.post-content th,
.page-content th {
    background: var(--overlay-light);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.post-content td,
.page-content td {
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.post-content tr:nth-child(even),
.page-content tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* Highlight Boxes */
.highlight-box {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.warning-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.success-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

/* ============================
   FOOTER
   ============================ */
footer {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 100%);
    border-top: 1px solid var(--border-color);
    padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem);
    margin-top: 4rem;
    width: 100%;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 769px) {
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        text-align: left;
    }
}

.footer-section h4,
.footer-section .footer-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--light-text);
}

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

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

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

.footer-section a:hover {
    color: var(--quantum-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted-text);
    font-size: 0.9rem;
}

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

.social-links a {
    color: var(--gray-text);
    transition: color var(--transition-fast);
}

.social-links a:hover {
    color: var(--quantum-primary);
}

/* ============================
   ANIMATIONS
   ============================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.slide-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-children.visible > *:nth-child(1) { animation: fadeUp 0.5s ease 0.1s forwards; }
.stagger-children.visible > *:nth-child(2) { animation: fadeUp 0.5s ease 0.2s forwards; }
.stagger-children.visible > *:nth-child(3) { animation: fadeUp 0.5s ease 0.3s forwards; }
.stagger-children.visible > *:nth-child(4) { animation: fadeUp 0.5s ease 0.4s forwards; }
.stagger-children.visible > *:nth-child(5) { animation: fadeUp 0.5s ease 0.5s forwards; }
.stagger-children.visible > *:nth-child(6) { animation: fadeUp 0.5s ease 0.6s forwards; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

img[data-src] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img.lazy-loaded {
    opacity: 1;
}

/* ============================
   REDUCED MOTION
   ============================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .scale-in {
        opacity: 1;
        transform: none;
    }
}

/* ============================
   MOBILE VISIBILITY & RESPONSIVE
   ============================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-nav {
        display: block;
    }
    
    body {
        padding-bottom: calc(var(--touch-min) + 1rem + env(safe-area-inset-bottom));
    }
    
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .scale-in,
    .stagger-children > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    .hero,
    .hero-content,
    .hero-content *,
    .hero-badge,
    .hero h1,
    .hero-subtitle,
    .hero-buttons,
    .hero-stats,
    .hero-stats * {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        animation: none !important;
    }
    
    section,
    article,
    .container,
    main,
    .post-page,
    .post-content,
    .product-card,
    .feature-card,
    .post-card,
    .team-member {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    
    .hero {
        transform: none !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .quantum-decoration {
        opacity: 0.4 !important;
        transform: scale(0.6) !important;
    }
    
    section {
        padding: 2rem clamp(0.5rem, 3vw, 1rem) !important;
    }
    
    header {
        padding: 1rem 0;
    }
    
    .products-grid,
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .page-header {
        padding: 8rem 1.5rem 3rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    .product-card,
    .post-card {
        padding: 1.5rem;
    }
    
    .btn,
    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        min-height: var(--touch-min);
        font-size: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .nav-links {
        gap: 0.25rem;
    }
    
    .nav-links a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .btn,
    .hero-buttons .btn,
    .cta-buttons .btn {
        width: auto;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: row;
    }
}

@media (min-width: 1025px) {
    .btn,
    .hero-buttons .btn,
    .cta-buttons .btn {
        width: auto;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: row;
    }
}

/* ============================
   HIGH CONTRAST & PRINT
   ============================ */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(255, 255, 255, 0.3);
    }
    
    a {
        text-decoration: underline;
    }
    
    button,
    .btn {
        border: 2px solid currentColor;
    }
}

@media print {
    header,
    footer,
    .mobile-nav,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        padding: 0;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* ============================
   LOADING & MISC
   ============================ */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: var(--quantum-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

select option {
    background: #1a1a1a;
    color: #fff;
    padding: 8px;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

img[loading="lazy"].loaded,
img[loading="lazy"][src] {
    opacity: 1;
}

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 1rem 2rem;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

h1, .post-title {
    position: relative !important;
    left: 0 !important;
    transform: translateX(0) !important;
    text-align: center;
    white-space: normal;
    width: 100%;
    box-sizing: border-box;
}

header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
}