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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #111;
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
       NAVBAR
    ========================== */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 28px 7%;

    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.65),
            transparent);
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;

    width: 0;
    height: 2px;

    background: #0ea5e9;
    transition: 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-button {
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;

    transition: 0.3s;
}

.nav-button:hover {
    background: #fff;
    color: #111;
}

/* =========================
       HERO SLIDER
    ========================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;

    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 1s ease,
        visibility 1s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

/* Background image */
.slide-bg {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1.08);
    transition: transform 7s ease;
}

.slide.active .slide-bg {
    transform: scale(1);
}

/* Overlay agar tulisan mudah dibaca */
.slide::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(90deg,
            rgba(0, 0, 0, 0.82) 0%,
            rgba(0, 0, 0, 0.55) 40%,
            rgba(0, 0, 0, 0.15) 75%,
            rgba(0, 0, 0, 0.1) 100%);
}

/* =========================
       HERO CONTENT
    ========================== */
.hero-content {
    position: relative;
    z-index: 5;

    display: flex;
    align-items: center;

    height: 100%;
    max-width: 1400px;

    margin: auto;
    padding: 0 7%;
}

.hero-text {
    max-width: 650px;
}

.subtitle {
    display: inline-block;

    margin-bottom: 20px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;

    color: #0ea5e9;

    opacity: 0;
    transform: translateY(30px);
}

.hero-text h1 {
    font-size: clamp(48px, 7vw, 100px);
    line-height: 0.95;
    font-weight: 800;

    margin-bottom: 25px;

    opacity: 0;
    transform: translateY(40px);
}

.hero-text p {
    max-width: 550px;

    font-size: 17px;
    line-height: 1.8;

    color: rgba(255, 255, 255, 0.78);

    margin-bottom: 35px;

    opacity: 0;
    transform: translateY(40px);
}

.hero-buttons {
    display: flex;
    gap: 15px;

    opacity: 0;
    transform: translateY(40px);
}

/* =========================
       ANIMASI TEKS
    ========================== */
.slide.active .subtitle {
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.slide.active h1 {
    animation: fadeUp 0.9s ease forwards 0.5s;
}

.slide.active p {
    animation: fadeUp 0.9s ease forwards 0.7s;
}

.slide.active .hero-buttons {
    animation: fadeUp 0.9s ease forwards 0.9s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
       BUTTON
    ========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 20px 38px;

    border-radius: 50px;

    font-size: 16px;
    font-weight: 700;

    transition: 0.35s ease;
}

.btn-primary {
    background: #0ea5e9;
    color: #fff;
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #111;
    transform: translateY(-3px);
}

/* =========================
       SLIDER ARROWS
    ========================== */
.slider-controls {
    position: absolute;
    right: 7%;
    bottom: 60px;

    z-index: 20;

    display: flex;
    gap: 12px;
}

.arrow {
    width: 55px;
    height: 55px;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);

    color: #fff;

    font-size: 22px;

    cursor: pointer;

    transition: 0.3s ease;
}

.arrow:hover {
    background: #fff;
    color: #111;
    transform: scale(1.08);
}

/* =========================
       DOTS
    ========================== */
.dots {
    position: absolute;
    z-index: 20;

    left: 7%;
    bottom: 65px;

    display: flex;
    align-items: center;
    gap: 12px;
}

.dot {
    width: 8px;
    height: 8px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.4);

    cursor: pointer;

    transition: 0.3s;
}

.dot.active {
    width: 35px;
    border-radius: 10px;
    background: #0ea5e9;
}

/* =========================
       SLIDE NUMBER
    ========================== */
.slide-number {
    position: absolute;
    z-index: 20;

    right: 7%;
    top: 50%;

    transform: translateY(-50%);

    display: flex;
    align-items: baseline;
    gap: 5px;

    color: rgba(255, 255, 255, 0.4);
}

.current-number {
    font-size: 55px;
    font-weight: 700;
    color: #fff;
}

.total-number {
    font-size: 16px;
}

/* =========================
       MOBILE MENU
    ========================== */
.menu-toggle {
    display: none;

    width: 45px;
    height: 45px;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.1);

    color: #fff;
    font-size: 22px;

    cursor: pointer;
}

/* =========================
       RESPONSIVE
    ========================== */
@media (max-width: 768px) {
    .hero {
        display: grid;
        height: auto;
        min-height: 0;
        padding: 120px 0 110px;
    }

    .slide {
        position: relative;
        inset: auto;
        grid-area: 1 / 1;
        min-width: 0;
    }

    .slide-bg,
    .slide.active .slide-bg {
        position: relative;
        inset: auto;
        display: block;
        height: auto;
        object-fit: contain;
        transform: none;
    }

    .slide::after {
        display: none;
    }

    .navbar {
        padding: 22px 6%;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;

        width: 75%;
        height: 100vh;

        flex-direction: column;
        align-items: flex-start;
        justify-content: center;

        padding: 50px;

        background: rgba(10, 10, 10, 0.97);

        transition: right 0.5s ease;
    }

    .nav-links.show {
        right: 0;
    }

    .nav-links a {
        font-size: 20px;
    }

    .hero-content {
        height: auto;
        padding: 28px 6%;
    }

    .hero-text {
        min-width: 0;
        margin-top: 0;
        overflow-wrap: anywhere;
    }

    .hero-text h1 {
        font-size: clamp(32px, 8vw, 52px);
    }

    .hero-text p {
        font-size: 15px;
    }

    .hero-buttons {
        flex-wrap: wrap;
    }

    .slide-number {
        display: none;
    }

    .slider-controls {
        right: 6%;
        bottom: 35px;
    }

    .dots {
        left: 6%;
        bottom: 55px;
    }

    .arrow {
        width: 48px;
        height: 48px;
    }
}