html {
    scroll-behavior: smooth;
}

/* Fullscreen Loader Container */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #083C75;
    transition: opacity 0.75s, visibility 0.75s;
    z-index: 9999;
}

/* Hide Animation */
.loader--hidden {
    opacity: 0;
    visibility: hidden;
}

/* Wave Animation Loader */
.loader::after {
    content: "";
    height: 30px;
    aspect-ratio: 6;
    --c: #0000 64%, #FAFEFF 66% 98%, #0000 101%;
    background:
        radial-gradient(35% 146% at 50% 159%, var(--c)) 0 0,
        radial-gradient(35% 146% at 50% -59%, var(--c)) 25% 100%;
    background-size: calc(100%/3) 50%;
    background-repeat: repeat-x;
    animation: l1 1s infinite linear;
}

@keyframes l1 {
    to {
        background-position: 50% 0, 75% 100%;
    }
}

/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
    height: 70px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.navbar.scrolled {
    background-color: #083c75 !important;
}

.hamburger-circle,
.close-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hamburger-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: 2px solid white;
    outline-offset: 2px;
    background-color: transparent;
}

.hamburger-circle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.close-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: 2px solid #019AAA;
    outline-offset: 2px;
    background-color: transparent;
    color: #019AAA;
}

.close-circle:hover {
    background-color: rgba(1, 154, 170, 0.1);
}

.offcanvas-menu {
    width: 300px;
    background-color: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-bottom-left-radius: 70px;
    top: 0;
    bottom: 20px;
    height: auto;
}

.offcanvas-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-bottom-left-radius: 40px;
}

.offcanvas-menu.show {
    transform: translateX(0);
}

.offcanvas-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.offcanvas-overlay.show {
    opacity: 1;
    visibility: visible;
}

.offcanvas-menu ul {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.offcanvas-menu li {
    margin-bottom: 1.5rem;
}

.menu-link {
    display: flex;
    align-items: center;
    color: #1a1a1a;
    font-size: 1.125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.5rem 0;
    width: 100%;
}

.menu-link:hover {
    color: #019AAA;
}

.icon-wrapper {
    width: 24px;
    height: 24px;
    background-color: #019AAA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: all 0.2s ease;
}

.menu-link:hover .icon-wrapper {
    transform: translateX(3px);
    background-color: #017a8a;
}

.arrow-icon {
    color: white;
    font-size: 0.7rem;
}

.offcanvas-content {
    overflow-x: hidden;
}

/* Font menu */
.menu-item>.menu-link {
    font-family: 'Calimate', sans-serif;
}

/* Font submenu */
.menu-item .submenu a {
    font-family: 'TTNorms', sans-serif;
}

.menu-item .submenu {
    display: none;
}

.menu-item.show-submenu .submenu {
    display: block;
}

/* Hover effect for menu item active */
.menu-item.active>.menu-link {
    color: #019AAA;
}

.menu-item.active .icon-wrapper {
    background-color: #017a8a;
    transform: translateX(3px);
}


/* Submenu Styles */
.submenu {
    display: none;
    padding-left: 20px;
    list-style: none;
    margin-top: 10px;
}

.submenu li {
    margin-bottom: 1rem;
    padding-left: 40px;
}

.submenu a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1rem;
}

.submenu a:hover {
    color: #019AAA;
}

/* Add smooth hover effects for submenu links */
.submenu a:hover {
    transform: translateX(5px);
    transition: all 0.2s ease;
}

.group {
    position: relative;
}

.group:hover .overlay-description {
    transform: translateY(0);
}

.overlay-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(222, 49, 99, 0.9);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

/* Custom dot styling */
.slick-dots {
    bottom: -40px;
}

.slick-dots li button:before {
    color: #019AAA;
    font-size: 10px;
    opacity: 0.5;
}

.slick-dots li.slick-active button:before {
    color: #FF864A;
    opacity: 1;
}

.stats-slider .slick-slide {
    display: flex;
    align-items: stretch;
}

.stats-slider .slick-slide>div {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stats-slider .slick-slide .flex {
    flex-grow: 1;
}

.stats-slider img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.slick-prev-custom,
.slick-next-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #019AAA;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.slick-prev-custom {
    left: -23px;
}

.slick-next-custom {
    right: -23px;
}

