/* CSS Utama - Dipisahkan dari HTML untuk performa lebih baik */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-blue);
    border-radius: 2px;
}

/* Navbar */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-collapse {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-top: 10px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-blue) !important;
    margin: 5px 0;
    padding: 0.8rem 1rem !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-blue) !important;
    background-color: var(--light-blue);
}

/* Carousel */
.carousel-indicators {
    bottom: 10px;
}

.carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-img {
    height: 100%;
    background: center/cover no-repeat;
}

/* Services */
.services {
    padding: 3rem 0;
    background-color: var(--gray-light);
}

.image-box {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
    height: 250px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.image-box:hover {
    transform: translateY(-5px);
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-box:hover img {
    transform: scale(1.05);
}

.image-box-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(13, 71, 161, 0.9), transparent);
    color: var(--white);
    padding: 1.5rem 1rem 1rem;
}

.image-box-content h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.image-box-content p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

/* About */
.about {
    padding: 3rem 0;
}

.about-content {
    margin-top: 1.5rem;
}

.about h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.about p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.about-img {
    height: 350px;
    margin-top: 2rem;
    border-radius: 8px;
    background: center/cover no-repeat;
}

.about-img > div {
    background-color: rgba(13, 71, 161, 0.8);
    border-radius: 8px;
}

.about-img .display-4 {
    font-size: 2.5rem;
}

/* Clients */
.clients {
    padding: 3rem 0;
    background-color: var(--light-blue);
}

.clients .section-title {
    margin-bottom: 2rem;
}

.client-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    background-color: var(--white);
    border-radius: 8px;
    margin: 0.5rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.client-logo img {
    max-width: 100%;
    max-height: 50px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
}

/* Testimonials */
.testimonials {
    padding: 3rem 0;
    background-color: var(--gray-light);
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    height: 100%;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-card:before {
    content: "\201C";
    font-size: 3rem;
    color: var(--light-blue);
    position: absolute;
    top: 5px;
    left: 15px;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid var(--light-blue);
}

.author-info h5 {
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.author-info p {
    color: var(--gray-medium);
    font-size: 0.85rem;
}

/* Projects */
.projects {
    padding: 3rem 0;
    background-color: var(--white);
}

.project-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    background-color: var(--white);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    background: center/cover no-repeat;
}

.project-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 0.9rem;
}

/* Contact */
.contact {
    padding: 3rem 0;
    background-color: var(--white);
}

.contact-form {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.contact-info {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background-color: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-info-icon i {
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.contact-info h5 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.contact-info p {
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 2.5rem 0 1.5rem;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-links h5 {
    color: var(--white);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary, .btn-light, .btn-outline-primary, .btn-outline-light {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 71, 161, 0.2);
}

.btn-outline-light {
    border-width: 1px;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (min-width: 768px) and (max-width: 991px) {
    .section-title {
        font-size: 2rem;
    }
    
    .carousel-item {
        height: 60vh;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .image-box {
        height: 220px;
    }
    
    .about-img {
        height: 400px;
    }
}

@media (min-width: 992px) {
    body {
        padding-top: 0;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }
    
    .section-title:after {
        width: 80px;
    }
    
    .carousel-item {
        height: 90vh;
        min-height: 500px;
    }
    
    .carousel-caption {
        bottom: 30%;
        text-align: left;
        padding: 2rem;
    }
    
    .carousel-caption h2 {
        font-size: 2.5rem;
    }
    
    .carousel-caption p {
        font-size: 1.2rem;
    }
    
    .services {
        padding: 5rem 0;
    }
    
    .image-box {
        height: 300px;
        margin-bottom: 2rem;
    }
    
    .about {
        padding: 5rem 0;
    }
    
    .about-img {
        height: 500px;
        margin-top: 0;
    }
    
    .clients {
        padding: 4rem 0;
    }
    
    .testimonials {
        padding: 5rem 0;
    }
    
    .projects {
        padding: 5rem 0;
    }
    
    .contact {
        padding: 5rem 0;
    }
    
    .contact-form {
        padding: 2rem !important;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .navbar {
        padding: 0.8rem 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-brand img {
        height: 50px;
    }
    
    .nav-link {
        margin: 0 10px;
        padding: 0.5rem 0 !important;
    }
    
    .navbar-collapse {
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 60vh;
        min-height: 350px;
    }
    
    .carousel-caption {
        bottom: 15%;
        padding: 1rem;
    }
    
    .carousel-caption h2 {
        font-size: 1.3rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .image-box {
        height: 220px;
    }
    
    .about-img {
        height: 300px;
    }
    
    .about-img .display-4 {
        font-size: 2rem;
    }
    
    .client-logo {
        height: 70px;
        margin: 0.3rem;
    }
    
    .project-img {
        height: 150px;
    }
    
    .btn-lg {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
}

@media (max-width: 375px) {
    .carousel-item {
        height: 55vh;
    }
    
    .carousel-caption {
        bottom: 10%;
        padding: 0.8rem;
    }
    
    .carousel-caption h2 {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .image-box-content h4 {
        font-size: 1.1rem;
    }
    
    .about-img .display-4 {
        font-size: 1.8rem;
    }
}