/* CSS Variables & Setup */
:root {
    --primary: #2e7d32; /* Nature green */
    --primary-light: #60ad5e;
    --primary-dark: #005005;
    --bg-color: #f8f9fa;
    --text-main: #2d3748;
    --text-muted: #718096;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glassmorphism Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.glass-nav.scrolled {
    box-shadow: var(--shadow);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 32px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/hero_bg.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.05);
    animation: zoomOut 20s ease infinite alternate;
}

@keyframes zoomOut {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    margin-top: 60px;
}

.hero-content .subtitle {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-content .title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-content .description {
    font-size: clamp(16px, 2vw, 20px);
    max-width: 600px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.85);
}

.btn-primary {
    display: inline-block;
    padding: 16px 32px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.6);
}

/* Common Section */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.divider {
    height: 4px;
    width: 60px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* Profil Dusun */
.profil-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.profil-text h3 {
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--primary-dark);
}

.profil-text p {
    margin-bottom: 16px;
    color: var(--text-main);
    font-size: 16.5px;
    line-height: 1.7;
}

.profil-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

.stat-card h4 {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.stat-card .stat-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.stat-card .stat-desc {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.4;
}

/* Accordion Details */
details summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary .chevron {
    transition: transform 0.3s ease;
    color: var(--primary);
    flex-shrink: 0;
}

details[open] summary .chevron {
    transform: rotate(180deg);
}

.stat-desc-wrapper {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

/* Potensi Dusun */
.potensi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.potensi-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.potensi-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.potensi-card:hover .potensi-img {
    transform: scale(1.05);
}

.potensi-info {
    padding: 32px 24px;
    background: var(--white);
    position: relative;
    z-index: 1;
}

.potensi-info h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.potensi-info p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Kontak */
.kontak-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.kontak-info h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.contact-list {
    list-style: none;
    margin-top: 32px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-list svg {
    color: var(--primary);
    flex-shrink: 0;
}

.contact-list a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.contact-list a:hover {
    color: var(--primary);
}

.kontak-map {
    border-radius: 16px;
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow);
}

/* Footer Info Section */
.footer-info {
    background: var(--white);
    padding: 60px 0 40px;
}

.footer-container {
    width: 100%;
    padding: 0 32px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-brand {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 400px;
}

.footer-col .meta-title {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Footer Bottom */
.main-footer {
    background: #f8f9fa;
    color: var(--text-muted);
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.main-footer .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.main-footer p {
    font-size: 12px;
    opacity: 0.8;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-socials a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
    
    .main-footer .footer-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 12px;
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.fade-up:nth-child(2) { animation-delay: 0.2s; }
.fade-up:nth-child(3) { animation-delay: 0.4s; }
.fade-up:nth-child(4) { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation Classes */
.hidden-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.show-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .profil-content, .kontak-wrapper {
        grid-template-columns: 1fr;
    }
    
    .kontak-map {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
}
