* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Root Color & Typography Layout Variables */
:root {
    --title-size: clamp(2rem, 3.5vw, 4rem);
    --title-spacing: 0.5rem;
    --p-size: 1.1rem;
    --p-width: 950px;
    --nav-padding: 5%;

    --blue-600: #0056B3; 
    --transition-sharp: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Default Light Mode Theme Properties */
    --bg-color: #e6f0fa;
    --planet-1-bg: linear-gradient(135deg, #f8fafc 0%, #cbd5e0 80%);
    --planet-1-shadow: rgba(0, 0, 0, 0.05);
    --planet-2-bg: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 80%);
    --planet-2-shadow: rgba(0, 0, 0, 0.08);
    --planet-2-opacity: 0.7;
    --particle-color: #4a5568;
    --stars-opacity: 0.5; 
    
    --title-color: #0056B3;
    --highlight-color: #0056B3;
    --text-main: #1a202c;
    --card-bg: rgba(255, 255, 255, 0.65);
    --card-border: rgba(0, 86, 179, 0.15);
    --nav-bg: linear-gradient(to bottom, rgba(255,255,255,0.9), transparent);
    --nav-link-color: #333333;
    
    --overlay-strong: rgba(255, 255, 255, 0.55);
    --overlay-light: rgba(255, 255, 255, 0.45);

    --footer-bg-mode: #e6f0fa;
    --footer-text-mode: #333333;
    --footer-heading-mode: #0056B3;
    --footer-accred-heading-mode: #0056B3;
    --footer-accred-text-mode: #555555;
    --footer-wave-1: rgba(0,0,0,0.03);
    --footer-wave-2: rgba(0,0,0,0.02);
    --footer-arc-line: rgba(0,0,0,0.03);

    --scene-heading-color: #082567;

    /* Light Mode Shadows */
    --shadow-heading: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-word: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-transport: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-solid: 0 10px 20px rgba(0,0,0,0.1);
    --shadow-icon: 0 0 10px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 15px 35px rgba(0,0,0,0.15);

    --t-fast: 0.3s ease;
}

/* Dark Mode Theme Properties (Controlled via body class) */
body.dark-mode {
    --bg-color: #030508;
    --planet-1-bg: linear-gradient(135deg, #2a2a72 0%, #000000 80%);
    --planet-1-shadow: rgba(42, 42, 114, 0.6);
    --planet-2-bg: linear-gradient(135deg, #2a2540 0%, #0a0a12 80%);
    --planet-2-shadow: rgba(42, 37, 64, 0.8);
    --planet-2-opacity: 0.85; 
    --particle-color: #ffffff;
    --stars-opacity: 0.15;
    
    --title-color: #00CCFF;
    --highlight-color: #00E5FF;
    --text-main: #f5f5f5;
    --card-bg: rgba(17, 32, 54, 0.35);
    --card-border: rgba(125, 249, 255, 0.15);
    --nav-bg: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent);
    --nav-link-color: #e0e0e0;
    
    --overlay-strong: rgba(6, 15, 38, 0.68);
    --overlay-light: rgba(6, 15, 38, 0.4);

    --footer-bg-mode: #060F26;
    --footer-text-mode: #bee0ff;
    --footer-heading-mode: #00afff;
    --footer-accred-heading-mode: #00afff;
    --footer-accred-text-mode: #bee0ff;
    --footer-wave-1: rgba(255,255,255,0.028);
    --footer-wave-2: rgba(255,255,255,0.016);
    --footer-arc-line: rgba(255,255,255,0.03);

    --scene-heading-color: #FFFFFF;

    --shadow-heading: 0 5px 15px rgba(0,0,0,0.8);
    --shadow-word: 0 0 15px rgba(0, 204, 255, 0.5), 0 15px 30px rgba(0,0,0,0.8);
    --shadow-transport: 0 0 15px rgba(0, 204, 255, 0.8), 0 15px 30px rgba(0,0,0,0.9);
    --shadow-solid: 0 10px 20px rgba(0,0,0,0.9);
    --shadow-icon: 0 0 10px rgba(0, 204, 255, 0.6);
    --shadow-card: 0 15px 35px rgba(0,0,0,0.3);
}

body, html {
    font-family: Helvetica, Arial, sans-serif;
    overflow: hidden; 
    background-color: var(--bg-color); 
    transition: background-color 0.8s ease;
}

/* Background Layers */
.fixed-background {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 0; pointer-events: none; background-color: var(--bg-color);
    transition: background-color 0.8s ease;
}
.layer { position: absolute; width: 100%; height: 100%; pointer-events: none; }
.bg-layer { z-index: 1; transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1); }
.stars-layer { 
    z-index: 2; 
    background-image: radial-gradient(var(--particle-color) 1px, transparent 1px); 
    background-size: 80px 80px; opacity: var(--stars-opacity); 
    transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1), background-image 0.8s ease, opacity 0.8s ease; 
}
.planet { position: absolute; border-radius: 50%; transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.8s ease, box-shadow 0.8s ease, opacity 0.8s ease; }
#planet-1 { 
    width: 350px; height: 350px; background: var(--planet-1-bg); 
    box-shadow: -20px 20px 60px var(--planet-1-shadow); top: 10%; left: 10%; 
}
#planet-2 { 
    width: 500px; height: 500px; background: var(--planet-2-bg); 
    box-shadow: 20px -20px 80px var(--planet-2-shadow); bottom: -20%; right: -5%; opacity: var(--planet-2-opacity); 
}

