:root { 
    --bs-primary: #04169e; 
    --bs-primary-rgb: 4, 22, 158; 
    --bs-light-primary: rgba(var(--bs-primary-rgb), 0.05);
}

body { 
    font-family: 'Poppins', sans-serif; 
    background-color: #f5f7fa; 
}

.btn-primary { 
    background-color: var(--bs-primary); 
    border-color: var(--bs-primary); 
}

.btn-primary:hover, .btn-primary:focus { 
    background-color: #03128a; 
    border-color: #020e6f; 
}

.btn-light.text-primary:hover { 
    color: #fff !important; 
    background-color: var(--bs-primary); 
    border-color: var(--bs-primary); 
}

.btn-success:hover {
  background-color: #128C7E !important;
  transform: translateY(-3px);
}


/* --- ANIMASI HEADER SAAT LOAD --- */
@keyframes slideDownFadeIn {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.navbar.fixed-top {
    animation: slideDownFadeIn 0.8s ease-out forwards;
}

/* --- HERO & PAGE HEADER --- */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 80vh;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6));
    z-index: 1;
}
.hero-section .container {
    position: relative;
    z-index: 2;
}
.page-header {
    background-image: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url('/assets/img/hero1.png');
    background-size: cover;
    background-position: center;
    min-height: 40vh;
    padding-top: 56px;
}
@media (max-width: 767.98px) {
    .hero-section h1, .hero-section .display-4, .hero-section .display-6 {
        font-size: 2.5rem;
    }
}

/* --- CARD LAYANAN --- */
.card-service { 
    transition: transform .3s ease, box-shadow .3s ease; 
}
.card-service:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important; 
}

/* --- ANIMASI SCROLL --- */
.animate-on-scroll { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity .6s ease-out, transform .6s ease-out; 
}
.animate-on-scroll.is-visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* --- HALAMAN GALERI --- */
.filter-buttons .btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
}
.filter-buttons .btn:hover {
    background-color: #d8dde2;
}
.filter-buttons .btn.active {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}
.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: .5rem;
    aspect-ratio: 4 / 3;
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-item-caption {
    transform: translateY(0);
}
.gallery-item-caption .caption-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.gallery-item-caption .caption-text {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .gallery-item-caption {
        transform: translateY(0);
    }
}

/* --- HALAMAN KONTAK --- */
.contact-complex-section {
    background-color: var(--bs-primary);
    border-radius: 1rem;
    margin: -50px 1rem 1rem 1rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 1rem 3rem rgba(0,0,0,.15);
}
.contact-form-card {
    background-color: #fff;
    border-radius: 1rem;
}
@media (min-width: 992px) {
    .contact-form-card {
        transform: translateX(-10%);
        box-shadow: 0 1rem 3rem rgba(0,0,0,.15);
    }
    .contact-complex-section {
        margin-left: auto;
        margin-right: auto;
        max-width: 1140px; /* Lebar container-lg */
    }
}
.contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.15)!important;
}
.icon-circle {
    width: 60px; height: 60px;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    color: var(--bs-primary);
}
.social-icons .social-icon {
    display: inline-flex; width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    text-decoration: none;
    margin: 0 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.social-icons .social-icon:hover {
    background-color: var(--bs-primary);
    color: #fff;
}
.bg-light-primary {
    background-color: var(--bs-light-primary);
}

/* --- TOMBOL MENGAMBANG --- */
.floating-btn {
    position: fixed; bottom: 20px; height: 50px; display: flex; align-items: center; justify-content: center;
    color: white !important; text-decoration: none !important; box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000; transition: all 0.3s ease;
}
.floating-btn:hover { transform: translateY(-5px); color: white !important; }
.whatsapp-float {
    right: 20px; width: auto; padding: 0 20px; border-radius: 50px;
    background-color: #25D366; font-size: 1rem;
}
.whatsapp-float:hover { background-color: #128C7E; }
.whatsapp-float i { font-size: 1.7rem; }
@media (min-width: 768px) { 
    .whatsapp-float { 
        display: flex !important; 
    } 
}

