:root {
    /* "Cool Steel & Ice" Palette (Matches Logo) */
    /* Base Backgrounds (Deep Slate/Navy) */
    --bg-color: #0B1120;
    /* Deep Midnight Slate */
    --bg-secondary: #0f172a;
    /* Lighter Navy Surface */
    --card-bg: rgba(15, 23, 42, 0.6);
    /* Glass-ready Slate */

    /* Text */
    --text-color: #f8fafc;
    /* Crisp White/Ice */
    --text-muted: #94a3b8;
    /* Cool Grey */

    /* Accents (Matching Logo: Blue/Purple) */
    --accent-color: #38bdf8;
    /* Electric Sky Blue */
    --accent-hover: #0ea5e9;
    /* Deep Sky Blue */
    --accent-secondary: #818cf8;
    /* Indigo/Purple for gradients */
    --accent-warm: #F59E0B;
    /* True Amber (Golden) */

    /* Borders & Effects */
    --border-color: #1e293b;
    --glass-border: rgba(56, 189, 248, 0.1);
    /* Subtle Blue Tint */
    --glow-color: rgba(56, 189, 248, 0.25);

    /* Gradients */
    /* Vibrant "Aurora" - Bright enough to show through glass */
    --gradient-hero:
        radial-gradient(circle at 50% -10%, rgba(56, 189, 248, 0.25) 0%, rgba(129, 140, 248, 0.15) 30%, rgba(11, 17, 32, 0) 70%),
        radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.08) 0%, rgba(11, 17, 32, 0) 50%);

    /* Typography */
    --font-main: 'Inter',
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    /* Spacing */
    --container-width: 1000px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 404 Page Styles */
.error-container {
    min-height: 80vh;
    padding-top: 14rem;
    /* Clear fixed header */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(180deg, #fff 0%, #333 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    border-color: var(--accent-warm);
    background: rgba(245, 158, 11, 0.1);
}

/* Grid Background & Northern Lights Gradient */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Combine Grid and Gradient in one fixed layer */
    /* Combine Grid and Gradient in one fixed layer */
    background:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        var(--gradient-hero);
    /* Add the blue glow here */
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
    background-repeat: repeat, repeat, no-repeat, no-repeat;
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    color: white;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Subtle depth */
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 500;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
    /* For absolute positioned visuals */
}

/* Schematic / Technical Visuals */
.schematic-bg {
    position: relative;
}

.schematic-bg::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background:
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 40px 100%;
    opacity: 0.1;
    pointer-events: none;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* Glass Tech Tags */
.tech-item {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Glass Rim */
    background: rgba(30, 41, 59, 0.3);
    /* Glass Base */
    backdrop-filter: blur(12px) saturate(150%);
    /* Subtle Glass */
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: monospace;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 8px;
    /* Smooth corners */
}

.tech-item:hover {
    border-color: var(--accent-warm);
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
}

/* Engineering Log / Timeline */
.engineering-log {
    border-left: 2px solid var(--border-color);
    padding-left: 2rem;
    margin-top: 2rem;
}

.log-entry {
    position: relative;
    margin-bottom: 3rem;
}

.log-entry::before {
    content: "";
    position: absolute;
    left: -2.35rem;
    /* center on line */
    top: 0.4rem;
    width: 10px;
    height: 10px;
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
}

.log-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-family: monospace;
    margin-bottom: 0.5rem;
    display: block;
}

.log-entry h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}


/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.8rem 1.25rem;
    /* Comfier padding */
    background: linear-gradient(145deg, rgba(8, 12, 24, 0.6) 0%, rgba(15, 23, 42, 0.5) 100%);
    /* Solid, deep base */
    backdrop-filter: blur(60px) saturate(200%);
    /* Maximum Frost */
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtler border */
    border-radius: 16px;
    /* Matches tech items */
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    /* Deep carved look */
}

input:hover,
textarea:hover,
select:hover {
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(56, 189, 248, 0.1);
    /* Soft outer glow */
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    background:
        linear-gradient(145deg, rgba(8, 12, 24, 0.9) 0%, rgba(15, 23, 42, 0.8) 100%) padding-box,
        linear-gradient(90deg, #38bdf8 0%, #F59E0B 100%) border-box;
    border: 1px solid transparent;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* =========================================
   Final Polish: Selection & Scrollbar
   ========================================= */

::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0B1120;
    border-left: 1px solid #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
    border: 2px solid #0B1120;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-warm);
}

/* Fix for Select Options (Browser Native Dropdown) */
select option {
    background-color: var(--bg-secondary);
    color: white;
}

/* Header */
/* Main Navigation: Matched Glass */
/* Main Navigation: Absolute Fixed Top - High Vibrancy */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    /* Reduced to balance larger logo */
    position: absolute;
    /* Fixed to document top, scrolls away */
    /* Fixed to document top, scrolls away */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    margin: 0;
    /* No margin needed */
    background: rgba(11, 17, 32, 0.5);
    /* More translucent to let colors pop */
    backdrop-filter: blur(50px) saturate(300%);
    /* Hyper-Vibrant */
    -webkit-backdrop-filter: blur(50px) saturate(300%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Slightly brighter border */
}

/* Remove gradient mask to ensure consistent background match */
.main-nav::before {
    content: none;
}

.hamburger {
    display: none;
    /* Hidden on desktop */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 65px;
    /* Increased for better presence */
    width: auto;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.95rem;
}

.nav-links a {
    color: var(--text-muted);
}

.nav-links a:hover {
    color: white;
}

/* Hero */
/* Hero */
/* Hero */
.hero {
    /* Adjusted top padding for sleek header (approx 100px) */
    padding-top: 8rem;
    padding-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    /* Background moved to body::before for global consistency */
    background: transparent;
}

.hero-content {
    max-width: 680px;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 540px;
    line-height: 1.5;
}

/* Buttons */
.btn-group {
    display: flex;
    gap: var(--spacing-sm);
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #0f172a;
    /* Dark text on bright blue */
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--glass-border);
    color: var(--text-color);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-color);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.05) 100%);
    border: 1px solid var(--accent-warm);
    color: var(--accent-warm);
    backdrop-filter: blur(10px);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.btn-accent:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.15) 100%);
    border-color: #fbbf24;
    color: #fbbf24;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

