/* Light Theme Global Styles */
:root {
    --bg-primary-light: #FFFFFF;
    --bg-secondary-card: #F8FAFC;
    --border-color: #E2E8F0;

    --text-primary: #0F172A;
    --text-secondary: #475569;

    --accent-cyan: #0284C7;
    --accent-hover: #0369A1;
}

/* Glassmorphism Styling */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card-hover:hover {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 10px 30px -10px rgba(2, 132, 199, 0.15);
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary-light);
    color: var(--text-primary);
}

#neuralCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    /* Allows clicks and scrolls to pass through to page content */
    z-index: 0;
}

header,
main,
footer {
    position: relative;
    z-index: 1;
    /* Keeps content scrolling neatly on top of the fixed background canvas */
}

/* Responsive Mobile Navigation Styles */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 100;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #0F172A;
    border-radius: 3px;
}

/* Ensure your main content wrapper sits above the canvas */
.main-content,
header,
section,
footer {
    position: relative;
    z-index: 1;
    /* Forces content to render on top of the canvas */
}

/* Custom Scrollbar for Light Theme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0284C7;
}

body {
    margin: 0;
    overflow-x: hidden;
    position: relative;
    background-color: #F8FAFC;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        text-align: center;
        transition: 0.3s ease;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        padding: 24px 0;
        z-index: 99;
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 12px 0;
        display: block;
    }

    .hamburger.toggle .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.toggle .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}