/* ===== CSS Variables & Reset ===== */
:root {
    --bg-color: #0a0a0a;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --accent: #b2beb5; 
    --border: #333333;
    --card-bg: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] {
    --bg-color: #f0f2f5;
    --text-primary: #121212;
    --text-secondary: #555555;
    --accent: #6b7280; 
    --border: #d1d5db;
    --card-bg: rgba(0, 0, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Tactile Film Grain / Noise Overlay */
body::after {
    content: "";
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 9998; opacity: 0.04;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)"/%3E%3C/svg%3E');
}
[data-theme="light"] body::after { opacity: 0.08; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Global Transitions for theme switching */
.project-card, .testimonial-card, .tool-item, footer, nav, .btn, .project-image, .avatar {
    transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease, transform 0.3s ease;
}

/* ===== Interactive Canvas ===== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; 
    pointer-events: none; 
}

/* Make sure content sits on top of canvas */
.content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Typography & Layout Elements ===== */
h1, h2, h3 { font-weight: 600; line-height: 1.2; }
h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.highlight { font-weight: 800; color: var(--accent); transition: color 0.5s ease; }

a { color: var(--text-primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--text-secondary); }

.btn { display: inline-block; padding: 0.8rem 1.8rem; background: var(--text-primary); color: var(--bg-color); text-decoration: none; font-weight: 700; border-radius: 8px; transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease; }
.btn:hover { background: transparent; color: var(--accent); border: 1px solid var(--accent); box-shadow: 0 0 20px rgba(178, 190, 181, 0.2); transform: translateY(-3px); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.btn-outline:hover { background: var(--text-primary); color: var(--bg-color); border-color: var(--text-primary); box-shadow: none; }

section { padding: 6rem 10%; max-width: 1400px; margin: 0 auto; width: 100%; }
.section-header { margin-bottom: 4rem; text-align: center; }
.section-header p { color: var(--text-secondary); }

/* ===== Navigation ===== */
nav {
    position: fixed;
    top: 1.5rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    width: 90%;
    max-width: 1200px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 50px;
    z-index: 9000;
}
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; }
.nav-links { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-links li a { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.nav-controls { display: flex; align-items: center; gap: 1.5rem; z-index: 10002; }
.hamburger {
    display: none; flex-direction: column; justify-content: space-between;
    width: 28px; height: 20px; background: transparent; border: none; z-index: 10002;
}
.hamburger span {
    width: 100%; height: 2px; background-color: var(--text-primary);
    border-radius: 2px; transition: all 0.3s ease;
}

/* Minimal Theme Toggle Switch */
.minimal-toggle {
    width: 48px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 30px;
    position: relative;
    outline: none;
    display: flex;
    align-items: center;
    transition: background 0.3s ease, border-color 0.3s ease;
}
[data-theme="light"] .minimal-toggle {
    background: rgba(0, 0, 0, 0.05);
}
.minimal-toggle:hover {
    border-color: var(--text-primary);
}
.toggle-thumb {
    width: 16px;
    height: 16px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    border-radius: 50%;
    position: absolute;
    left: 3px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
[data-theme="light"] .toggle-thumb {
    transform: translateX(24px);
}

/* ===== Hero Section ===== */
.hero { display: flex; align-items: flex-start; justify-content: space-between; min-height: 100vh; gap: 4rem; flex-wrap: wrap; padding-top: 15vh; }
.hero-content { flex: 1; min-width: 300px; max-width: 600px; }
.hero h1 { font-size: 4rem; margin-bottom: 0.5rem; }
.hero h2 { font-size: 2rem; color: var(--text-secondary); font-weight: 400; margin-bottom: 1.5rem; }
.hero p { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 2.5rem; max-width: 600px; }
/* Hero Profile Card */
.hero-profile-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    gap: 1.5rem;
    min-width: 300px;
    max-width: 450px;
    margin: 0 auto;
}
.hero-profile-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px; /* Box frame */
    border: 1px solid var(--border);
    transition: border-color 0.4s ease;
}
.hero-profile-card:hover .hero-profile-img {
    border-color: var(--text-primary);
}
.hero-bio p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}
.hero-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}
.hero-detail-item {
    font-size: 1rem;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hero-detail-item .label {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}
.hero-detail-item .value {
    font-weight: 500;
    text-align: right;
}

@media (max-width: 768px) {
    .hero-profile-card { padding: 1.5rem; }
    .hero-profile-img { height: 250px; }
}

/* ===== Tools Logo Marquee ===== */
.marquee-wrapper {
    overflow: hidden;
    display: flex;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-content {
    display: flex;
    animation: scroll 25s linear infinite;
    width: max-content; 
}
.marquee-content:hover { animation-play-state: paused; }

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 120px;
    margin: 0 1.5rem;
    background: transparent;
    position: relative;
    z-index: 1;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease;
    gap: 0.5rem;
}
.tool-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s ease;
}
.tool-item.center-highlight .tool-name,
.tool-item:hover .tool-name {
    opacity: 1;
    color: var(--brand-color, var(--text-primary));
}

.tool-item::before {
    content: "";
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: var(--hover-glow, rgba(255, 255, 255, 0.1));
    filter: blur(15px);
    border-radius: 50%;
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}
.tool-item.center-highlight::before,
.tool-item:hover::before { width: 90%; height: 75%; }

.tool-item.center-highlight,
.tool-item:hover {
    filter: grayscale(0%) opacity(1);
}

.html-color { --brand-color: #E34F26; --hover-glow: rgba(227, 79, 38, 0.2); }
.css-color { --brand-color: #1572B6; --hover-glow: rgba(21, 114, 182, 0.2); }
.js-color { --brand-color: #F7DF1E; --hover-glow: rgba(247, 223, 30, 0.15); }
.ts-color { --brand-color: #3178C6; --hover-glow: rgba(49, 120, 198, 0.2); }
.react-color { --brand-color: #61DAFB; --hover-glow: rgba(97, 218, 251, 0.2); }
.nextjs-color { --brand-color: #888888; --hover-glow: rgba(136, 136, 136, 0.15); }
.tailwind-color { --brand-color: #06B6D4; --hover-glow: rgba(6, 182, 212, 0.2); }
.node-color { --brand-color: #339933; --hover-glow: rgba(51, 153, 51, 0.2); }
.python-color { --brand-color: #3776AB; --hover-glow: rgba(55, 118, 171, 0.2); }
.figma-color { --brand-color: #F24E1E; --hover-glow: rgba(242, 78, 30, 0.2); }
.mongodb-color { --brand-color: #47A248; --hover-glow: rgba(71, 162, 72, 0.2); }
.mysql-color { --brand-color: #4479A1; --hover-glow: rgba(68, 121, 161, 0.2); }

[data-theme="light"] .nextjs-color { --brand-color: #000000; --hover-glow: rgba(0, 0, 0, 0.1); }

.tool-item i { font-size: 3.5rem; transition: color 0.3s ease; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Typing Cursor */
.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--text-primary);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
    vertical-align: text-bottom;
    height: 1em;
}
/* ===== Scroll Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.project-card.active:hover, .testimonial-card.active:hover {
    transform: translateY(-10px);
    transition: transform 0.3s ease, background-color 0.5s ease, border-color 0.5s ease !important;
}

/* ===== Preloader ===== */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader-content { text-align: center; }
.loader-counter { font-size: 5rem; font-weight: 800; color: var(--text-primary); margin-bottom: 1rem; }
.loader-text { font-size: 1rem; text-transform: uppercase; letter-spacing: 4px; color: var(--text-secondary); }
body.loaded #preloader { opacity: 0; visibility: hidden; }
body.loading { overflow: hidden; }

/* ===== Custom Cursor ===== */
@media (pointer: fine) {
    body { cursor: none; }
    .cursor-dot {
        position: fixed; top: 0; left: 0; width: 8px; height: 8px;
        background: var(--accent); border-radius: 50%;
        box-shadow: 0 0 10px var(--accent);
        pointer-events: none; z-index: 10000;
        transform: translate(-50%, -50%);
        transition: width 0.2s ease, height 0.2s ease;
    }
    .cursor-outline {
        position: fixed; top: 0; left: 0; width: 40px; height: 40px;
        border: 2px solid var(--text-secondary); border-radius: 50%;
        pointer-events: none; z-index: 9999;
        transform: translate(-50%, -50%);
        transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    }
    .cursor-outline.expand {
        width: 70px; height: 70px;
        background: rgba(255,255,255,0.05);
        border-color: var(--text-primary);
    }
    [data-theme="light"] .cursor-outline.expand { background: rgba(0,0,0,0.05); }
    a, button, .project-card, .theme-toggle, .close-modal { cursor: none; }
}

/* ===== Project Modal ===== */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5000; display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}
.modal.active { opacity: 1; pointer-events: auto; }
.modal-backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
}
.modal-content {
    position: relative; background: var(--card-bg);
    border: 1px solid var(--border); border-radius: 20px;
    padding: 3rem; width: 90%; max-width: 600px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateY(40px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5001; text-align: center;
}
.modal.active .modal-content { transform: translateY(0) scale(1); }
#modal-image { display: flex; align-items: center; justify-content: center; border-radius: 12px; overflow: hidden; height: 250px; margin-bottom: 2rem; background: var(--border); }
#modal-image { display: flex; align-items: center; justify-content: center; border-radius: 12px; overflow: hidden; background: var(--border); }
.close-modal {
    position: absolute; top: 1.5rem; right: 1.5rem;
    font-size: 2.5rem; color: var(--text-secondary);
    transition: color 0.3s ease; line-height: 1;
}
.close-modal:hover { color: var(--text-primary); }

@keyframes blink { 50% { opacity: 0; } }

/* ===== Services Section ===== */
.services-grid { display: flex; flex-wrap: wrap; gap: 2rem; }
.service-card {
    flex: 1 1 240px;
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px;
    padding: 2.5rem 2rem; transition: transform 0.3s ease, border-color 0.5s ease, background-color 0.5s ease;
    cursor: none; /* For custom cursor */
}
.service-card:hover { transform: translateY(-10px); border-color: var(--text-primary); }
.service-number {
    font-size: 3.5rem; font-weight: 800; color: var(--border);
    margin-bottom: 1rem; line-height: 1; transition: color 0.4s ease;
}
.service-card:hover .service-number { color: var(--text-primary); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.8rem; }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* ===== Projects Section ===== */
.projects-grid { display: flex; flex-wrap: wrap; gap: 3rem; }
.project-card {
    flex: 1 1 300px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg);
}
.project-card:hover { transform: translateY(-10px); }
.project-image {
    width: 100%; height: 250px; background: rgba(0,0,0,0.05); 
    display: flex; align-items: center; justify-content: center;
    color: var(--border); font-weight: 600; font-size: 1.2rem;
}
[data-theme="light"] .project-image { background: rgba(0,0,0,0.03); }
.project-image img, #modal-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-image img { transform: scale(1.05); }
.project-info { padding: 2rem; }
.project-info h3 { margin-bottom: 0.5rem; }
.project-info p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.project-link { font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }

/* ===== Testimonials Section ===== */
.testimonials-grid { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.testimonial-card {
    flex: 1 1 300px;
    padding: 2.5rem; border: 1px solid var(--border); border-radius: 8px; background: var(--card-bg);
    display: flex; flex-direction: column; justify-content: space-between;
}
.quote { font-size: 1.1rem; font-style: italic; color: var(--text-primary); margin-bottom: 2rem; }
.author { display: flex; align-items: center; gap: 1rem; }
.avatar {
    width: 50px; height: 50px; border-radius: 50%; background: var(--text-primary); color: var(--bg-color);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem;
}
.author-info h4 { font-size: 1rem; margin-bottom: 0.1rem; }
.author-info span { font-size: 0.85rem; color: var(--text-secondary); }

/* ===== Review Submission Form ===== */
.review-submission-form {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}
.form-input {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}
[data-theme="light"] .form-input {
    background: rgba(0, 0, 0, 0.03);
}
.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .form-input:focus {
    background: rgba(0, 0, 0, 0.06);
}
.form-input::placeholder {
    color: var(--text-secondary);
}

/* ===== Oversized Footer ===== */
.oversized-footer {
    padding: 10rem 5% 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}
.massive-text {
    font-size: 9vw;
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -3px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0;
}
.massive-btn {
    font-size: 1.5rem;
    padding: 1.2rem 3rem;
    border-radius: 50px;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom .social-links {
    display: flex;
    gap: 2rem;
}
.footer-bottom .social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-bottom .social-links a:hover {
    color: var(--accent);
}
.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero h2 { font-size: 1.5rem; }
    .hero-profile-card { padding: 1.5rem; }
    .hero-profile-img { height: 250px; }
    
    .hamburger { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: var(--bg-color); flex-direction: column;
        justify-content: center; align-items: center;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 10000;
    }
    .nav-links.open { right: 0; }
    .nav-links li { margin: 1.5rem 0; }
    .nav-links li a { font-size: 1.5rem; }
    
    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    section { padding: 4rem 5%; }
}









/* ===== Contact Dropdown ===== */
.contact-dropdown-wrapper {
    position: relative;
    display: inline-block;
}
/* The invisible hit area that bridges the gap */
.contact-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 15px; /* Creates the safe hover bridge */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}
.contact-dropdown-wrapper.open .contact-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
/* The actual visible box */
.contact-dropdown-inner {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    min-width: 240px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.contact-dropdown-inner a {
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s ease, color 0.3s ease;
}
.contact-dropdown-inner a:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

/* ===== Contacts Button Arrow ===== */
.massive-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.dropdown-arrow {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.8em;
}
.contact-dropdown-wrapper.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* ===== Extensive Mobile Optimization ===== */
@media (max-width: 768px) {
    /* Navbar Adjustment */
    nav {
        padding: 0.8rem 1.2rem;
        width: 95%;
    }
    .logo {
        font-size: 1.25rem;
    }
    
    /* Hero Adjustments */
    .hero {
        gap: 2rem;
        padding-top: 15vh;
        min-height: auto;
    }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }
    
    /* Modal Adjustment */
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    #modal-image {
        height: 200px; /* slightly smaller on mobile */
    }
    
    /* Oversized Footer Adjustments */
    .oversized-footer {
        padding: 6rem 5% 2rem;
    }
    .massive-text {
        font-size: 14vw; /* keep it massive on narrow screens */
        letter-spacing: -1px;
    }
    .massive-btn {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }
    
    /* Footer bottom elements */
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        margin-top: 4rem;
        text-align: center;
    }
    .footer-bottom .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ===== Mobile Menu Open State Fix ===== */
@media (max-width: 768px) {
    nav.menu-open {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: transparent;
        border-color: transparent;
        /* we need the nav links to escape the containing block */
        transform: none; 
    }
}

