
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --accent-teal: #00d4ff;
    --accent-purple: #a855f7;
    --accent-blue: #3b82f6;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --navbar-height: 80px;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --danger-gradient: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
}

[data-theme="light"] {
    --primary-bg: #ffffff;
    --secondary-bg: #ededed;
    --nav-bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    --nav-bg-solid: #f8fafc;
    --accent-teal: #0891b2;
    --accent-purple: #7c3aed;
    --accent-blue: #2563eb;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
}

html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;

}

/* Container responsive fixes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 30px);
}

/* Section responsive fixes */
.section {
    width: 100%;
    padding: clamp(40px, 8vw, 80px) 0;
    overflow: hidden;
}




        /* Back to Top */
        .back-to-top {
            position: fixed;
            bottom: 5rem;
            right: 2rem;
            width: 50px;
            height: 50px;
            background: var(--accent-teal);
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            opacity: 0;
            transform: translateY(100px);
            z-index: 1000;
        }

        .back-to-top.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .back-to-top:hover {
            transform: translateY(-5px);
        }



.theme-toggle {
    border: 2px solid #888;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 1.2rem;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
     color: #fff;
    border-color: #aaa;
}

body.light-mode .theme-toggle {
     color: #fff;
    border-color: #666;
}

body.light-mode .theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
     color: #fff;
}








/* Text responsive sizing */
h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    line-height: 1.4;
}

p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.6;
}




/* Mobile specific optimizations */
@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        min-width: unset;
    }
    

    
    .social-links {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .glass-card {
        padding: 20px 15px;
    }
    
    .section {
        padding: 40px 0;
    }
}

/* Prevent horizontal scroll on all elements */
* {
    max-width: 100%;
}

/* Specific fixes for common overflow issues */
img, video, iframe, object, embed {
    max-width: 100%;
    height: auto;
}

pre, code {
    overflow-x: auto;
    max-width: 100%;
}

