/* 1. Cyber Punk Theme */
/*:root {
    --nav-bg: #120823;
    --nav-fg: #f0dbf5;
    --accent: #ff2e6c;
    --accent-dark: #d41a54;
    --glass-bg: rgba(255, 46, 108, 0.1);
    --glass-border: rgba(255, 46, 108, 0.2);
    --gradient-start: #ff2e6c;
    --gradient-end: #7a1fa0;

    !* Global font stack - matching your existing style *!
    --mono-font: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;

    !* Z-index layers - explicit definitions *!
    --z-cookie: 999;       !* Cookie banner *!
    --z-nav: 1000;        !* Navigation *!
    --z-dropdown: 1001;   !* Dropdowns and overlays *!
}*/

/* 2. Neo Mint Theme */
/*:root {
    --nav-bg: #012623;
    --nav-fg: #e0fff7;
    --accent: #00ff9d;
    --accent-dark: #00cc7e;
    --glass-bg: rgba(0, 255, 157, 0.1);
    --glass-border: rgba(0, 255, 157, 0.2);
    --gradient-start: #00ff9d;
    --gradient-end: #00a3ff;

    !* Global font stack - matching your existing style *!
    --mono-font: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;

    !* Z-index layers - explicit definitions *!
    --z-cookie: 999;       !* Cookie banner *!
    --z-nav: 1000;        !* Navigation *!
    --z-dropdown: 1001;   !* Dropdowns and overlays *!
}*/

/* 3. Volcanic Theme */
/*:root {
    --nav-bg: #1a0f07;
    --nav-fg: #fff3e6;
    --accent: #ff7700;
    --accent-dark: #cc5f00;
    --glass-bg: rgba(255, 119, 0, 0.1);
    --glass-border: rgba(255, 119, 0, 0.2);
    --gradient-start: #ff7700;
    --gradient-end: #ff0055;

    !* Global font stack - matching your existing style *!
    --mono-font: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;

    !* Z-index layers - explicit definitions *!
    --z-cookie: 999;       !* Cookie banner *!
    --z-nav: 1000;        !* Navigation *!
    --z-dropdown: 1001;   !* Dropdowns and overlays *!
}*/

/* 4. Ocean Deep Theme */
/*:root {
    --nav-bg: #03111a;
    --nav-fg: #e6f3ff;
    --accent: #00c3ff;
    --accent-dark: #009acc;
    --glass-bg: rgba(0, 195, 255, 0.1);
    --glass-border: rgba(0, 195, 255, 0.2);
    --gradient-start: #00c3ff;
    --gradient-end: #0073ff;

    !* Global font stack - matching your existing style *!
    --mono-font: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;

    !* Z-index layers - explicit definitions *!
    --z-cookie: 999;       !* Cookie banner *!
    --z-nav: 1000;        !* Navigation *!
    --z-dropdown: 1001;   !* Dropdowns and overlays *!
}*/

/* 5. Forest Night Theme */
:root {
    --nav-bg: #0a1f0c;
    --nav-fg: #e8ffe9;
    --accent: #4eff57;
    --accent-dark: #3ecc46;
    --glass-bg: rgba(78, 255, 87, 0.1);
    --glass-border: rgba(78, 255, 87, 0.2);
    --gradient-start: #4eff57;
    --gradient-end: #00ff9d;

    /* Global font stack - matching your existing style */
    --mono-font: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace, serif;

    /* Z-index layers - explicit definitions */
    --z-cookie: 999; /* Cookie banner */
    --z-nav: 1000; /* Navigation */
    --z-dropdown: 1001; /* Dropdowns and overlays */

    /* Common measurements */
    --container-max-width: 1400px;
    --content-max-width: 1200px;
    --standard-gap: 1rem;
    --border-radius: 8px;
}

/* TODO: This affects all links on the site, needs to be scoped only for header and footer links */
a:hover {
    color: var(--accent);
}

.modern-nav {
    background: var(--nav-bg);
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    padding: var(--standard-gap);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    font-family: var(--mono-font);
}

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

/* Brand section styles */
.brand-section {
    display: flex;
    gap: 2rem;
}

.brand-link {
    color: var(--nav-fg);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.brand-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: 0.3s ease;
    transform: translateX(-50%);
}

.brand-link:hover .brand-underline {
    width: 100%;
}

/* Glassmorphism language selector */
.glass-form {
    background: var(--glass-bg);
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 0.3rem;
}

.glass-select {
    background: transparent;
    border: none;
    color: var(--nav-fg);
    padding: 0.3rem 1rem;
    cursor: pointer;
    outline: none;
    font-size: 12px;
    font-family: var(--mono-font);
}

/* Override the custom-sel class for consistency */
.custom-sel.glass-select {
    color: var(--nav-fg);
    margin: 0;
    padding: 5px 12px;
    font-weight: 600;
    line-height: 15px;
}

.glass-select option {
    background: var(--nav-bg);
    color: var(--nav-fg);
}

/* Search container styles */
.search-container {
    position: relative;
    margin: 0 1rem;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    transition: 0.3s ease;
}

.search-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.search-input {
    background: transparent;
    border: none;
    color: var(--nav-fg);
    padding: 0.5rem;
    width: 200px;
    outline: none;
}

.search-button {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.search-button svg {
    fill: var(--nav-fg);
}

/* Mobile menu trigger */
.menu-trigger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    fill: var(--nav-fg);
}

.line {
    fill: var(--nav-fg);
    transition: 0.3s ease;
}

/* Responsive styles */
@media (max-width: 991.98px) {
    .menu-trigger {
        display: block;
    }

    .nav-content {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        padding: var(--standard-gap);
        display: none;
        flex-direction: column;
        gap: var(--standard-gap);
        border-top: 1px solid var(--glass-border);
    }

    .nav-content.active {
        display: flex;
    }

    .search-wrapper {
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .menu-trigger.active .line.top {
        transform: translate(10px, 20px) rotate(45deg);
    }

    .menu-trigger.active .line.middle {
        opacity: 0;
    }

    .menu-trigger.active .line.bottom {
        transform: translate(10px, -20px) rotate(-45deg);
    }
}

/* Animation keyframes */
@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.1),
        0 0 0 10px rgba(99, 102, 241, 0.1),
        0 0 0 20px rgba(99, 102, 241, 0.1);
    }
    100% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0),
        0 0 0 20px rgba(99, 102, 241, 0),
        0 0 0 40px rgba(99, 102, 241, 0);
    }
}

/* Footer CSS */
.site-footer {
    background: var(--nav-bg, #120823);
    color: var(--nav-fg, #f0dbf5);
    padding: 4rem 0 2rem;
    font-family: var(--mono-font, "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace), serif;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
            90deg,
            transparent,
            var(--accent, #ff2e6c),
            transparent
    );
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.footer-section {
    min-width: 0;
}

.footer-heading {
    color: var(--accent, #ff2e6c);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background: var(--accent, #ff2e6c);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--nav-fg, #f0dbf5);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.footer-link:hover {
    opacity: 1;
    transform: translateX(4px);
    color: var(--accent, #ff2e6c);
}

.link-icon {
    fill: currentColor;
    flex-shrink: 0;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.2rem;
    margin-top: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    opacity: 0.8;
}

.copyright-text {
    color: var(--nav-fg, #f0dbf5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-sections {
        gap: 2rem;
    }

    .footer-copyright {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Hover animations */
@keyframes linkPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.footer-link:hover .link-icon {
    animation: linkPulse 0.3s ease;
}