/* Navigation System */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px;
    display: flex; justify-content: space-between; align-items: center; padding: 0 var(--nav-padding);
    z-index: 100; background: var(--nav-bg); transition: background 0.8s ease;
}

.logo-box { text-decoration: none; display: flex; align-items: center; justify-content: center; }

/* Enforced Logo Heights */
.nav-logo { height: 60px !important; width: auto; display: block; object-fit: contain; }
.white-logo { display: none; }
.color-logo { display: block; }
body.dark-mode .white-logo { display: block; }
body.dark-mode .color-logo { display: none; }

.nav-right { display: flex; align-items: center; gap: 40px; }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--nav-link-color); font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--blue-600); }
body.dark-mode .nav-links a:hover { color: #ffffff; }

/* Sign-in Button Formatting */
.sign-in-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    background-color: #BDBDBD; color: #0E2A47; border: none; 
    font-weight: 700; font-size: 14px; text-transform: uppercase;
    padding: 0.8rem 1.8rem; border-radius: 50px; cursor: pointer; transition: var(--transition-sharp);
}
.sign-in-icon { font-size: 1.1rem; }

/* Light/Day Mode Hover */
.sign-in-btn:hover { background-color: #0868B2; color: #f2f2f2; }

/* Dark Mode Hover Override */
body.dark-mode .sign-in-btn:hover { background-color: #f2f2f2; color: #0868B2; }

/* Theme Controls & Mobile Home Button */
.nav-controls { display: flex; align-items: center; }
.mobile-home-btn {
    display: none; 
    color: var(--nav-link-color); font-size: 1.4rem; margin-right: 25px; 
    text-decoration: none; transition: color var(--t-fast), transform var(--t-fast);
    align-items: center; justify-content: center;
}
.mobile-home-btn:hover { color: var(--blue-600); transform: translateY(-2px); }
body.dark-mode .mobile-home-btn:hover { color: #ffffff; }

.theme-switch-wrapper { display: flex; align-items: center; margin-right: 0.5rem; }
.theme-icon-toggle { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; position: relative; }
.theme-icon-toggle input { display: none; }
.icon-container { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 1.4rem; }
.sun-icon { color: #FF7F00; position: absolute; transition: transform 0.4s ease, opacity 0.4s ease; }
.moon-stars { color: var(--nav-link-color); position: absolute; opacity: 0; transform: rotate(-90deg) scale(0.5); transition: transform 0.4s ease, opacity 0.4s ease, color 0.8s ease; }
.moon-stars .moon-icon { font-size: 1.4rem; }
.moon-stars .star { position: absolute; color: inherit; }
.moon-stars .star-1 { font-size: 6px; top: -2px; left: -8px; }
.moon-stars .star-2 { font-size: 4px; bottom: 0; right: -5px; }
input:checked ~ .icon-container .sun-icon { opacity: 0; transform: rotate(90deg) scale(0.5); }
input:checked ~ .icon-container .moon-stars { opacity: 1; transform: rotate(0) scale(1); }

/* Hamburger Menu Base Styles & Animation Setup */
.menu-toggle { display: none; font-size: 1.8rem; color: var(--nav-link-color); cursor: pointer; transition: transform 0.4s ease; }
.menu-toggle.open { transform: rotate(180deg); }
.menu-toggle i { transition: opacity 0.3s ease; }
.mobile-sign-in-li { display: none; }

/* Mobile Break Helper */
.mobile-break { display: none; }
.desktop-home-li { display: inline-block; }

/* Core Layout & Flow */
.slider-container { height: 100vh; width: 100vw; position: relative; overflow: hidden; z-index: 10; }
.slider-wrapper { height: 100vh; width: 100vw; transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1); }
.scene {
    height: 100vh; width: 100vw; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    position: relative; overflow: hidden; background: transparent; 
}
.page-5 { background: var(--footer-bg-mode); transition: background 0.8s ease; }

/* Background Scene Overlays mapped for Theme */
.scene-customs::before, .scene-compliance::before, .scene-dispatch::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--overlay-light); z-index: 0; transition: background 0.8s ease;
}

/* Presentation Typography & Titles */
h1, h2, h3, h4, .parallax-word, .pre-heading, .post-heading, .sub-heading, .scene-subtitle, .mode-labels h3 {
    font-family: Helvetica, Arial, sans-serif; font-style: oblique;
}
.transport-title-group {
    position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%;
}

.pre-heading, .post-heading, .sub-heading, .scene-subtitle {
    color: var(--scene-heading-color); font-weight: 800; text-transform: uppercase; z-index: 2; text-shadow: var(--shadow-heading); transition: color 0.8s ease;
}

.pre-heading, .post-heading { font-size: clamp(1rem, 2vw, 2rem); letter-spacing: 12px; }
.sub-heading, .scene-subtitle { font-size: clamp(1.2rem, 2vw, 1.8rem); letter-spacing: 5px; }

.pre-heading { margin-bottom: 0.5rem; }
.post-heading { margin-top: 0.5rem; }
.sub-heading, .scene-subtitle { margin-bottom: 0.5rem; }

.parallax-word {
    font-size: var(--title-size); font-weight: 800; letter-spacing: var(--title-spacing);
    text-transform: uppercase; display: flex; margin-bottom: 0.5rem; z-index: 2; 
    color: var(--title-color); text-shadow: var(--shadow-word); white-space: nowrap; transition: color 0.8s ease;
}

.transport-word { color: var(--title-color) !important; text-shadow: var(--shadow-transport) !important; }
.logistics-word { color: var(--title-color) !important; text-shadow: var(--shadow-transport) !important; }

.solid-white { color: var(--text-main) !important; text-shadow: var(--shadow-solid) !important; transition: color 0.8s ease; }

.parallax-word span { display: inline-block; transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1); will-change: transform; }

