@import url("style.css");

/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header-btn-group .btn { display: none; }

.header {
    --color: var(--white);
    --btn-color: var(--white);

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-block: 20px;
    border-block-end: 1px solid var(--champagne-pink_20);
    z-index: 4;
}

.header.active {
    --color: var(--rich-black-fogra-29);
    --btn-color: var(--rich-black-fogra-29);

    position: fixed;
    top: -86px;
    background-color: var(--white);
    box-shadow: var(--shadow-1);
    animation: slideIn 0.5s ease-out forwards;
}

.logo .span {
    display: inline-block;
    color: var(--deep-saffron);
  }

@keyframes slideIn {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--color);
    font-family: var(--ff-rubik);
    font-size: 2.8rem;
    font-weight: var(--fw-700);
}

.header-btn-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-toggle-btn {
    display: grid;
    gap: 4px;
}

.line {
    width: 10px;
    height: 3px;
    background-color: var(--btn-color);
    border-radius: 5px;
    transition: var(--transition-1);
}

.line.middle { width: 20px; }

.line.bottom { margin-left: auto; }

.nav-toggle-btn.active .line.top { transform: translate(1px, 3px) rotate(45deg); }

.nav-toggle-btn.active .line.middle { transform: rotate(-45deg); }

.nav-toggle-btn.active .line.bottom { transform: translate(-1px, -3px) rotate(45deg); }

.navbar {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    background-color: var(--pale-beige);
    padding-inline: 20px;
    box-shadow: var(--shadow-1);
    height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: var(--transition-1);
}

.navbar.active {
    height: 236px;
    visibility: visible;
}

.navbar-list { margin-block: 10px; }

.nav-item:not(:last-child) { border-block-end: 1px solid hsla(0, 0%, 0%, 0.04); }

.navbar-link {
    color: var(--rich-black-fogra-29);
    font-size: var(--fs-4);
    font-family: var(--ff-rubik);
    font-weight: var(--fw-500);
    padding: 10px 15px;
    transition: var(--transition-1);
    position: relative;
    text-decoration: none; 
    border-radius: 10px;
}

.navbar-link:is(:hover, :focus) {
    color: var(--dark-orange);
    background-color: var(--light-orange);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.navbar-link:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px; 
    width: 0;
    height: 2px;
    background-color: var(--dark-orange); 
    transition: width 0.3s ease;
}

.navbar-link:hover:after {
    width: 100%; 
}

.navbar-link.is-active:after {
    width: 100%; 
    background-color: var(--dark-orange);
}

.navbar-link.is-active {
    color: var(--dark-orange); 
    background-color: transparent;
    font-weight: var(--fw-600);
    position: relative;
}


/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

/* .hero-banner { display: none; }

.hero {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding-block: 145px 60px;
    text-align: center;
}

.hero-title {
    color: var(--pale-beige);
    max-width: 20ch;
    margin-inline: auto;
    align-items: center;
}

.hero-text {
    color: var(--desert-sand);
    margin-block: 15px 30px;
    max-width: 44ch;
    margin-inline: auto;
    align-items: center;
    justify-items: center;
} */


.hero {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding-block: 145px 60px;
    text-align: center;
    position: relative; 
    overflow: hidden; 
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    position: absolute; 
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out; 
    opacity: 1; 
}

.hero .container {
    position: relative; 
    z-index: 2; 
}

.hero-title {
    color: var(--pale-beige);
    max-width: 20ch;
    margin-inline: auto;
    align-items: center;
}

.hero-text {
    color: var(--desert-sand);
    margin-block: 15px 30px;
    max-width: 44ch;
    margin-inline: auto;
    align-items: center;
    justify-items: center;
}

/*-----------------------------------*\
  #service
\*-----------------------------------*/

.service-card {
    position: relative;
    background-color: var(--pale-beige);
    text-align: center;
    padding: 40px 30px;
    box-shadow: var(--shadow-2);
    z-index: 1;
}

.service-card .section-title {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    gap: 10px; 
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--iceberg);
    clip-path: var(--clip-path-1);
    transform: scaleY(0.3);
    transform-origin: bottom;
    z-index: -1;
    transition: var(--transition-1);
}

.service-card:hover::after {
    clip-path: var(--clip-path-2);
    transform: scale(1);
}

.service-card .card-icon img { margin-inline: auto; }

.service-card:hover .card-icon img { fill: var(--pale-beige); }

.service-card:hover :is(.card-title, .card-text) { color: var(--white); }

.service-card .card-title {
    margin-block: 15px;
    transition: var(--transition-1);
    font-size: var(--fs-3);
}

.service-card .card-text {
    margin-block-end: 15px;
    transition: var(--transition-1);
}

.service-card .card-banner {
    max-width: max-content;
    height: auto;
    margin-inline: auto;
    aspect-ratio: 1 / 1;
}

.scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.service-list {
    display: inline-flex; 
    animation: scroll 20s linear infinite; 
    white-space: nowrap;
}

