/* --- HERO (FIXED for Reveal Effect) --- */
        .hero-fixed {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            z-index: 0;
            will-change: transform;
        }

        .hero-pattern {
            background-color: #0F172A;
            background-image:
                radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.85) 100%),
                url("../assets/hero.png");
            background-position: center;
            height: 100%;
            width: 100%;
            background-size: cover;
        }

        /* Hollow Text Effect */
        .hollow-text {
            color: rgba(255, 255, 255, 0.05);
            -webkit-text-stroke: 2px #ffffff;
            text-stroke: 2px #ffffff;
            transition: all 0.5s ease;
        }

        .hollow-text:hover {
            color: rgba(255, 255, 255, 1);
            -webkit-text-stroke: 0px transparent;
        }

        /* Wrapper for the rest of the site to slide over hero */
        .content-layer {
            position: relative;
            z-index: 10;
            background-color: #0F172A;
            /* Must be solid to cover hero */
            margin-top: 100vh;
            /* Push content below the fixed hero */
            will-change: transform;
            box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.5);
            /* Shadow for depth over hero */
        }

        .grid-bg {
            background-color: #111827;
            background-image: linear-gradient(#1F2937 1px, transparent 1px), linear-gradient(90deg, #1F2937 1px, transparent 1px);
            background-size: 40px 40px;
        }

        /* --- COMPONENTS --- */
        .nav-link {
            position: relative;
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #1F2937;
            transition: color 0.3s;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -4px;
            left: 0;
            background-color: #EF4444;
            transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .nav-link:hover {
            color: #EF4444 !important;
        }

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

        /* --- BUTTON STYLES --- */
        .btn-view-more {
            display: inline-block;
            border: 1px solid #4B5563;
            color: #9CA3AF;
            padding: 0.75rem 2rem;
            border-radius: 0.125rem;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            transition: all 0.3s ease;
            margin-top: 2rem;
        }

        .btn-view-more:hover {
            border-color: #EF4444;
            color: #EF4444;
            background-color: rgba(239, 68, 68, 0.05);
        }

        /* --- CARD HOVER EFFECTS --- */
        .card-base {
            background-color: #1E293B;
            border: 1px solid #334155;
            transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease, border-bottom 0.4s ease;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            height: 100%;
            will-change: transform;
        }

        .card-image-wrapper {
            position: relative;
            width: 100%;
            height: 200px;
            overflow: hidden;
        }

        .card-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 4px 4px 0 0;
            margin-bottom: 0;
            opacity: 0.9;
            transition: transform 0.5s ease, opacity 0.5s ease;
            will-change: transform;
        }

        .card-details-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(15, 23, 42, 0.95);
            padding: 1.5rem;
            transform: translateY(100%);
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            border-top: 3px solid #EF4444;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            z-index: 10;
            text-align: center;
            will-change: transform;
        }

        /* Touch device fix: focus-within or active classes for mobile interaction */
        .card-base:hover,
        .card-base:active,
        .card-base:focus-within {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
            border-bottom: 4px solid #EF4444;
            background-color: #252f45;
        }

        .card-base:hover .card-img,
        .card-base:active .card-img,
        .card-base:focus-within .card-img {
            transform: scale(1.1);
            opacity: 1;
        }

        .card-base:hover .card-details-overlay,
        .card-base:active .card-details-overlay,
        .card-base:focus-within .card-details-overlay {
            transform: translateY(0);
        }

        .domain-img {
            width: 72px;
            height: 72px;
            object-fit: cover;
            border-radius: 50%;
            margin-bottom: 1rem;
            border: 2px solid #334155;
            background-color: #0F172A;
            transition: border-color 0.3s;
        }

        .card-base:hover .domain-img {
            border-color: #EF4444;
        }

        /* --- MASONRY PRODUCT GALLERY (UPDATED ANIMATION) --- */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            grid-auto-rows: 250px;
            gap: 10px;
            grid-auto-flow: dense;
        }

        @media (max-width: 1024px) {
            .gallery-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 768px) {
            .gallery-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 480px) {
            .gallery-grid {
                grid-template-columns: repeat(1, 1fr);
            }
        }

        .gallery-item {
            position: relative;
            overflow: hidden;
            cursor: pointer;
            border: 1px solid #334155;
            border-radius: 10px;
            will-change: transform, opacity, filter;

            /* Initial State for JS Animation */
            opacity: 0;
            filter: blur(5px);
            transform: translateY(50px);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            /* Grayscale removed for full color always */
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        /* Hover Effect: Scale Down (0.95) only - Color stays constant */
        .gallery-item:hover img,
        .gallery-item:active img {
            transform: scale(0.95);
            /* Matches hoverScale={0.95} */
        }

        .gallery-overlay {
            position: absolute;
            inset: 0;
            background: transparent;
            transition: all 0.3s;
            border: 1px solid rgba(255, 255, 255, 0.05);
            pointer-events: none;
        }

        .gallery-item:hover .gallery-overlay {
            border: 1px solid #EF4444;
            background: rgba(239, 68, 68, 0.05);
        }

        .span-2-col {
            grid-column: span 2;
        }

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

        @media (max-width: 480px) {

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

        /* --- MARQUEE --- */
        .marquee-container {
            overflow: hidden;
            white-space: nowrap;
            position: relative;
            mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
            -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        }

        .marquee-content {
            display: inline-block;
            animation: marquee 40s linear infinite;
            will-change: transform;
        }

        @keyframes marquee {
            0% {
                transform: translateX(0);
            }

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

        /* --- CAREERS PROCESS --- */
        .process-step-line {
            position: absolute;
            top: 24px;
            left: 0;
            width: 100%;
            height: 2px;
            background: #374151;
            z-index: 0;
        }

        .process-step-line-mobile {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 24px;
            width: 2px;
            background: #374151;
            z-index: 0;
        }

        .step-circle {
            width: 48px;
            height: 48px;
            background: #1F2937;
            border: 2px solid #EF4444;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            position: relative;
            font-weight: bold;
            color: white;
            transition: all 0.3s;
            flex-shrink: 0;
        }

        .step-glow {
            background: #EF4444;
            border-color: #EF4444;
            box-shadow: 0 0 20px 5px rgba(239, 68, 68, 0.5);
            animation: pulse-red 2s infinite;
        }

        @keyframes pulse-red {
            0% {
                box-shadow: 0 0 15px 2px rgba(239, 68, 68, 0.4);
            }

            50% {
                box-shadow: 0 0 25px 8px rgba(239, 68, 68, 0.6);
            }

            100% {
                box-shadow: 0 0 15px 2px rgba(239, 68, 68, 0.4);
            }
        }

        .step-item:hover .step-circle {
            background: #EF4444 !important;
            box-shadow: 0 0 15px rgba(239, 68, 68, 0.8) !important;
            animation: none !important;
        }

        .career-card-icon {
            color: #EF4444;
            width: 40px;
            height: 40px;
            margin-bottom: 1rem;
        }

        /* --- UTILS --- */
        .gsap-slide-up,
        .gsap-slide-up-stagger {
            opacity: 0;
        }