html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Color scheme */
:root {
    --primary-color: #2A9D8F;
    --secondary-color: #264653;
    --accent-color: #E9C46A;
    --text-light: #F4F4F4;
    --text-dark: #2C3E50;
    --background-light: #F8F9FA;
}

/* Navbar styling */
.navbar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 600;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Section styling */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Section colors */
.landing-page {
    background: linear-gradient(rgba(38, 70, 83, 0.8), rgba(42, 157, 143, 0.8)),
                url('/api/placeholder/1920/1080');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
}

.profil {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.aparatur {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.kependudukan {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.karangtaruna {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.informasi {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.galeri {
    background-color: var(--background-light);
    color: var(--text-dark);
}

/* Section headings */
.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Landing page specific */
.landing-page h2 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.landing-page p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-explore {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    border-radius: 50px;
    background: var(--accent-color);
    color: var(--text-dark);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 196, 106, 0.3);
}

.btn-explore:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 196, 106, 0.4);
    background: #F4A261;
}

/* Card styling */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    background: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: #666;
    line-height: 1.6;
}

.card-img-top {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    height: 200px;
    object-fit: cover;
}

/* Table styling */
.table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.table thead th {
    background: var(--primary-color);
    color: var(--text-light);
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid #eee;
}

/* Chart container */
.chart-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    height: 300px;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .section {
        padding: 60px 0;
    }

    .landing-page h2 {
        font-size: 2.5rem;
    }

    .landing-page p {
        font-size: 1.2rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .btn-explore {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .landing-page h2 {
        font-size: 2rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .card-img-top {
        height: 180px;
    }
}