table {
    width: 100%;
    table-layout: fixed;
    word-wrap: break-word;
}

        /* Enhanced Animated Background */
        .animated-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background: linear-gradient(45deg, var(--primary-bg), var(--secondary-bg));
            overflow: hidden;
        }

        .animated-bg::before {
            content: '';
            position: absolute;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at 20% 20%, var(--accent-teal)20 0%, transparent 50%),
                        radial-gradient(circle at 80% 80%, var(--accent-purple)20 0%, transparent 50%);
            animation: float 20s ease-in-out infinite;
        }

        /* Coding Animation Layers */
        .code-rain {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
            opacity: 0.3;
        }

        .code-line {
            position: absolute;
            color: var(--accent-teal);
            font-family: 'Courier New', monospace;
            font-size: 14px;
            white-space: nowrap;
            opacity: 0;
            animation: codeFlow 15s linear infinite;
        }

        .code-line:nth-child(odd) {
            color: var(--accent-purple);
            animation-duration: 12s;
        }

        .code-line:nth-child(3n) {
            color: var(--accent-blue);
            animation-duration: 18s;
        }

        /* Binary Rain Effect */
        .binary-rain {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
            opacity: 0.15;
        }

        .binary-column {
            position: absolute;
            color: var(--accent-teal);
            font-family: 'Courier New', monospace;
            font-size: 12px;
            animation: binaryFall 10s linear infinite;
            opacity: 0;
        }

        /* Floating Code Blocks */
        .floating-code {
            position: absolute;
            background: rgba(0, 212, 255, 0.1);
            border: 1px solid rgba(0, 212, 255, 0.2);
            border-radius: 8px;
            padding: 10px;
            font-family: 'Courier New', monospace;
            font-size: 10px;
            color: var(--accent-teal);
            opacity: 0.6;
            animation: floatCode 20s ease-in-out infinite;
            backdrop-filter: blur(5px);
        }

        .floating-code:nth-child(even) {
            background: rgba(168, 85, 247, 0.1);
            border-color: rgba(168, 85, 247, 0.2);
            color: var(--accent-purple);
            animation-duration: 25s;
            animation-delay: -5s;
        }

        /* Network Nodes */
        .network-nodes {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .node {
            position: absolute;
            width: 4px;
            height: 4px;
            background: var(--accent-teal);
            border-radius: 50%;
            opacity: 0.8;
            animation: pulse 3s ease-in-out infinite;
        }

        .node::before {
            content: '';
            position: absolute;
            width: 12px;
            height: 12px;
            border: 1px solid var(--accent-teal);
            border-radius: 50%;
            top: -4px;
            left: -4px;
            animation: ripple 3s ease-in-out infinite;
        }

        .connection-line {
            position: absolute;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
            opacity: 0.3;
            animation: connectionPulse 4s ease-in-out infinite;
        }

        /* Terminal Cursor */
        .terminal-cursor {
            position: absolute;
            width: 2px;
            height: 20px;
            background: var(--accent-teal);
            animation: blink 1.5s infinite;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        /* Animations */
        @keyframes float {
            0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
            50% { transform: translate(-50%, -50%) rotate(180deg); }
        }

        @keyframes codeFlow {
            0% {
                opacity: 0;
                transform: translateX(-100vw) translateY(0);
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                opacity: 0;
                transform: translateX(100vw) translateY(-50px);
            }
        }

        @keyframes binaryFall {
            0% {
                opacity: 0;
                transform: translateY(-100vh);
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                opacity: 0;
                transform: translateY(100vh);
            }
        }

        @keyframes floatCode {
            0%, 100% {
                transform: translateY(0) rotate(0deg);
                opacity: 0.6;
            }
            25% {
                transform: translateY(-20px) rotate(1deg);
                opacity: 0.8;
            }
            50% {
                transform: translateY(-10px) rotate(-1deg);
                opacity: 0.7;
            }
            75% {
                transform: translateY(-30px) rotate(0.5deg);
                opacity: 0.9;
            }
        }

        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
                opacity: 0.8;
            }
            50% {
                transform: scale(1.5);
                opacity: 1;
            }
        }

        @keyframes ripple {
            0% {
                transform: scale(0);
                opacity: 1;
            }
            100% {
                transform: scale(3);
                opacity: 0;
            }
        }

        @keyframes connectionPulse {
            0%, 100% {
                opacity: 0.1;
                transform: scaleX(0);
            }
            50% {
                opacity: 0.6;
                transform: scaleX(1);
            }
        }

        @keyframes blink {
            0%, 50% { opacity: 1; }
            51%, 100% { opacity: 0; }
        }

        /* Particle System */
        .particles {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .particle {
            position: absolute;
            width: 2px;
            height: 2px;
            background: var(--accent-teal);
            border-radius: 50%;
            opacity: 0.7;
            animation: particleFloat 15s linear infinite;
        }

        .particle:nth-child(2n) {
            background: var(--accent-purple);
            animation-duration: 18s;
            animation-delay: -2s;
        }

        .particle:nth-child(3n) {
            background: var(--accent-blue);
            animation-duration: 12s;
            animation-delay: -4s;
        }

        @keyframes particleFloat {
            0% {
                transform: translateY(100vh) translateX(0) scale(0);
                opacity: 0;
            }
            10% {
                opacity: 0.7;
                transform: translateY(90vh) translateX(10px) scale(1);
            }
            90% {
                opacity: 0.7;
                transform: translateY(10vh) translateX(-10px) scale(1);
            }
            100% {
                transform: translateY(-10vh) translateX(0) scale(0);
                opacity: 0;
            }
        }

        /* Grid Pattern */
        .grid-pattern {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0.1;
            background-image: 
                linear-gradient(var(--accent-teal) 1px, transparent 1px),
                linear-gradient(90deg, var(--accent-teal) 1px, transparent 1px);
            background-size: 50px 50px;
            animation: gridMove 30s linear infinite;
        }

        @keyframes gridMove {
            0% { transform: translate(0, 0); }
            100% { transform: translate(50px, 50px); }
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .code-line {
                font-size: 10px;
            }
            .binary-column {
                font-size: 8px;
            }
            .floating-code {
                font-size: 8px;
                padding: 5px;
            }
            .grid-pattern {
                background-size: 25px 25px;
            }
        }




/* Dark Mode CSS Variables */
:root {
    --navbar-height: 80px;
    
    /* Dark Mode Colors */
    --nav-bg: rgba(13, 13, 13, 0.95);
    --nav-bg-solid: rgba(13, 13, 13, 0.98);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --accent-primary: #a855f7;
    --accent-secondary: #00d4ff;
    --accent-teal: #00d4ff;
    --accent-purple: #a855f7;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Force white color for sign-in icon and text */
.signin-btn i.fas.fa-sign-in-alt {
    color: #ffffff !important;
}

.signin-btn .desktop-text,
.signin-btn .mobile-text {
    color: #ffffff;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--navbar-height);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(168, 85, 247, 0.3);
    z-index: 999999;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--nav-bg-solid);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}



/* Logo Styling */
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(168, 85, 247, 0.5);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 1000000;
    width: 50px;
    height: 50px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-toggle:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.8);
    transform: scale(1.05);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Content */
.nav-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center;
    min-width: 0; /* Prevent overflow */
    max-width: 100%;
    z-index: -9999999;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    flex-wrap: nowrap; /* Prevent wrapping */
    overflow-x: auto; /* Allow horizontal scroll if needed */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    max-width: 100%;
}

.nav-links::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0; /* Prevent shrinking */
    font-size: 0.9rem;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a855f7 0%, #00d4ff 100%);
    transition: all 0.4s ease;
    z-index: -1;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    left: 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

