@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.dot-loader {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Hero Styles */

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-slow);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

.slide:nth-child(1) {
    background-image: url('../image/hero-slide/slide1.jpg');
}

.slide:nth-child(2) {
    background-image: url('../image/hero-slide/slide2.jpg');
}

.slide:nth-child(3) {
    background-image: url('../image/hero-slide/slide3.jpg');
}

.slide:nth-child(4) {
    background-image: url('../image/hero-slide/slide4.jpg');
}

/* Hero Content Layout */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    height: 100vh;
    padding: 0 50px;
}

/* Sidebar Kiri */
.hero-left {
    flex: 1;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
}

.hero-text {
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Animasi untuk Hero Text */
.hero-text h1 {
    font-size: 3.5rem;
    font-family: var(--heading-font);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInRight 1s ease forwards, slideOutLeft 1s ease forwards 4s;
}

.hero-text p {
    font-size: 1.2rem;
    max-width: auto;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInRight 1s ease forwards 0.5s, slideOutLeft 1s ease forwards 4.5s;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(50px);
    }
}

/* Tambahkan class untuk teks alternatif */
.hero-text.alt-text {
    position: absolute;
    opacity: 0;
}

.hero-text.alt-text.active {
    opacity: 1;
}



