/* 
 * THE RESOLUTE - PREMIUM INDUSTRIAL BRUTALISM
 * Color Palette extracted from Logo: Deep Purple & Charcoal
 */

:root {
    --resolute-purple: #3D1F33;
    --resolute-purple-light: #5A324D;
    --resolute-accent: #3D1F33; /* Darker accent for light theme readability */
    --resolute-dark: #0A0A0A;
    --resolute-charcoal: #F5F5F5; /* Used for subtle bgs */
    --resolute-white: #FFFFFF;
    --font-editorial: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

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

body {
    background-color: var(--resolute-white);
    color: var(--resolute-dark);
    font-family: var(--font-inter);
    overflow-x: hidden;
}

/* Typography */
.text-editorial { font-family: var(--font-editorial); }
.text-detail {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: var(--resolute-accent);
}

/* Grain Effect */
.grain {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 999;
}

/* ─── Horizontal Scroll ───────────────────────────────────────── */
.horizontal-scroll-container {
    position: relative;
    background: var(--resolute-white);
    width: 100%;
    overflow: hidden;
}

.horizontal-scroll-track {
    display: flex;
    flex-wrap: nowrap;
    width: 300vw; 
    height: 100vh;
    will-change: transform;
    background: #000;
}

.horizontal-item {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Image Reveal */
.image-reveal-container {
    position: relative;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.image-reveal-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Buttons */
.btn-magnetic {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Footer Background Text */
.footer-bg-text {
    position: absolute;
    bottom: -5%;
    left: 0;
    width: 100%;
    font-size: 30vw;
    font-weight: 900;
    color: var(--resolute-purple);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    text-align: center;
    filter: blur(5px);
}

/* Responsive Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div { grid-column: span 12 !important; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track { background: var(--resolute-white); }
::-webkit-scrollbar-thumb { background: var(--resolute-purple); }


/* Animation Classes — initial state is set by JS, not CSS */
/* This ensures elements are ALWAYS visible if JS fails */
.reveal-up.js-ready {
    opacity: 0;
    transform: translateY(40px);
}

/* Animated in state */
.reveal-up.animated {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Section Label */
.section-label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6em;
    color: var(--resolute-purple);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.section-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--resolute-purple);
    border-radius: 50%;
}

/* Circular Preloader */
.loader-circle-container {
    position: relative;
    /* Size is driven by the SVG classes w-64 h-64 / w-96 h-96 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-circle {
    fill: none;
    stroke: var(--resolute-purple);
    stroke-width: 1;
    stroke-dasharray: 628; /* 2 * PI * 100 */
    stroke-dashoffset: 628;
    transition: none;
}

.loader-circle-bg {
    fill: none;
    stroke: rgba(0,0,0,0.05);
    stroke-width: 1;
}

.nav-floating {
    background-color: rgba(61, 31, 51, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Only direct nav links inherit white — NOT the dropdown card */
.nav-floating > a,
.nav-floating > div > a,
.nav-floating > nav > a,
.nav-floating > nav > div > a,
.nav-floating > div.flex > a,
.nav-floating span {
    color: white !important;
}

/* Dropdown card overrides — dark text on white background */
.nav-dropdown-menu a {
    color: #0A0A0A !important;
}
.nav-dropdown-menu a:hover {
    color: white !important;
    background: #3D1F33 !important;
}

.nav-floating .text-white\/40 {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Hero Section Containment */
.hero-section {
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    position: relative;
}

/* Hero Styles */
.border-text {
    -webkit-text-stroke: 1px rgba(0,0,0,0.1);
}

.vertical-text {
    writing-mode: vertical-rl;
}

/* Enhanced Navigation */
.nav-floating a {
    font-weight: 900 !important;
    font-size: 11px !important;
    letter-spacing: 0.35em !important;
}

.mobile-menu-overlay a {
    font-weight: 900 !important;
    letter-spacing: -0.05em !important;
}

/* Slider Dots */
.slider-dot.active-dot {
    background: white !important;
    width: 32px !important;
}

/* Hero Crossfade Slides */
.hero-slide {
    will-change: opacity;
}

.hero-slide img {
    will-change: transform;
    animation: heroSlideZoom 8s ease-in-out infinite alternate;
}

@keyframes heroSlideZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* ===================== */
/* Services Nav Dropdown */
/* ===================== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 180px;
    background: white;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(61, 31, 51, 0.15), 0 4px 16px rgba(0,0,0,0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 200;
}

/* Bridge the hover gap */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #0A0A0A;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: #3D1F33;
    color: white;
}

/* Dropdown arrow indicator */
.nav-dropdown > a::after {
    content: ' ↓';
    font-size: 8px;
    opacity: 0.5;
}


/* ─── Mobile Menu Animations ────────────────────────────────── */
.menu-trigger {
    z-index: 1100;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.menu-trigger span {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                width 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                background 0.3s ease;
    transform-origin: center;
}

.menu-trigger.is-active span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.menu-trigger.is-active span:last-child {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem !important;
}

/* ─── Viewport & Layering ────────────────────────────────── */
html, body {
    width: 100%;
    overflow-x: clip;
    margin: 0;
    padding: 0;
}

.preloader { z-index: 2000 !important; }
.page-transition { z-index: 1900 !important; }

.nav-floating {
    z-index: 1600 !important;
}

.mobile-menu-overlay {
    z-index: 1500 !important;
    visibility: hidden; /* Start hidden for reliability */
}

.scroll-bar {
    box-shadow: 0 0 15px var(--resolute-purple), 0 0 5px var(--resolute-purple);
    transition: width 0.1s ease-out;
}
