:root {
    --primary-color: #FAD961;
    --primary-gradient-start: #FAD961;
    --primary-gradient-end: #F7A51C;
    --secondary-color: #0B2C4D;
    --secondary-light: #1a4a82;
    --background-color: #FFFFFF;
    --background-light: #F4F7FC;
    --text-dark: #343a40;
    --text-light: #6c757d;
    --white-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    scroll-behavior: smooth;
    color: var(--text-dark);
    background-color: var(--background-color);
}

/* Navigasi */
.navbar {
    padding: 1rem 0;
    transition: background-color 0.4s ease-in-out, padding 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color) !important;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
    margin: 0 15px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
    border-radius: 2px;
    transition: width 0.4s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-light) !important;
}

/* Section Styling */
section {
    padding: 100px 0;
    overflow: hidden;
}

.section-bg {
    background-color: var(--background-light);
    background-image: radial-gradient(var(--secondary-color) 1px, transparent 1px);
    background-size: 20px 20px;
    background-attachment: fixed;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 15px auto 0 auto;
}

/* Tombol Kustom */
.btn-custom {
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 14px 35px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(250, 217, 97, 0.4);
    letter-spacing: 1px;
}

.btn-custom:hover {
    color: var(--text-dark);
    box-shadow: 0 8px 25px rgba(247, 165, 28, 0.6);
    transform: translateY(-4px);
}

/* Carousel (Home) */
#home .carousel-item {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
}

#home .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(11, 44, 77, 0.8), rgba(11, 44, 77, 0.5));
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-align: left;
    padding: 0 10%;
}

.carousel-caption h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--white-color);
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

.aos-animate {
    opacity: 1;
}

/* Bagian About */
#about {
    position: relative;
}

#about .about-img-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--background-light);
    border-radius: 45% 55% 70% 30% / 30% 70% 30% 70%;
    z-index: -1;
    opacity: 0.7;
    transition: all 0.5s ease;
}

#about .about-img-container:hover::before {
    border-radius: 30% 70% 30% 70% / 45% 55% 70% 30%;
}

#about .about-img {
    border-radius: 15px;
    box-shadow: 0 15px 45px rgba(11, 44, 77, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 5px solid var(--white-color);
}

#about .about-img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 25px 55px rgba(11, 44, 77, 0.2);
}

#about h3 {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 2rem;
}

#about p.fst-italic {
    color: var(--text-light);
}

.vision-mission-box {
    background: var(--white-color);
    padding: 30px;
    border-radius: 15px;
    margin-top: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid transparent;
    transition: all 0.4s ease;
}

.vision-mission-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-top-color: var(--primary-color);
}

.vision-mission-box .icon {
    float: left;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    border-radius: 50%;
    color: var(--text-dark);
    font-size: 24px;
    margin-right: 20px;
}

.vision-mission-box h4 {
    font-weight: 700;
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.vision-mission-box p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.value-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: all 0.4s ease-in-out;
    border-bottom: 4px solid var(--background-light);
}

.value-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary-color);
}

.value-card .icon {
    margin: 0 auto 25px auto;
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.value-card .icon i {
    color: var(--primary-color);
    font-size: 32px;
}

.value-card:hover .icon {
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    transform: scale(1.1) rotate(15deg);
}

.value-card:hover .icon i {
    color: var(--secondary-color);
}

.value-card h4 {
    font-weight: 700;
    font-size: 22px;
    color: var(--secondary-color);
}

#about .value-card h4 {
    margin-bottom: 5px;
}

#about .value-card small {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

#about .btn-custom {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50px;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

#about .btn-custom:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.about-text-card {
    background: var(--white-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    width: 100%;
}

.about-text-card h3 {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text-card p {
    color: var(--text-dark);
    line-height: 1.7;
}

.about-text-card p.fst-italic {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Adjustments for value-card to fit the new layout */
#about .value-card h4 {
    margin-bottom: 5px;
}

#about .value-card small {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

#about .btn-custom {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50px;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

#about .btn-custom:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* === EFEK HOVER BARU UNTUK KARTU LAYANAN & BERITA === */
.card-item-wrapper {
    position: relative;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    /* Penting untuk pseudo-element */
    transition: all 0.4s ease;
}

.card-item-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    /* Awalnya tidak terlihat */
    height: 5px;
    background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
    transition: width 0.4s ease-in-out;
}

