:root {
    --bg-dark: #050505;
    --bg-card: #121212;
    --accent-yellow: #FFD700;
    --text-light: #FFFFFF;
    --text-muted: #A1A1AA;
    --white: #F8FAFC;
    --nav-desktop-height: 80px;
    --nav-mobile-height: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

body { background-color: var(--bg-dark); color: var(--text-light); -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* =========================================
   TYPOGRAPHY & BUTTONS (The "Tactile" Feel)
========================================= */
.section-pad { padding: 100px 5%; max-width: 1200px; margin: 0 auto; }
h1, h2, h3, h4 { color: var(--text-light); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px; /* Pill shape */
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-yellow {
    background-color: var(--accent-yellow);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.btn-yellow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid #333;
}

.btn-outline:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

/* =========================================
   DESKTOP NAVIGATION (Top-Merged Pill)
========================================= */
.desktop-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-desktop-height);
    background-color: #000;
    border-radius: 0 0 40px 40px; /* Merges with top, curves at bottom */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-brand svg { color: var(--accent-yellow); }

.nav-links { display: flex; gap: 35px; align-items: center; }
.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 5px 10px;
}
.nav-links a:hover { color: var(--accent-yellow); }

/* =========================================
   MOBILE APP NAVIGATION (Bottom Fixed)
========================================= */
.mobile-app-nav { display: none; }

@media (max-width: 800px) {
    .desktop-nav { display: none; } /* Hide desktop nav */
    body { padding-bottom: calc(var(--nav-mobile-height) + 20px); }

    .mobile-app-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: var(--nav-mobile-height);
        background-color: #0A0A0A;
        border-top-left-radius: 25px;
        border-top-right-radius: 25px;
        border-top: 1px solid #222;
        justify-content: space-around;
        align-items: center;
        z-index: 2000;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    }

    .mob-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--text-muted);
        font-size: 0.65rem;
        font-weight: 600;
        gap: 5px;
        transition: var(--transition);
    }

    .mob-item:hover, .mob-item.active { color: var(--accent-yellow); }

    .mob-fab {
        background: var(--accent-yellow);
        color: #000;
        width: 55px;
        height: 55px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -35px;
        box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
        border: 4px solid var(--bg-dark);
        transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .mob-fab:active { transform: scale(0.9); }
}


/* Add this to style.css */
.footer-link-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    padding: 10px 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03); /* Faint dark gray background */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-link-btn:hover {
    color: #000;
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    transform: translateX(8px); /* Satisfying slide to the right */
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

/* Optional icon spacing if you put SVG icons in the footer buttons */
.footer-link-btn svg {
    margin-right: 8px;
    transition: transform 0.3s;
}
.footer-link-btn:hover svg {
    transform: scale(1.1);
}

/* 1. The Smooth Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* 2. The Cyber Glitch Effect (Branded Colors) */
@keyframes tech-glitch {
    0% { text-shadow: 0.05em 0 0 var(--white), -0.025em -0.05em 0 var(--accent-yellow), 0.025em 0.05em 0 #ef4444; }
    14% { text-shadow: 0.05em 0 0 var(--white), -0.025em -0.05em 0 var(--accent-yellow), 0.025em 0.05em 0 #ef4444; }
    15% { text-shadow: -0.05em -0.025em 0 var(--white), 0.025em 0.025em 0 var(--accent-yellow), -0.05em -0.05em 0 #ef4444; }
    49% { text-shadow: -0.05em -0.025em 0 var(--white), 0.025em 0.025em 0 var(--accent-yellow), -0.05em -0.05em 0 #ef4444; }
    50% { text-shadow: 0.025em 0.05em 0 var(--white), 0.05em 0 0 var(--accent-yellow), 0 -0.05em 0 #ef4444; }
    99% { text-shadow: 0.025em 0.05em 0 var(--white), 0.05em 0 0 var(--accent-yellow), 0 -0.05em 0 #ef4444; }
    100% { text-shadow: -0.025em 0 0 var(--white), -0.025em -0.025em 0 var(--accent-yellow), -0.025em -0.05em 0 #ef4444; }
}

/* 3. Applying Both to the 404 Text */
.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--accent-yellow);
    line-height: 1;
    margin-bottom: 20px;
    position: relative;
    /* Combine floating (smooth/infinite) and glitching (erratic) */
    animation: float 4s ease-in-out infinite, tech-glitch 2s infinite;
}

/* Optional: Add a pseudo-element for a brief "screen tear" effect */
.error-code::before,
.error-code::after {
    content: "404";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden;
    clip-path: polygon(0 20%, 100% 20%, 100% 30%, 0 30%);
    animation: tech-glitch 2.5s infinite reverse;
    z-index: -1;
}