/* --- Layout Utama --- */
.halaman {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 8px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    min-width: calc(100vh * 16 / 9);
    min-height: calc(100vw * 9 / 16);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    border: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 31, 14, 0.4) 0%, rgba(10, 31, 14, 0.7) 100%);
    z-index: 1;
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(to bottom, rgba(240, 247, 241, 0.5) 0%, rgba(240, 247, 241, 0.75) 100%);
}

.hero-ikon, .hero-nomor, .hero-judul, .hero-sub {
    position: relative;
    z-index: 2;
}

.hero-ikon {
    font-size: 2.4rem;
    color: var(--warna-udara);
    margin-bottom: 20px;
}

.hero-nomor {
margin-top: 15px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.hero-judul {
margin-top: 10px;
}

[data-theme="light"] .hero-judul {
    background: linear-gradient(135deg, var(--teks-utama) 40%, var(--warna-udara));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-sub {
color: #e0e0e0;
    font-size: 1.1rem;
    max-width: 650px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Shadow halus agar teks kontras */
}

/* --- Statistik Section --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--hijau-border);
    border-radius: 12px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
    text-align: center;
}

/* Glassmorphism hanya di dark mode */
:root:not([data-theme="light"]) .stat-card {
    background: rgba(15, 39, 20, 0.4);
    backdrop-filter: blur(5px);
}

.stat-card:hover {
    border-color: var(--hijau-medium);
    transform: translateY(-5px);
    background: rgba(46, 107, 56, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .stat-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--warna-udara);
}

.stat-card p {
    color: var(--teks-redup);
    font-size: 0.9rem;
    line-height: 1.6;
}

.stat-card a {
    color: var(--teks-redup);
    font-size: 0.82rem;
    margin-top: 8px;
    display: inline-block;
    transition: color 0.2s;
}

.stat-card a:hover {
    color: var(--warna-udara);
}

/* --- Info Zig-Zag Section (Tahukah Kamu?) --- */
.info-section {
    padding: 40px 0;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 40px;
}

/* Baris dengan latar berbeda */
.info-row.row-light {
    background-color: var(--bg-card);
    border: 1px solid var(--hijau-border);
    flex-direction: row-reverse;
    border-radius: 60px;
    padding: 40px;
}

.info-img {
    position: relative;
    flex: 1;
    height: 350px;
    border-radius: 60px;
    overflow: hidden;
    border: 1px solid var(--hijau-border);
}

.video-clean-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.35);
    pointer-events: none;
}

.video-clean-wrapper iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder-link {
    display: flex;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('https://img.youtube.com/vi/BchDmzVKcaQ/maxresdefault.jpg');
    background-size: cover;
    background-position: center;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.video-overlay-text {
    color: #ff4d4d;
    font-weight: bold;
    font-size: 1.5rem;
    text-align: center;
}

.video-lokal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.info-text {
    flex: 1.2;
}

.info-text h3 {
    color: var(--teks-utama);
    margin-bottom: 12px;
}

.info-text p {
    color: var(--teks-redup);
    line-height: 1.7;
}

/* teks-gelap: otomatis ikut tema */
.teks-gelap {
    color: var(--teks-utama) !important;
}

.teks-hijau-cerah {
    color: var(--warna-udara);
}

/* --- Animasi --- */
.info-row, .stat-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}


.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.4s; }
.stat-card:nth-child(3) { animation-delay: 0.6s; }
.info-row:nth-of-type(1) { animation-delay: 0.8s; }
.info-row:nth-of-type(2) { animation-delay: 1s; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .info-row, .info-row.row-light {
        flex-direction: column !important;
        gap: 20px;
        padding: 20px;
        border-radius: 20px;
    }
    .info-img {
        width: 100%;
        height: 250px;
    }
}

/* --- Dampak Section --- */
.dampak-section {
    padding: 20px 0 80px;
}

.dampak-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.dampak-card:nth-child(4),
.dampak-card:nth-child(5) {
    margin-left: 0;
}

.dampak-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--hijau-border);
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s;
    width: calc(33.333% - 20px);
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.dampak-card:hover {
    transform: translateY(-10px);
    border-color: var(--warna-udara);
}

.dampak-img-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.dampak-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dampak-card:hover .dampak-img-wrapper img {
    transform: scale(1.1);
}

.dampak-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 31, 14, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

[data-theme="light"] .dampak-overlay {
    background: linear-gradient(to top, rgba(15, 39, 20, 0.85), transparent);
}

.dampak-overlay h3 {
    font-size: 1rem;
    color: white;
    letter-spacing: 1px;
    font-weight: 700;
}

.dampak-konten {
    padding: 20px;
}