.card-item-wrapper:hover::after {
    width: 100%;
    /* Lebar penuh saat di-hover */
}

.card-item-wrapper .card-item {
    background: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    border: 1px solid #eee;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Efek mengangkat dan glow dengan warna primer */
.card-item-wrapper:hover .card-item {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(247, 165, 28, 0.3);
}

.card-item-wrapper .card-img-container {
    overflow: hidden;
}

.card-item-wrapper .card-img-top {
    border-radius: 14px 14px 0 0;
    transition: transform 0.5s ease;
}

.card-item-wrapper:hover .card-img-top {
    transform: scale(1.1);
}



/* Wrapper untuk efek 3D */
Tentu, untuk menjaga posisi asli kartu dan hanya menerapkan efek visualnya, Anda hanya perlu mengubah aturan CSS untuk .service-cards dan .service-card-v2.

Hapus properti yang mengatur tata letak (seperti display: flex, gap, padding, dan width) tetapi pertahankan perspective karena itu penting untuk efek 3D.

CSS yang Diperbarui
Gantilah CSS Anda dengan kode di bawah ini. Kode ini tidak akan lagi mengubah tata letak atau posisi kartu Anda.

CSS

/* Variabel Global */
:root {
    --primary-color: #007bff;
    --secondary-color: #333;
    --primary-gradient-start: #0d6efd;
    --primary-gradient-end: #0a58ca;
}

body {
    background-color: #f8f9fa;
}

/* DIUBAH: Properti layout (flex, gap, padding) dihapus.
  'perspective' dipertahankan karena WAJIB untuk efek 3D.
*/
.service-cards {
    perspective: 1500px;
}

.service-card-v2 {
    background: #fff;
    border: 1px solid #e9ecef;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border-radius: 20px;
    transition: transform 0.15s ease-out, box-shadow 0.4s ease, border-top-color 0.4s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
    /* DIHAPUS: 'width: 350px;' dihapus agar lebar kartu mengikuti layout asli Anda (misal: kolom Bootstrap) */
}

/* Pseudo-element untuk efek "cahaya" */
.service-card-v2::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(0, 123, 255, 0.25), transparent 80%);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 0;
}

.service-card-v2:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border-top-color: var(--primary-color);
}

.service-card-v2:hover::before {
    opacity: 1; /* Tampilkan efek cahaya saat hover */
}

.service-card-v2 .card-body {
    padding: 35px;
    position: relative;
    z-index: 1;
}

.service-card-v2 .service-icon {
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: #fff;
    margin: 0 auto 20px auto;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    transition: all 0.4s ease;
}

.service-card-v2:hover .service-icon {
    transform: scale(1.15) rotate(15deg);
    background: var(--secondary-color);
}