.slick-prev-custom:hover,
.slick-next-custom:hover {
    background-color: #017C89;
}

/* Sembunyikan tombol di layar kecil */
@media (max-width: 1024px) {

    .slick-prev-custom,
    .slick-next-custom {
        display: none !important;
    }
}

@media (max-width: 640px) {

    .slick-prev-instagram,
    .slick-next-instagram {
        display: none !important;
    }
}

.slick-prev-values,
.slick-next-values {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #083C75;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.slick-prev-values {
    left: -20px;
}

.slick-next-values {
    right: -7px;
}

.slick-prev-values:hover,
.slick-next-values:hover {
    background-color: #062B54;
}

.values-slider .slick-slide {
    transform: scale(0.9);
    transition: all 0.3s ease-in-out;
}

.values-slider .slick-slide.slick-current {
    transform: scale(1);
}

/* Ensure all cards in slider have equal height */
.projects-slider {
    display: flex;
}

.projects-slider .slick-track {
    display: flex;
    align-items: stretch;
}

.projects-slider .slick-slide {
    height: auto;
}

.projects-slider .slick-slide>div {
    height: 100%;
}

/* Grid Picture */
@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-slide {
    animation: slide 20s linear infinite;
    display: flex;
    width: max-content;
}

/* Image zoom effect */
.projects-slider img {
    transition: transform 0.5s ease;
    will-change: transform;
}

/* Animation for the button expansion */
.contact-sub-btn {
    transition: all 0.3s, color 0.1s !important;
}

/* Active state when main button is clicked */
.contact-buttons-active #contact-main-btn {
    background-color: white;
    color: #E84373;
}

.contact-buttons-active .contact-sub-btn:nth-child(2) {
    /*WhatsApp*/
    opacity: 1;
    transform: translateY(100px) scale(1);
    --delay: 1;
}

.contact-buttons-active .contact-sub-btn:nth-child(3) {
    /*Email*/
    opacity: 1;
    transform: translate(70px, 55px) scale(1);
    --delay: 2;
}

.contact-buttons-active .contact-sub-btn:nth-child(4) {
    /*Instagram*/
    opacity: 1;
    transform: translate(-70px, 55px) scale(1);
    --delay: 3;
}

/* Hover colors for each button */
.contact-buttons-active .contact-sub-btn:hover:nth-child(2) {
    background-color: #25D366;
    color: white;
}

.contact-buttons-active .contact-sub-btn:hover:nth-child(3) {
    background-color: #EA4335;
    color: white;
}

.contact-buttons-active .contact-sub-btn:hover:nth-child(4) {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
}

/* Page 2 */
/* Landing Page 2 */
@keyframes pushFromBottom {
    0% {
        transform: translateY(100%);
        /* Mulai dari bawah */
    }

    100% {
        transform: translateY(0);
        /* Pindah ke posisi normal */
    }
}

.text-slide {
    display: inline-block;
    animation: pushFromBottom 1s ease-out forwards;
    /* Durasi 1 detik */
}

.instagram-slider .slick-slide {
    transform: scale(0.85);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.instagram-slider .slick-center {
    transform: scale(1);
    opacity: 1;
}


/* === Section Educate ===*/
/* Swiper container */
.educate-slider {
    padding: 40px 0;
}

/* Wrapper di dalam swiper */
.educate-slider .swiper-wrapper {
    align-items: center;
}

/* Ukuran tiap slide */
.educate-slider .swiper-slide {
    width: 300px;
    /* Sesuaikan sesuai kebutuhan */
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Gambar di slide */
.educate-slider .swiper-slide img {
    border-radius: 16px;
    /* Tetap kasih sudut rounded, clean */
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Responsif */
@media (max-width: 768px) {
    .educate-slider .swiper-slide {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .educate-slider .swiper-slide {
        width: 200px;
    }
}

/* Button hover Prev/Next for Section Educate */
.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: #062B54 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 18px !important;
    font-weight: bold;
}

/* Page 3 */
/* Our Section */
.slick-dots {
    text-align: center;
    margin-top: 30px;
}

.slick-dots li button:before {
    color: white;
    font-size: 12px;
    opacity: 0.6;
}

.slick-dots li.slick-active button:before {
    color: white;
    opacity: 1;
}

.slick-slide {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .slick-slide {
        flex-direction: row !important;
        align-items: flex-start;
    }
}
