@import url("./global/colors.php");
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap");
@import url("https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--semi-black);
    background-color: var(--soft-blue);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.outfit {
    font-family: "Outfit", sans-serif;
    color: var(--black);
}

.width {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* --- HEADER --- */
header {
    width: 100%;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

header.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--black) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.menu a.nav-link {
    color: var(--semi-black);
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.menu a.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--blue);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.menu a.nav-link:hover {
    color: var(--black);
}

.menu a.nav-link:hover::after,
.menu a.nav-link.active::after {
    width: 100%;
}

.menu a.nav-link.active {
    color: var(--black);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--blue);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--blue-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* --- HERO --- */
.home {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home .bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: scale(1.05);
    animation: slowZoom 30s infinite alternate ease-in-out;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

.cover_home {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.85) 0%,
        rgba(37, 99, 235, 0.6) 100%
    );
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.cover_home h1 {
    font-size: 56px;
    color: var(--white);
    font-weight: 800;
    text-align: center;
    max-width: 900px;
    line-height: 1.2;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
    animation: fadeUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.cover_home p.subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    text-align: center;
    margin-bottom: 45px;
    animation: fadeUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s forwards;
    opacity: 0;
}

.hero-btn {
    animation: fadeUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.4s forwards;
    opacity: 0;
}

.hero-btn a {
    background-color: var(--white);
    color: var(--blue);
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-btn a:hover {
    background-color: var(--blue);
    color: var(--white);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

.hero-btn a i {
    font-size: 24px;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SECTION HEADERS --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--black);
    position: relative;
    display: inline-block;
    letter-spacing: -1px;
}

.section-title.light h1 {
    color: var(--white);
}

.section-title h1::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), #60a5fa);
    border-radius: 2px;
}

/* --- LAYANAN --- */
.layanan {
    padding: 120px 0;
    background-color: var(--white);
}

.box_layanan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    width: 100%;
}

.isi_layanan {
    background-color: var(--white);
    padding: 45px 35px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-grey);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.isi_layanan::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blue), #3b82f6);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.isi_layanan:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.isi_layanan:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 90px;
    height: 90px;
    background-color: var(--blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
    box-shadow: inset 0 0 0 4px var(--white);
}

.isi_layanan:hover .icon-wrapper {
    background-color: var(--white);
}

.isi_layanan img {
    height: 45px;
    transition: all 0.4s ease;
}

.isi_layanan:hover img {
    filter: brightness(0) invert(0.3) sepia(1) saturate(7000%)
        hue-rotate(200deg) brightness(1.2); /* Make it somewhat blue to match bg/white */
}

/* Fix icon color on blue background */
.isi_layanan:hover img {
    filter: brightness(0) saturate(100%) invert(29%) sepia(87%) saturate(2222%)
        hue-rotate(207deg) brightness(97%) contrast(92%);
}

.isi_layanan p {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    text-align: center;
    transition: color 0.4s;
    font-family: "Outfit", sans-serif;
}

.isi_layanan:hover p {
    color: var(--white);
}

/* --- TENTANG KAMI --- */
.tentang_kami_section {
    padding: 120px 0;
    background-color: var(--soft-blue);
}

.tentang_kami {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.tk_img_wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.tk_img_wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 8px;
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.2) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 2;
    pointer-events: none;
}

.tk_img_wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        0deg,
        rgba(15, 23, 42, 0.4) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.tentang_kami img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.tk_img_wrapper:hover img {
    transform: scale(1.08); /* slight zoom out like parallax */
}

.text_tentang_kami h1 {
    font-size: 46px;
    color: var(--black);
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.text_tentang_kami p {
    font-size: 18px;
    color: var(--semi-black);
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item h3 {
    font-size: 42px;
    color: var(--blue);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 16px;
    color: var(--semi-black);
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- GALERI --- */
.galeri_section {
    padding: 120px 0;
    background-color: var(--white);
}

.box_galeri {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.galeri-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.galeri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.galeri-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        0deg,
        rgba(37, 99, 235, 0.6) 0%,
        rgba(37, 99, 235, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.galeri-item i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    color: white;
    font-size: 32px;
    opacity: 0;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.galeri-item:hover img {
    transform: scale(1.15);
}

.galeri-item:hover::before {
    opacity: 1;
}

.galeri-item:hover i {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* --- FOOTER --- */
footer {
    background-color: var(--black);
    padding: 60px 0 40px;
    margin-top: 0;
    border-top: 4px solid var(--blue);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    height: 45px;
    filter: brightness(0) invert(1);
}

.footer-logo h2 {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 20px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--blue);
    transform: translateY(-3px);
}

footer p {
    text-align: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    width: 100%;
}

footer p a {
    color: var(--blue);
    font-weight: 600;
}

footer p a:hover {
    color: var(--white);
}

/* --- FLOATING WA --- */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: floating 3s ease-in-out infinite;
}

.floating-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}

@keyframes floating {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media only screen and (max-width: 992px) {
    .width {
        padding: 0 30px;
    }
    .cover_home h1 {
        font-size: 48px;
    }
    .tentang_kami {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .tk_img_wrapper img {
        height: 400px;
    }
    .box_layanan {
        grid-template-columns: 1fr 1fr;
    }
}

@media only screen and (max-width: 768px) {
    header {
        padding: 15px 0;
    }
    .header {
        justify-content: center;
    }
    .logo img {
        height: 32px;
    }
    .logo h1 {
        font-size: 20px;
    }
    .menu {
        display: none;
    }
    .mobile-contact {
        display: flex;
    }

    .cover_home h1 {
        font-size: 32px;
        line-height: 1.3;
    }
    .cover_home p.subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .hero-btn a {
        font-size: 15px;
        padding: 14px 26px;
    }

    .section-title h1 {
        font-size: 30px;
    }
    .layanan {
        padding: 70px 0;
    }
    .box_layanan {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .isi_layanan {
        padding: 30px 20px;
    }
    .isi_layanan p {
        font-size: 19px;
    }

    .tentang_kami_section {
        padding: 70px 0;
    }
    .tentang_kami {
        gap: 35px;
    }
    .tk_img_wrapper img {
        height: 250px;
    }
    .text_tentang_kami h1 {
        font-size: 28px;
        text-align: center;
        margin-bottom: 15px;
    }
    .text_tentang_kami p {
        font-size: 15px;
        text-align: center;
        margin-bottom: 15px;
    }
    .stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        margin-top: 25px;
    }
    .stat-item {
        align-items: center;
    }
    .stat-item h3 {
        font-size: 26px;
        margin-bottom: 2px;
    }
    .stat-item p {
        font-size: 13px;
        text-align: center;
    }

    .galeri_section {
        padding: 70px 0;
    }
    .box_galeri {
        gap: 12px;
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .floating-wa {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}
