:root {
    --bg-color: #0c0c0c;
    --text-primary: #e2e2e2;
    --text-secondary: #888888;
    --accent-color: #ffffff;
    --card-bg: #161616;
    --border-color: #2a2a2a;

    --font-heading: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --transition: cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s;

    /* Service Colors */
    --color-01: #0A84FF;
    --color-02: #30D158;
    --color-03: #BF5AF2;
    --color-04: #FF9F0A;
    --color-05: #FF453A;
    --color-06: #64D2FF;
    --color-07: #32D74B;
    --color-08: #FFD60A;
    --color-09: #5E5CE6;
    --color-10: #ffffff;
}

/* Base Setup & Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Typography Utilities */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--accent-color);
}

.serif-italic {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.max-width-small {
    max-width: 600px;
}

.section {
    padding: 8rem 0;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 100;
    background: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ... existing styles ... */

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1002;
    /* Ensure toggle is always on top of menu */
}

/* ... existing styles ... */

/* Responsive Overrides */
@media (max-width: 768px) {
    /* ... previous overrides ... */

    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    /* Fullscreen Mobile Menu */
    .nav-links.open {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        /* Ensure solid color */
        padding: 2rem;
        gap: 2rem;
        z-index: 1000;
        /* Below toggle but above content */
        opacity: 0.98;
        /* Slight transparency for texture but opaque enough for text */
    }

    .nav-links.open::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--bg-color);
        z-index: -1;
    }

    /* ... rest of overrides ... */
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    /* mix-blend-mode handles contrast */
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    color: white;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 1;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.bar {
    width: 30px;
    height: 2px;
    background-color: white;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 10vh;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(var(--color-01), 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.overline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #8a8a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-chips {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.chip {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.chip-ads .chip-dot { background: var(--color-05); box-shadow: 0 0 10px var(--color-05); }
.chip-tech .chip-dot { background: var(--color-08); box-shadow: 0 0 10px var(--color-08); }

.hero-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.intro-text {
    max-width: 400px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.scroll-indicator {
    color: var(--accent-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Bento Grid System */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: var(--font-body);
    color: var(--text-secondary);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    grid-auto-flow: dense;
    /* Helps fill gaps */
}

/* Bento Item Variations */
@media (min-width: 768px) {
    .span-2 {
        grid-column: span 2;
    }

    .row-2 {
        grid-row: span 2;
    }
}

.bento-item {
    background-color: rgba(22, 22, 22, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    min-height: 300px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.bento-item:hover {
    border-color: var(--service-color, var(--text-secondary));
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px var(--service-color, rgba(255,255,255,0.1));
}

.card-visual {
    position: relative;
    z-index: 2;
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--service-color);
    margin-bottom: 2rem;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.bento-item h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.bento-item p {
    color: var(--text-secondary);
    max-width: 90%;
}

.tags {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.tags span {
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
}

.card-glow {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: var(--service-color);
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
    transition: var(--transition);
    pointer-events: none;
    z-index: 1;
}

.bento-item:hover .card-glow {
    opacity: 0.3;
    transform: scale(1.2);
}

/* About Section */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-title h2 {
    font-size: 4rem;
}

.about-desc p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.stats-grid {
    display: flex;
    gap: 4rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Contact Form */
.contact-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.contact-text {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    color: var(--accent-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
}

.btn-submit {
    margin-top: 1rem;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: #cccccc;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials {
    display: flex;
    gap: 2rem;
}

.socials a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.socials a:hover {
    color: var(--accent-color);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    width: 90%;
    max-width: 500px;
    background: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.05) inset;
    overflow: hidden;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 2rem 1.5rem;
}

.modal-title {
    font-size: 1.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.2;
    padding-right: 1rem;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.modal-body {
    padding: 0 2rem 2.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal-price {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    font-weight: 600;
}

.price-value {
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* Animation Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

/* Responsive Overrides */
/* Responsive Overrides */
@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .hero {
        min-height: auto;
        padding-top: 15vh;
        padding-bottom: 5vh;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-footer {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-title h2 {
        font-size: 2.5rem;
    }

    .stats-grid {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
        /* Above the menu */
    }

    .bar {
        background-color: white;
        /* Ensure bars are visible */
    }

    .nav-links {
        display: none;
    }

    /* Fullscreen Mobile Menu */
    .nav-links.open {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #0c0c0c;
        /* Hardcoded opaque color just in case */
        padding: 2rem;
        gap: 2rem;
        z-index: 1000;
        opacity: 1;
        /* Fully opaque */
    }

    .nav-links.open a {
        font-size: 1.5rem;
        color: white;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item {
        min-height: 250px;
    }

    .span-2,
    .row-2 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}