/* =========================================
   MOBILE-FIRST OVERRIDES (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {

    /* === MOBILE OPTIMIZATIONS === */
    /* All styles below are mobile.only and do NOT affect desktop */

    /* --- RESET & GLOBAL OPTIMIZATIONS --- */
    body {
        overflow-x: hidden;
        width: 100%;
        -webkit-font-smoothing: antialiased;
        font-size: 16px;
    }

    /* Default section padding for mobile */
    section {
        padding: 40px 16px !important; /* Increased for better separation */
    }

    .services-hero {
        padding: 120px 16px 40px !important;
    }

    /* Adjust typography for readability - Reduced sizes for compact feel */
    h1 {
        font-size: 1.75rem !important;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .services-hero h1 {
        font-family: 'Lato', sans-serif !important;
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
        letter-spacing: 4px !important;
        text-transform: uppercase !important;
        color: #000 !important;
        margin-bottom: 10px !important;
    }

    h2 {
        font-size: 1.4rem !important;
        line-height: 1.35;
        margin-bottom: 10px;
        letter-spacing: 0.05em !important; /* Match desktop luxury feel */
        text-transform: uppercase !important;
    }

    h3 {
        font-size: 1.1rem !important;
        margin-bottom: 8px;
    }

    p {
        font-size: 0.95rem !important;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    /* Increase touch targets for all interactive elements */
    button,
    .btn,
    .contact-cta-btn,
    input,
    select,
    textarea {
        min-height: 44px;
    }

    button,
    .btn,
    .contact-cta-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 16px !important;
        border-radius: 6px !important;
        font-weight: 600;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
        padding: 10px 12px !important;
    }

    p a {
        display: inline;
        min-height: auto;
        padding: 0;
        transition: none;
    }

    /* EXTREME FORCE: Show cyan section dividers for mobile */
    .section-divider {
        display: block !important;
        visibility: visible !important;
        height: 2px !important;
        width: 100% !important;
        background-color: #00CED1 !important; /* Cyan background for maximum visibility */
        border: none !important;
        margin: 0 !important; /* Removed margin to eliminate empty space */
        opacity: 0.8 !important;
        clear: both !important;
        position: relative !important;
        z-index: 10 !important;
    }

    /* Remove border from footer-nav to prevent double lines */
    .footer-nav {
        border-top: none !important;
        padding: 40px 16px !important;
    }

    /* Reduce hero section logo size for mobile only */
    body .brand-logo-fixed,
    html body .brand-logo-fixed {
        top: 15px !important;
        left: 15px !important;
    }

    body .brand-logo-fixed .logo,
    html body .brand-logo-fixed .logo {
        height: 28px !important; /* Shorter as requested */
        width: auto !important;
    }

    /* --- NAVIGATION: DRAWER MENU --- */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        position: fixed;
        top: 5px !important; /* Adjusted to align center with 28px logo at 15px top */
        right: 10px !important;
        z-index: 2002;
        background: transparent !important; /* Removed black box */
        border: none !important; /* Removed border */
        border-radius: 50%;
        width: 48px;
        height: 48px;
        cursor: pointer;
        transition: background 0.2s ease;
        box-shadow: none !important;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 24px !important; /* Slightly wider for visibility */
        height: 2px;
        background-color: #D4AF37;
        transform-origin: center;
        transition: transform 0.2s ease, opacity 0.2s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Shadow for visibility against light backgrounds */
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .navbar nav {
        display: none;
    }

    .mobile-menu.brand-right {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #0F0F0F;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        padding: 20px;
        z-index: 2001;
        display: flex !important;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .mobile-menu.active {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu a {
        font-size: 1.3rem;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        border: none;
        padding: 12px 0;
        width: 100%;
        text-align: center;
        transition: color 0.2s ease;
        font-weight: 600;
    }

    .mobile-menu a:active,
    .mobile-menu a:hover {
        color: #D4AF37;
    }

    /* --- VIDEO SHOWCASE SECTION --- */
    .video-section {
        height: 60vh !important;
        min-height: 400px !important;
    }

    .video-content {
        left: 15px !important;
        bottom: 75px !important;
        padding: 12px 16px !important; /* Smaller padding as requested */
        width: fit-content !important;
        height: auto !important;
        max-width: 80% !important;
        background: rgba(255, 255, 255, 0.05) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border: 1px solid rgba(212, 175, 55, 0.15) !important;
        border-radius: 18px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
        display: block !important;
    }

    .video-title {
        font-family: 'Bodoni Moda', serif !important;
        font-size: 18px !important; /* Balanced mobile size */
        font-weight: 700 !important;
        font-style: italic !important;
        color: var(--brand-gold) !important;
        margin-bottom: 8px !important;
        line-height: 1.2 !important;
        text-transform: none !important;
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    }

    .video-description {
        font-family: 'Lato', sans-serif !important;
        font-size: 11px !important;
        color: rgba(255, 255, 255, 0.85) !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        text-transform: none !important;
        letter-spacing: 0.02em !important;
    }

    .video-title {
        font-size: 20px !important;
        margin-bottom: 8px !important;
    }

    .video-controls {
        right: 10px !important; /* Shifted even more to the right */
        bottom: 25px !important;
        gap: 12px !important;
    }

    .video-nav-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important; /* Prevent shrinking into ovals */
        min-height: 32px !important;
        background: transparent !important;
        border: 1px solid var(--brand-gold) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        flex-shrink: 0 !important; /* Ensure it stays a circle */
    }

    .video-nav-btn svg {
        width: 14px !important;
        height: 14px !important;
    }

    .video-dot {
        width: 6px !important;
        height: 6px !important;
        margin: 0 2px !important;
    }

    /* --- SERVICES LIGHTBOX (CRITICAL FIX) --- */
    .service-lightbox button,
    .gallery-lightbox button,
    .lightbox-nav {
        width: 48px !important;
        height: 48px !important;
        background: rgba(0, 0, 0, 0.6) !important;
        border-radius: 50%;
        backdrop-filter: blur(4px);
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute !important;
        z-index: 10010 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .service-lightbox .lightbox-prev,
    .gallery-lightbox .lightbox-prev {
        left: 10px !important;
        right: auto !important;
    }

    .service-lightbox .lightbox-next,
    .gallery-lightbox .lightbox-next {
        right: 10px !important;
        left: auto !important;
    }

    .service-lightbox .lightbox-close,
    .gallery-lightbox .lightbox-close {
        top: 20px !important;
        right: 20px !important;
        transform: none !important;
        background: transparent !important;
        border: none !important;
        width: auto !important;
        height: auto !important;
    }

    /* --- SERVICES SECTION (IMPROVED SCALING) --- */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 0 16px !important;
    }

    .service-card {
        padding: 24px !important;
        background: rgba(255, 255, 255, 0.45) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
    }

    .service-card h3 {
        font-family: 'Bodoni Moda', serif !important;
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        font-style: normal !important; /* Changed from italic */
        margin-bottom: 15px !important;
        color: var(--brand-gold) !important;
        display: inline-block !important;
        width: fit-content !important;
        border-bottom: 2px solid #00CED1 !important;
        padding-bottom: 4px !important;
        letter-spacing: normal !important;
    }

    .service-card p {
        font-family: 'Bodoni Moda', serif !important;
        font-size: 0.9rem !important;
        font-weight: 400 !important; /* Changed from 700 */
        font-style: normal !important; /* Changed from italic */
        line-height: 1.7 !important;
        margin-bottom: 16px !important;
        letter-spacing: normal !important;
        color: #333 !important;
    }

    /* Service card image gallery with navigation buttons */
    .service-images {
        position: relative !important;
        display: flex !important;
        overflow-x: auto !important;
        gap: 10px !important;
        padding: 12px 0 !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .service-images::-webkit-scrollbar {
        display: none;
    }

    .service-images img {
        flex: 0 0 240px !important;
        height: 160px !important;
        scroll-snap-align: center;
        border-radius: 6px !important;
        object-fit: cover !important;
        cursor: pointer;
    }

    /* Navigation buttons for service images (mobile only) */
    .service-image-nav {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 36px !important;
        height: 36px !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border: 1px solid rgba(212, 175, 55, 0.6) !important;
        border-radius: 50% !important;
        color: var(--brand-gold) !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 5 !important;
        transition: all 0.2s ease !important;
    }

    .service-image-nav:hover {
        background: var(--brand-gold) !important;
        color: #000 !important;
    }

    .service-image-prev {
        left: 8px !important;
    }

    .service-image-next {
        right: 8px !important;
    }

    /* --- CLIENTS MARQUEE OPTIMIZATION (PERFORMANCE FIX) --- */
    .marquee-track {
        gap: 30px !important;
        padding: 16px 0 !important;
        backface-visibility: hidden;
        perspective: 1000px;
    }

    .client-item {
        backface-visibility: hidden;
        perspective: 1000px;
    }

    .client-item img {
        height: 32px !important;
        max-width: 90px !important;
        width: auto !important;
        filter: none !important;
        transition: none !important;
        box-shadow: none !important;
        display: block;
    }

    /* --- OUR STORY (COMPACT HORIZONTAL) --- */
    .story-container {
        flex-direction: column;
        gap: 20px !important;
        padding: 0 16px !important;
    }

    /* Make images side-by-side */
    .story-visuals {
        display: flex !important;
        flex-direction: row !important;
        height: auto !important;
        gap: 10px !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
        width: 100% !important;
    }

    .story-visuals .parallax-img {
        position: relative !important;
        width: 50% !important;
        height: 150px !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 !important;
    }

    .story-visuals img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .story-stats-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        /* Side-by-side stats */
        gap: 12px !important;
        margin-top: 10px !important;
    }

    .stat-number {
        font-size: 1.5rem !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
    }

    /* --- CONTACT FORM (MOBILE OPTIMIZED) --- */
    #contact {
        padding: 32px 16px !important;
    }

    #contact>div {
        padding: 0 !important;
    }

    /* Stack columns on mobile */
    #contact>div>.grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }

    /* Left column - Header visible, centered */
    #contact>div>.grid>div:first-child {
        order: 1 !important;
        padding-top: 0 !important;
        text-align: center !important;
    }

    /* Section Label - Centered */
    #contact span.text-primary {
        font-size: 10px !important;
        letter-spacing: 0.25em !important;
        margin-bottom: 8px !important;
        display: block !important;
        text-align: center !important;
    }

    /* Main Title - Centered */
    #contact .font-display.text-5xl {
        font-size: 2.25rem !important;
        line-height: 1.1 !important;
        margin-bottom: 12px !important;
        text-align: center !important;
    }

    /* Decorative Line - Centered */
    #contact .w-24 {
        width: 50px !important;
        margin: 0 auto 12px !important;
    }

    /* Description Text - Centered */
    #contact .text-neutral-700.text-lg {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
        text-align: center !important;
        max-width: 100% !important;
    }

    /* HIDE Contact Info Cards on mobile */
    #contact .grid.gap-8.mt-auto {
        display: none !important;
    }

    /* Contact section icons - cyan color */
    #contact .material-symbols-outlined {
        color: #00CED1 !important;
    }

    /* Form Panel */
    #contact>div>.grid>div:last-child {
        order: 2 !important;
        width: 100% !important;
    }

    #contact .glass-panel {
        padding: 20px !important;
        border-radius: 12px !important;
    }

    /* Form Header */
    #contact .glass-panel>.flex.justify-between {
        margin-bottom: 16px !important;
        padding-bottom: 12px !important;
    }

    #contact .font-display.text-3xl {
        font-size: 1.25rem !important;
    }

    #contact .text-neutral-500.text-xs {
        font-size: 11px !important; /* Increased from 8px */
    }

    #contact .glass-panel .material-symbols-outlined.text-4xl {
        font-size: 18px !important;
    }

    /* Form Layout - 2 column grid */
    #contact form .grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
        margin-bottom: 16px !important;
    }

    /* Form Inputs */
    #contact form input {
        padding: 18px 0 8px !important; /* Increased top padding to lower the input line */
        font-size: 14px !important;
        min-height: 42px !important;
    }

    #contact form label {
        font-size: 12px !important; /* Increased from 9px */
        letter-spacing: 0.1em !important;
    }

    /* Textarea */
    #contact form textarea {
        min-height: 80px !important;
        padding: 20px 0 8px !important; /* Increased top padding to lower the line */
        font-size: 14px !important;
    }

    /* Submit Button */
    #contact form .pt-8 {
        padding-top: 16px !important;
    }

    #contact form .pt-8>p {
        display: none !important;
    }

    #contact form button[type="submit"] {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 10px !important;
        border-radius: 6px !important;
        letter-spacing: 0.2em !important;
    }

    /* --- FOOTER (2-COLUMN GRID) --- */
    .footer-nav {
        padding: 30px 16px !important;
    }

    .footer-content {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 30px 15px !important;
        text-align: left !important;
        width: 100% !important;
    }

    .footer-brand {
        grid-column: span 2 !important;
        text-align: center !important;
        margin-bottom: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .footer-brand .logo {
        height: 30px !important;
        width: auto !important;
        margin: 0 auto 15px auto !important;
        display: block !important;
    }

    .footer-links:nth-of-type(2), 
    .footer-links:nth-of-type(3) {
        grid-column: span 1 !important;
    }

    .footer-links:nth-of-type(4) {
        grid-column: span 2 !important;
        width: 100% !important;
    }

    .contact-item {
        max-width: 100% !important;
        width: 100% !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .contact-icon {
        margin-top: 2px !important; /* Slightly different adjustment for mobile */
        flex-shrink: 0 !important;
    }

    .footer-social {
        display: flex;
        justify-content: center;
        margin-top: 20px !important;
        padding-top: 20px;
        border-top: none !important; /* Removed grey line between email and social icons */
        width: 100%;
    }

    /* --- LEGACY PAGE & OTHERS --- */
    .legacy-page .sticky-dots {
        display: none !important;
    }

    .legacy-page .parallax-section {
        height: 100vh;
        background-attachment: scroll;
        background-position: center;
        background-size: cover;
    }

    .legacy-page .hero-content-box,
    .legacy-page .hero-content-box.visible {
        width: 90% !important;
        padding: 20px;
        background: transparent !important;
        backdrop-filter: none !important;
        border: none !important;

        /* Force Center Alignment */
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        right: auto !important;
        bottom: auto !important;
        text-align: center !important;
    }

    /* --- LEGACY PAGE SPECIFICS (RESTORED) --- */
    .thread-wrapper {
        padding: 40px 10px;
        overflow-x: hidden !important;
        /* Prevent horizontal scroll */
    }

    .thread-container {
        display: flex;
        flex-direction: column;
        position: relative;
        overflow: visible !important;
    }

    .story-section {
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-bottom: 40px !important;
        position: relative;
        width: 100%;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

    .story-section .node {
        position: absolute;
        left: 10px;
        /* Moved slightly left */
        top: 0;
        transform: none;
        margin: 0;
        z-index: 2;
    }

    .svg-container {
        position: absolute;
        top: 0;
        left: -10px;
        /* Adjust line position */
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 1;
    }

    .story-content-box {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 50px !important;
        text-align: left;
        padding-right: 10px !important;
        margin-bottom: 12px !important;
        box-sizing: border-box !important;
    }

    .story-content-box h2 {
        font-size: 1.5rem !important;
        font-weight: 700;
        color: var(--brand-gold) !important;
    }

    .story-content-box p {
        font-size: 0.9rem !important;
    }

    .img-box {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 50px !important;
        padding-right: 0 !important;
        margin-top: 8px !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
        height: 150px !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .img-box img {
        position: absolute !important;
        left: 0; top: 0;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        border-radius: 4px;
    }

    .sectors-main-title {
        font-family: 'Bodoni Moda', serif !important;
        font-size: clamp(32px, 9vw, 42px) !important;
        font-style: italic !important;
        font-weight: 700 !important; /* Matches desktop global h2 override */
        color: #D4AF37 !important; /* Exact Brand Gold */
        margin-bottom: 50px !important;
        letter-spacing: -2px !important; /* Exact desktop spacing */
        text-align: center !important;
        text-transform: none !important;
        line-height: 1.1 !important;
        width: 100% !important;
        display: block !important;
    }

    /* Sectors / Client Chronicle */
    .sectors-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .sector-row {
        width: 100%;
        flex-direction: column;
        text-align: left;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        padding-bottom: 20px;
    }

    .sector-heading {
        font-family: 'Bodoni Moda', serif !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        margin-bottom: 25px;
        color: #00CED1;
        display: inline-block !important;
        width: fit-content !important;
        border-bottom: 1px solid #00CED1 !important;
        padding-bottom: 4px !important;
    }

    .sector-heading::after {
        display: none !important;
    }

    .client-list {
        display: flex;
        flex-wrap: wrap;
        gap: 15px 30px; /* Better spacing for text-only list */
        justify-content: flex-start;
    }

    .client-list li {
        width: auto;
        margin: 0;
    }

    .client-list a {
        display: inline-block;
        padding: 5px 0 !important; /* Remove large padding */
        background: none !important; /* Remove the box background */
        border: none !important; /* Remove the border */
        border-radius: 0 !important;
        font-family: 'Bodoni Moda', serif !important;
        font-size: 1.1rem !important; /* Slightly larger for list readability */
        font-weight: 700 !important;
        min-height: auto !important; /* Remove min-height from box style */
        color: #D4AF37 !important;
        opacity: 1 !important;
        filter: none !important;
        text-decoration: none !important;
    }

    .client-list a:hover {
        color: var(--brand-cyan) !important;
    }

    /* Gallery filters and search - remove padding */
    .gallery-filters {
        padding: 0 !important;
        margin: 0 !important;
    }

    .filter-group,
    .search-box,
    .dropdown-filter {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Gallery Grid - 2 Column Design */
    #galleryGrid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 12px !important;
        margin-top: 40px !important;
    }

    .gallery-card {
        height: 200px !important; /* Slightly shorter for better fit */
        border-radius: 8px !important;
    }

    .gallery-card.wide, 
    .gallery-card.tall {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    /* Force Card Overlay Visibility and Styling for 2-col grid */
    .card-overlay {
        opacity: 1 !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%) !important;
        padding: 12px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
    }

    .card-info {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .card-info h3 {
        font-size: 0.8rem !important;
        margin-bottom: 2px !important;
        line-height: 1.2 !important;
    }

    .card-info p {
        font-size: 0.65rem !important;
        margin-bottom: 8px !important;
    }

    .view-project-btn {
        display: inline-block !important;
        padding: 6px 12px !important;
        font-size: 9px !important;
        background: transparent !important;
        color: var(--brand-gold) !important;
        border: 1px solid var(--brand-gold) !important;
        opacity: 1 !important;
        visibility: visible !important;
        font-weight: 600 !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 20 !important;
        margin-top: 4px !important;
        width: fit-content !important;
    }

    /* Project Overlay Grid - 2 Column Design */
    .project-overlay-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 12px !important;
    }

    .project-img-wrapper.reveal-ready {
        aspect-ratio: 1 / 1 !important; /* Square for consistency in 2-col grid */
        border-radius: 8px !important;
    }

    /* Fix 'Start your project' button - golden capsule size */
    .footer-cta-btn {
        padding: 8px 16px !important;
        font-size: 12px !important;
        display: inline-block !important;
        height: auto !important;
        min-height: auto !important;
    }

    /* Project Overlay Mobile Fixes */
    .project-overlay-close {
        top: 25px !important;
        right: 25px !important;
        width: 40px !important;
        height: 40px !important;
        background: rgba(0, 0, 0, 0.85) !important;
        z-index: 20020 !important;
        border: 1px solid #D4AF37 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: fixed !important;
    }

    .project-overlay-header {
        padding-top: 120px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        position: relative !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }


    /* Mastery page - strength section images after headline (flex-direction: column-reverse) */
    .strengths-container {
        display: flex !important;
        flex-direction: column-reverse !important;
    }

    .strengths-images {
        order: -1 !important;
    }

    .strengths-content {
        order: 0 !important;
    }

    /* Mobile Components */
    .mobile-card {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 20px;
        width: 100%;
    }

    /* --- PERFORMANCE OPTIMIZATIONS --- */

    /* Reduce heavy animations on mobile to prevent jitter */
    .hero-bg-layer img {
        filter: blur(15px) brightness(0.3) !important;
        animation: none !important;
    }

    .hero-main-layer img {
        animation: none !important;
    }

    /* Reduce motion for better performance */
    @media (prefers-reduced-motion: reduce) {

        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    /* HERO SLIDE TEXT MOBILE-ONLY */
    .hero-content {
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-end !important;
        position: absolute !important;
        inset: 0 !important;
        height: 100% !important;
        width: 100% !important;
        z-index: 100 !important;
        pointer-events: none !important;
        background: transparent !important;
    }

    .hero-text {
        max-width: 90% !important;
        padding: 0 20px 80px !important; /* Use padding for positioning inside absolute container */
        text-align: left !important;
        position: relative !important;
        display: block !important;
        opacity: 0 !important; /* Start invisible for script logic */
        visibility: visible !important;
        z-index: 110 !important;
        pointer-events: auto !important;
        transform: none !important;
        transition: opacity 1.5s ease-in-out !important; /* Standard transition */
    }

    .hero-text.visible {
        opacity: 1 !important;
    }

    .hero-text.hidden {
        opacity: 0 !important;
    }

    .hero-title {
        font-size: 1.4rem !important; /* Larger for mobile visibility */
        line-height: 1.2 !important;
        font-weight: 700 !important;
        margin: 0 !important;
        text-align: left !important;
        width: 100% !important;
        color: #ffffff !important;
        display: block !important;
        text-shadow: 0 2px 10px rgba(0,0,0,0.8) !important;
    }

    .hero-title span {
        display: block !important;
        text-align: left !important;
        width: 100% !important;
    }
    .gold-segment {
        margin-bottom: 2px !important;
    }
    .cyan-segment {
        /* Already defined */
    }
    .hero-subtitle {
        display: none !important;
    }

    /* Mastery page - strength section images after headline (step 9) */
    .strengths-section,
    .strengths-container {
        display: flex !important;
        flex-direction: column !important;
    }

    .strengths-images {
        order: 1 !important;
        margin-top: 20px !important;
    }

    .strengths-content {
        order: 0 !important;
    }

    /* =========================================
       MOBILE-FIRST ENHANCEMENTS (v2.0)
       Purpose-built smartphone UX patterns
       ========================================= */

    /* --- HERO SECTION REFINEMENTS --- */
    
    /* Hero content positioning for mobile thumb zone */
    /* Handled by .hero-content rule above */

    /* Hero slide title positioning */
    .hero-slide-title {
        font-size: 0.75rem !important;
        letter-spacing: 0.2em !important;
        font-weight: 700 !important;
        padding: 6px 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        position: absolute !important;
        bottom: 45px !important; /* Lowered to meet user request */
        right: 20px !important;
        color: var(--brand-cyan) !important;
        z-index: 120 !important;
    }

    /* Scroll indicator mobile optimization */
    .hero-scroll {
        bottom: 20px !important;
        gap: 8px !important;
    }

    .hero-scroll .scroll-line {
        height: 40px !important;
    }

    .hero-scroll span {
        font-family: 'Bodoni Moda', serif !important;
        font-size: 9px !important;
        letter-spacing: 0.2em !important;
        font-weight: 700 !important;
    }

    /* --- VIDEO SHOWCASE MOBILE OPTIMIZATION --- */
    
    /* Video section full width fix */
    .video-section.video-showcase {
        height: 50vh !important;
        min-height: 300px !important;
        overflow: hidden !important;
        width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        padding: 0 !important;
        background: black !important;
    }

    .video-slider, .showcase-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .video-content {
        position: absolute !important;
        bottom: 12px !important;
        left: 8px !important;
        top: auto !important;
        transform: none !important;
        width: fit-content !important;
        height: auto !important;
        max-width: 65% !important;
        padding: 8px 12px !important; /* Smaller padding */
        text-align: left !important;
        background: rgba(255, 255, 255, 0.05) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border-radius: 12px !important;
        border: 1px solid rgba(212, 175, 55, 0.15) !important;
    }

    .video-title {
        font-family: 'Bodoni Moda', serif !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        font-style: italic !important;
        color: var(--brand-gold) !important;
        margin-bottom: 4px !important;
        text-transform: none !important;
    }

    .video-description {
        font-family: 'Lato', sans-serif !important;
        font-size: 10px !important;
        line-height: 1.3 !important;
        text-transform: none !important;
    }

    .video-label {
        font-size: 7px !important;
        letter-spacing: 0.15em !important;
        margin-bottom: 2px !important;
    }

    .video-title {
        font-size: 0.8rem !important;
        margin-bottom: 2px !important;
        line-height: 1.2 !important;
    }

    .video-description {
        font-size: 0.65rem !important;
        line-height: 1.3 !important;
    }

    .video-controls {
        position: absolute !important;
        bottom: 12px !important;
        right: 8px !important; /* Shifted even more to the right */
        left: auto !important;
        transform: none !important;
        gap: 8px !important;
        display: flex !important;
        align-items: center !important;
        z-index: 10 !important;
    }

    .video-nav-btn {
        width: 28px !important;
        height: 28px !important;
    }

    .video-nav-btn svg {
        width: 14px !important;
        height: 14px !important;
    }

    .video-dot {
        width: 5px !important;
        height: 5px !important;
    }

    .video-nav-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        border-radius: 50% !important;
        border: 1px solid var(--brand-gold) !important;
        background: transparent !important;
        flex-shrink: 0 !important;
    }

    .video-nav-btn svg {
        width: 14px !important;
        height: 14px !important;
    }

    /* --- SERVICES SECTION MOBILE CAROUSEL --- */
    
    .services {
        padding: 40px 16px !important;
    }

    .services .section-title {
        font-size: 1.6rem !important;
        text-align: center !important;
        margin-bottom: 32px !important;
    }

    .service-card {
        min-height: auto !important;
        margin-bottom: 24px !important;
    }

    .service-card .card-number {
        font-size: 2.5rem !important;
        top: 24px !important;
        right: 6px !important;
    }

    .services-grid .service-card:first-child .card-number {
        right: 6px !important;
    }

    .service-card h3 {
        padding-right: 0 !important;
        font-family: 'Bodoni Moda', serif !important;
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        margin-bottom: 15px !important;
        line-height: 1.3 !important;
        width: fit-content !important;
        display: inline-block !important;
        font-style: normal !important;
        border-bottom: 2px solid #00CED1 !important;
        padding-bottom: 4px !important;
        color: var(--brand-gold) !important;
        letter-spacing: normal !important;
        text-align: left !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        transform: translateX(-8px) !important;
        padding-right: 72px !important; /* leave space for number */
    }

    .service-card p {
        font-family: 'Bodoni Moda', serif !important;
        font-size: 0.9rem !important;
        font-weight: 400 !important;
        margin-bottom: 20px !important;
        font-style: normal !important;
        line-height: 1.7 !important;
        color: #333 !important;
    }

    /* Service images horizontal scroll with improved UX */
    .service-images {
        position: relative !important;
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 12px !important;
        padding: 8px 4px !important;
        margin: 0 -4px !important;
    }

    .service-images::-webkit-scrollbar {
        display: none !important;
    }

    .service-images img {
        flex: 0 0 auto !important;
        width: 200px !important;
        height: 140px !important;
        scroll-snap-align: start !important;
        border-radius: 8px !important;
        transform: none !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }

    /* Visual indicator for scrollable content */
    .service-images::after {
        content: '';
        flex: 0 0 16px;
    }

    /* --- REFERENCES / RECENT WORKS MOBILE --- */
    
    .references {
        padding: 40px 16px !important;
    }

    .references .section-title {
        font-size: 1.6rem !important;
        text-align: center !important;
        margin-bottom: 12px !important;
    }

    .references .section-intro {
        text-align: center !important;
        font-size: 0.9rem !important;
        max-width: 100% !important;
        margin: 0 auto 32px !important;
    }

    .reference-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        margin-top: 0 !important;
    }

    .reference-item {
        height: 280px !important;
        border-radius: 12px !important;
        transform: none !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    }

    .reference-item.tall,
    .reference-item.wide {
        grid-row: auto !important;
        grid-column: auto !important;
        height: 280px !important;
    }

    /* Always-visible overlay for touch devices */
    .reference-info {
        transform: translateY(0) !important;
        opacity: 1 !important;
        padding: 24px 20px !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%) !important;
    }

    .ref-category {
        font-size: 10px !important;
        letter-spacing: 0.15em !important;
        margin-bottom: 4px !important;
    }

    .ref-title {
        font-size: 1.1rem !important;
    }

    /* --- CLIENTS MARQUEE MOBILE --- */
    
    .clients {
        padding: 40px 0 !important;
    }

    .clients .section-title {
        font-size: 1.6rem !important;
        margin-bottom: 24px !important;
    }

    .clients-subtitle {
        font-size: 0.9rem !important;
        letter-spacing: 0.2em !important;
        margin-top: 32px !important;
        margin-bottom: 20px !important;
    }

    .marquee-container {
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent) !important;
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent) !important;
    }

    .marquee-track {
        gap: 40px !important;
        padding: 12px 0 !important;
    }

    .client-item img {
        height: 28px !important;
        max-width: 80px !important;
        opacity: 0.7 !important;
    }

    /* --- ABOUT STORY SECTION MOBILE --- */
    
    .about-story {
        padding: 40px 0 !important;
    }

    .about-story .section-title {
        font-size: 1.6rem !important;
        text-align: center !important;
        margin-bottom: 24px !important;
    }

    .story-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        padding: 0 16px !important;
    }

    .story-content {
        max-width: 100% !important;
        text-align: center !important;
    }

    .story-lead {
        font-size: 0.75rem !important;
        letter-spacing: 0.2em !important;
        margin-bottom: 16px !important;
    }

    .story-main-text p {
        font-size: 0.9rem !important;
        line-height: 1.7 !important;
        margin-bottom: 16px !important;
        text-align: left !important;
    }

    /* Side-by-side images for mobile */
    .story-visuals {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        height: auto !important;
    }

    .parallax-img {
        position: relative !important;
        width: 50% !important;
        height: 160px !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        border-radius: 8px !important;
    }

    .parallax-img.img-2 {
        border: none !important;
    }

    .story-stats-grid {
        margin-top: 32px !important;
        padding: 24px 16px 0 !important;
        border-top: 1px solid rgba(212, 175, 55, 0.2) !important;
    }

    .stat-item {
        padding: 16px !important;
    }

    .stat-number {
        font-size: 1.5rem !important;
        margin-bottom: 4px !important;
    }

    .stat-label {
        font-size: 0.65rem !important;
        letter-spacing: 0.1em !important;
    }

    /* --- SECTION TITLE STANDARDIZATION --- */
    
    .section-title,
    .section h2 {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
        letter-spacing: -0.01em !important;
        text-transform: none !important;
        text-rendering: optimizeLegibility !important;
        font-kerning: normal !important;
    }

    /* --- WHATSAPP BUTTON MOBILE --- */
    
    .whatsapp {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        right: 16px !important;
    }

    .whatsapp img {
        width: 100% !important;
        height: 100% !important;
        padding: 10px !important;
    }

    /* --- LIGHTBOX MOBILE OPTIMIZATION --- */
    
    #serviceLightbox,
    .service-lightbox {
        padding: 60px 16px !important;
    }

    .lightbox-image {
        max-height: 60vh !important;
        border-radius: 8px !important;
    }

    .lightbox-caption {
        font-size: 0.85rem !important;
        padding: 16px !important;
        bottom: 80px !important;
    }

    /* --- UTILITY CLASSES FOR MOBILE --- */
    
    .mobile-hidden {
        display: none !important;
    }

    .mobile-visible {
        display: block !important;
    }

    .mobile-center {
        text-align: center !important;
    }

    .mobile-full-width {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* --- SERVICES PAGE MOBILE OPTIMIZATIONS --- */
    
    .services-process-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }

    .service-process-card h3 {
        border-bottom: 2px solid var(--brand-cyan) !important;
        width: fit-content !important;
        display: inline-block !important;
        padding-bottom: 4px !important;
        font-size: 1.1rem !important;
    }


    /* --- SAFE AREA INSETS (iPhone X+) --- */
    
    @supports (padding: max(0px)) {
        .navbar,
        .mobile-menu {
            padding-left: max(20px, env(safe-area-inset-left)) !important;
            padding-right: max(20px, env(safe-area-inset-right)) !important;
        }

        .footer-nav {
            padding-bottom: max(30px, env(safe-area-inset-bottom)) !important;
        }

        .whatsapp {
            bottom: max(20px, env(safe-area-inset-bottom)) !important;
        }
    }

    /* --- LANDSCAPE ORIENTATION OPTIMIZATIONS --- */
    
    @media (max-width: 768px) and (orientation: landscape) {
        .hero {
            height: 100vh !important;
            min-height: 300px !important;
        }

        .hero-content {
            padding-bottom: 60px !important;
        }

        .mobile-menu {
            justify-content: flex-start !important;
            padding-top: 80px !important;
        }

        .mobile-menu a {
            font-size: 1.1rem !important;
            padding: 8px 0 !important;
        }

        .video-section.video-showcase {
            height: 70vh !important;
        }

        .service-images img {
            width: 180px !important;
            height: 120px !important;
        }
    }

    /* --- TOUCH DEVICE OPTIMIZATIONS --- */
    
    @media (hover: none) and (pointer: coarse) {
        /* Remove hover effects on touch devices */
        .service-card:hover,
        .reference-item:hover,
        .client-item:hover {
            transform: none !important;
        }

        /* Ensure tap highlights are visible */
        a, button {
            -webkit-tap-highlight-color: rgba(212, 175, 55, 0.3);
        }

        /* Larger touch targets for form elements */
        input, textarea, select, button {
            min-height: 48px;
        }
    }

    /* --- DARK MODE SUPPORT (if needed in future) --- */
    
    @media (prefers-color-scheme: dark) {
        /* Mobile dark mode adjustments would go here */
        /* Currently site uses light theme primarily */
    }
}