.dampak-konten p {
    font-size: 0.9rem;
    color: var(--teks-redup);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .dampak-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dampak-card:nth-child(4), .dampak-card:nth-child(5) {
        grid-column: auto;
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .dampak-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Solusi Section --- */
.solusi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding-bottom: 50px;
}

.solusi-card {
background: #ffffff;
    border-radius: 30px;
    padding: 40px 30px;
    text-align: justify;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.3s ease, 
                border 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid transparent;
}

[data-theme="light"] .solusi-card {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.card-highlight {
    box-shadow: 0 0 25px rgba(46, 160, 67, 0.4);
    transform: translateY(-5px);
}

.solusi-icon-wrapper {
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.solusi-icon-wrapper i {
    font-size: 3rem;
    color: var(--hijau-medium);
}

.solusi-img-file {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.solusi-card h3 {
text-align: center;
    width: 100%;
    margin-bottom: 20px; 
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.solusi-card p {
    color: var(--teks-redup);
    font-size: 0.95rem;
    line-height: 1.6;
}

.solusi-card:hover {
/* Mengangkat kartu sedikit lebih tinggi */
    transform: translateY(-15px) scale(1.05); 

    box-shadow: 0 15px 35px rgba(46, 160, 67, 0.4);
    border: 1px solid rgba(46, 160, 67, 0.2);
    cursor: pointer;
}

.solusi-card:hover .solusi-img-file {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}
/* Navigasi Elemen */
.nav-elemen {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 20px;
  border: 1.5px solid var(--hijau-border);
  background: var(--bg-card);
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, box-shadow 0.3s;
  height: 100%;
}

.nav-elemen:hover { transform: translateY(-6px); }

.nav-elemen-air:hover {
  border-color: var(--warna-air);
  box-shadow: 0 20px 48px rgba(58, 159, 255, 0.12);
}

.nav-elemen-udara:hover {
  border-color: var(--warna-udara);
  box-shadow: 0 20px 48px rgba(77, 217, 240, 0.12);
}

.nav-elemen-tanah:hover {
  border-color: var(--warna-tanah);
  box-shadow: 0 20px 48px rgba(200, 135, 74, 0.12);
}

.nav-elemen-ikon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.nav-elemen-air .nav-elemen-ikon { background: rgba(58, 159, 255, 0.1); color: var(--warna-air); }
.nav-elemen-udara .nav-elemen-ikon { background: rgba(77, 217, 240, 0.1); color: var(--warna-udara); }
.nav-elemen-tanah .nav-elemen-ikon { background: rgba(200, 135, 74, 0.1); color: var(--warna-tanah); }

.nav-elemen:hover .nav-elemen-ikon { transform: scale(1.1) rotate(-5deg); }

.nav-elemen-info { flex: 1; }

.nav-elemen-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teks-redup);
  margin-bottom: 4px;
}

.nav-elemen-judul {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--teks-utama);
  margin: 0 0 4px;
}

.nav-elemen-sub {
  font-size: 0.82rem;
  color: var(--teks-redup);
  margin: 0;
  line-height: 1.5;
}

.nav-elemen-arrow {
  color: var(--teks-redup);
  font-size: 1rem;
  transition: transform 0.3s, color 0.3s;
  flex-shrink: 0;
}

.nav-elemen-air:hover .nav-elemen-arrow { color: var(--warna-air); transform: translateX(4px); }
.nav-elemen-udara:hover .nav-elemen-arrow { color: var(--warna-udara); transform: translateX(4px); }
.nav-elemen-tanah:hover .nav-elemen-arrow { color: var(--warna-tanah); transform: translateX(4px); }
@media (max-width: 480px) {
    .solusi-card {
        padding: 30px 20px;
    }
}


[data-aos] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}


.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(46, 160, 67, 0.8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.music-btn:hover {
    transform: scale(1.1);
    background: rgba(46, 160, 67, 1);
}

/* Container Widget AQI */
.aqi-widget {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.aqi-card {
    background: var(--aqi-bg);
    border: 1px solid var(--aqi-color);
    border-radius: 24px;
    padding: 25px 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    color: white;
    max-width: 800px;
    position: relative;
}

.aqi-left {
    text-align: left;
    min-width: 180px;
}

.aqi-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.aqi-number {
    font-size: 4rem;
    font-weight: 850;
    line-height: 1;
    color: var(--aqi-color);
    margin: 5px 0;
}

.aqi-status {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aqi-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 40px;
    text-align: left;
    border-left: 1px solid rgba(255,255,255,0.15);
    padding-left: 40px;
}

.aqi-param span {
    font-size: 0.75rem;
    display: block;
    opacity: 0.7;
    margin-bottom: 2px;
}

.aqi-param strong {
    font-size: 1.1rem;
    font-weight: 700;
}

.aqi-footer-info {
    position: absolute;
    right: 30px;
    bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.live-pulse {
    width: 8px;
    height: 8px;
    background: #ff4d4d;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    box-shadow: 0 0 8px #ff4d4d;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}
/* nih aqi nya yang versi terang */
[data-theme="light"] .aqi-card {
    color: #1a1a1a;
}

[data-theme="light"] .aqi-label {
    color: #444;
    opacity: 1;
}

[data-theme="light"] .aqi-param span {
    color: #555;
    opacity: 1;
}

[data-theme="light"] .aqi-param strong {
    color: #1a1a1a;
}

[data-theme="light"] .aqi-footer-info {
    color: #444;
    opacity: 1;
}

[data-theme="light"] .aqi-right {
    border-left-color: rgba(0, 0, 0, 0.12);
}
/* Responsive Mobile */
@media (max-width: 768px) {
    .aqi-card {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        text-align: center;
    }
    .aqi-left { text-align: center; min-width: unset; }
    .aqi-right {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.15);
        padding-left: 0;
        padding-top: 20px;
        gap: 15px 30px;
    }
    .aqi-footer-info {
        position: static;
        margin-top: 15px;
        justify-content: center;
    }
}
