@font-face {
    font-family: "FrameHead-Roman";
    src: url("../fonts/FrameHead-Roman-Web.woff2") format("woff2"),
         url("../fonts/FrameHead-Roman-Web.woff") format("woff");
    font-style: normal;
    font-weight: normal;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
}

/* -- Hero Panel -- */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transform-origin: center center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
}
.hero-panel {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* -- KELOMPOK GAMBAR -- */
.hero-image {
    width: 71%;
    height: 71%;
    top: 0;
    right: 0;
    background-image: url("../images/services/service1.webp");
}
.hero-image1 {
    width: 42%;
    height: 26%;
    bottom: 0;
    right: 1.5%;
    background-image: url("../images/services/service2.webp");
}
.hero-image2 {
    width: 54.5%;
    height: 26%;
    bottom: 0;
    left: 0;
    background-image: url("../images/services/service3.webp");
}


/* -- KELOMPOK BACKGROUND BIRU (OVERLAY) -- */
.hero-bg-image {
    width: 70.5%;
    height: 70%;
    top: 0;
    right: 0;
    background: linear-gradient(0deg, #0052cc, #263238);
}
.hero-bg-image1 {
    width: 42%;
    height: 26%;
    bottom: 0;
    right: 1.5%;
    background: linear-gradient(0deg, #0052cc, #263238);
}
.hero-bg-image2 {
    width: 54.5%;
    height: 26%;
    bottom: 0;
    left: 0;
    background: linear-gradient(0deg, #0052cc, #263238);
}

/* Hero Text Bottom Right */
.hero-text-right {
    position: absolute;
    z-index: 3;
    color: rgb(0, 0, 0);
    text-align: right;
    margin-right: 10px;
}
.hero-tagline {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0px;
    text-transform: uppercase;
}
.hero-subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
}
/* -- Trapezoid -- */
.hero-trapezoid {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
}

/* -- Trapezoid Kiri -- */
.hero-trapezoid-left {
    left: 0;
    top: 27%;
    width: 70%;
    height: 50%;
    background: rgb(255, 255, 255);
    clip-path: polygon(0 0, 85% 0, 58% 100%, 0 100%);
}
.hero-trapezoid-blue {
    left: 0;
    top: 28%;
    width: 70.5%;
    height: 49%;
    background: linear-gradient(0deg, #0052cc, #263238);
    visibility: hidden; 
    animation: sweep-trapezoid-left 0.6s ease-out forwards;
    animation-delay: 2.0s;
}

/* -- Trapezoid Kanan -- */
.hero-trapezoid-right {
    right: 0;
    bottom: 9%;
    width: 24%;
    height: 15%;
    background: rgb(255, 255, 255);
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%, 0 40%);
}
.hero-trapezoid-blue-right {
    right: 0;
    bottom: 7%;
    width: 23.5%;
    height: 15%;
    background: linear-gradient(135deg, #0052cc, #263238);
    visibility: hidden; 
    animation: sweep-trapezoid-right 0.6s ease-out forwards;
    animation-delay: 2.0s;
}

/* -- Trapezoid Konten -- */
.trapezoid-content {
    padding: 0% 0% 5% 11%;
    color: #333;
    max-width: 75%;
}
.trapezoid-text-main {
    font-family: 'FrameHead-Roman', serif;
    font-size: clamp(2.5em, 4vw, 5rem); 
    font-weight: 700;
    line-height: 1.3;
    color: #222;
    letter-spacing: 1px;
}
.trapezoid-text-sub {
    font-size: clamp(1.2em, 2vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 5%;
    color: #444;
    line-height: 1.4;
}
.trapezoid-text-desc {
    font-size: clamp(1rem, 1.5vw, 2rem);
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #555;
    line-height: 1;
}
.trapezoid-text-desc:last-child {
    margin-bottom: 0;
}

/* -- Scroll Indicator -- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}
.scroll-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}
.scroll-link:hover {
    color: white;
    transform: translateY(-5px);
}
.scroll-link i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.scroll-link span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* -- KELOMPOK GAMBAR & BACKGROUND (ANIMASI SANGAT CEPAT) -- */
.hero-bg-image, .hero-bg-image1, .hero-bg-image2,
.hero-image, .hero-image1, .hero-image2 {
    clip-path: inset(100% 0 0 0);
    animation: sweep-up 0.3s ease-out forwards;
}

/* --- PENGATURAN WAKTU ANIMASI (DELAY) - SANGAT CEPAT --- */
/* Latar Biru 1 */
.hero-bg-image {
    width: 70.5%; height: 70%; top: 0; right: 0;
    background: linear-gradient(0deg, #0052cc, #263238);
    animation-delay: 0s; /* Mulai langsung */
}
.hero-image {
    width: 71%; height: 71%; top: 0; right: 0;
    background-image: url("../images/hero/hero2.webp");
    animation-delay: 0.3s; /* 0s + 0.3s */
}

/* Latar Biru 2 */
.hero-bg-image1 {
    width: 42%; height: 26%; bottom: 0; right: 1.5%;
    background: linear-gradient(0deg, #0052cc, #263238);
    animation-delay: 0.6s; /* 0.3s + 0.3s */
}
.hero-image1 {
    width: 42%; height: 26%; bottom: 0; right: 1.5%;
    background-image: url("../images/hero/hero1.webp");
    animation-delay: 0.9s; /* 0.6s + 0.3s */
}

/* Latar Biru 3 */
.hero-bg-image2 {
    width: 54.5%; height: 26%; bottom: 0; left: 0;
    background: linear-gradient(0deg, #0052cc, #263238);
    animation-delay: 1.2s; /* 0.9s + 0.3s */
}
.hero-image2 {
    width: 54.5%; height: 26%; bottom: 0; left: 0;
    background-image: url("../images/hero/hero3.webp");
    animation-delay: 1.5s; /* 1.2s + 0.3s */
}

/* --- Media Query for Mobile Responsive --- */
@media (max-width: 768px) {

    .hero {
        /* Center the content vertically and horizontally */
        justify-content: center;
        text-align: center;
    }

    /* --- 1. Simplify the Background --- */

    /* Hide the complex multi-image collage on mobile */
    .hero-panel.hero-image,
    .hero-panel.hero-image1,
    .hero-panel.hero-image2,
    .hero-panel.hero-bg-image,
    .hero-panel.hero-bg-image1,
    .hero-panel.hero-bg-image2 {
        display: none;
    }

    /* Use a single, full-screen background image instead */
    .hero-background {
        background-image: url('../images/hero/hero2.webp');
        /* 'fixed' can cause issues on mobile, 'scroll' is safer */
        background-attachment: scroll; 
    }
    
    .hero-overlay {
        /* Add a darker overlay so white text is readable */
        background: rgba(0, 0, 0, 0.5);
    }


    /* --- 2. Stack and Restyle Content Blocks --- */

    /* Hide the decorative blue trapezoids */
    .hero-trapezoid-blue,
    .hero-trapezoid-blue-right {
        display: none;
    }

    /* General style for both trapezoids to become simple blocks */
    .hero-trapezoid-left,
    .hero-trapezoid-right {
        position: relative; /* Remove absolute positioning */
        clip-path: none; /* Remove the trapezoid shape */
        
        width: 90%; /* Use most of the screen width */
        height: auto; /* Let content define the height */
        
        /* Reset all absolute positioning values */
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;

        margin: 15px auto; /* Add spacing between blocks */
        padding: 25px;
        background: rgba(255, 255, 255, 0.15); /* Make it transparent */
        border-radius: 8px; /* Add rounded corners */
        backdrop-filter: blur(5px); /* Optional: nice glass effect */
    }

    /* --- 3. Adjust Text and Content --- */
    
    /* Reverse the order for better mobile flow (main content first) */
    .hero-trapezoid-right {
        order: 2; /* This will appear after the left trapezoid */
    }
    .hero-trapezoid-left {
       order: 1; /* This will appear first */
    }
    .hero-background {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }


    .trapezoid-content {
        padding: 0;
        max-width: 100%;
        color: #fff; /* Change text to white for readability on dark overlay */
    }
    
    .trapezoid-text-main,
    .trapezoid-text-sub,
    .trapezoid-text-desc {
        color: #fff; /* Make all text white */
    }

    .trapezoid-text-main {
        font-size: clamp(2em, 8vw, 3.5rem); /* Adjust font size for mobile */
    }

    .trapezoid-text-sub {
        font-size: clamp(1.2em, 5vw, 2rem);
    }

    .trapezoid-text-desc {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem);
    }
    
    .hero-text-right {
        position: static; /* No longer absolute */
        text-align: center;
        color: #fff; /* Change text to white */
        margin-right: 0;
    }
    
    /* --- 4. Adjust Scroll Indicator --- */
    .scroll-indicator {
        bottom: 15px; /* Position it a bit higher from the edge */
    }

}

/* --- Media Query for Mobile Responsive --- */
@media (max-width: 768px) {

    .hero {
        /* Center the content vertically and horizontally */
        justify-content: center;
        text-align: center;
    }
}
    /* --- 1. Simplify the Background --- */

  