/* ================================================
   BRECOL — HERO SECTION STYLES
   Split layout + animated scene
   ================================================ */

/* ── ALL HERO TEXT — force white on dark background ── */
#hero,
#hero .hero-badge,
#hero .hero-title,
#hero .hero-title .highlight,
#hero .hero-sub,
#hero #hero-typewriter,
#hero .hero-btns .btn,
#hero .hero-pills,
#hero .pill-num,
#hero .pill-label,
#hero .hero-stat-num,
#hero .hero-stat-label,
#hero .scroll-indicator span {
    color: white;
}

#hero .hero-badge {
    color: rgba(255, 255, 255, 0.85);
}

#hero .hero-sub,
#hero #hero-typewriter {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    line-height: 1.7;
}

#hero .pill-label {
    color: rgba(255, 255, 255, 0.55);
}

#hero .hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.1;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

#hero .hero-title .highlight {
    background: linear-gradient(90deg, var(--sky, #00B4FF), var(--blue, #1E5AFF));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Hero layout upgrade ─────────────────────── */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

/* Blueprint dot-grid overlay */
.hero-dot-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(30, 90, 255, 0.25) 1px, transparent 1px);
    background-size: 32px 32px;
    animation: grid-breathe 8s ease-in-out infinite;
    opacity: .6;
}

@keyframes grid-breathe {

    0%,
    100% {
        opacity: .4;
    }

    50% {
        opacity: .7;
    }
}

/* Split layout */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 4;
}

/* Left: content  */
.hero-content {
    max-width: 100%;
}

/* ── Stat Pills row ─────────────────────────── */
.hero-pills {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 14px 28px;
    backdrop-filter: blur(12px);
    width: fit-content;
}

.hero-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0 20px;
}

.pill-num {
    font-family: var(--font-head, 'Outfit', sans-serif);
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.pill-label {
    font-size: .68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.pill-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

/* ── Right: Illustration panel ─────────────── */
.hero-illustration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-scene-svg {
    width: 100%;
    max-width: 520px;
    height: auto;
    filter: drop-shadow(0 32px 80px rgba(30, 90, 255, 0.3));
    animation: scene-float 6s ease-in-out infinite;
}

@keyframes scene-float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ── Floating badges ────────────────────────── */
.hero-badge-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(10, 22, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 10px 20px;
    backdrop-filter: blur(16px);
    font-family: var(--font-head, 'Outfit', sans-serif);
    font-size: .82rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.badge-iso {
    top: 12%;
    left: -8%;
    animation: badge-float-a 5s ease-in-out infinite;
}

.badge-active {
    bottom: 22%;
    right: -6%;
    animation: badge-float-b 5.5s ease-in-out infinite;
}

@keyframes badge-float-a {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

@keyframes badge-float-b {

    0%,
    100% {
        transform: translateY(0) rotate(1deg);
    }

    50% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

/* ── Building animation classes ─────────────── */
.build-floor {
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(.22, 1, .36, 1);
}

.build-win {
    transition: opacity 0.4s ease;
}

.scaffold {
    transition: opacity 0.6s ease;
}

.crane-part {
    transition: opacity 0.5s ease;
}

.worker {
    transition: opacity 0.5s ease;
}

.vehicle {
    transition: opacity 0.5s ease;
}

/* Crane hook swing */
.crane-hook-grp {
    animation: crane-hook-swing 4s ease-in-out infinite;
    transform-origin: 390px 104px;
}

@keyframes crane-hook-swing {

    0%,
    100% {
        transform: rotate(-6deg);
    }

    50% {
        transform: rotate(6deg);
    }
}

/* Mixer drum spin */
.mixer-drum {
    animation: drum-spin 3s linear infinite;
    transform-origin: 386px 448px;
}

@keyframes drum-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Window light flicker */
.build-win {
    animation: win-flicker 4s ease-in-out infinite;
}

.build-win:nth-child(odd) {
    animation-delay: 0s;
}

.build-win:nth-child(even) {
    animation-delay: 1.5s;
}

@keyframes win-flicker {

    0%,
    100% {
        opacity: 1;
    }

    92% {
        opacity: 1;
    }

    93% {
        opacity: 0.5;
    }

    94% {
        opacity: 1;
    }
}

/* Worker bob */
.w1 {
    animation: worker-bob 2.5s ease-in-out infinite;
}

.w2 {
    animation: worker-bob 3s ease-in-out infinite .5s;
}

@keyframes worker-bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* ── City skyline wave ───────────────────────── */
.hero-cityline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    pointer-events: none;
    height: 120px;
}

.hero-cityline svg {
    width: 100%;
    height: 100%;
    animation: city-drift 60s linear infinite;
}

@keyframes city-drift {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-5%);
    }
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-illustration {
        order: -1;
    }

    .hero-scene-svg {
        max-width: 380px;
    }

    .badge-iso {
        top: 4%;
        left: 2%;
    }

    .badge-active {
        bottom: 4%;
        right: 2%;
    }
}

@media (max-width: 768px) {
    .hero-split {
        gap: 20px;
    }

    .hero-scene-svg {
        max-width: 320px;
    }

    .hero-pills {
        padding: 10px 16px;
    }

    .hero-pill {
        padding: 0 12px;
    }

    .pill-num {
        font-size: 1.1rem;
    }

    .badge-iso,
    .badge-active {
        font-size: .74rem;
        padding: 8px 14px;
    }

    .hero-cityline {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .hero-scene-svg {
        max-width: 260px;
    }

    .hero-pills {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 16px;
    }

    .pill-divider {
        display: none;
    }

    .hero-pill {
        padding: 8px 14px;
    }

    .badge-iso {
        top: 2%;
        left: 0;
        font-size: .7rem;
    }

    .badge-active {
        bottom: 2%;
        right: 0;
        font-size: .7rem;
    }
}
/* -- Float card text visibility --- */
#hero .float-card-title { color: white !important; font-weight: 600; }
#hero .float-card-sub   { color: rgba(255,255,255,0.65) !important; font-size: .82rem; }
#hero .hero-badge-float span { color: white !important; }
#hero .scroll-indicator span { color: rgba(255,255,255,0.5) !important; }
#hero .hero-badge { color: rgba(255,255,255,0.85) !important; }
#hero .hero-sub, #hero #hero-typewriter { color: rgba(255,255,255,0.78) !important; }
#hero .hero-title { color: white !important; }
#hero .pill-num   { color: white !important; }
#hero .pill-label { color: rgba(255,255,255,0.55) !important; }
#hero .hero-stat-num   { color: white !important; }
#hero .hero-stat-label { color: rgba(255,255,255,0.6) !important; }
#hero .btn { color: white !important; }