/* Box Styles & Internal Content */
.list-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    padding: 3rem 4rem; border-radius: 16px; max-width: var(--p-width); width: 95%; margin-top: 2.5rem;
    z-index: 2; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-card); transition: all 1.2s cubic-bezier(0.645, 0.045, 0.355, 1), background 0.8s ease, border 0.8s ease;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.intro-desc { 
    font-size: var(--p-size); line-height: 1.8; color: var(--text-main) !important; 
    font-weight: 400; text-align: center; max-width: 100%; transition: color 0.8s ease;
}

.highlight-keyword { 
    color: var(--highlight-color) !important; 
    font-weight: 600 !important; 
    transition: color 0.8s ease; 
    display: inline;
    padding: 0;
    margin: 0;
}

.scene-list { 
    list-style: none; display: flex; flex-direction: column; gap: 1.2rem; 
    text-align: left; width: 100%; max-width: 95%; margin: 0 auto;
}
.scene-list li { 
    display: flex; align-items: flex-start; gap: 12px; 
    font-size: var(--p-size); color: var(--text-main) !important; transition: color 0.8s ease;
}
.scene-list li .list-text {
    line-height: 1.6; font-weight: 400; 
}

/* Scalable Marker perfectly aligned mathematically using pixel mapping */
.scene-list li i { 
    color: var(--title-color); font-size: 6px; 
    margin-top: 14px; 
    text-shadow: var(--shadow-icon); flex-shrink: 0; transition: color 0.8s ease;
}

/* Main Footer */
.footer-scene { display: block; overflow-y: auto; height: 100vh; }
.footer-wrapper { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; }

