/* Custom CSS for Legal Services Website */

/* General Styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: #212529;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a3c6c;
}

.divider {
    max-width: 3.25rem;
    border-width: 0.2rem;
    border-color: #d4af37;
}

/* Navbar */
#mainNav {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: rgba(26, 60, 108, 0.9);
    transition: background-color 0.3s ease-in-out;
}

#mainNav .navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #fff;
}

.logo-text {
    font-size: 1.5rem;
    color: #fff;
}

#mainNav .navbar-nav .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    transition: color 0.3s ease;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link:active {
    color: #d4af37;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(rgba(26, 60, 108, 0.8), rgba(26, 60, 108, 0.8)), url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* Tambahkan ini untuk efek paralax */
    height: 100vh;
    min-height: 500px;
    padding-top: 8rem;
    padding-bottom: 8rem;
    transition: background-position 0.5s ease-out; /* Tambahkan ini untuk efek smooth */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    background-color: #c41e3a;
    border-color: #c41e3a;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #a51a30;
    border-color: #a51a30;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Feature Box */
.feature-box {
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Service Cards */
.service-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    max-width: 80px;
    margin: 0 auto;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #1a3c6c;
    border-radius: 50%;
    padding: 20px;
}

.carousel-indicators li {
    background-color: #1a3c6c;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Service List */
.service-category {
    color: #1a3c6c;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #d4af37;
}

.service-list {
    margin-bottom: 2rem;
}

.service-list ul li {
    margin-bottom: 0.5rem;
}

/* Process Steps */
.process-step {
    margin-bottom: 2rem;
}

.process-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.process-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #d4af37;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Testimonials */
.testimonial-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 700px;
}

.testimonial-text {
    font-style: italic;
    color: #495057;
}

/* FAQ Accordion */
.accordion .card {
    border: none;
    margin-bottom: 0.5rem;
}

.accordion .card-header {
    background-color: #f8f9fa;
    border: none;
    padding: 0;
}

.accordion .btn-link {
    color: #1a3c6c;
    font-weight: 600;
    text-decoration: none;
    padding: 1rem 1.25rem;
}

.accordion .btn-link:hover,
.accordion .btn-link:focus {
    text-decoration: none;
    color: #d4af37;
}

.accordion .card-body {
    padding: 1.25rem;
    color: #495057;
}

/* Contact Form */
.contact-info {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1a3c6c;
    color: #fff;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #d4af37;
    color: #fff;
    transform: translateY(-3px);
}

.form-control {
    border-radius: 5px;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: #1a3c6c;
    box-shadow: 0 0 0 0.2rem rgba(26, 60, 108, 0.25);
}

/* Footer */
footer {
    background-color: #1a3c6c !important;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #d4af37;
    text-decoration: none;
}

.list-inline-item a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.list-inline-item a:hover {
    color: #d4af37;
    text-decoration: none;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-btn i {
    font-size: 1.5rem;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    color: #fff;
    text-decoration: none;
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .whatsapp-btn span {
        display: none;
    }
    
    .whatsapp-btn {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-heading {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 80vh;
    }
}