/* Sections */
/* Page Headers (Privacy/Terms) */
.page-header {
    padding-top: 8rem;
    padding-bottom: 2rem;
    max-width: 800px;
}

.section-header {
    margin-bottom: 3rem;
}

.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-warm);
    margin-bottom: 1rem;
    display: block;
    font-weight: 600;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Apple-Style Glassmorphism Cards */
/* Apple-Style Glassmorphism Cards - Ultimate Depth & Vibrancy */
.card {
    background: linear-gradient(145deg, rgba(40, 50, 80, 0.4) 0%, rgba(20, 25, 40, 0.3) 100%);
    /* Dynamic Sheen */
    backdrop-filter: blur(50px) saturate(300%);
    /* Hyper-Vibrant */
    -webkit-backdrop-filter: blur(50px) saturate(300%);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    /* Crisper, brighter edge */
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    /* The "Thick Glass" Look: Inset Top Light + Deep Drop Shadow */
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
        0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.card:hover {
    background-color: rgba(30, 41, 59, 0.6);
    border-color: rgba(56, 189, 248, 0.3);
    /* Blue tint on hover */
    transform: translateY(-4px);
    /* Higher lift */
    box-shadow:
        0 20px 40px -5px rgba(0, 0, 0, 0.2),
        0 10px 20px -5px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(56, 189, 248, 0.3),
        /* Outer glow ring */
        inset 0 0 20px rgba(56, 189, 248, 0.1);
    /* Inner glow */
}

/* Specific styling for project Tech Items */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-color);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-warm);
    transform: translateY(-1px);
}

.card::before {
    /* Subtle inner sheen */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* "How We Work" items */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.process-item h3 {
    color: var(--accent-warm);
    margin-bottom: 0.5rem;
}

.process-divider {
    height: 1px;
    background: linear-gradient(90deg, var(--border-color) 0%, transparent 100%);
    width: 100%;
    margin-bottom: 1.5rem;
    margin-bottom: 0.5rem;
}

.process-number {
    width: 40px;
    height: 40px;
    background: var(--accent-warm);
    color: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Credibility Badge */
.credibility-section {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.credibility-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.credibility-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-warm);
    border-radius: 50%;
}

/* Footer */
footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-lg);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

/* Project Status */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-warm);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

/* Page Header (Privacy/Terms) */
.page-header {
    text-align: center;
    padding-top: 12rem;
    /* Clear fixed navbar */
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Helper Class for Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 4rem 0;
    }

    .hero {
        padding-top: 6rem;
    }

    .page-header {
        padding-top: 10rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .credibility-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 600px;
    background: rgba(19, 21, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    z-index: 1000;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#cookie-banner.visible {
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cookie-content a {
    color: var(--accent-warm);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}

/* =========================================
   Responsive Navigation (Mobile/Tablet)
   ========================================= */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hamburger {
    /* Display is handled by media query below */
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

/* Hamburger Animation (X shape) */
.hamburger.open span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.open span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Mobile Styling */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
        /* Prevent horizontal scroll/zoom-out revealing menu */
    }

    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    /* Navbar Changes */
    .main-nav {
        /* Reduce padding to match desktop sleekness */
        padding: 0.75rem 1rem;
    }

    /* Ensure content clears the header on mobile */
    .hero,
    .contact-section,
    .error-container {
        padding-top: 10rem;
    }

    .hamburger {
        display: block;
        /* Show hamburger */
        position: relative;
        /* Respect flex flow */
        margin-left: auto;
        /* Push to right */
        /* Force dimensions with !important to override any browser anomalies/cache issues */
        width: 30px !important;
        max-width: 30px !important;
        height: 20px !important;
        flex: 0 0 30px !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        /* Position at right edge, but transform it off-screen */
        transform: translateX(100%);
        width: 75%;
        height: 100vh;
        background: rgba(11, 13, 16, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        /* Use transform for performant sliding */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
        z-index: 1000;
        box-shadow: -10px 0 20px rgba(0, 0, 0, 0.5);
        border-left: 1px solid var(--border-color);
        margin: 0;
        padding: 0;
        visibility: hidden;
        /* Hide completely when closed */
    }

    .nav-links.active {
        /* Slide in */
        transform: translateX(0);
        visibility: visible;
    }


    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        font-size: 1.5rem;
        font-weight: 500;
        display: block;
        padding: 1rem;
    }

    .tech-grid {
        justify-content: center;
    }
}