﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

/* =========================================================
   ROOT
========================================================= */
:root {
    --top-offset: 0px;
}

/* =========================================================
   SLIDER CONTAINER
========================================================= */
.slider {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--top-offset));
    min-height: calc(100vh - var(--top-offset));
    overflow: hidden;
}

/* =========================================================
   MOBILE VIEWPORT FIX (CRITICAL)
========================================================= */
@media (max-width: 1024px) {
    .slider {
        height: 100svh;
        min-height: 100svh;
    }
}

/* =========================================================
   SLIDE
========================================================= */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 1.5s ease, opacity 1.5s ease;
}

    /* ACTIVE SLIDE */
    .slide.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
        z-index: 5;
    }

    /* PREVIOUS SLIDE */
    .slide.prev {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-100%);
        z-index: 4;
    }

    /* =========================================================
   OVERLAY (FULL HEIGHT – MOBILE SAFE)
========================================================= */
    .slide::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1;
        pointer-events: none;
    }

/* =========================================================
   HERO CONTENT
========================================================= */
.hero {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 0 40px;
    text-align: center;
    z-index: 3;
}

    .hero h2 {
        font-family: 'Montserrat', sans-serif;
        font-size: clamp(2.2rem, 5vw, 3rem);
        color: #fff;
        text-shadow: 0 4px 20px rgba(0,0,0,0.8);
        opacity: 0;
    }

    .hero p {
        font-size: clamp(1.1rem, 3vw, 1.4rem);
        color: #f0f0f0;
        opacity: 0;
    }

    .hero button {
        padding: 12px 32px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 30px;
        border: 2px solid #fff;
        background: transparent;
        color: #fff;
        cursor: pointer;
        opacity: 0;
        transition: 0.3s;
    }

        .hero button:hover {
            background: #fff;
            color: #000;
            transform: scale(1.05);
        }

/* =========================================================
   SVG FRAME
========================================================= */
svg {
    position: absolute;
    inset: 6%;
    width: 88%;
    height: 88%;
    z-index: 2;
    pointer-events: none;
}

rect {
    stroke: rgba(255,255,255,0.9);
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 2800;
    stroke-dashoffset: 2800;
}

/* =========================================================
   CORNER TEXT
========================================================= */
.corner-text {
    position: absolute;
    bottom: 90px;
    left: 30px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    z-index: 3;
}

/* =========================================================
   ARROWS
========================================================= */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    font-size: 1.6rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
    z-index: 20;
    transition: 0.3s;
}

    .arrow:hover {
        color: #ff5555;
        transform: translateY(-50%) scale(1.15);
    }

    .arrow.left {
        left: 25px;
    }

    .arrow.right {
        right: 25px;
    }

/* =========================================================
   MOBILE ADJUSTMENTS
========================================================= */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero button {
        font-size: 1rem;
        padding: 10px 24px;
    }

    .corner-text {
        bottom: 20px;
        font-size: 0.75rem;
    }

    .arrow {
        font-size: 1.3rem;
    }
}

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes drawBox {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeftIn {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
