@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;600&display=swap');

:root {
    /* Base Colors - Dark Space Theme */
    --bg-dark: #05070a;
    --bg-card: rgba(15, 20, 30, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;

    /* Vertical Accents */
    --accent-optical: #00f2ff;
    /* Cyan */
    --accent-electronics: #7d52ff;
    /* Blue/Purple */
    --accent-fashion: #ff479c;
    /* Pink/Purple */
    --accent-grocery: #10b981;
    /* Green/Blue */
    --accent-books: #f59e0b;
    /* Warm Amber */

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #00f2ff 0%, #7d52ff 100%);
    --grad-hologram: linear-gradient(135deg, rgba(0, 242, 255, 0.1) 0%, rgba(125, 82, 255, 0.1) 100%);

    /* Shadows & Glows */
    --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(125, 82, 255, 0.1);
    --glow-cyan: 0 0 15px rgba(0, 242, 255, 0.5);
    --glow-purple: 0 0 15px rgba(125, 82, 255, 0.5);
}

/* Light Theme Overrides */
body.light-mode {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-primary: #0f172a;
    --text-secondary: #475569;

    --grad-primary: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
    --grad-hologram: linear-gradient(135deg, rgba(2, 132, 199, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);

    --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 20px rgba(99, 102, 241, 0.1);
    --glow-cyan: 0 0 15px rgba(2, 132, 199, 0.3);
    --glow-purple: 0 0 15px rgba(99, 102, 241, 0.3);
}

body.light-mode .nav-links .dropdown-content {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .nav-links .dropdown-content a {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .nav-links .dropdown-content a:hover {
    background: rgba(0, 0, 0, 0.05);
}

body {
    transition: background-color 0.5s ease, color 0.5s ease;
}

.glass {
    transition: background 0.5s ease, border-color 0.5s ease;
}

body.light-mode .glass {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

/* Glassmorphism */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* Holographic Effect */
.hologram {
    position: relative;
    overflow: hidden;
}

.hologram::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 55%);
    animation: hologram-sweep 3s infinite;
}

@keyframes hologram-sweep {
    0% {
        transform: translate(-30%, -30%) rotate(0deg);
    }

    100% {
        transform: translate(30%, 30%) rotate(0deg);
    }
}

/* Buttons */
.btn-glow {
    background: var(--grad-primary);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--glow-purple);
}

body.light-mode .btn-glow[style*="background: transparent"] {
    color: var(--text-primary) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(125, 82, 255, 0.8);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* Dropdown Styles */
.nav-links .dropdown {
    position: relative;
    display: inline-block;
}

.nav-links .dropdown-content {
    display: none;
    position: absolute;
    background: var(--bg-card);
    min-width: 160px;
    box-shadow: var(--shadow-float);
    z-index: 1000;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    top: 100%;
    left: 0;
    padding: 10px 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-links .dropdown-content a {
    color: var(--text-primary) !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links .dropdown-content a:last-child {
    border-bottom: none;
}

.nav-links .dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-optical) !important;
    text-shadow: var(--glow-cyan) !important;
}

.nav-links .dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Hamburger Menu */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

/* Global Mobile Responsiveness */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 25px;
    }

    .navbar.glass {
        transition: background 0.3s ease, border-radius 0.3s ease;
    }

    .navbar:has(.nav-links.active) {
        background: rgba(10, 15, 25, 0.98);
        border-radius: 0 0 20px 20px;
    }

    body.light-mode .navbar:has(.nav-links.active) {
        background: rgba(248, 250, 252, 0.98);
    }

    .nav-content {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .nav-links,
    .nav-content>div[style*="display: flex"] {
        display: none !important;
        flex-direction: column;
        width: 100%;
        flex-basis: 100%;
    }

    .nav-links {
        padding-top: 30px;
        gap: 5px;
        text-align: center;
    }

    .nav-links .dropdown {
        display: block;
        width: 100%;
    }

    .nav-links .dropdown>a {
        justify-content: center;
    }

    .nav-links .dropdown-content {
        position: static;
        box-shadow: none;
        background: transparent !important;
        border: none !important;
        padding: 0;
    }

    .nav-links.active,
    .nav-content>div[style*="display: flex"].active {
        display: flex !important;
        animation: fadeIn 0.3s ease forwards;
    }

    .nav-links a {
        font-size: 16px;
        width: 100%;
        display: block;
        padding: 6px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: center;
    }

    body.light-mode .nav-links a {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-content>div[style*="display: flex"] {
        padding-top: 15px;
        padding-bottom: 20px;
        gap: 15px !important;
        align-items: center;
        justify-content: center;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero-title {
        font-size: 42px !important;
    }

    .saas-hero {
        padding-top: 180px;
        text-align: center;
    }

    .feature-block {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 40px !important;
    }

    .feature-block ul {
        text-align: left;
    }

    .feature-block.reversed {
        direction: ltr;
    }

    .feature-block.reversed>* {
        direction: ltr;
    }

    .contact-grid,
    .team-grid,
    .feature-grid {
        grid-template-columns: 1fr !important;
    }

    .lead-capture-form {
        flex-direction: column;
    }

    .logo-grid {
        flex-wrap: wrap;
        gap: 20px;
        text-align: center;
    }

    footer .container>div {
        flex-direction: column !important;
        text-align: center;
        align-items: center;
        gap: 40px;
    }

    footer ul {
        justify-content: center;
        text-align: center;
        padding: 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr !important;
    }

    .price-card.popular {
        transform: scale(1) !important;
    }

    .comparison-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}