footer { background: var(--footer-bg-mode); color: var(--footer-text-mode); padding: 5rem 5% 1.5rem; font-size: 0.95rem; position: relative; overflow: hidden; transition: background 0.8s ease, color 0.8s ease; }
footer > *:not(.footer-wave-bg) { position: relative; z-index: 1; }
.footer-wave-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.footer-wave { position: absolute; bottom: 0; left: 0; width: 100%; height: 65%; transition: fill 0.8s ease; }
.footer-wave-1 { fill: var(--footer-wave-1); }
.footer-wave-2 { fill: var(--footer-wave-2); height: 50%; }
.footer-arc-lines { position: absolute; top: 0; right: 0; width: 55%; height: 100%; }
.footer-arc-g { stroke: var(--footer-arc-line); transition: stroke 0.8s ease; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 2.5rem; }
.footer-col-main { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }

/* Custom Footer Logo mapped to theme constraints */
.footer-logo-img { width: 200px; height: auto; display: block; margin: 0 0 1.25rem 0; background: transparent; padding: 10px 14px; border-radius: 16px; transition: background-color 0.8s ease; }
body.dark-mode .footer-logo-img { background-color: #ffffff; }

/* Custom Footer Tagline Description text mapped to explicit font family */
.footer-col-main .footer-tagline {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    font-style: oblique;
    line-height: 1.65;
    color: #0E2A47;
    max-width: 260px;
    margin: 0;
    transition: color 0.8s ease;
}
body.dark-mode .footer-col-main .footer-tagline { color: #f2f2f2; }

.footer-col-main .social-links { display: flex; gap: 0.8rem; align-items: center; margin-top: 1.5rem; }
.social-btn {
    width: 2.5rem; height: 2.5rem; border-radius: 8px; background: rgba(125,125,125,0.06); display: flex; align-items: center; justify-content: center;
    color: var(--footer-text-mode); font-size: 1.2rem; border: 1px solid rgba(0,0,0,0.1); transition: all var(--t-fast); text-decoration: none !important;
}
body.dark-mode .social-btn { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.06); }
.social-btn:hover { transform: translateY(-3px); }
.social-btn.facebook:hover  { color: #1877F2; background: rgba(24,119,242,0.12); border-color: rgba(24,119,242,0.35); box-shadow: 0 0 14px 3px rgba(24,119,242,0.45); }
.social-btn.instagram:hover { color: #E1306C; background: rgba(225,48,108,0.12); border-color: rgba(225,48,108,0.35); box-shadow: 0 0 14px 3px rgba(225,48,108,0.45); }
.social-btn.whatsapp:hover  { color: #25D366; background: rgba(37,211,102,0.12); border-color: rgba(37,211,102,0.35); box-shadow: 0 0 14px 3px rgba(37,211,102,0.45); }
.social-btn.youtube:hover   { color: #FF0000; background: rgba(255,0,0,0.12); border-color: rgba(255,0,0,0.35); box-shadow: 0 0 14px 3px rgba(255,0,0,0.45); }
.social-btn.twitter:hover   { color: var(--text-main); background: rgba(125,125,125,0.10); border-color: rgba(125,125,125,0.30); box-shadow: 0 0 14px 3px rgba(125,125,125,0.25); }
.social-btn.linkedin:hover  { color: #0A66C2; background: rgba(10,102,194,0.12); border-color: rgba(10,102,194,0.35); box-shadow: 0 0 14px 3px rgba(10,102,194,0.45); }

/* Custom Footer Headings & Links */
.footer-links h3 { color: var(--footer-heading-mode); font-size: 1.2rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.25rem; font-style: oblique; font-weight: 700; transition: color 0.8s ease;}
body.dark-mode .footer-links h3 { color: #ffffff; }

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 0.7rem; }
.footer-links ul li a { color: var(--footer-text-mode); font-size: 1rem; font-weight: 400; transition: color var(--t-fast), padding-left var(--t-fast); text-decoration: none !important; }
.footer-links ul li a:hover { color: var(--footer-heading-mode); padding-left: 4px; }
body.dark-mode .footer-links ul li a:hover { color: #fff; }

.footer-accreditations { padding: 1.25rem 0 2rem; margin-bottom: 1.75rem; position: relative; }
.footer-accreditations::before { content: ''; display: block; width: 280px; max-width: 60%; height: 0; border-top: 2px dashed rgba(125,125,125,0.28); margin: 0 auto 1.75rem; transition: border-top 0.8s ease; }
body.dark-mode .footer-accreditations::before { border-top-color: rgba(255,255,255,0.28); }

.accred-row { display: flex; align-items: center; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }
.accred-label { font-size: 0.92rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--footer-accred-heading-mode); white-space: nowrap; flex-shrink: 0; font-style: oblique; transition: color 0.8s ease; }
.accred-pipe { color: var(--footer-accred-text-mode); font-size: 1.1rem; flex-shrink: 0; transition: color 0.8s ease; }
.accred-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 2.5rem; }
.accred-badge { display: flex; flex-direction: row; align-items: center; gap: 0.75rem; color: var(--footer-accred-text-mode); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; transition: color var(--t-fast); }
.accred-badge:hover { color: var(--footer-accred-heading-mode); }

.accred-logo-wrap { 
    height: 46px; 
    min-width: 80px; 
    max-width: 120px; 
    padding: 0.5rem 0.9rem; 
    background: rgba(255,255,255,0.92); 
    border-radius: 10px; 
    border: 1px solid rgba(0,0,0,0.1); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0; 
    transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), border-color 0.8s ease; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.18); 
}
body.dark-mode .accred-logo-wrap { border-color: rgba(255,255,255,0.15); }
.accred-logo-wrap img { height: 28px; width: auto; max-width: 100px; object-fit: contain; }

/* DHL Specific Full-Bleed Logo Fix */
.accred-logo-dhl { 
    padding: 0 !important; 
    overflow: hidden; 
    background: transparent !important;
}
.accred-logo-dhl img { 
    height: 100% !important; 
    width: 100% !important; 
    max-width: 100% !important; 
    object-fit: cover !important; 
    display: block;
    border-radius: 9px;
}

.accred-badge:hover .accred-logo-wrap { background: #fff; transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.22); }
.accred-badge:hover .accred-logo-dhl { background: transparent !important; }

.accred-badge + .accred-badge { position: relative; }
.accred-badge + .accred-badge::before { content: ''; position: absolute; left: -1.25rem; top: 50%; transform: translateY(-50%); width: 1px; height: 28px; background: rgba(125,125,125,0.15); transition: background 0.8s ease; }
body.dark-mode .accred-badge + .accred-badge::before { background: rgba(255,255,255,0.15); }

.footer-bottom { border-top: 1px solid rgba(0,0,0,0.10); padding-top: 1.5rem; text-align: center; color: var(--footer-text-mode); font-size: 0.88rem; margin-top: auto; font-style: oblique; transition: color 0.8s ease, border 0.8s ease;}
body.dark-mode .footer-bottom { border-top-color: rgba(255,255,255,0.20); }


/* Media Queries for Strict Fluid Typography & Responsive Breakpoints */

@media screen and (min-width: 1024px) {
    footer .footer-grid, 
    footer .footer-col-main, 
    footer .footer-links { text-align: left !important; }
    footer .footer-col-main { align-items: flex-start !important; }
    footer .footer-col-main p, 
    footer .footer-links ul li, 
    footer .footer-links h3 { text-align: left !important; justify-content: flex-start !important; }
}

/* Mobile Screens (Phones, up to 767px) */
@media screen and (max-width: 767px) {
    :root {
        --title-size: clamp(2.2rem, 7vw, 3rem); 
        --super-long-title-size: clamp(1.6rem, 5vw, 2.2rem); 
        --title-spacing: 0.2rem;
        --p-size: 0.95rem;
        --p-width: 100%;
        --nav-padding: 5%;
    }
    
    .nav-logo { height: 40px !important; }
    .nav-links { display: none; }
    .desktop-sign-in { display: none; } 
    .desktop-home-li { display: none !important; } /* Safely Hide the inner home link on Mobile */

    .mobile-sign-in-li { display: block; margin-top: 2rem; border-top: 1px solid rgba(125,125,125,0.1); padding-top: 2rem; }
    body.dark-mode .mobile-sign-in-li { border-top-color: rgba(255,255,255,0.1); }
    .sign-in-btn { width: 100%; padding: 1.2rem; }
    
    /* Hamburger Menu visible */
    .menu-toggle { display: flex !important; align-items: center; justify-content: center; margin-left: 15px; }
    .mobile-home-btn { display: inline-flex; margin-right: 25px; }

    /* Active Nav Dropdown Color Config */
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #f2f2f2 !important; /* Fixed Light Mode Menu BG */
        padding: 2rem 5%;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        border-top: 1px solid rgba(125,125,125,0.1);
        z-index: 100;
    }
    .nav-links.active a {
        color: #0868B2 !important; /* Fixed Light Mode Font Color */
    }

    /* Fixed Dark Mode Menu BG */
    body.dark-mode .nav-links.active {
        background-color: #0868B2 !important;
        border-top-color: rgba(255,255,255,0.1);
    }
    /* Fixed Dark Mode Font Color */
    body.dark-mode .nav-links.active a {
        color: #f2f2f2 !important;
    }
    body.dark-mode .nav-links.active a:hover {
        color: var(--highlight-color) !important;
    }

    /* Helper for line breaking on mobile */
    .mobile-break { display: block; flex-basis: 100%; height: 0; margin: 0; padding: 0; }
    .mobile-hide { display: none !important; }
    
    .sub-heading, .pre-heading, .post-heading, .scene-subtitle, .mode-labels h3 { 
        font-size: 1.1rem !important; 
        letter-spacing: 3px; 
        margin-bottom: 0.5rem; 
    }
    
    .list-card { padding: 1.5rem; margin-top: 1.5rem; }
    .parallax-word { flex-wrap: wrap; justify-content: center; }

    /* List Marker Mobile adjustment mapped to updated line-height structure */
    .scene-list li i { margin-top: 11px; } 

    /* Left-aligned footer on mobile */
    .footer-col-main { align-items: center; text-align: center; } 
    .footer-col-main .footer-tagline { text-align: left; margin: 0 auto; width: 100%; max-width: 260px; }
    .footer-col-main img { margin-left: auto; margin-right: auto; }
    .social-links { justify-content: center; width: 100%; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .accred-row { flex-direction: column; gap: 0.8rem; }
    .accred-pipe { display: none; }
    .accred-badges { justify-content: center; gap: 1rem; flex-direction: column; }
    .accred-badge + .accred-badge::before { display: none; }
}

/* Tablets: 8" to 12" (768px - 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    :root { 
        --title-size: clamp(2.5rem, 5vw, 3.8rem); 
        --super-long-title-size: clamp(2rem, 4.5vw, 3.2rem); 
        --title-spacing: 0.5rem; 
        --p-size: 1.05rem; 
        --p-width: 95%; 
        --nav-padding: 5%; 
    }
    .desktop-sign-in { display: none; } 
    .desktop-home-li { display: none !important; } 

    .mobile-sign-in-li { display: block; margin-top: 2rem; border-top: 1px solid rgba(125,125,125,0.1); padding-top: 2rem; }
    body.dark-mode .mobile-sign-in-li { border-top-color: rgba(255,255,255,0.1); }
    .sign-in-btn { width: 100%; padding: 1.2rem; }
    .nav-links { display: none; margin: 0; width: 100%; } 
    .menu-toggle { display: flex !important; margin-left: 15px; }
    .mobile-home-btn { display: inline-flex; margin-right: 25px; }

    /* Match Dropdown behavior for Tablets too */
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #f2f2f2 !important; /* Fixed Light Mode Menu BG */
        padding: 2rem 5%;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        border-top: 1px solid rgba(125,125,125,0.1);
        z-index: 100;
    }
    .nav-links.active a { color: #0868B2 !important; }

    body.dark-mode .nav-links.active {
        background-color: #0868B2 !important; /* Fixed Dark Mode Menu BG */
        border-top-color: rgba(255,255,255,0.1); 
    }
    body.dark-mode .nav-links.active a { color: #f2f2f2 !important; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* Laptops & Standard Desktops */
@media screen and (min-width: 1025px) and (max-width: 1440px) {
    :root { 
        --title-size: clamp(3rem, 4vw, 4.5rem); 
        --super-long-title-size: clamp(2.5rem, 3.5vw, 3.8rem); 
        --title-spacing: 0.8rem; 
        --p-size: 1.1rem; 
        --p-width: 950px; 
    }
}

/* Large Desktops */
@media screen and (min-width: 1441px) and (max-width: 1920px) {
    :root { 
        --title-size: clamp(4.5rem, 5vw, 5.5rem); 
        --super-long-title-size: clamp(3.5rem, 4.5vw, 4.8rem); 
        --title-spacing: 1rem; 
        --p-size: 1.15rem; 
        --p-width: 1100px; 
    }
}

/* Ultra Large Screens */
@media screen and (min-width: 1921px) {
    :root { 
        --title-size: 7rem; 
        --super-long-title-size: 5.5rem; 
        --title-spacing: 1.5rem; 
        --p-size: 1.4rem; 
        --p-width: 1300px; 
        --nav-padding: 80px; 
    }
}

/* Sign In is now an <a href="/login"> into the app; keep the original button look. */
a.sign-in-btn,
.nav-links a.sign-in-btn { text-decoration: none; }
