/* =============================================
   HERO.CSS — Section hero (halaman utama / landing)
   Mengatur tampilan banner utama, logo, judul, subtitle, CTA, scroll indicator.
   ============================================= */

/* --- Hero Section Container --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px;
    overflow: hidden;
    padding-bottom: 180px;
    /* Space untuk wave divider */
}

/* --- Wave Dividers (pembatas gelombang antar section) --- */
.wave-divider {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
}

.wave-divider.bottom {
    bottom: -1px;
    transform: rotate(180deg);
}

.wave-divider.bottom-reverse {
    bottom: -1px;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.wave-divider .shape-fill {
    fill: var(--sky-500);
}

/* Warna wave berdasarkan transisi antar section */
.hero .wave-divider .shape-fill {
    fill: var(--sky-200);
    /* Hero → Apps Catalog */
}

.services .wave-divider .shape-fill {
    fill: var(--sky-100);
    /* Services → Contact */
}

/* --- Hero Clouds (awan dekoratif di hero) --- */
.hero-clouds {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cloud-svg {
    position: absolute;
    width: 100%;
    height: auto;
    opacity: 0.5;
}

.cloud-svg-1 {
    bottom: 0;
    animation: cloudSway 20s ease-in-out infinite;
}

.cloud-svg-2 {
    bottom: 50px;
    animation: cloudSway 25s ease-in-out infinite reverse;
}

@keyframes cloudSway {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(30px);
    }
}

/* --- Hero Content --- */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

/* --- Hero Logo --- */
.hero-logo {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.hero-logo img {
    width: auto;
    /* Biarkan lebar menyesuaikan proporsi */
    max-width: 80vw;
    /* Jangan melebihi lebar layar */
    max-height: 220px;
    /* Batasi tinggi agar tidak terlalu dominan jika logo persegi */
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 50px rgba(14, 165, 233, 0.4));
    animation: logoFloat 5s ease-in-out infinite;
    will-change: transform;
}

@keyframes logoFloat {

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

    25% {
        transform: translateY(-15px) rotate(1deg);
    }

    75% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

/* --- Mini Clouds (awan kecil di sekitar logo) --- */
.logo-clouds {
    position: absolute;
    inset: -40px;
    pointer-events: none;
}

.mini-cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    filter: blur(2px);
    animation: miniCloudFloat 4s ease-in-out infinite;
}

.mc-1 {
    width: 60px;
    height: 30px;
    top: 0;
    left: 10%;
    animation-delay: 0s;
}

.mc-2 {
    width: 40px;
    height: 20px;
    top: 30%;
    right: 5%;
    animation-delay: -1s;
}

.mc-3 {
    width: 50px;
    height: 25px;
    bottom: 10%;
    left: 5%;
    animation-delay: -2s;
}

@keyframes miniCloudFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(10px, -10px) scale(1.1);
        opacity: 0.9;
    }
}

/* --- Hero Title --- */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.title-word {
    display: inline-block;
    color: var(--cloud-white);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    animation: wordReveal 0.8s var(--ease-cloud) forwards;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
}

.title-word:nth-child(1) {
    animation-delay: 0.2s;
}

.title-word:nth-child(2) {
    animation-delay: 0.4s;
}

.title-word:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- Hero Subtitle --- */
.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    animation: fadeUp 1s var(--ease-smooth) 0.8s backwards;
}

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

/* --- Hero CTA (tombol aksi) --- */
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeUp 1s var(--ease-smooth) 1s backwards;
}

/* --- Scroll Indicator (panah scroll ke bawah) --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeUp 1s var(--ease-smooth) 1.2s backwards;
    transition: var(--transition-fast);
}

.scroll-indicator:hover {
    color: var(--cloud-white);
}

.scroll-cloud svg {
    width: 40px;
    height: 24px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, currentColor, transparent);
}