/* General Body & Typography */
body {
    font-family: 'Poppins', sans-serif; /* A modern, clean font */
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa; /* Light background for the whole page */
    padding-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* A bolder font for headings */
    font-weight: 700;
    color: #343a40;
}

p {
    font-size: 1.1rem;
    color: #555;
}

a {
    text-decoration: none;
    color: #007bff; /* Default link color */
}

a:hover {
    color: #0056b3;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 100px 0;
    color: white;
    background-size: cover;
    background-position: center;
    /* Tambahkan properti ini untuk efek paralaks */
    background-attachment: fixed;
    min-height: 500px; /* Ensure enough height for the hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Adds readability to text over image */
     /* margin-top: -80px; Negatif dari padding-top body jika ingin hero-section memulai dari atas viewport */
    padding-top: calc(100px + 80px);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for better text contrast */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white; /* Ensure headings are white */
}

.hero-section p.lead {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Buttons --- */
.btn-warning {
    background-color: #ffc107; /* Bootstrap's warning color */
    border-color: #ffc107;
    color: #212529; /* Dark text for contrast */
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px; /* Pill shape */
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    color: #212529;
    transform: translateY(-2px); /* Slight lift on hover */
}

.btn-outline-light {
    color: white;
    border-color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white;
    color: #343a40;
    transform: translateY(-2px);
}

/* Custom Primary Button (for 'Pelajari Lebih Lanjut' equivalent) */
.btn-primary-custom {
    background-color: #007bff; /* A nice blue, common for primary actions */
    border-color: #007bff;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: white;
    transform: translateY(-2px);
}

/* Custom Outline Secondary Button (for 'Lihat Semua Fitur' equivalent) */
.btn-outline-secondary-custom {
    color: #6c757d; /* Bootstrap's secondary color */
    border-color: #6c757d;
    background-color: transparent;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-secondary-custom:hover {
    background-color: #6c757d;
    color: white;
    transform: translateY(-2px);
}


/* --- Feature Section --- */
#features {
    background-color: #f8f9fa; /* Light background for contrast */
}

.feature-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Soft shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 30px;
    height: 100%; /* Ensure cards are same height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card:hover {
    transform: translateY(-10px); /* Lift on hover */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 3.5rem;
    color: #007bff; /* Primary color for icons */
    margin-bottom: 20px;
    display: block;
}

.feature-card .card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #343a40;
}

.feature-card .card-text {
    font-size: 1rem;
    color: #666;
}

/* --- About Section --- */
#about {
    background-color: #fff;
    padding: 80px 0;
}

#about img {
    border-radius: 15px;
    object-fit: cover;
    height: 100%;
}

#about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#about p.lead {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

#about p {
    font-size: 1.1rem;
}

/* --- Call to Action Section --- */
.cta-section {
    background-color: #007bff; /* Use primary color for CTA background */
    color: white;
    padding: 80px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.cta-section p.lead {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* --- AOS (Animate On Scroll) adjustments --- */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Small adjustments for responsiveness */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p.lead {
        font-size: 1.2rem;
    }

    .feature-icon {
        font-size: 3rem;
    }

    .feature-card .card-title {
        font-size: 1.3rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p.lead {
        font-size: 1.2rem;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }

    #about img {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0;
        min-height: 400px;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p.lead {
        font-size: 1rem;
    }
    .btn-lg {
        width: 100%;
        margin-bottom: 15px !important; /* Stack buttons on small screens */
    }
}

/* --- Navbar Styles --- */
.navbar {
    background-color: rgba(143, 143, 143, 0.95); /* Slightly transparent white background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* Soft shadow for depth */
    padding: 15px 0; /* Vertical padding */
    transition: background-color 0.3s ease, padding 0.3s ease; /* Smooth transition for scroll effects */
    z-index: 1030;
}

/* Style for when the navbar is scrolled and potentially changes background */
/* (You might need a small JS snippet to add a class like 'scrolled' to the navbar on scroll) */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 1); /* Solid white when scrolled */
    padding: 10px 0; /* Slightly reduced padding when scrolled */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; /* Extra bold for brand name */
    font-size: 1.8rem;
    color: #343a40 !important; /* Ensure brand text is dark */
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: #007bff !important; /* Change color on hover */
}

.navbar-nav .nav-item .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 600; /* Semi-bold for nav links */
    font-size: 1.05rem;
    color: #ffffff !important; /* Default link color */
    padding: 8px 18px; /* Padding around links */
    transition: color 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
}

.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item .nav-link.active {
    color: #007bff !important; /* Primary color on hover/active */
    /* You could also add a background for active/hover states if desired */
    /* background-color: rgba(0, 123, 255, 0.08); */
    /* border-radius: 5px; */
}

/* Specific style for the Login Admin button in the navbar */
.navbar-nav .nav-item .btn.btn-primary-custom {
    padding: 8px 25px; /* Adjust padding for the button */
    font-weight: 700;
    margin-left: 15px; /* Space from other nav items on desktop */
}

/* Navbar Toggler (Hamburger Icon) */
.navbar-toggler {
    border: none; /* Remove default border */
    font-size: 1.5rem;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none; /* Remove focus outline */
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* --- Responsive Adjustments for Navbar --- */
@media (max-width: 991.98px) { /* Applies to screens smaller than large (lg) breakpoint */
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98); /* Solid background for collapsed menu */
        border-top: 1px solid rgb(255, 255, 255);
        padding: 15px;
        margin-top: 10px; /* Space from brand/toggler */
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    }

    .navbar-nav {
        width: 100%; /* Make nav items take full width */
    }

    .navbar-nav .nav-item {
        margin-bottom: 8px; /* Spacing between stacked nav items */
    }

    .navbar-nav .nav-item:last-child {
        margin-bottom: 0;
    }

    .navbar-nav .nav-item .nav-link {
        padding: 10px 15px; /* Adjust padding for collapsed links */
        display: block; /* Make links block level */
        text-align: center; /* Center text in collapsed menu */
    }

    .navbar-nav .nav-item .btn.btn-primary-custom {
        margin-left: 0; /* Remove left margin for collapsed button */
        margin-top: 10px; /* Add top margin if it's a separate button */
        width: 100%; /* Make button full width */
        text-align: center;
    }
}