/* ========= HOME SECTION ONLY ========= */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* Desktop: Lock height for immersive single-screen experience */
@media (min-width: 993px) {

    html,
    body {
        overflow-y: hidden;
    }
}

/* Mobile/Tablet: Allow scroll for accessibility */
@media (max-width: 992px) {

    html,
    body {
        overflow-y: auto;
    }
}

/* HERO WRAPPER */
.hero-section {
    position: relative;
    min-height: calc(100vh - 100px);
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0;
    /* Hilangkan padding horizontal */
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* LEFT CONTENT */
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    height: 100%;
    padding-left: 3rem;
    /* Padding hanya untuk konten teks */
}

/* BIG MOE BACKGROUND TEXT */
.title-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.title-container .moe-text-img {
    position: absolute;
    width: 900px;
    /* Dikecilkan agar muat */
    opacity: 0.15;
    /* Lebih transparan agar tidak mengalahkan konten */
    top: -100px;
    right: -150px;
    /* Digeser lebih ke kiri agar terlihat */
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.title-container h1 {
    position: relative;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 2px;
    margin-top: 20px;
    z-index: 20;
}

/* ABOUT CONTAINER */
.about-container {
    margin-top: 25px;
    position: relative;
    max-width: 600px;
    z-index: 20;
}

.about-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    /* Space between title and box */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.about-box {
    position: relative;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle border for box */
    background: rgba(0, 0, 0, 0.3);
    /* Slight darkening */
}

.about-box p {
    font-size: 1rem;
    line-height: 1.4;
    text-align: justify;
    color: #ddd;
}

/* ABOUT CORNERS (Applied to .about-box) */
.about-box::before,
.about-box::after {
    content: '';
    position: absolute;
    width: 30px;
    /* Smaller corners */
    height: 30px;
    border-color: rgba(255, 255, 255, 0.5);
    border-style: solid;
    transition: 0.3s;
}

.about-box::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.about-box::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

.about-box:hover::before,
.about-box:hover::after {
    width: 100%;
    height: 100%;
    border-color: var(--color-gold);
    /* Gold glow on hover */
}

/* RIGHT SIDE CHARACTER */
.hero-right {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    /* Dorong ke kanan */
    align-items: center;
    z-index: 50;
    margin-right: -5%;
    /* Geser keluar layar 5% untuk efek dramatic */
}

/* BACKGROUND MOE TEXT di belakang karakter */
.hero-right::before {
    content: '';
    position: absolute;
    width: 800px;
    /*Diperbesardari600px*/
    height: 800px;
    background: url('../../assets/landing/7.png') no-repeat center center;
    background-size: contain;
    opacity: 0.5;
    /*Sedikitlebihterlihat*/
    z-index: 1;
    pointer-events: none;
    transform: scale(1.2) translateX(-90px);
    -webkit-transform: scale(1.2) translateX(-90px);
    -moz-transform: scale(1.2) translateX(-90px);
    -ms-transform: scale(1.2) translateX(-90px);
    -o-transform: scale(1.2) translateX(-90px);
}

.character-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    /* Diperbesar dari 750px */
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Posisi ke bawah agar kaki tetap di bawah */
    z-index: 50;
    transform: scale(1.3);
    /* Zoom 130% */
    transform-origin: bottom center;
    /* Pivot dari bawah tengah */
}

/* Combined image */
.main-combined {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    z-index: 10;
    filter: drop-shadow(5px 5px 20px rgba(0, 0, 0, 0.6));
}

/* =========================================
   RESPONSIVE (Max Width 992px)
   ========================================= */

@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        padding: 2rem 20px 80px;
        padding-top: 100px;
        gap: 0;
        overflow: visible;
    }

    .hero-right {
        order: 1;
        height: auto;
        margin-right: 0;
        padding-top: 20px;
        padding-bottom: 20px;
        justify-content: center;
    }

    .hero-right::before {
        transform: scale(1) translateX(0);
        opacity: 0.3;
    }

    .character-container {
        transform: none !important;
        max-width: 100%;
        height: auto;
        max-height: 450px;
    }

    .main-combined {
        max-width: 70%;
        height: auto;
    }

    .hero-left {
        order: 2;
        text-align: center;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 0;
        height: auto;
    }

    .title-container h1 {
        font-size: 1rem;
        margin-top: 10px;
    }

    .about-container {
        margin-top: 25px;
        max-width: 100%;
        text-align: left;
    }

    .about-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .about-box {
        padding: 1.2rem;
    }

    .about-box p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .moe-text-img {
        display: none;
    }
}

/* Small Mobile Devices (481px - 768px) */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 90px;
        padding-bottom: 70px;
    }

    .character-container {
        max-height: 380px;
    }

    .main-combined {
        max-width: 75%;
    }

    .about-title {
        font-size: 2.2rem;
    }

    .about-box p {
        font-size: 0.9rem;
    }
}

/* Extra Small Devices (320px - 480px) */
@media (max-width: 480px) {
    .hero-section {
        padding: 1.5rem 15px 60px;
        padding-top: 80px;
    }

    .character-container {
        max-height: 300px;
    }

    .main-combined {
        max-width: 80%;
    }

    .hero-left {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .title-container h1 {
        font-size: 0.9rem;
    }

    .about-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .about-box {
        padding: 1rem;
    }

    .about-box p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .about-box::before,
    .about-box::after {
        width: 20px;
        height: 20px;
    }
}

/* Very Large Screens (1400px+) */
@media (min-width: 1400px) {
    .hero-section {
        max-width: 1600px;
        margin: 0 auto;
    }

    .about-title {
        font-size: 3.5rem;
    }

    .about-box p {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .character-container {
        max-width: 1000px;
    }
}