/* === Google Fonts & Custom Variables === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --bs-primary-rgb: 0, 90, 141;
    --bs-secondary-rgb: 0, 174, 239;
    --bs-primary: #005A8D;
    --bs-secondary: #00AEEF;
    --bs-font-sans-serif: 'Poppins', sans-serif;
}

/* === Bootstrap Overrides & Custom Styles === */
body {
    font-family: var(--bs-font-sans-serif);
}

.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: #004a75;
    --bs-btn-hover-border-color: #004a75;
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-hover-color: white;
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
    --bs-btn-active-color: white;
}

.btn-outline-primary.active {
    background-color: var(--bs-primary);
    color: white;
}

.text-primary { color: var(--bs-primary) !important; }
.section-title { color: var(--bs-primary); font-weight: 700; }
.logo { height: 45px; }
.logo-text { font-size: 1.1rem; font-weight: 600; color: var(--bs-primary); }

/* Navbar Customization */
.navbar-nav .nav-link:not(.btn) { font-weight: 600; color: #495057; transition: color 0.3s ease; }
.navbar-nav .nav-link:not(.btn).active { color: var(--bs-primary) !important; }
.navbar-nav .nav-link:not(.btn):hover { color: var(--bs-primary); }
.navbar-nav .nav-link.btn-outline-primary {
    font-weight: 600;
    color: var(--bs-primary) !important;
    border: 2px solid var(--bs-primary);
    padding: calc(0.5rem - 2px) 1rem;
    line-height: 1.5;
}
.navbar-nav .nav-link.btn-outline-primary:hover,
.navbar-nav .nav-link.btn-outline-primary.active {
    background-color: var(--bs-primary);
    color: white !important;
    border-color: var(--bs-primary);
}


/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/proyek3.jpg') no-repeat center center;
    background-size: cover;
}

/* Hero Section */
.hero { padding: 6rem 0; }
.hero-title { font-size: 3.2rem; font-weight: 700; line-height: 1.2; color: var(--bs-primary); }
.carousel-item img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Services Section */
.service-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important; }

/* Keunggulan Section */
.icon-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.feature-item:hover .icon-circle { transform: scale(1.1); }

/* Work Process Section */
.process-icon {
    width: 60px;
    height: 60px;
    background: var(--bs-white);
    color: var(--bs-primary);
    border: 2px solid var(--bs-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}
.process-step:hover .process-icon {
    background: var(--bs-primary);
    color: white;
}

/* --- Modern Portfolio Styles --- */
#portfolio-filters .btn {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.portfolio-item {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
    cursor: pointer;
}

.portfolio-card img {
    transition: transform 0.5s ease;
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
    color: white;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    height: 100%;
}

.portfolio-card:hover .portfolio-info {
    opacity: 1;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-title {
    transform: translateY(0);
}

.portfolio-links {
    margin-top: 10px;
    transform: translateY(20px);
    transition: transform 0.5s ease 0.1s;
}

.portfolio-card:hover .portfolio-links {
    transform: translateY(0);
}

.portfolio-links i {
    color: var(--bs-secondary);
}

.portfolio-item.hide {
    display: none;
}

.portfolio-item.show {
    display: block;
}


.carousel-item img {
    width: 100%;
    height: auto;
    max-height: 80vh; /* Batasi tinggi maksimum gambar di modal */
    object-fit: contain;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    padding: 5rem 0;
}

/* FAQ Section */
.accordion-button:not(.collapsed) {
    background-color: var(--bs-primary);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Contact Section */
.social-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bs-light);
    color: var(--bs-primary);
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--bs-primary);
    color: white;
}

/* Footer */
.footer .logo-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-logo {
    height: 45px; /* PERBAIKAN: Menyesuaikan ukuran logo di footer */
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover { transform: scale(1.1); }

/* === Responsive Adjustments === */
@media (max-width: 991.98px) {
    .logo-text { display: none; }
    .hero-text { text-align: center; }
    .hero-title { font-size: 2.5rem; }
}

/* Custom Carousel Control Colors */
.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23005A8D'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23005A8D'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}