.service-item {
    flex-shrink: 0; 
    margin-right: 20px; 
    width: 100%; 
    height: auto; 
    max-width: 170px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); 
    }
}

.service-btn {
    width: 200px; 
    display: flex;    
    margin: 10px auto; 
    position: relative; 
}

.service-btn .next {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 24px; 
    padding: 10px 20px; 
    width: 200px;
    background: linear-gradient(to left top, #c32c71 50%, #b33771 50%);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}

.service-btn .next::after {
    content: 'Lihat lebih banyak perkhidmatan'; 
    position: absolute;
    bottom: 100%; 
    left: 50%;
    transform: translate(-50%, -5px); 
    background-color: var(--sky-blue); 
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.3s ease, visibility 0.3s ease;
    white-space: nowrap; 
    pointer-events: none; 
}

.service-btn .next:hover::after {
    opacity: 1; 
    visibility: visible;
}
.service-btn .next:hover::after {
    opacity: 1; 
    visibility: visible; 
}


/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about { text-align: center; }

.about-banner {
    position: relative;
    aspect-ratio: 1 / 0.9;
}

.about-img {
    max-width: 500px;
    margin-inline: auto;
}

.about-banner .abs-img {
    top: 0;
    left: 100px;
}

.about .section-title {
    max-width: 50ch;
    margin-block: 40px 10px;
    margin-inline: auto;
}

.about .section-text {
    text-align: justify;
}

.about-list { margin-block: 20px 30px; }

.about-item {
    display: flex;
    justify-content: justify;
    gap: 10px;
}

.about-item:not(:last-child) { margin-block-end: 10px; }

.about-item ion-icon {
    background-color: var(--deep-saffron);
    color: var(--pale-beige);
    font-size: 1.2rem;
    padding: 4px;
    border-radius: 50%;
    --ionicon-stroke-width: 110px;
}

.about-item .span {
    color: var(--rich-black-fogra-29);
    font-family: var(--ff-rubik);
    font-weight: var(--fw-500);
    display: inline;
}

.about .btn { margin-inline: auto; }




/*-----------------------------------*\
  #BRANCH
\*-----------------------------------*/

.branch { text-align: center; }

.branch-banner {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%; 
    padding-top: 56.25%; 
    position: relative;
}

.branch-banner iframe {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    border: none; 
}

.branch-img {
    margin-inline: auto;
    border-top-left-radius: 50px; 
    border-bottom-right-radius: 50px; 
    border-top-right-radius: 0; 
    border-bottom-left-radius: 0;
    transform: scale(1);
    transition: var(--transition-2);
    max-width: 550px;
}

.branch-banner:is(:hover, :focus-within) .branch-img { transform: scale(1.05); }

.branch-content .section-title {
    max-width: 50ch;
    margin-block: 40px 10px;
    margin-inline: auto;
}

.branch-content .section-text {
    text-align: justify;
}

.branch .btn { 
    margin-inline: auto; 
    margin-top: 30px;
}

/*-----------------------------------*\
  #TESTIMONIALS 
\*-----------------------------------*/

.testi { text-align: center; }

.testi .section-title { margin-block: 10px 20px; }

.testi .section-text {
    max-width: 44ch;
    margin-inline: auto;
    margin-block-end: 30px;
}

.testi-card {
    background-color: var(--pale-beige);
    padding: 40px;
    text-align: left;
    box-shadow: var(--shadow-2);
}

.testi-card .profile-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testi-card .avatar {
    min-width: max-content;
    border-radius: 50%;
    overflow: hidden;
}

.testi-card .testi-name { margin-block-end: 2px; }

.testi-card .testi-title {
    font-family: var(--ff-rubik);
    font-size: var(--fs-4);
}

.testi-card .testi-text { margin-block: 20px 15px; }

.testi-item {
    min-width: 100%;
    scroll-snap-align: start;
}


/*-----------------------------------*\
  #ACHIEVEMENT
\*-----------------------------------*/

.achievement {
    padding: 50px 0;
    background-color: #f8f8f8;
}

.achievement-title {
    text-align: center;
    margin-bottom: 30px;
}

.achievement-content {
    display: flex; 
    justify-content: space-around; 
    flex-wrap: wrap; 
    gap: 20px; 
}

.achievement-item {
    background-color: var(--pale-beige);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1 1 200px; 
    min-width: 250px; 
}

.achievement-item:hover {
    background-color: #cbd2d9;
}

.achievement-number {
    font-size: 48px;
    color: var(--deep-saffron);
    font-weight: bold;
}

.achievement-description {
    font-size: 18px;
    color: var(--tangerine);
}

.achievement-item:hover .achievement-number {
    color: #002147;
}

.achievement-item:hover .achievement-description {
    color: #004C4C;
}



/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

@media (min-width: 480px) {

    .header-btn-group .btn {
        display: block;
        --bg-color: var(--dark-orange);
    }

}


@media (min-width: 550px) {

    .container {
        max-width: 550px;
        width: 100%;
        margin-inline: auto;
    }

    .has-scrollbar > li { min-width: calc(50% - 5px); }

    .hero-title { --fs-1: 4.2rem; }

    .footer-top .container { grid-template-columns: 1fr 1fr; }

}


@media (min-width: 768px) {

    .container { max-width: 720px; }

    .hero {
        position: relative;
        text-align: left;
        overflow: hidden;
        z-index: 1;
    }

    /* .hero-content > :is(*, .btn) { margin-inline: 0; } */

    .hero-banner {
        display: block;
        position: absolute;
        top: calc(50% + 86px);
        transform: translateY(-50%);
        right: 50px;
        max-width: 40%;
        aspect-ratio: 1 / 0.9;
    }

    .hero-img {
        position: absolute;
        bottom: 0;
    }

    .hero::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: -2px;
        width: 100%;
        height: 100%;
        background-image: url("../images/cover1.png");
        background-repeat: no-repeat;
        background-size: contain;
        background-position: right bottom;
        pointer-events: none;
        z-index: -1;
    }

    .about .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .about { text-align: left; }

    .about .section-title { margin-block-start: 0; }

    .about :is(.section-title, .btn) { margin-inline: 0; }

    .about-item { justify-content: flex-start; margin-bottom: 20px;}

    .branch .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .branch { text-align: left; }

    .branch .section-title { margin-block-start: 0; }

    .branch :is(.section-title, .btn) { margin-inline: 0; }

    .branch-item { justify-content: flex-start; }


}


@media (min-width: 992px) {

    :root {
        --section-padding: 120px;
    }

    .container { max-width: 960px; }

    .has-scrollbar > li { min-width: calc(33.33% - 6.66px); }

    .h2 { --fs-1: 4.2rem; }

    .nav-toggle-btn { display: none; }

    .header .container { gap: 20px; }

    .navbar,
    .navbar.active {
        all: unset;
        margin-inline-start: auto;
    }

    .navbar-list {
        margin-block: 0;
        display: flex;
        gap: 5px;
    }

    .nav-item:not(:last-child) { border-block-end: none; }

    .navbar-link {
        --fs-4: 1.5rem;
        color: var(--btn-color);
        letter-spacing: -0.5px;
    }


    .hero {
        min-height: 660px;
        display: grid;
        align-items: center;
    }

    .hero-subtitle { --fs-3: 3.2rem; }

    .hero-title {
        --fs-1: 7rem;
        letter-spacing: -2.5px;
    }

    .hero-text { font-size: var(--fs-2); }

    .hero-banner {
        max-width: 45%;
        top: auto;
        bottom: 0;
        transform: translateY(0);
    }

    .hero-img-bg { transform: scale(0.5) translate(350px, 750px); }

    .testi-list { padding-block-end: 0; }

    .footer-top .container { grid-template-columns: 1fr 1fr 1fr 1.6fr; }

    .back-top-btn {
        bottom: 20px;
        right: 30px;
    }

    .float-social-icon {
        bottom: 75px;
        right: 30px;
    }

    .social-icon {
        bottom: 85px;
        right: 30px;
    }

}


@media (min-width: 1200px) {

    .container { max-width: 1200px; }

    .hero { min-height: 770px; }

    .hero-title {
        margin-inline: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .hero-text {
        max-width: 70ch;
        margin-inline: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .service-page-list { grid-template-columns: 1.4fr 1fr 1fr 1.6fr; }
    
    .service .service-item { min-width: calc(25% - 7.5px); }

    .service .section-title {
        text-align: center; 
        margin-bottom: 20px;
    }
  
    .about .container { gap: 60px; }

    .branch .container { gap: 60px; }

    .footer-top .container { grid-template-columns: 1.4fr 1fr 1fr 1.6fr; }

}

@media (min-width: 1800px) {

    .container {
        max-width: 1700px;
    }

    .hero {
        min-height: 900px; 
    }

    .hero-title {
        margin-inline: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        --fs-1: 8rem;
    }
    
    .hero-text {
        max-width: 70ch;
        margin-inline: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: var(--fs-1); 
    }
    

    .about-item ion-icon {
        font-size: 1.5rem;
        --ionicon-stroke-width: 130px;
        padding: 4px;
        margin-top: 8px;
    }
    
    .service .service-item {
        min-width: calc(25% - 10px); 
    }

    .service .section-title {
        text-align: center;
        margin-bottom: 30px; 
    }

    .service-card .card-banner {
        max-width: 250px
    }

    .about .container,
    .branch .container {
        gap: 10px; 
    }

    .section-title{
        --fs-1: 5.5rem;
    }

    .about-item .span,
    .section-text{ font-size: var(--fs-2)}

    .btn {
        max-width: 450px;
        font-size: var(--fs-3);
        height: 60px;
    }

    .footer-top .container {
        grid-template-columns: 1.5fr 1fr 1fr 1.7fr;
    }

    .branch-img {
        max-width: 800px;
    }

    .service .card-title{
        font-size: var(--fs-2);
    }

    .footer-list-title{
        font-size: var(--fs-2);
    }

}
