:root {
    --primary-blue: #0d47a1;
    --primary-red: #d32f2f;
    --dark-bg: #1a1a1a;
    --light-gray: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigasi / Navbar */
.navbar {
    transition: all 0.4s ease;
    padding: 15px 0;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar-brand img { height: 45px; }
.nav-link {
    font-weight: 500;
    color: var(--primary-blue) !important;
    margin: 0 10px;
    cursor: pointer;
}
.nav-link.active, .nav-link:hover { color: var(--primary-red) !important; }

/* Page Routing System */
.page-section { display: none; padding-top: 80px; }
.page-section.active { display: block; animation: fadeIn 0.5s ease-in-out; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Carousel */
.carousel-item {
    height: 85vh;
    background-size: cover;
    background-position: center;
}
.carousel-overlay {
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}
.hero-title { font-size: 3.5rem; font-weight: 700; }
.hero-btn {
    background: var(--primary-red);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    color: white;
    transition: 0.3s;
}
.hero-btn:hover { background: var(--primary-blue); transform: translateY(-3px); }

/* Global Section Styles */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-weight: 700; color: var(--primary-blue); }
.section-title h2 span { color: var(--primary-red); }
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 15px auto;
}

/* Stats */
.stats-section {
    padding: 50px 0;
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-red));
    color: white;
}

/* Portfolio Cards */
.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
}
.portfolio-img { width: 100%; height: 250px; object-fit: cover; transition: 0.5s; }
.portfolio-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(13, 71, 161, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
    transition: 0.4s;
}
.portfolio-card:hover .portfolio-img { transform: scale(1.1); }
.portfolio-card:hover .portfolio-overlay { bottom: 0; }

/* Page Headers */
.page-header {
    padding: 100px 0 60px;
    background: var(--light-gray);
    text-align: center;
    margin-bottom: 40px;
}
.page-header h1 span { color: var(--primary-red); }

/* Alternating Service Layout */
.service-row { align-items: center; margin-bottom: 100px; }
.service-row:last-child { margin-bottom: 0; }
.service-img-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: 0.4s;
}
.service-img-container:hover { transform: scale(1.02); }
.service-img-container img { width: 100%; height: auto; display: block; }

.service-text { padding: 20px; }
.service-badge {
    background: rgba(211, 47, 47, 0.1);
    color: var(--primary-red);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

/* About Page Styles */
.quote-box {
    background: #fff;
    border-left: 5px solid var(--primary-red);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 0 10px 10px 0;
    margin: 30px 0;
}
.vision-mission-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 15px;
    height: 100%;
    border-top: 4px solid var(--primary-blue);
}

/* Footer */
footer { background: var(--dark-bg); color: white; padding: 60px 0 20px; }
.footer-logo { height: 50px; filter: brightness(0) invert(1); }
.social-links a { color: white; margin: 0 10px; font-size: 1.3rem; transition: 0.3s; }
.social-links a:hover { color: var(--primary-red); }
.map-container-small { border-radius: 10px; overflow: hidden; height: 200px; }

/* Mobile Menu Overlay Fix */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
}