.nav-links a i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    max-width: 200px;
    overflow: hidden;
}

.user-welcome {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.user-name {
    color: var(--text-primary);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    white-space: nowrap;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: all 0.4s ease;
    z-index: -1;
}

.nav-btn:hover::before {
    left: 0;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.signin-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(168, 85, 247, 0.5);
}

.signin-btn::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.signup-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(240, 147, 251, 0.4);
}

.signup-btn::before {
    background: linear-gradient(135deg, #a855f7 0%, #00d4ff 100%);
}

.dashboard-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(79, 172, 254, 0.4);
}

.dashboard-btn::before {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

.logout-btn {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.5);
}

.logout-btn::before {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.logout-btn:hover {
    color: white;
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(168, 85, 247, 0.5);
    border-radius: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--text-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.8);
    transform: rotate(180deg) scale(1.1);
}

/* Mobile Responsive */
.desktop-only { display: inline; }
.mobile-only { display: none; }
.desktop-text { display: inline; }
.mobile-text { 
    display: none;
    color: #fff !important;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-content {
        gap: 0.75rem;
    }
    
    .nav-links {
        gap: 0.25rem;
        padding: 0.4rem;
    }
    
    .nav-links a {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .nav-btn {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }
}

/* Large tablet - hide text, show icons only */
@media (max-width: 900px) {
    .nav-links a {
        padding: 0.6rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .nav-links a span {
        display: none;
    }
    
    .nav-links a i {
        margin: 0;
        font-size: 1.1rem;
    }
    
    /* Show tooltips on hover */
    .nav-links a {
        position: relative;
    }
    
    .nav-links a::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: -2.5rem;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 0.3rem 0.6rem;
        border-radius: 6px;
        font-size: 0.75rem;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links a:hover::after {
        opacity: 1;
        visibility: visible;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-content {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        width: 100%;
        background: var(--nav-bg-solid);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-bottom: 2px solid rgba(168, 85, 247, 
       0.3);
        flex-direction: column;
        padding: 2rem 1rem;
        z-index: -9999999;
        gap: 2rem;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        max-height: calc(100vh - var(--navbar-height));
        overflow-y: auto;
        align-items: stretch;
        justify-content: flex-start;
    }

    .nav-content.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;
    }

    .nav-links a {
        width: 100%;
        justify-content: flex-start;
        padding: 1.2rem 1.5rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        font-size: 1rem;
    }

    .nav-links a i {
        width: 25px;
        font-size: 1.2rem;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
        align-items: stretch;
    }

    .user-info {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        max-width: none;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        flex-wrap: nowrap;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }

    .nav-btn i {
        font-size: 1.2rem;
    }

    .theme-toggle {
        align-self: center;
        margin-top: 0.5rem;
    }

    /* Mobile text display with white color override */
    .desktop-only { display: none; }
    .mobile-only { display: inline; }
    .desktop-text { display: none; }
    .mobile-text { 
        display: inline;
        color: #fff !important;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.6rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .logo i {
        font-size: 1.6rem;
    }

    .nav-content {
        padding: 1.5rem 0.75rem;
    }

    .nav-btn {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .nav-links a {
        padding: 1rem 1.25rem;
    }
}

/* Prevent horizontal scrolling on all screen sizes */
@media (max-width: 320px) {
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .logo {
        font-size: 1.2rem;
        gap: 0.5rem;
    }
    
    .logo i {
        font-size: 1.4rem;
    }
    
    .mobile-toggle {
        width: 45px;
        height: 45px;
        padding: 10px;
    }
    
    .mobile-toggle span {
        width: 20px;
    }
}

/* Fix for potential layout shift issues */
@media (hover: hover) and (pointer: fine) {
    .nav-btn:hover {
        transform: translateY(-3px);
    }
    
    .nav-links a:hover {
        transform: translateY(-2px);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .navbar,
    .nav-content,
    .nav-btn,
    .nav-links a,
    .theme-toggle,
    .mobile-toggle {
        transition: none;
    }
    
    .logo:hover {
        transform: none;
    }
    
    .theme-toggle:hover {
        transform: none;
    }
}





        /* Sections */
        .section {
           
            padding: 2rem 2rem 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .container {
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
        }

        /* Hero Section */
        .hero {
            text-align: center;
            position: relative;
        }

        .hero h1 {
            font-size: clamp(2.5rem, 8vw, 6rem);
            font-weight: 800;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, var(--text-primary), var(--accent-teal), var(--accent-purple));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.1;
        }

        .hero p {
            font-size: clamp(1.1rem, 2vw, 1.5rem);
            color: var(--text-secondary);
            margin-bottom: 3rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .cta-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn {
            padding: 1rem 2rem;
            border: none;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            position: relative;
            overflow: hidden;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
            color: white;
            box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
        }

        .btn-secondary {
            background: var(--glass-bg);
            color: var(--text-primary);
            border: 1px solid var(--glass-border);
            backdrop-filter: blur(20px);
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 20px 40px rgba(0, 212, 255, 0.4);
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .btn:hover::before {
            left: 100%;
        }

        /* Glass Cards */
        .glass-card {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 1rem;
            transition: all 0.3s ease;
        }

        .glass-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }

        /* About Section */
        .about {
            text-align: center;
        }

        .about h2 {
            font-size: clamp(2rem, 5vw, 3.5rem);
            font-weight: 700;
            margin-bottom: 2rem;
            background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .about p {
            font-size: 1.2rem;
            color: var(--text-secondary);
            max-width: 800px;
            margin: 0 auto;
            line-height: 1.6;
        }

        /* Services Grid */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .service-card {
            text-align: center;
            position: relative;
        }

        .service-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .service-card h3 {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .service-card p {
            color: var(--text-secondary);
            line-height: 1.6;
        }

        /* Pricing Section */
        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .pricing-card {
            text-align: center;
            position: relative;
        }

        .pricing-card.featured {
            transform: scale(1.05);
            border: 2px solid var(--accent-teal);
        }

        .pricing-card h3 {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .price {
            font-size: 3rem;
            font-weight: 800;
            color: var(--accent-teal);
            margin-bottom: 1rem;
        }

        .price span {
            font-size: 1rem;
            color: var(--text-secondary);
        }

        .features {
            list-style: none;
            margin: 2rem 0;
            padding: 0;
        }

        .features li {
            padding: 0.5rem 0;
            color: var(--text-secondary);
        }

        .features li::before {
            content: '✓';
            color: var(--accent-teal);
            font-weight: bold;
            margin-right: 0.5rem;
        }

        /* Forms */
        .form-container {
            max-width: 600px;
            margin: 0 auto;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 1rem;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 10px;
            color: var(--text-primary);
            backdrop-filter: blur(20px);
            transition: all 0.3s ease;
        }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--accent-teal);
            box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }

        /* Newsletter */
        .newsletter {
            background: linear-gradient(135deg, var(--accent-teal)20, var(--accent-purple)20);
            border-radius: 20px;
            padding: 3rem;
            text-align: center;
            margin: 2rem 0;
        }

        .newsletter-form {
            display: flex;
            gap: 1rem;
            max-width: 500px;
            margin: 2rem auto 0;
        }

        .newsletter-form input {
            flex: 1;
            padding: 1rem;
            border: none;
            border-radius: 50px;
            background: var(--glass-bg);
            color: var(--text-primary);
            backdrop-filter: blur(20px);
        }

        .newsletter-form button {
            padding: 1rem 2rem;
            border: none;
            border-radius: 50px;
            background: var(--accent-teal);
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        /* Contact */
        .contact-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .contact-item {
            text-align: center;
        }

        .contact-icon {
            font-size: 2rem;
            color: var(--accent-teal);
            margin-bottom: 1rem;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 2rem;
        }

        .social-link {
            display: inline-block;
            padding: 1rem;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 50%;
            color: var(--text-primary);
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .social-link:hover {
            background: var(--accent-teal);
            color: white;
            transform: translateY(-3px);
        }





        /* Toast Notification */
        .toast {
            position: fixed;
            top: 100px;
            right: 2rem;
            background: var(--accent-teal);
            color: white;
            padding: 1rem 2rem;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            transform: translateX(400px);
            transition: transform 0.3s ease;
            z-index: 1001;
        }

        .toast.show {
            transform: translateX(0);
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .section {
                padding: 4rem 1rem 2rem;
            }

            .cta-buttons {
                flex-direction: column;
                align-items: center;
            }

            .newsletter-form {
                flex-direction: column;
            }

            .pricing-card.featured {
                transform: none;
            }

            .pricing-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Scroll Animations */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .slide-in-left {
            opacity: 0;
            transform: translateX(-50px);
            transition: all 0.6s ease;
        }

        .slide-in-left.visible {
            opacity: 1;
            transform: translateX(0);
        }

        .slide-in-right {
            opacity: 0;
            transform: translateX(50px);
            transition: all 0.6s ease;
        }

        .slide-in-right.visible {
            opacity: 1;
            transform: translateX(0);
        }
        
        
        .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--accent-teal);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}






  /* Toast Styles */
        .toast-container {
            position: fixed;
            top: 1rem;
            right: 1rem;
            z-index: 10000;
            max-width: min(400px, calc(100vw - 2rem));
            width: 100%;
            pointer-events: none;
        }

        .toast {
            position: relative;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 1rem;
            margin-bottom: 0.75rem;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.12),
                0 2px 8px rgba(0, 0, 0, 0.08);
            animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            overflow: hidden;
            pointer-events: auto;
            transform-origin: top right;
        }

        .toast::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--toast-color, #6b7280);
        }

        .toast-success {
            --toast-color: #10b981;
        }

        .toast-error {
            --toast-color: #ef4444;
        }

        .toast-info {
            --toast-color: #14b8a6;
        }

        .toast-warning {
            --toast-color: #f59e0b;
        }

        .toast-content {
            display: flex;
            align-items: flex-start;
            padding: 1rem 1.25rem;
            gap: 0.75rem;
        }

        .toast-icon {
            flex-shrink: 0;
            width: 1.25rem;
            height: 1.25rem;
            margin-top: 0.125rem;
            color: var(--toast-color, #6b7280);
        }

        .toast-body {
            flex: 1;
            min-width: 0;
        }

        .toast-title {
            font-weight: 600;
            font-size: 0.875rem;
            line-height: 1.25;
            color: #1f2937;
            margin-bottom: 0.25rem;
        }

        .toast-message {
            font-size: 0.8rem;
            line-height: 1.4;
            color: #6b7280;
            word-wrap: break-word;
        }

        .toast-close {
            flex-shrink: 0;
            background: none;
            border: none;
            color: #9ca3af;
            font-size: 1.25rem;
            cursor: pointer;
            padding: 0.25rem;
            border-radius: 0.375rem;
            transition: all 0.2s ease;
            width: 1.75rem;
            height: 1.75rem;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: -0.125rem;
        }

        .toast-close:hover {
            background: rgba(0, 0, 0, 0.05);
            color: #4b5563;
            transform: scale(1.1);
        }

        .toast-progress {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 3px;
            background: var(--toast-color, #6b7280);
            border-radius: 0 0 1rem 1rem;
            animation: progressBar 5s linear forwards;
            opacity: 0.6;
        }

        @keyframes slideIn {
            from {
                transform: translateX(120%) scale(0.9);
                opacity: 0;
            }
            to {
                transform: translateX(0) scale(1);
                opacity: 1;
            }
        }

        @keyframes slideOut {
            from {
                transform: translateX(0) scale(1);
                opacity: 1;
                max-height: 200px;
                margin-bottom: 0.75rem;
            }
            to {
                transform: translateX(120%) scale(0.9);
                opacity: 0;
                max-height: 0;
                margin-bottom: 0;
                padding-top: 0;
                padding-bottom: 0;
            }
        }

        @keyframes progressBar {
            from {
                width: 100%;
            }
            to {
                width: 0%;
            }
        }

        .toast.removing {
            animation: slideOut 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
        }

        /* Dark mode support */
        @media (prefers-color-scheme: dark) {
            .toast {
                background: rgba(31, 41, 55, 0.95);
                border-color: rgba(75, 85, 99, 0.3);
            }

            .toast-title {
                color: #f9fafb;
            }

            .toast-message {
                color: #d1d5db;
            }

            .toast-close {
                color: #9ca3af;
            }

            .toast-close:hover {
                background: rgba(255, 255, 255, 0.1);
                color: #e5e7eb;
            }
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .toast-container {
                top: 0.5rem;
                right: 0.5rem;
                left: 0.5rem;
                max-width: none;
            }

            .toast {
                border-radius: 0.75rem;
                margin-bottom: 0.5rem;
            }

            .toast-content {
                padding: 0.875rem 1rem;
                gap: 0.625rem;
            }

            .toast-title {
                font-size: 0.8rem;
            }

            .toast-message {
                font-size: 0.75rem;
            }

            .toast-icon {
                width: 1.125rem;
                height: 1.125rem;
            }
        }

        @media (max-width: 480px) {
            .toast-container {
                top: 0.25rem;
                right: 0.25rem;
                left: 0.25rem;
            }

            .toast-content {
                padding: 0.75rem 0.875rem;
            }

            .demo-buttons {
                flex-direction: column;
                align-items: center;
            }

            .demo-btn {
                width: 100%;
                max-width: 200px;
            }
        }

        /* Reduce motion for accessibility */
        @media (prefers-reduced-motion: reduce) {
            .toast {
                animation: fadeIn 0.3s ease;
            }

            .toast.removing {
                animation: fadeOut 0.3s ease forwards;
            }

            .toast-close:hover {
                transform: none;
            }

            @keyframes fadeIn {
                from { opacity: 0; }
                to { opacity: 1; }
            }

            @keyframes fadeOut {
                from { opacity: 1; }
                to { opacity: 0; }
            }
        





  /* Glass card effect */
        .glass-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 15px;
            padding: 2rem;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }
        
        /* Enhanced subscription card */
        .subscription-card {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 20px;
            padding: 2.5rem;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
        }
        
        .subscription-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
        }
        
        /* Info item styling */
        .info-item {
            background: rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 1rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }
        
        .info-item:hover {
            background: rgba(255, 255, 255, 0.12);
            transform: translateY(-2px);
        }
        
        .info-label {
            font-size: 0.85rem;
            opacity: 0.8;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 0.5rem;
        }
        
        .info-value {
            font-size: 1.1rem;
            font-weight: 600;
        }
        
        /* Status badges */
        .status-badge {
            padding: 0.5rem 1rem;
            border-radius: 25px;
            font-weight: 600;
            font-size: 0.9rem;
            border: 2px solid;
        }
        
        .status-active {
            background: rgba(40, 167, 69, 0.2);
            border-color: #28a745;
            color: #28a745;
        }
        
        .status-warning {
            background: rgba(255, 193, 7, 0.2);
            border-color: #ffc107;
            color: #ffc107;
        }
        
        /* Feature badges */
        .feature-badge {
            background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            margin: 0.25rem;
            display: inline-block;
            transition: all 0.3s ease;
        }
        
        .feature-badge:hover {
            background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
            transform: translateY(-1px);
        }
        
        /* Crown icon animation */
        .crown-icon {
            animation: float 3s ease-in-out infinite;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-5px); }
        }
        
        /* Price styling */
        .price-value {
            font-size: 1.4rem;
            font-weight: 700;
            background: linear-gradient(45deg, #007bff, #0056b3);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        /* Mobile optimizations */
        @media (max-width: 768px) {
            .subscription-card {
                padding: 1.5rem;
                margin: 0 0.5rem;
            }
            
            .info-item {
                padding: 1rem;
            }
            
            .info-value {
                font-size: 1rem;
            }
            
            .price-value {
                font-size: 1.2rem;
            }
        }
        
        
        
   

/* Mobile Navigation - Properly Fixed to Bottom */
.mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* Safari support */
    border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    justify-content: space-around;
    padding: 8px 0;
    min-height: 60px;
    transition: all 0.3s ease;
    
    /* Hardware acceleration for smooth performance */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    
    /* Prevent any margin/padding interference */
    margin: 0;
    box-sizing: border-box;
    
    /* Ensure it stays visible */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Light theme support */
[data-theme="light"] .mobile-nav {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 4px;
    color: var(--text-secondary, #888);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    min-width: 0;
    max-width: 100px;
    text-decoration: none;
    border-radius: 8px;
    margin: 0 2px;
    position: relative;
}

/* Light theme nav items */
[data-theme="light"] .mobile-nav-item {
    color: #555;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--accent-teal, #00d4ff);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

/* Light theme active states */
[data-theme="light"] .mobile-nav-item.active,
[data-theme="light"] .mobile-nav-item:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.mobile-nav-item i {
    display: block;
    font-size: 18px;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.mobile-nav-item:hover i {
    transform: scale(1.1);
}

.mobile-nav-item span {
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}



/* Safe area adjustments for devices with notches */
@supports (padding: max(0px)) {
    .mobile-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
        bottom: env(safe-area-inset-bottom, 0);
    }
    
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .mobile-nav {
        /* Multiple position declarations for better support */
        position: -webkit-sticky;
        position: sticky;
        position: fixed;
        bottom: 0;
        bottom: constant(safe-area-inset-bottom);
        bottom: env(safe-area-inset-bottom);
        
        /* Force hardware acceleration */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        perspective: 1000;
    }
}

/* Small mobile devices (320px - 480px) */
@media (max-width: 480px) {
    .mobile-nav {
        padding: 6px 0;
        min-height: 55px;
    }
    
    .mobile-nav-item {
        padding: 6px 2px;
        font-size: 10px;
        max-width: 80px;
    }
    
    .mobile-nav-item i {
        font-size: 16px;
        margin-bottom: 1px;
    }
    
    .mobile-nav-item span {
        font-size: 9px;
    }
    
    body {
        padding-bottom: 65px !important;
    }
}

/* Medium mobile devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .mobile-nav {
        padding: 8px 0;
        min-height: 65px;
    }
    
    .mobile-nav-item {
        padding: 8px 4px;
        font-size: 12px;
        max-width: 90px;
    }
    
    .mobile-nav-item i {
        font-size: 18px;
        margin-bottom: 2px;
    }
    
    .mobile-nav-item span {
        font-size: 10px;
    }
    
    body {
        padding-bottom: 75px !important;
    }
}

/* Tablet devices (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .mobile-nav {
        padding: 10px 0;
        min-height: 70px;
    }
    
    .mobile-nav-item {
        padding: 10px 6px;
        font-size: 13px;
        max-width: 100px;
    }
    
    .mobile-nav-item i {
        font-size: 20px;
        margin-bottom: 3px;
    }
    
    .mobile-nav-item span {
        font-size: 11px;
    }
    
    body {
        padding-bottom: 80px !important;
    }
}

/* Desktop devices (1025px and up) */
@media (min-width: 1025px) {
    .mobile-nav {
        padding: 12px 0;
        min-height: 75px;
    }
    
    .mobile-nav-item {
        padding: 12px 8px;
        font-size: 14px;
        max-width: 120px;
    }
    
    .mobile-nav-item i {
        font-size: 22px;
        margin-bottom: 4px;
    }
    
    .mobile-nav-item span {
        font-size: 12px;
    }
    
    body {
        padding-bottom: 85px !important;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .mobile-nav {
        padding: 4px 0;
        min-height: 50px;
    }
    
    .mobile-nav-item {
        padding: 4px 2px;
        font-size: 10px;
    }
    
    .mobile-nav-item i {
        font-size: 14px;
        margin-bottom: 1px;
    }
    
    .mobile-nav-item span {
        font-size: 8px;
    }
    
    body {
        padding-bottom: 60px !important;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mobile-nav {
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
    }
    
    .mobile-nav-item i {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .mobile-nav,
    .mobile-nav-item,
    .mobile-nav-item i {
        transition: none !important;
    }
    
    .mobile-nav-item:hover {
        transform: none !important;
    }
}

/* Focus states for keyboard navigation */
.mobile-nav-item:focus {
    outline: 2px solid var(--accent-teal, #00d4ff);
    outline-offset: 2px;
    background: rgba(0, 212, 255, 0.2);
}

[data-theme="light"] .mobile-nav-item:focus {
    outline-color: #007bff;
    background: rgba(0, 123, 255, 0.2);
}

/* Print styles */
@media print {
    .mobile-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}

/* Integration with existing auth page styles */
.auth-card {
    margin-bottom: 100px;
}

@media (max-width: 768px) {
    .auth-card {
        margin: 1rem 1rem 100px 1rem;
        padding: 2rem;
        border-radius: 16px;
    }

    .auth-header h1 {
        font-size: 2rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-feature-icon {
        font-size: 5rem;
    }

    .auth-feature-title {
        font-size: 1.5rem;
    }

    .auth-feature-description {
        font-size: 1rem;
    }

    .glass-card {
        margin: 1rem 1rem 20px 1rem;
        padding: 1.5rem;
    }

    .stat-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .form-control {
        padding: 1rem;
        font-size: 16px;
    }

    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }

    .d-flex.gap-3 .btn {
        width: 100%;
    }
}

/* Force stickiness - Last resort rules */
.mobile-nav {
    /* Ensure maximum stickiness */
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    
    /* Prevent any interference */
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    
    /* Ensure it's always visible */
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}


/* Additional mobile browser fixes */
@media screen and (max-width: 768px) {
    /* Prevent zoom on form inputs */
    input, textarea, select {
        font-size: 16px;
    }
    
    /* Ensure proper viewport behavior */
    .mobile-nav {
        /* Force redraw on mobile */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}     
        
        
        
        /* Mobile Navigation - Properly Fixed to Bottom */
.mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* Safari support */
    border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    justify-content: space-around;
    padding: 8px 0;
    min-height: 60px;
    transition: all 0.3s ease;
    
    /* Hardware acceleration for smooth performance */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    
    /* Prevent any margin/padding interference */
    margin: 0;
    box-sizing: border-box;
    
    /* Ensure it stays visible */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Light theme support */
[data-theme="light"] .mobile-nav {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 4px;
    color: var(--text-secondary, #888);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    min-width: 0;
    max-width: 100px;
    text-decoration: none;
    border-radius: 8px;
    margin: 0 2px;
    position: relative;
}


/* Active color highlight */
.mobile-nav-item.active,
.mobile-nav-item.active i,
.mobile-nav-item:hover,
.mobile-nav-item:hover i {
    color: #007bff; /* 
    font-weight: bold;
}



/* Light theme nav items */
[data-theme="light"] .mobile-nav-item {
    color: #555;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--accent-teal, #00d4ff);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

/* Light theme active states */
[data-theme="light"] .mobile-nav-item.active,
[data-theme="light"] .mobile-nav-item:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.mobile-nav-item i {
    display: block;
    font-size: 18px;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.mobile-nav-item:hover i {
    transform: scale(1.1);
}

.mobile-nav-item span {
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Critical: Body padding to prevent content overlap */
body {
    padding-bottom: 80px !important;
    /* Ensure smooth scrolling */
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
}

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Ensure main content has proper spacing */
main, .main-content, .container, .content {
    padding-bottom: 100px;
}

/* Safe area adjustments for devices with notches */
@supports (padding: max(0px)) {
    .mobile-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
        bottom: env(safe-area-inset-bottom, 0);
    }
    
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .mobile-nav {
        /* Multiple position declarations for better support */
        position: -webkit-sticky;
        position: sticky;
        position: fixed;
        bottom: 0;
        bottom: constant(safe-area-inset-bottom);
        bottom: env(safe-area-inset-bottom);
        
        /* Force hardware acceleration */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        perspective: 1000;
    }
}

/* Small mobile devices (320px - 480px) */
@media (max-width: 480px) {
    .mobile-nav {
        padding: 6px 0;
        min-height: 55px;
    }
    
    .mobile-nav-item {
        padding: 6px 2px;
        font-size: 10px;
        max-width: 80px;
    }
    
    .mobile-nav-item i {
        font-size: 16px;
        margin-bottom: 1px;
    }
    
    .mobile-nav-item span {
        font-size: 9px;
    }
    
    body {
        padding-bottom: 65px !important;
    }
}

/* Medium mobile devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .mobile-nav {
        padding: 8px 0;
        min-height: 65px;
    }
    
    .mobile-nav-item {
        padding: 8px 4px;
        font-size: 12px;
        max-width: 90px;
    }
    
    .mobile-nav-item i {
        font-size: 18px;
        margin-bottom: 2px;
    }
    
    .mobile-nav-item span {
        font-size: 10px;
    }
    
    body {
        padding-bottom: 75px !important;
    }
}

/* Tablet devices (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .mobile-nav {
        padding: 10px 0;
        min-height: 70px;
    }
    
    .mobile-nav-item {
        padding: 10px 6px;
        font-size: 13px;
        max-width: 100px;
    }
    
    .mobile-nav-item i {
        font-size: 20px;
        margin-bottom: 3px;
    }
    
    .mobile-nav-item span {
        font-size: 11px;
    }
    
    body {
        padding-bottom: 80px !important;
    }
}

/* Desktop devices (1025px and up) */
@media (min-width: 1025px) {
    .mobile-nav {
        padding: 12px 0;
        min-height: 75px;
    }
    
    .mobile-nav-item {
        padding: 12px 8px;
        font-size: 14px;
        max-width: 120px;
    }
    
    .mobile-nav-item i {
        font-size: 22px;
        margin-bottom: 4px;
    }
    
    .mobile-nav-item span {
        font-size: 12px;
    }
    
    body {
        padding-bottom: 85px !important;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .mobile-nav {
        padding: 4px 0;
        min-height: 50px;
    }
    
    .mobile-nav-item {
        padding: 4px 2px;
        font-size: 10px;
    }
    
    .mobile-nav-item i {
        font-size: 14px;
        margin-bottom: 1px;
    }
    
    .mobile-nav-item span {
        font-size: 8px;
    }
    
    body {
        padding-bottom: 60px !important;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mobile-nav {
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
    }
    
    .mobile-nav-item i {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .mobile-nav,
    .mobile-nav-item,
    .mobile-nav-item i {
        transition: none !important;
    }
    
    .mobile-nav-item:hover {
        transform: none !important;
    }
}

/* Focus states for keyboard navigation */
.mobile-nav-item:focus {
    outline: 2px solid var(--accent-teal, #00d4ff);
    outline-offset: 2px;
    background: rgba(0, 212, 255, 0.2);
}

[data-theme="light"] .mobile-nav-item:focus {
    outline-color: #007bff;
    background: rgba(0, 123, 255, 0.2);
}

/* Print styles */
@media print {
    .mobile-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}

/* Integration with existing auth page styles */
.auth-card {
    margin-bottom: 100px;
}

@media (max-width: 768px) {
    .auth-card {
        margin: 1rem 1rem 100px 1rem;
        padding: 2rem;
        border-radius: 16px;
    }

    .auth-header h1 {
        font-size: 2rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-feature-icon {
        font-size: 5rem;
    }

    .auth-feature-title {
        font-size: 1.5rem;
    }

    .auth-feature-description {
        font-size: 1rem;
    }

    .glass-card {
        margin: 1rem 1rem 20px 1rem;
        padding: 1.5rem;
    }

    .stat-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .form-control {
        padding: 1rem;
        font-size: 16px;
    }

    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }

    .d-flex.gap-3 .btn {
        width: 100%;
    }
}

/* Force stickiness - Last resort rules */
.mobile-nav {
    /* Ensure maximum stickiness */
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    
    /* Prevent any interference */
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    
    /* Ensure it's always visible */
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Scrolling fixes for mobile browsers */
html {
    /* Prevent body scroll issues on mobile */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    /* Ensure proper scrolling behavior */
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
    /* Ensure the navigation doesn't interfere */
    position: relative;
    min-height: 100vh;
}

/* Additional mobile browser fixes */
@media screen and (max-width: 768px) {
    /* Prevent zoom on form inputs */
    input, textarea, select {
        font-size: 16px;
    }
    
    /* Ensure proper viewport behavior */
    .mobile-nav {
        /* Force redraw on mobile */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}