/* promodern/assets/css/style.css */

/* --- SYSTEM RESET --- */
:root {
    --bg-canvas: #FFFFFF;
    --text-ink: #000000;
    --text-grey: #666666;
    --color-accent: #3370FF;
    --font-display: 'Unbounded', sans-serif;
    --font-body: 'Archivo', sans-serif;
}

html {
    background-color: #ffffff;
    max-width: 100vw;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-ink);
    color: var(--text-ink);
    color: var(--text-ink);
    font-family: var(--font-body);
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    position: relative;
    /* Ensure absolute children are contained if needed */
}

/* Global Section Constraint */
section {
    max-width: 100vw;
    overflow-x: clip;
}

main {
    overflow: visible;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
    text-transform: uppercase;
}

.text-display {
    font-family: var(--font-display);
}

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

/* --- LINKS & INTERACTIONS --- */
a,
button {
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.link-underline {
    position: relative;
    display: inline-block;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- BUTTONS --- */
.btn-brutal {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    background: var(--text-ink);
    color: var(--bg-canvas);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    border: 1px solid var(--text-ink);
    transition: all 0.3s ease;
}

.btn-brutal:hover {
    background: transparent;
    color: var(--text-ink);
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
}

.btn-brutal-outline {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    background: transparent;
    color: var(--text-ink);
    border: 1px solid var(--text-ink);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.btn-brutal-outline:hover {
    background: var(--text-ink);
    color: var(--bg-canvas);
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
}

/* --- ANIMATIONS (KEYFRAMES FOR RELIABILITY) --- */

/* 1. Slide Up Fade */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

.slide-up {
    opacity: 0;
    /* Ensures hidden before JS acts */
    transform: translateY(40px);
}

.slide-up.active {
    animation: slideUpFade 1.2s cubic-bezier(0.2, 1, 0.3, 1) both;
}

/* 2. Fade In Down */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

.fade-in-down {
    opacity: 0;
    transform: translateY(-20px);
}

.fade-in-down.active {
    animation: fadeInDown 1.2s cubic-bezier(0.2, 1, 0.3, 1) both;
}

/* 3. Expand Width (Line Animation) */
@keyframes expandLine {
    0% {
        width: 0;
        opacity: 0.5;
    }

    100% {
        width: 100%;
        opacity: 1;
    }
}

.expand-width {
    width: 0;
    opacity: 0;
}

.expand-width.active {
    animation: expandLine 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 4. Reveal Text (Masked Up) */
@keyframes marquee {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
    will-change: transform;
}

/* Animation Delays */
.delay-0 {
    animation-delay: 0ms;
    transition-delay: 0ms;
}

.delay-100 {
    animation-delay: 100ms;
    transition-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
    transition-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
    transition-delay: 300ms;
}

.delay-500 {
    animation-delay: 500ms;
    transition-delay: 500ms;
}

/* Reveal Text (Masked Up) */
.reveal-text {
    overflow: hidden;
}

.reveal-text span {
    display: block;
    transform: translateY(100%);
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform;
}

.reveal-text.active span {
    transform: translateY(0);
}

/* --- UTILS --- */
.container-fluid {
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* --- PERFORMANCE OPTIMIZATIONS --- */
.parallax-img {
    will-change: transform;
    transform: translateZ(0);
}

#services-track {
    will-change: transform;
    transform: translateZ(0);
}