:root {
    /* Color Palette - Subacutic (Technical/Deep) */
    --color-sub-primary: #0a192f;
    /* Deep Navy */
    --color-sub-accent: #64ffda;
    /* Cyber Teal */
    --color-sub-text: #ccd6f6;
    /* Soft Blue-White */

    /* Color Palette - Descubre (Nature/Vibrant) */
    --color-desc-primary: #008080;
    /* Teal/Sea Green */
    --color-desc-accent: #ff9f1c;
    /* Warm Orange/Sun */
    --color-desc-text: #f0fdf4;
    /* Soft Green-White */

    /* Universal */
    --font-heading: 'Outfit', sans-serif;
    /* Modern, geometric */
    --font-body: 'Inter', sans-serif;
    /* Clean, readable */
    --transition-speed: 0.4s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: #020c1b;
    /* Very dark base */
    color: #fff;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

/* Utilities */
.hidden {
    display: none;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Global Navbar --- */
.navbar {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.nav-links a {
    margin-left: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-sub-text);
}

.nav-links a:hover {
    color: var(--color-sub-accent);
}

/* M-LIVE Highlight Class */
.m-live-highlight {
    color: #ff3333;
    font-weight: 800;
    letter-spacing: 1px;
}

/* --- Responsive Navbar (Hamburger) --- */
.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    z-index: 200;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Styles */
/* Mobile Styles */
@media (max-width: 900px) {

    /* --- Robust Burger Menu --- */
    #burgerMenu,
    .burger-menu {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 32px !important;
        height: 24px !important;
        cursor: pointer;
        z-index: 2000;
        filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8));
    }

    .burger-line {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        background-color: #ffffff !important;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* --- Mobile Navigation Drawer --- */
    #navLinks,
    .nav-links-container,
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 100%;
        /* Full width for immersive feel */
        height: 100vh;
        background: rgba(5, 15, 25, 0.98);
        /* Deep dark blue/black */
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1500;
        display: flex !important;
        padding: 2rem;
    }

    /* Active State */
    .nav-active,
    #navLinks.nav-active {
        right: 0 !important;
    }

    /* Links Styling */
    #navLinks a,
    .nav-links a,
    .nav-links-container a {
        margin: 1.5rem 0 !important;
        font-size: 1.4rem !important;
        display: block;
        color: #fff !important;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 80%;
        padding-bottom: 10px;
    }

    /* Burger Animation (X shape) */
    .burger-toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger-toggle .line2 {
        opacity: 0;
    }

    .burger-toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }


    /* --- Hero & Slider Adjustments --- */
    /* Projects (Descubre) - Must be full screen */
    .slider-container,
    .slide {
        height: 100vh !important;
    }

    /* Services (Subacutic) - Responsive height */
    .hero-slider {
        height: 60vh !important;
        /* Reduced from 100vh but taller than 50 */
        min-height: 350px;
        position: relative;
    }

    /* Force slide item to fill parent */
    .slide-item {
        height: 100% !important;
        width: 100% !important;
        background-position: center center !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        /* Flex alignment for text */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding-top: 0 !important;
    }

    .hero-text {
        width: 90%;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.3);
        /* Slight dimmed bg for readability */
        backdrop-filter: blur(2px);
        border-radius: 10px;
    }

    .hero-text h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 1.1rem !important;
        margin-bottom: 1.5rem;
    }

    /* Page Hero (Sub-pages) */
    .page-hero {
        height: 40vh !important;
        background-position: center center !important;
        background-size: cover !important;
        background-attachment: scroll !important;
        /* CRITICAL FIX: Disable fixed/parallax on mobile which causes zooming */
        position: relative;
    }

    .page-hero h1 {
        font-size: 2rem !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    }

    /* Cards */
    .card-img {
        height: 200px;
    }