:root {
    --bg: #ffffff;
    --text: #000000;
    --accent: #000000;
    --grid-line: #f0f0f0;
    --font-heading: 'Lato', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1400px;
}

::selection {
    background: #000;
    color: #fff;
}

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

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

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

/* Smooth Scrollbar Container */
#content-scroll {
    width: 100%;
    height: 100vh;
    overflow: auto;
}

/* When smooth scroll is active, hide native scrollbar */
body.smooth-scroll {
    overflow: hidden;
}

body.smooth-scroll #content-scroll {
    overflow: hidden;
}

/* ============================================
   PRELOADER
   ============================================ */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 3rem;
}

.preloader.loaded {
    pointer-events: none;
}

.preloader.loaded .preloader-fill {
    transform: translateY(-100%);
}

/* Black fill that rises up */
.preloader-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
    z-index: 1;
}

.preloader.filling .preloader-fill {
    transform: translateY(0%);
}

.preloader-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    color: #000;
    transition: color 0.3s ease;
}

.preloader.filling .preloader-content {
    color: #fff;
}

/* Counter - big number */
.preloader-counter {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* Loading text */
.preloader-text {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Animated dots */
.preloader-dots {
    display: flex;
    gap: 4px;
    margin-top: 0.5rem;
}

.preloader-dots span {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.3;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.preloader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.preloader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {

    0%,
    60%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    30% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ============================================
   CUSTOM CURSOR SYSTEM
   ============================================ */

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 2px solid #000;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition:
        width 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
        height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
        border-color 0.3s ease,
        background-color 0.3s ease,
        opacity 0.3s ease;
    will-change: transform;
    background: transparent;
}

.cursor-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Cursor hover states */
.cursor.is-hovering {
    width: 70px;
    height: 70px;
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.03);
}

.cursor.is-hovering .cursor-dot {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.cursor.is-clicking {
    transform: translate(-50%, -50%) scale(0.85);
}

/* Hide default cursor on desktop */
body:not(.is-mobile) {
    cursor: none !important;
}

body:not(.is-mobile) a,
body:not(.is-mobile) button,
body:not(.is-mobile) [role="button"] {
    cursor: none !important;
}

/* Hide custom cursor on mobile */
.is-mobile .cursor {
    display: none !important;
}

/* Restore default cursor on mobile */
.is-mobile {
    cursor: auto;
}

.is-mobile a,
.is-mobile button {
    cursor: pointer;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: capitalize;
    /* Changed from Uppercase to Capitalize or Normal for Lato to shine */
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.mega-text {
    font-size: clamp(3.5rem, 8vw, 8rem);
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 900;
    text-transform: none;
    /* Override heading capitalize */
    mix-blend-mode: exclusion;
    color: #000;
    /* Ensure visibility */
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 2px #000;
    /* Use black stroke */
    /* If mix-blend-mode exclusion is active on parent, stroke might need adjustment or parent needs adjustment */
    mix-blend-mode: normal;
}

/* Fix for mix-blend-mode on white bg */
.reveal-text .mega-text {
    mix-blend-mode: normal;
    color: #000;
}

/* Text Magnifier Characters */
.mag-char {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    transform-origin: center center;
}

/* Per-Letter Hero Text */
.text-line {
    display: block;
}

.char {
    display: inline-block;
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
    position: relative;
    color: transparent;
    -webkit-text-stroke: 2px #000;
    transform-origin: center center;
    cursor: default;
}

/* Fill layer - animates opacity */
.char::before {
    content: attr(data-char);
    position: absolute;
    left: 0;
    top: 0;
    color: #000;
    -webkit-text-stroke: 0;
    opacity: var(--fill-opacity, 1);
    transition: opacity 0.8s ease;
    pointer-events: none;
}

/* Outlined letters start empty */
.outline-char::before {
    --fill-opacity: 0;
}

/* Filled state for outlined letters on hover */
.filled-char::before {
    --fill-opacity: 1 !important;
}

/* Empty state for solid letters on hover */
.emptied-char::before {
    --fill-opacity: 0 !important;
}

.section-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    display: inline-block;
}

/* Layout Architecture */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0 2rem;
    gap: 2rem;
}

.grid-line {
    width: 1px;
    height: 100%;
    background: var(--grid-line);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation - Floating minimalist */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    /* Light blur background for readability */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    text-decoration: none;
    color: #000;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 8rem;
    padding-bottom: 4rem;
    margin-bottom: 4rem;
    position: relative;
}

.hero-sub {
    font-size: 1.25rem;
    max-width: 600px;
    margin-top: 3rem;
    color: #444;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    align-items: center;
}

.btn-solid {
    background: #000;
    color: #fff;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-solid:hover {
    background: #333;
    transform: translateY(-2px);
}

.btn-outline {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    writing-mode: vertical-rl;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    animation: bounce 2s infinite;
}

/* Marquee Effect */
.marquee-container {
    overflow: hidden;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    padding: 2rem 0;
    margin: 0;
    white-space: nowrap;
    background: #000;
    color: #fff;
    transform: rotate(0deg);
    /* Straightened for this version to be cleaner */
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 4rem;
    margin-right: 6rem;
    text-transform: uppercase;
    -webkit-text-stroke: 1px #fff;
    color: transparent;
    /* Outline style in marquee */
}

.marquee-item:hover {
    color: #fff;
    -webkit-text-stroke: 0;
    cursor: default;
}


/* Sections */
.section-padding {
    padding: 8rem 0;
}

/* Unique Grid Layout for Projects/Services */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Brutalist Cards */
.card {
    border: 1px solid #e5e5e5;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    background: #fff;
    min-height: 450px;
    /* Taller cards */
}

/* Hover effect */
.card:hover {
    border-color: #000;
    box-shadow: 10px 10px 0px 0px #000;
    transform: translate(-5px, -5px);
}

.card-lg {
    grid-column: span 2;
}

.card-md {
    grid-column: span 1;
}

.card-num {
    font-family: var(--font-heading);
    font-size: 5rem;
    opacity: 0.05;
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-weight: 900;
}

.card h3 {
    font-size: 2.5rem;
    margin-top: auto;
    margin-bottom: 1rem;
    line-height: 1;
}

.card p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.card ul {
    list-style: none;
    margin-top: 1.5rem;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    border: 1px solid currentColor;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-weight: 600;
}

/* Featured App Section */
.featured-app {
    background: #111;
    color: #fff;
    padding: 8rem 2rem;
    position: relative;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
}

.app-visual {
    width: 100%;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
}

.app-visual img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.app-visual:hover img {
    filter: grayscale(0%);
}

/* Testimonials */
.testimonial-block {
    margin-bottom: 4rem;
}

.quote {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.author {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* Footer structure update */
.mega-footer {
    border-top: 2px solid #000;
    padding-top: 6rem;
    padding-bottom: 4rem;
    background: #fff;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6rem;
}

.footer-heading {
    font-size: 5rem;
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-top: 1rem;
}

.contact-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 1.5rem 3rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #000;
}

.contact-btn:hover {
    background: #fff;
    color: #000;
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
}

.footer-bottom .col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom h5 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: #999;
}

.footer-bottom a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.footer-bottom .end {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
}

/* Utilities & Mobile */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card-lg,
    .card-md {
        grid-column: span 1;
    }

    .featured-content {
        grid-template-columns: 1fr;
    }

    .mega-text {
        font-size: 4rem;
    }

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

    .footer-heading {
        font-size: 3.5rem;
    }

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

    .footer-bottom .end {
        text-align: left;
    }

    .product-card.featured-layout {
        grid-template-columns: 1fr;
    }

    .product-card.featured-layout.reverse .product-visual {
        order: -1;
    }

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

    .apps-grid {
        grid-template-columns: 1fr !important;
    }

    /* Footer Layout Update for Mobile */
    .footer-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

/* New Component Styles */

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 4rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    font-weight: 600;
}

/* Updated Product Card Layout */
.product-card.featured-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: #fff;
    border: 1px solid #111;
    /* Slight border for B&W feel */
    overflow: hidden;
}