.service-card-v2 .card-title {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-card-v2 .card-text {
    color: #6c757d;
    line-height: 1.6;
}

.service-card-v2 .biaya {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
}

.service-card-v2 .billing-cycle {
    font-size: 1rem;
    font-weight: 400;
    color: #6c757d;
    margin-left: 5px;
}

.btn-order-v2 {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.service-card-v2:hover .btn-order-v2 {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* CSS Badge yang sudah diperbaiki */
.popular-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
}

.popular-badge span {
    background: #ffc107;
    color: #333;
    position: absolute;
    transform: rotate(45deg);
    padding: 5px 40px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    right: -35px;
    top: 35px;
}



/* news */
.news-card .card-text small {
    color: var(--text-light);
    font-weight: 500;
}

.news-card .btn-link {
    color: var(--primary-gradient-end);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.news-card .btn-link i {
    transition: transform 0.3s ease;
}

.news-card:hover .btn-link {
    color: var(--secondary-color);
}

.news-card:hover .btn-link i {
    transform: translateX(5px);
}

/* Contact Section */
.contact-info .icon-box {
    display: flex;
    align-items: center;
    padding: 25px;
    background: var(--white-color);
    border-radius: 15px;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    border-left: 5px solid transparent;
}

.contact-info .icon-box i {
    font-size: 28px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.contact-info .icon-box:hover {
    border-left-color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info .icon-box:hover i {
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    color: var(--secondary-color);
    transform: rotate(360deg);
}

.contact-info h4 {
    color: var(--secondary-color);
    font-weight: 700;
}

.php-email-form .form-control {
    border-radius: 10px;
    padding: 12px;
    transition: border-color 0.3s;
}

.php-email-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(250, 217, 97, 0.3);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 0 0;
    border-top: 5px solid var(--primary-color);
}

.footer .footer-top {
    padding-bottom: 40px;
}

.footer h4.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer h4.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer .footer-contact p,
.footer .footer-links ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.footer .footer-links ul a:hover,
.footer .footer-contact p a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-links ul li {
    padding: 8px 0;
}

.footer .footer-links ul i {
    padding-right: 10px;
    color: var(--primary-color);
    font-size: 14px;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 10px;
    transition: all 0.4s ease-in-out;
}

.footer .social-links a:hover {
    color: var(--secondary-color);
    border-color: var(--primary-color);
    background: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
}

.footer .newsletter-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.footer .newsletter-form input[type="email"] {
    border: 0;
    padding: 8px;
    width: calc(100% - 120px);
    background: transparent;
    color: var(--white-color);
}

.footer .newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer .newsletter-form input[type="submit"] {
    width: 110px;
    padding: 8px 0;
    font-size: 14px;
    border: 0;
    background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
    color: var(--text-dark);
    font-weight: 600;
    transition: 0.3s;
    border-radius: 50px;
}

.footer .newsletter-form input[type="submit"]:hover {
    opacity: 0.9;
}

.footer .copyright-bar {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 14px;
}

/* Kontrol Carousel Services & News */
.carousel-controls .carousel-control-prev,
.carousel-controls .carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--white-color);
    border-radius: 50%;
    top: 45%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(11, 44, 77, 0.15);
}

.carousel-controls .carousel-control-prev {
    left: -20px;
}

.carousel-controls .carousel-control-next {
    right: -20px;
}

.carousel-controls .carousel-control-prev:hover,
.carousel-controls .carousel-control-next:hover {
    opacity: 1;
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
}

.carousel-controls .carousel-control-prev-icon,
.carousel-controls .carousel-control-next-icon {
    background-image: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.carousel-controls .carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-controls .carousel-control-next:hover .carousel-control-next-icon {
    color: var(--text-dark);
}

.carousel-controls .carousel-control-prev-icon::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f053";
}

.carousel-controls .carousel-control-next-icon::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f054";
}

/* MEDIA QUERIES UNTUK RESPONSIVE DESIGN */
@media (max-width: 991.98px) {
    .carousel-caption h1 {
        font-size: 3rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    #about .content {
        text-align: center;
    }

    #about .about-img-container {
        margin-bottom: 40px;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    .vision-mission-box .icon {
        float: none;
        margin: 0 auto 20px auto;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 60px 0;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .carousel-caption {
        padding: 0 8%;
    }

    .carousel-caption h1 {
        font-size: 2.2rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .carousel-controls .carousel-control-prev {
        left: 10px;
    }

    .carousel-controls .carousel-control-next {
        right: 10px;
    }

    .footer .footer-contact,
    .footer .footer-links,
    .footer .footer-newsletter,
    .footer .footer-info {
        text-align: left;
        margin-bottom: 30px;
    }
}

@media (max-width: 575.98px) {

    .carousel-controls .carousel-control-prev,
    .carousel-controls .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-controls .carousel-control-prev-icon,
    .carousel-controls .carousel-control-next-icon {
        font-size: 1.1rem;
    }

    .contact-info .icon-box {
        flex-direction: column;
        text-align: center;
    }

    .contact-info .icon-box i {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .footer .social-links a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}