/* ========================================= */
/*           DESIGN UPGRADES (2026)          */
/* ========================================= */

/* --- TYPOGRAPHY & DESIGN SYSTEM --- */
:root {
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --color-accent-glow: rgba(234, 88, 12, 0.6);
}

body {
    font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Optical letter-spacing and tight line-heights for large display headings */
h1.font-display,
.text-4xl.font-display,
.text-5xl.font-display,
.text-6xl.font-display,
.text-7xl.font-display,
.text-8xl.font-display,
.text-9xl.font-display {
    letter-spacing: -0.02em !important;
    line-height: 1.05 !important;
}

/* --- TEXTURES & BACKGROUNDS --- */
.bg-industrial-grid {
    background-color: #172554;
    /* primary-950 */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    position: relative;
}

.bg-industrial-grid::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, #172554 90%);
    pointer-events: none;
}

/* Continuous physical panning & zooming (Ken Burns) for background sliders */
@keyframes kenBurns {
    0% { transform: scale(1.02); }
    50% { transform: scale(1.08) translate(0.5%, -0.5%); }
    100% { transform: scale(1.02); }
}

.slide {
    animation: kenBurns 24s infinite ease-in-out;
}

/* --- APPLE-STYLE MATERIALS (TRANSLUCENCY & DEPTH) --- */
#header.bg-white {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03) !important;
    transition: background-color 0.3s ease, border-color 0.3s ease, py-2 0.3s ease, box-shadow 0.3s ease !important;
}

/* --- SPRING DECELERATION (FLUID INTERACTION TIMING) --- */
#mobile-menu {
    transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#scrollTopBtn {
    transition: opacity 300ms ease, transform 450ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* --- MICRO-INTERACTIONS & TACTILE RESPONSES --- */

/* Immediate Tactile Scaling on Touch/Press (Active States) */
.btn-tech-glow:active,
.card-hover-lift:active,
header a:active,
nav a:active,
button:active,
.active\:scale-95:active,
.cursor-pointer:active,
.gallery-thumb:active {
    transform: scale(0.97) !important;
    transition: transform 80ms cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Tech Glow Button */
.btn-tech-glow {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.btn-tech-glow:hover {
    box-shadow: 0 0 20px var(--color-accent-glow);
    transform: translateY(-2px);
}

.btn-tech-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-tech-glow:hover::before {
    left: 100%;
}

/* Magnetic/Lift Card */
.card-hover-lift {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.card-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.12);
}

/* Spotlight Card (Mouse Tracking with opacity variable support) */
.spotlight-card {
    position: relative;
    overflow: hidden;
    --x: 50%;
    --y: 50%;
    --spotlight-opacity: 0;
}

.spotlight-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--x) var(--y), rgba(234, 88, 12, 0.12), transparent 50%);
    opacity: var(--spotlight-opacity, 0);
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

/* --- ASYMMETRICAL LAYOUT UTILITIES --- */
.overlap-content {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .overlap-content {
        margin-top: 0;
        margin-left: -4rem;
    }
}

.deco-number {
    position: absolute;
    font-size: 10rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    z-index: 0;
    font-family: var(--font-display);
    pointer-events: none;
}

/* --- ACCESSIBILITY (ACCESSIBILITY MEDIA QUERIES) --- */

/* 1. Respect system setting for reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-delay: 0s !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }
    
    .card-hover-lift:hover {
        transform: none !important;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08) !important;
    }
    
    .btn-tech-glow:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .btn-tech-glow:active,
    .card-hover-lift:active,
    header a:active,
    nav a:active,
    button:active,
    .cursor-pointer:active,
    .gallery-thumb:active {
        transform: none !important;
    }
    
    .slide {
        animation: none !important;
    }
}

/* 2. Respect system setting for reduced transparency */
@media (prefers-reduced-transparency: reduce) {
    #header.bg-white {
        background: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: 1px solid #cbd5e1 !important;
    }
}