.product-card.featured-layout.reverse {
    direction: rtl;
    /* Tricky way to swap columns for desktop, but flex is safer. Let's use order */
    grid-template-columns: 1fr 1fr;
    direction: ltr;
    /* Reset */
}

.product-card.featured-layout.reverse .product-info {
    order: 2;
    /* Visual needs to be left */
}

.product-card.featured-layout.reverse .product-visual {
    order: 1;
}

.product-info {
    padding: 4rem;
}

.product-visual {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.product-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-visual img {
    transform: scale(1.05);
}

/* ============================================
   APP SHOWCASE (Bold-style horizontal layout)
   ============================================ */

.app-showcase {
    padding: 6rem 0;
    background: #fff;
}

.app-showcase:nth-child(odd) {
    background: #fafafa;
}

.app-showcase-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Reversed layout: image on right */
.app-showcase--reversed .app-showcase-inner {
    direction: rtl;
}

.app-showcase--reversed .app-showcase-image,
.app-showcase--reversed .app-showcase-content {
    direction: ltr;
}

/* Image container */
.app-showcase-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.app-showcase-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.app-showcase:hover .app-showcase-image img {
    transform: scale(1.02);
}

/* Content */
.app-showcase-content {
    padding: 2rem 0;
}

.app-showcase-content h3 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.app-showcase-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Features list */
.app-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.app-features li {
    background: #f0f0f0;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
}

/* Mobile responsiveness */
@media (max-width: 900px) {
    .app-showcase-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .app-showcase--reversed .app-showcase-inner {
        direction: ltr;
    }

    .app-showcase-content {
        order: 2;
    }

    .app-showcase-image {
        order: 1;
    }

    .app-showcase-content h3 {
        font-size: 2rem;
    }

    .app-features {
        justify-content: center;
    }

    .app-showcase-content .btn-solid,
    .app-showcase-content .btn-outline {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

.badge {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 0.25rem 0.75rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.product-desc {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 3rem;
    color: #888;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    gap: 2rem;
}

.portfolio-item {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.grayscale-hover img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.grayscale-hover:hover img {
    filter: grayscale(0%);
}

/* Nav Button */
.nav-btn-black {
    background: #000;
    color: #fff !important;
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.85rem !important;
    transition: transform 0.2s ease;
}

.nav-btn-black:hover {
    transform: translateY(-2px);
    color: #fff !important;
}

.nav-btn-black::after {
    display: none;
    /* Remove underline effect */
}


/* Support Cards */
.support-card {
    padding: 2rem;
    border: 1px solid #ddd;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.support-card:hover {
    border-color: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 1rem 2rem;
    z-index: 1000;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   MOBILE RESPONSIVE - 768px and below
   ============================================ */

/* ============================================
   MOBILE HAMBURGER MENU
   ============================================ */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #000;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* X icon stays black for white drawer */
.mobile-menu-toggle.active span {
    background: #000;
}

@media (max-width: 768px) {
    
    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Navigation */
    .nav-bar {
        padding: 1rem 1.5rem;
        flex-wrap: nowrap;
    }

    /* Slide-out drawer from right */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        padding: 100px 30px 40px;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 998;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.1rem;
        font-weight: 500;
        color: #000 !important;
        padding: 16px 0;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-links a:hover {
        color: #666 !important;
    }

    .nav-links a::after {
        display: none;
    }

    /* App Store button in drawer */
    .nav-links .nav-btn-black {
        background: #000 !important;
        color: #fff !important;
        padding: 14px 24px !important;
        font-size: 0.95rem !important;
        margin-top: 24px;
        width: 100%;
        text-align: center;
        border-radius: 50px;
        border-bottom: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .nav-links .nav-btn-black:hover {
        background: #333 !important;
        color: #fff !important;
    }

    /* Hamburger button */
    .mobile-menu-toggle {
        z-index: 1000 !important;
        position: relative;
    }

    /* Dark overlay when menu is open */
    .nav-links::before {
        content: '';
        position: fixed;
        top: 0;
        right: 280px;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-links.active::before {
        opacity: 1;
        pointer-events: auto;
    }

    /* ==========================================
       HERO SECTION - CRITICAL FIX
       ========================================== */
    .hero-section {
        min-height: auto !important;
        padding-top: 100px !important;  /* Account for fixed nav */
        padding-bottom: 60px !important;
        margin-bottom: 0 !important;
    }
    
    .reveal-text {
        margin-bottom: 20px;
    }

    .mega-text {
        font-size: 3rem !important;
        line-height: 1.05 !important;
    }

    .text-line-studio {
        display: block;
    }

    .studio-space {
        display: none;
    }

    .hero-sub {
        font-size: 0.95rem !important;
        margin-top: 20px !important;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        margin-top: 24px !important;
    }

    .scroll-indicator {
        display: none !important;
    }

    /* ==========================================
       MARQUEE - ADD SPACING
       ========================================== */
    .marquee-container {
        padding: 20px 0 !important;
        margin-top: 0 !important;
        margin-bottom: 50px !important;
    }
    
    .marquee-item {
        font-size: 1.5rem;
        margin-right: 2rem;
    }

    /* ==========================================
       ALL SECTIONS - FORCE SPACING
       ========================================== */
    .section-padding {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* Section Intros */
    .section-intro {
        margin-bottom: 30px !important;
    }
    
    .section-intro h2,
    .section-intro__heading,
    .section-intro__heading--large {
        font-size: 1.6rem !important;
    }
    
    .section-intro--portfolio {
        font-size: 1.5rem !important;
        margin-bottom: 24px !important;
    }

    /* ==========================================
       PRODUCTS SECTION
       ========================================== */
    #products {
        padding-top: 50px !important;
        padding-bottom: 30px !important;
    }
    
    #products .section-intro {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* App Showcase */
    .app-showcase {
        padding: 40px 0 !important;
    }
    
    .app-showcase-content h3 {
        font-size: 1.4rem;
    }
    
    .app-showcase-content p {
        font-size: 0.95rem;
    }

    /* ==========================================
       PORTFOLIO SECTION
       ========================================== */
    .portfolio-section,
    #portfolio {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
        margin-top: 0 !important;
    }
    
    .portfolio-grid {
        gap: 20px !important;
    }

    /* ==========================================
       SERVICES SECTION
       ========================================== */
    #services {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .bento-grid {
        gap: 20px !important;
    }
    
    .card {
        min-height: 280px !important;
        padding: 24px !important;
    }
    
    .card h3 {
        font-size: 1.4rem !important;
    }
    
    .card__title--large {
        font-size: 1.75rem !important;
        margin-top: 16px !important;
    }
    
    .card p {
        font-size: 0.95rem;
    }

    /* ==========================================
       TESTIMONIALS SECTION
       ========================================== */
    .testimonial-section,
    #reviews {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
        border-top: 1px solid #000;
    }
    
    .testimonial-featured {
        margin-bottom: 40px !important;
    }
    
    .testimonial-featured__quote {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
    }
    
    .mini-testimonials {
        gap: 30px !important;
        grid-template-columns: 1fr !important;
    }
    
    .quote {
        font-size: 0.95rem !important;
    }

    /* ==========================================
       CONTACT SECTION
       ========================================== */
    .contact-section,
    #contact {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    
    .contact-section h2,
    #contact h2 {
        font-size: 2rem !important;
        margin-bottom: 30px !important;
    }
    
    .support-grid {
        gap: 20px !important;
        grid-template-columns: 1fr !important;
    }
    
    .support-card {
        min-height: auto !important;
        padding: 20px !important;
    }

    /* ==========================================
       FOOTER
       ========================================== */
    .mega-footer {
        padding-top: 50px !important;
        padding-bottom: 40px !important;
        margin-top: 0 !important;
    }
    
    .footer-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }

    .footer-brand {
        text-align: center;
        display: flex;
        flex-direction: column;
        order: 1;
    }

    .footer-brand__logo {
        margin: 0 auto;
    }

    .footer-brand__desc {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Hide desktop copyright on mobile */
    .footer-copyright--desktop {
        display: none !important;
    }

    /* Show mobile copyright at bottom */
    .footer-copyright--mobile {
        display: block !important;
        text-align: center;
        padding-top: 30px;
        margin-top: 10px;
        border-top: 1px solid #333;
        font-size: 0.9rem;
        opacity: 0.7;
    }

    .footer-col {
        text-align: center;
        order: 2;
    }

    .footer-col h5 {
        margin-bottom: 16px;
    }

    .footer-col__links {
        align-items: center;
    }


    /* Apps Grid */
    .apps-grid {
        grid-template-columns: 1fr !important;
    }

    .product-visual {
        height: 200px !important;
        min-height: 200px !important;
    }

    .product-visual img {
        max-width: 60% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }

    /* Services */
    .bento-grid {
        gap: 1rem;
    }

    .card {
        min-height: 300px;
        padding: 2rem;
    }

    .card h3 {
        font-size: 1.5rem;
    }

    /* Testimonials */
    .testimonial-block p {
        font-size: 1.5rem !important;
    }

    .mini-testimonials {
        grid-template-columns: 1fr !important;
    }

    /* CTA */
    .support-grid {
        grid-template-columns: 1fr !important;
    }

    /* Footer */
    .footer-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
}

/* ============================================
   SMALL MOBILE - 480px and below
   ============================================ */

@media (max-width: 480px) {
    .mega-text {
        font-size: 2.75rem !important;
        line-height: 1.05 !important;
    }

    .text-line-studio {
        display: block;
    }

    .studio-space {
        display: none;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a:not(.nav-btn-black) {
        font-size: 0.7rem;
    }

    .section-title {
        font-size: 0.75rem;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    .btn-solid,
    .btn-outline {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   FIX: App Icons in Product Cards
   ============================================ */

.product-card .product-visual {
    height: 250px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.product-card .product-visual img {
    max-width: 180px;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ============================================
   REFACTORED COMPONENT CLASSES
   ============================================ */

/* Section Intro Component */
.section-intro {
    margin-bottom: 4rem;
}

.section-intro h2,
.section-intro__heading {
    font-size: 2.5rem;
    max-width: 600px;
}

.section-intro__subtext {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin-top: 1rem;
    line-height: 1.6;
}

.section-intro--portfolio h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Hero Content Wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
}

.section-intro__heading--large {
    font-size: 3rem;
}

/* Portfolio Section */
.portfolio-section {
    background: #f9f9f9;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Portfolio Card Component */
.portfolio-card {
    padding: 0;
    overflow: hidden;
    min-height: 350px;
}

.portfolio-card__image {
    height: 200px;
    background: #eee;
    overflow: hidden;
}

.portfolio-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-card__content {
    padding: 1.5rem;
}

.portfolio-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-card__subtitle {
    font-size: 0.9rem;
    color: #666;
    font-family: var(--font-body);
}

/* Services Card Variants */
.card--dark {
    background: #000;
    color: #fff;
}

.card--dark .card-num {
    color: #fff;
}

.card--dark p {
    color: #ccc;
}

.card--dark .tag {
    border-color: #fff;
}

.card__title--large {
    font-size: 3rem;
    margin-top: 2rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin-top: 2rem;
    color: #999;
}

.feature-list li {
    margin-bottom: 0.5rem;
}

/* Testimonial Components */
.testimonial-section {
    border-top: 1px solid #000;
}

.testimonial-featured {
    max-width: 900px;
    margin-bottom: 6rem;
}

.testimonial-featured__quote {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author__line {
    width: 50px;
    height: 1px;
    background: #000;
}

.testimonial-author__name {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Mini Testimonials Grid */
.mini-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

/* Contact Section */
.contact-section h2 {
    font-size: 3.5rem;
    margin-bottom: 4rem;
}

/* Support Grid */
.support-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Support Card Component */
.support-card {
    min-height: 220px;
}

.support-card__inner {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.support-card__icon {
    min-width: 56px;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-card__icon--dark {
    background: #111;
    color: white;
}

.support-card__icon--light {
    background: #f0f0f0;
    color: #111;
}

.support-card__title {
    font-size: 1.25rem;
    font-weight: 700;
}

.support-card__desc {
    color: #666;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.support-card__link {
    margin-top: 1rem;
    font-weight: 600;
}

.support-card--link {
    text-decoration: none;
    color: inherit;
}

/* Footer Layout */
.footer-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand__logo {
    height: 35px;
    width: auto;
    margin-bottom: 2rem;
}

.footer-brand__desc {
    max-width: 300px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-brand__copyright {
    margin-top: 3rem;
    font-size: 0.85rem;
    color: #999;
}

/* Hide mobile copyright on desktop */
.footer-copyright--mobile {
    display: none;
}

.footer-col h5 {
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

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

.footer-col__links a {
    text-decoration: none;
    color: #000;
}

.footer-col__links a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ============================================
   ENHANCED MOBILE RESPONSIVENESS
   ============================================ */

@media (max-width: 1024px) {
    .footer-layout {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .testimonial-featured__quote {
        font-size: 2rem;
    }
}

/* Duplicate rules consolidated into main 768px breakpoint above */

@media (max-width: 480px) {
    .mega-text {
        font-size: 2.75rem !important;
        line-height: 1.05 !important;
    }
    
    .hero-sub {
        font-size: 0.95rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-intro h2,
    .section-intro__heading,
    .section-intro__heading--large,
    .section-intro--portfolio {
        font-size: 1.5rem !important;
    }
    
    .contact-section h2 {
        font-size: 1.85rem !important;
    }
    
    .card {
        min-height: 250px;
        padding: 1.5rem;
    }
    
    .card h3 {
        font-size: 1.35rem;
    }
    
    .card__title--large {
        font-size: 1.75rem !important;
    }
    
    .portfolio-card {
        min-height: 280px;
    }
    
    .portfolio-card__image {
        height: 150px;
    }
    
    .testimonial-featured__quote {
        font-size: 1.15rem;
    }
    
    .support-card {
        min-height: auto;
    }
    
    .support-card__inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .btn-solid,
    .btn-outline {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .marquee-item {
        font-size: 1.5rem;
        margin-right: 1.5rem;
    }
}