/* ============================================
   HYPERFORZA INDEX – HERO STYLES
   Requires: global.css loaded first
   ============================================ */

/* ---- HERO SLIDER ---- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

/* ---- BACKGROUND FLIPPER ---- */
.bg-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.08s ease;
    filter: brightness(0.35) contrast(1.2) saturate(0.8);
    will-change: opacity;
}

.bg-image.active {
    opacity: 1;
}

/* ---- OVERLAYS ---- */
.blur-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(2px);
    z-index: 2;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.75) 100%);
}

.vignette {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}

/* ---- PARTICLES ---- */
.particles {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--red-mid);
    border-radius: 50%;
    animation: floatUp 15s infinite;
    will-change: transform, opacity;
}

@keyframes floatUp {

    0%,
    100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ---- SMOKE ---- */
.smoke {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><filter id="s"><feTurbulence type="fractalNoise" baseFrequency="0.01" numOctaves="5" /><feDisplacementMap in="SourceGraphic" scale="100" /></filter><rect width="100%25" height="100%25" filter="url(%23s)" opacity="0.1"/></svg>');
    opacity: 0.25;
    animation: smokeMove 20s infinite linear;
    will-change: transform;
}

@keyframes smokeMove {
    0% {
        transform: translateX(0) scale(1);
    }

    50% {
        transform: translateX(-50px) scale(1.1);
    }

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

/* ---- FLASH EFFECT ---- */
.flash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--red-glow) 0%, transparent 60%);
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    animation: flashEffect 5s infinite;
}

@keyframes flashEffect {

    0%,
    90%,
    100% {
        opacity: 0;
    }

    95% {
        opacity: 0.8;
    }
}

/* ---- VERTICAL TEXT ---- */
.vertical-text-left,
.vertical-text-right {
    position: absolute;
    top: 50%;
    z-index: 10;
    white-space: nowrap;
}

.vertical-text-left {
    left: 30px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
}

.vertical-text-right {
    right: 30px;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: right center;
}

.vertical-text-left span,
.vertical-text-right span {
    font-family: 'Inter', sans-serif;
    font-size: clamp(70px, 11vw, 160px);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--red-soft);
    letter-spacing: 20px;
    text-transform: uppercase;
    display: inline-block;
    animation: glowPulse 3s infinite;
}

.vertical-text-right span {
    animation-delay: 1.5s;
}

@keyframes glowPulse {

    0%,
    100% {
        -webkit-text-stroke-color: rgba(254, 0, 0, 0.25);
        text-shadow: 0 0 20px rgba(254, 0, 0, 0.15);
    }

    50% {
        -webkit-text-stroke-color: rgba(254, 0, 0, 0.5);
        text-shadow: 0 0 40px rgba(254, 0, 0, 0.4);
    }
}

/* ---- MAIN CONTENT ---- */
.main-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 20;
    width: 90%;
    max-width: 820px;
}

/* ---- LOGO IMAGE ---- */
.hero-logo-img {
    width: clamp(64px, 10vw, 100px);
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 24px rgba(254, 0, 0, 0.35));
    animation: logoBreathe 3s ease-in-out infinite;
}

@keyframes logoBreathe {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 24px rgba(254, 0, 0, 0.35));
    }

    50% {
        transform: scale(1.04);
        filter: drop-shadow(0 0 40px rgba(254, 0, 0, 0.55));
    }
}

/* ---- GLITCH LOGO TEXT ---- */
.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(48px, 9vw, 100px);
    font-weight: 900;
    letter-spacing: 10px;
    text-transform: uppercase;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--red) 0%, #ff3333 50%, var(--red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 2.5s infinite;
    position: relative;
}

@keyframes logoGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 16px rgba(254, 0, 0, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 36px rgba(254, 0, 0, 0.7));
    }
}

/* Glitch pseudo-elements */
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch::before {
    animation: glitch1 2.5s infinite;
    z-index: -1;
}

.glitch::after {
    animation: glitch2 2.5s infinite;
    z-index: -2;
}

@keyframes glitch1 {

    0%,
    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }

    20% {
        clip-path: inset(20% 0 60% 0);
        transform: translate(-2px, 2px);
    }

    40% {
        clip-path: inset(40% 0 40% 0);
        transform: translate(2px, -2px);
    }

    60% {
        clip-path: inset(60% 0 20% 0);
        transform: translate(-2px, 2px);
    }

    80% {
        clip-path: inset(80% 0 0% 0);
        transform: translate(2px, -2px);
    }
}

@keyframes glitch2 {

    0%,
    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }

    20% {
        clip-path: inset(60% 0 20% 0);
        transform: translate(2px, -2px);
    }

    40% {
        clip-path: inset(40% 0 40% 0);
        transform: translate(-2px, 2px);
    }

    60% {
        clip-path: inset(20% 0 60% 0);
        transform: translate(2px, -2px);
    }

    80% {
        clip-path: inset(0% 0 80% 0);
        transform: translate(-2px, 2px);
    }
}

/* ---- TAGLINE ---- */
.tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(13px, 2vw, 18px);
    font-weight: 500;
    color: var(--white-50);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* ---- HERO TITLE ---- */
.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(32px, 5.5vw, 68px);
    font-weight: 900;
    color: var(--white);
    letter-spacing: 3px;
    margin-bottom: 16px;
    text-transform: uppercase;
    line-height: 1.1;
}

/* ---- HERO SUBTITLE ---- */
.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(13px, 1.8vw, 18px);
    font-weight: 400;
    color: var(--white-50);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 48px;
}

/* ---- CTA BUTTON ---- */
/* Now defined in global.css */

/* ---- NAV DOTS ---- */
.nav-dots {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 30;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--white-30);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-dot.active {
    background: var(--red);
    transform: scale(1.3);
    box-shadow: 0 0 12px var(--red-mid);
}

.nav-dot:hover {
    background: var(--red-mid);
}

/* ---- SLIDE COUNTER ---- */
.slide-counter {
    position: absolute;
    bottom: 36px;
    right: 36px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--white-50);
    z-index: 30;
    letter-spacing: 2px;
}

.slide-counter span {
    color: var(--red);
    font-size: 22px;
    font-weight: 800;
}

/* ---- PROGRESS BAR ---- */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), #ff3333);
    z-index: 30;
    transition: width 0.1s linear;
}

/* ---- RIPPLE KEYFRAMES ---- */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {

    .vertical-text-left,
    .vertical-text-right {
        display: none;
    }

    .slide-counter {
        right: 20px;
        bottom: 20px;
        font-size: 14px;
    }

    .slide-counter span {
        font-size: 18px;
    }

    .nav-dots {
        bottom: 20px;
    }

    .nav-dot {
        width: 8px;
        height: 8px;
    }

    /* .button responsive is in global.css */

    .hero-logo-img {
        width: 56px;
    }
}