* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2d8659;
    --light-green: #a8dadc;
    --ocean-blue: #457b9d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
}
:root {
    --primary-green: #2d8659;
    --dark-green: #1a5c3e;
    --light-green: #a8dadc;
    --ocean-blue: #457b9d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
}


/* ============================================
   🌊 BACKGROUND ANIMASI PREMIUM
============================================ */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    position: relative;
    overflow-x: hidden;
    background: #1a5c3e; /* Fallback color */
}

/* === ANIMATED GRADIENT BACKGROUND === */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #2d8659, #1a5c3e, #457b9d, #81c784);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* === FLOATING BUBBLES === */
.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.6;
    animation: bubbleRise 15s infinite ease-in;
}

@keyframes bubbleRise {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-120vh) scale(1.5) rotate(360deg);
        opacity: 0;
    }
}

/* === WAVE ANIMATION === */
.wave-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: -1;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,128C672,128,768,160,864,165.3C960,171,1056,149,1152,133.3C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') repeat-x;
    animation: waveMove 20s linear infinite;
    opacity: 0.3;
}

.wave:nth-child(2) {
    bottom: 20px;
    opacity: 0.2;
    animation-duration: 25s;
    animation-direction: reverse;
}

.wave:nth-child(3) {
    bottom: 40px;
    opacity: 0.15;
    animation-duration: 30s;
}

@keyframes waveMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* === FLOATING PARTICLES === */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particleFloat 20s linear infinite;
}

.particle:nth-child(odd) {
    background: rgba(168, 218, 220, 0.5);
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) scale(1);
        opacity: 0;
    }
}

/* === MESH GRADIENT === */
.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

.mesh-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.3) 0%, transparent 50%);
    animation: meshRotate 30s linear infinite;
}

@keyframes meshRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Pastikan semua konten di atas background */
header, main, footer, .page-content {
    position: relative;
    z-index: 10;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .bubble {
        display: none; /* Kurangi animasi di mobile */
    }
    
    .particle:nth-child(n+10) {
        display: none; /* Tampilkan hanya 10 particle */
    }
}

/* === LANJUTKAN DENGAN CSS YANG SUDAH ADA === */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #a8e6cf, #000000, #4caf50);
    background-size: 300% 300%;
    animation: gradientFlow 8s ease infinite;
    overflow-x: hidden;
    position: relative;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}



/* ============================================
   🎨 HEADER/NAVBAR ANIMASI INTERAKTIF
============================================ */

header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Header menjadi lebih kecil saat scroll */
header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.95) 0%, rgba(26, 92, 62, 0.95) 100%);
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.3s ease;
}

header.scrolled .header-content {
    padding: 0.5rem 2rem;
}

/* === LOGO SECTION ANIMASI === */
.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInLeft 0.6s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.logo {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Logo pulse animation */
.logo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--secondary-orange);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    transition: all 0.4s ease;
}

.logo:hover::before {
    transform: scale(1.5);
    opacity: 0.3;
}

.logo:hover {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 140, 66, 0.5);
}

header.scrolled .logo {
    width: 50px;
    height: 50px;
}

.site-name {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

/* Text glow effect */
.site-name::after {
    content: 'O-PLAH';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-orange);
    opacity: 0;
    filter: blur(10px);
    transition: all 0.3s ease;
}

.site-name:hover::after {
    opacity: 0.7;
}

header.scrolled .site-name {
    font-size: 1.5rem;
}

/* === NAVIGATION ANIMASI === */
nav {
    animation: slideInRight 0.6s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

nav li {
    animation: fadeInDown 0.6s ease backwards;
}

nav li:nth-child(1) { animation-delay: 0.1s; }
nav li:nth-child(2) { animation-delay: 0.2s; }
nav li:nth-child(3) { animation-delay: 0.3s; }
nav li:nth-child(4) { animation-delay: 0.4s; }
nav li:nth-child(5) { animation-delay: 0.5s; }
nav li:nth-child(6) { animation-delay: 0.6s; }
nav li:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav a {
    color: var(--white);
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
    position: relative;
    overflow: hidden;
}

/* Ripple effect on nav links */
nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

nav a:hover::before {
    width: 300px;
    height: 300px;
}

nav a:hover, nav a.active {
    background: var(--secondary-orange);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.4);
}

/* Active indicator */
nav a.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1.5);
    }
}

/* === DROPDOWN ANIMASI === */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-radius: 15px;
    top: 100%;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: dropdownSlide 0.4s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-content a {
    color: var(--dark-green);
    padding: 0.8rem 1.2rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: var(--light-green);
    transform: translateX(10px);
    padding-left: 1.5rem;
}

/* === MOBILE MENU BUTTON === */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
    color: var(--secondary-orange);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.site-name {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    transition: all 0.3s;
    display: block;
}

nav a:hover, nav a.active {
    background: var(--secondary-orange);
    transform: translateY(-2px);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 5px;
    top: 100%;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--dark-green);
    padding: 0.8rem 1.2rem;
    border-radius: 0;
}

.dropdown-content a:hover {
    background: var(--light-green);
    transform: none;
}

/* Main Content */
.page-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* Login Page */
.auth-container {
    max-width: 450px;
    margin: 3rem auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.auth-container h2 {
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-green);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--light-green);
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 134, 89, 0.3);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.auth-switch a {
    color: var(--secondary-orange);
    text-decoration: none;
    font-weight: bold;
}

/* Beranda Page */
.hero-section {
    background: linear-gradient(135deg, var(--ocean-blue) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.wave-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%23ffffff" fill-opacity="0.1"/></svg>') repeat-x;
    animation: wave 20s linear infinite;
}

@keyframes wave {
    0% { background-position: 0 0; }
    100% { background-position: 1200px 0; }
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 4px solid var(--secondary-orange);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-green);
    margin: 1rem 0;
}

.stat-label {
    color: #666;
    font-size: 1.1rem;
}

.info-section {
    background: var(--light-gray);
    padding: 3rem 2rem;
    border-radius: 15px;
    margin: 3rem 0;
}

.info-section h2 {
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.sdg-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin: 3rem 0;
}

.sdg-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 200px;
}

.sdg-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.plastic-guide {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-top: 3rem;
}

.plastic-guide h3 {
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 2rem;
}

.plastic-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.plastic-type {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid var(--secondary-orange);
}

.plastic-type h4 {
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

/* Maps Page */
#map {
    width: 100%;
    height: 600px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.map-selector {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.map-selector label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-green);
    font-weight: bold;
}

.map-selector select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--light-green);
    border-radius: 8px;
    font-size: 1rem;
}

iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Chat/Discussion Page */
.chat-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    height: 700px;
}

.chat-users {
    background: var(--white);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.chat-messages {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.messages-area {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.message {
    background: var(--white);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.message-sender {
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.message-input {
    display: flex;
    gap: 1rem;
}

.message-input input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid var(--light-green);
    border-radius: 8px;
}

/* ============================================
   🌊 FOOTER ANIMASI INTERAKTIF
============================================ */

footer {
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

/* Wave decoration di atas footer */
footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%231a5c3e" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat;
    background-size: cover;
    animation: waveFloat 15s ease-in-out infinite;
}

@keyframes waveFloat {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-50px);
    }
}

/* Floating particles di footer */
footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 140, 66, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 40px 40px;
    animation: particleMove 20s linear infinite;
    pointer-events: none;
}

@keyframes particleMove {
    0% {
        background-position: 0 0, 40px 40px;
    }
    100% {
        background-position: 50px 50px, 90px 90px;
    }
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Footer sections dengan animasi saat muncul */
.footer-content > div {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.footer-content > div:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-content > div:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-content > div:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section h3 {
    color: var(--secondary-orange);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-size: 1.4rem;
}

/* Underline animation untuk heading */
.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-orange);
    transition: width 0.4s ease;
}

.footer-section:hover h3::after {
    width: 60px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.footer-section ul li:hover {
    transform: translateX(10px);
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.footer-section a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-section a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-section a:hover {
    color: var(--secondary-orange);
    padding-left: 1rem;
}

/* Contact info dengan icon animation */
.footer-section p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.footer-section p i {
    color: var(--secondary-orange);
    transition: all 0.3s ease;
}

.footer-section p:hover {
    transform: translateX(5px);
}

.footer-section p:hover i {
    transform: scale(1.2) rotate(360deg);
}

/* === SOCIAL LINKS ANIMASI === */
.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Ripple effect untuk social icons */
.social-links a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--secondary-orange);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.social-links a:hover::before {
    transform: scale(1);
}

.social-links a i {
    position: relative;
    z-index: 1;
}

.social-links a:hover {
    transform: translateY(-10px) rotate(360deg);
    box-shadow: 0 10px 25px rgba(255, 140, 66, 0.5);
}

.social-links a:nth-child(1):hover {
    background: #1877f2; /* Facebook */
}

.social-links a:nth-child(2):hover {
    background: #1da1f2; /* Twitter */
}

.social-links a:nth-child(3):hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-links a:nth-child(4):hover {
    background: #ff0000; /* YouTube */
}

/* === FOOTER BOTTOM === */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
    font-size: 0.95rem;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-orange);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(255, 140, 66, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.6);
    background: var(--primary-green);
}

.back-to-top i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    .chat-container {
        grid-template-columns: 1fr;
    }

    .hero-section h1 {
        font-size: 2rem;
    }
}

/* Tentang Kami Section */
.tentang-kami {
    background: var(--light-gray);
    padding: 5rem 2rem; /* Tambah padding vertikal */
    border-radius: 15px;
    margin: 3rem 0;
}

.tentang-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem; /* Perbesar gap */
    max-width: 1900px; /* Perbesar dari 1200px ke 1400px */
    margin: 0 auto;
    flex-wrap: wrap;
    background: rgb(255, 255, 255); /* Pastikan background putih */
    padding: 4rem 3rem; /* Tambah padding dalam box putih */
    border-radius: 20px; /* Perbesar radius */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); /* Shadow lebih tegas */
}

.tentang-image {
    flex: 1;
    text-align: center;
    min-width: 350px; /* Pastikan ukuran minimum */
}

.tentang-image img {
    width: 100%;
    max-width: 550px; /* Perbesar dari 480px */
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.tentang-text {
    flex: 1;
    min-width: 400px; /* Pastikan ukuran minimum */
}

.tentang-text h2 {
    color: var(--primary-green);
    font-size: 2.5rem; /* Perbesar dari 2.2rem */
    margin-bottom: 1.5rem;
}

.tentang-text p {
    font-size: 1.15rem; /* Perbesar dari 1.1rem */
    color: #555;
    line-height: 1.8;
}

/* Responsive untuk tablet */
@media (max-width: 1024px) {
    .tentang-container {
        max-width: 90%; /* 90% dari lebar layar */
        padding: 3rem 2.5rem;
        gap: 3rem;
    }
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .tentang-kami {
        padding: 3rem 1.5rem;
    }
    
    .tentang-container {
        max-width: 95%;
        padding: 2.5rem 2rem;
        gap: 2rem;
    }
    
    .tentang-image {
        min-width: 100%;
    }
    
    .tentang-text {
        min-width: 100%;
    }
    
    .tentang-text h2 {
        font-size: 2rem;
    }
    
    .tentang-text p {
        font-size: 1rem;
    }
}

/* Responsif untuk mobile */
@media (max-width: 768px) {
    .tentang-container {
        flex-direction: column;
        text-align: center;
    }
}


/* SDG Section - versi vertikal kiri-kanan bergantian */
.sdg-section {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.sdg-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.sdg-item:hover {
    transform: translateY(-5px);
}

.sdg-item.reverse {
    flex-direction: row-reverse;
    background: var(--light-gray);
}

.sdg-image {
    font-size: 4rem;
    flex-shrink: 0;
}

.sdg-content h4 {
    color: var(--primary-green);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.sdg-content p {
    color: #555;
    font-size: 1.1rem;
}

/* Responsif mobile */
@media (max-width: 768px) {
    .sdg-item,
    .sdg-item.reverse {
        flex-direction: column;
        text-align: center;
    }

    .sdg-image {
        margin-bottom: 1rem;
    }
}


/* SDG Section - bergantian kiri-kanan */
.sdg-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.sdg-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--white);
  padding: 1.5rem 2rem;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.sdg-item:hover {
  transform: translateY(-5px);
}

.sdg-item.reverse {
  flex-direction: row-reverse;
  background: var(--light-gray);
}

/* Gambar SDG */
.sdg-image img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 10px;
}

/* Teks SDG */
.sdg-content h4 {
  color: var(--primary-green);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.sdg-content p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Responsif */
@media (max-width: 768px) {
  .sdg-item,
  .sdg-item.reverse {
    flex-direction: column;
    text-align: center;
  }

  .sdg-image img {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
  }
}

/* Biar teks di card reverse agak geser ke kiri */
.sdg-item.reverse .sdg-content {
  text-align: right;
  padding-right: 2rem;
}

/* Tambahan sedikit spacing agar tetap seimbang visualnya */
.sdg-item:not(.reverse) .sdg-content {
  text-align: left;
  padding-left: 2rem;
}

/* Responsif tetap rapi di HP */
@media (max-width: 768px) {
  .sdg-item.reverse .sdg-content,
  .sdg-item:not(.reverse) .sdg-content {
    text-align: center;
    padding: 0;
  }
}

.sdg-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.sdg-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sdg-item.reverse {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.sdg-image img {
  width: 80px;
  height: auto;
  margin-right: 1.5rem;
}

.sdg-item.reverse .sdg-image img {
  margin-left: 1.5rem;
  margin-right: 0;
}

.sdg-content {
  text-align: left;
}

.sdg-item.reverse .sdg-content {
  text-align: left; /* penting untuk merapikan teks agar sejajar kiri */
  margin-left: 1.5rem; /* tambahkan ini supaya teks tidak terlalu jauh ke kanan */
}

/* === Perbaikan posisi SDG 12 & SDG 11 agar mentok kanan === */
.sdg-item {
  width: fit-content; /* supaya elemen sesuai isi dan bisa digeser */
}

.sdg-item:not(.reverse) {
  align-self: flex-start; /* SDG 14 dan 17 tetap kiri */
}

.sdg-item.reverse {
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-self: flex-end; /* SDG 12 dan 11 jadi mentok kanan */
}

/* === Final Fix: Kotak SDG di Tengah, Teks Tetap Kanan-Kiri === */

/* Pastikan section tetap di tengah */
.sdg-section {
  display: flex;
  flex-direction: column;
  align-items: center; /* ini bikin semua box (kotak SDG) di tengah */
  gap: 2rem;
  margin-top: 2rem;
}

/* Style kotaknya */
.sdg-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 80%; /* biar kelihatan proporsional dan sejajar */
  max-width: 800px;
  background: white;
  border-radius: 10px;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.sdg-item:hover {
  transform: translateY(-5px);
}

/* Gaya bergantian kanan-kiri */
.sdg-item.reverse {
  flex-direction: row-reverse;
  background: var(--light-gray);
}

/* Gambar SDG */
.sdg-image img {
  width: 100px;
  height: auto;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Teks SDG */
.sdg-content {
  flex: 1;
}

.sdg-item:not(.reverse) .sdg-content {
  text-align: left;
  padding-left: 2rem;
}

.sdg-item.reverse .sdg-content {
  text-align: right;
  padding-right: 2rem;
}

/* === SDG Section: Kotak di Tengah, Gambar & Teks Bergantian === */

.sdg-section {
  display: flex;
  flex-direction: column;
  align-items: center; /* Semua box SDG center */
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Setiap card SDG */
.sdg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80%;
  max-width: 900px;
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem 2rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.sdg-item:hover {
  transform: translateY(-5px);
}

/* Versi bergantian */
.sdg-item.reverse {
  flex-direction: row-reverse;
  background: var(--light-gray);
}

/* Gambar SDG */
.sdg-image img {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Konten SDG */
.sdg-content {
  flex: 1;
  padding: 0 2rem;
}

.sdg-item:not(.reverse) .sdg-content {
  text-align: left;
}

.sdg-item.reverse .sdg-content {
  text-align: right;
}

/* === Responsif (Mobile Friendly) === */
@media (max-width: 768px) {
  .sdg-item,
  .sdg-item.reverse {
    flex-direction: column;
    width: 95%;
    text-align: center;
  }

  .sdg-content {
    text-align: center !important;
    padding: 0;
  }

  .sdg-image img {
    margin-bottom: 1rem;
  }
}

/* === Fix: Tampilan Dampak Plastik seperti gambar 2 === */

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.impact-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.impact-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.impact-card h4 {
  color: var(--primary-green);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.impact-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

/* Responsif untuk HP */
@media (max-width: 768px) {
  .impact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.map-section {
  padding: 40px 0;
  min-height: 80vh;
  background-color: #f9f9f9;
}

.map-frame-wrapper {
  width: 100%;
  height: 70vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

footer {
  margin-top: 50px;
}

/* 🌊 === Efek Latar O-PLAH Premium === */
.wave {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 180px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 100%;
  animation: waveMove 6s linear infinite;
  opacity: 0.5;
  z-index: 0;
}
.wave:nth-child(2) {
  bottom: -40px;
  opacity: 0.3;
  animation-duration: 8s;
}
.wave:nth-child(3) {
  bottom: -80px;
  opacity: 0.2;
  animation-duration: 10s;
}
@keyframes waveMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.bubbles {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}
.bubble {
  position: absolute;
  bottom: -10px;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: rise 10s infinite ease-in;
}
@keyframes rise {
  0% { transform: translateY(0) scale(0.8); opacity: 0.9; }
  100% { transform: translateY(-100vh) scale(1.2); opacity: 0; }
}

/* Kontainer global agar konten tetap di atas efek */
.content-box, header, main, footer {
  position: relative;
  z-index: 10;
}




/* 🌍 SDG Section Final - versi sejajar dan profesional */
.sdg-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 900px;
}

.sdg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--white);
  border-radius: 15px;
  padding: 1.8rem 2rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.sdg-item:hover {
  transform: translateY(-5px);
}

.sdg-item.reverse {
  flex-direction: row-reverse;
  background: var(--light-gray);
}

.sdg-item img {
  width: 110px;
  height: 110px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.sdg-content {
  flex: 1;
  padding: 0 2rem;
}

.sdg-content h4 {
  color: var(--primary-green);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.sdg-content p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .sdg-item,
  .sdg-item.reverse {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .sdg-item img {
    width: 90px;
    height: 90px;
    margin-bottom: 1rem;
  }

  .sdg-content {
    padding: 0;
    text-align: center;
  }
}



/* === FIX HERO SLIDER AGAR GAMBAR BESAR FULLSCREEN === */
.hero-slide {
    height: 85vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 4rem;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: bold;
}

.hero-text p {
    font-size: 1.3rem;
    margin: 1rem 0;
}

.btn-hero {
    padding: 0.8rem 1.4rem;
    background: var(--secondary-orange);
    color: white;
    border-radius: 8px;
    display: inline-block;
    margin-top: 1rem;
    transition: 0.3s;
}

.btn-hero:hover {
    background: #ff7a20;
    transform: translateY(-3px);
}

/* Responsif slider */
@media (max-width: 768px) {
  .hero-slide {
      height: 60vh;
      padding-left: 1rem;
      justify-content: center;
      text-align: center;
  }

  .hero-text h1 { font-size: 2rem; }
  .hero-text p { font-size: 1rem; }
}




/* === PANDUAN JENIS PLASTIK — DESAIN PREMIUM === */
.plastic-guide {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: 20px;
  margin-top: 3rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.plastic-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.plastic-types div {
  background: var(--light-gray);
  border-left: 6px solid var(--primary-green);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.plastic-types div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.plastic-types h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-green);
  font-size: 1.25rem;
  font-weight: bold;
}

.plastic-types p {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}

/* Border warna berbeda tiap jenis plastik */
.plastic-types div:nth-child(1) { border-left-color: #1e88e5; }
.plastic-types div:nth-child(2) { border-left-color: #43a047; }
.plastic-types div:nth-child(3) { border-left-color: #e53935; }
.plastic-types div:nth-child(4) { border-left-color: #fb8c00; }
.plastic-types div:nth-child(5) { border-left-color: #8e24aa; }
.plastic-types div:nth-child(6) { border-left-color: #fdd835; }
.plastic-types div:nth-child(7) { border-left-color: #6d4c41; }

/* Responsive plastik */
@media (max-width: 768px) {
  .plastic-types div {
      text-align: center;
  }
}

/* ============================================
   SIKLUS PLASTIK PAGE - ADVANCED STYLES
============================================ */

/* Mind Map Container */
.mindmap-container {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  overflow-x: auto;
}

.mindmap-container .mermaid {
  display: flex;
  justify-content: center;
  min-height: 400px;
}

/* Cycle Grid */
.cycle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.cycle-card {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.cycle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.cycle-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

.cycle-card h5 {
  color: var(--primary-green);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
}

.cycle-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

/* Biota Grid - Cards */
.biota-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.biota-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.biota-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.biota-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.biota-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.biota-card:hover .biota-image img {
  transform: scale(1.1);
}

/* Status Badge */
.biota-status {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.biota-status.critical {
  background: #d32f2f;
  color: white;
}

.biota-status.endangered {
  background: #f57c00;
  color: white;
}

.biota-status.vulnerable {
  background: #fbc02d;
  color: #333;
}

.biota-status.least-concern {
  background: #388e3c;
  color: white;
}

/* Biota Content */
.biota-content {
  padding: 1.8rem;
}

.biota-content h4 {
  color: var(--primary-green);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.biota-stats {
  display: flex;
  justify-content: space-around;
  background: var(--light-gray);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.2rem;
  gap: 1rem;
}

.biota-stats span {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

.biota-stats strong {
  display: block;
  font-size: 1.3rem;
  color: var(--primary-green);
  margin-bottom: 0.3rem;
}

.biota-content p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.biota-content p strong {
  color: var(--dark-green);
}

/* Responsive */
@media (max-width: 768px) {
  .biota-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cycle-grid {
    grid-template-columns: 1fr;
  }
  
  .mindmap-container {
    overflow-x: scroll;
  }
  
  .biota-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
}
/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: white;
  border-radius: 15px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #333;
}

/* Scrollbar styling */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--primary-green);
  border-radius: 10px;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--primary-green);
  background: white;
  color: var(--primary-green);
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: var(--light-green);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary-green);
  color: white;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2d8659;
    --dark-green: #1a5c3e;
    --light-green: #a8dadc;
    --ocean-blue: #457b9d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #a8e6cf, #81c784, #4caf50);
    background-size: 300% 300%;
    animation: gradientFlow 8s ease infinite;
    overflow-x: hidden;
    position: relative;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === SCROLL ANIMATION === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.site-name {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    transition: all 0.3s;
    display: block;
}

nav a:hover, nav a.active {
    background: var(--secondary-orange);
    transform: translateY(-2px);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 5px;
    top: 100%;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--dark-green);
    padding: 0.8rem 1.2rem;
    border-radius: 0;
}

.dropdown-content a:hover {
    background: var(--light-green);
    transform: none;
}

/* === HERO SLIDER YANG DIPERCANTIK === */
.hero-slider {
    width: 100%;
    height: 90vh;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    height: 90vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Overlay gradien untuk keterbacaan teks lebih baik */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.7), rgba(26, 92, 62, 0.5));
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 2rem;
    animation: heroFadeIn 1s ease;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.hero-text p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
    line-height: 1.8;
}

.btn-hero {
    padding: 1rem 2.5rem;
    background: var(--secondary-orange);
    color: white;
    border-radius: 50px;
    display: inline-block;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.4);
}

.btn-hero:hover {
    background: #ff7a20;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 140, 66, 0.6);
}

/* Styling untuk tombol navigasi Swiper */
.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.3);
}

.swiper-pagination-bullet {
    background: white !important;
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--secondary-orange) !important;
}

/* Main Content */
.page-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* === TENTANG KAMI YANG LEBIH LEBAR DAN CANTIK === */
.tentang-kami {
    background: rgba(255, 255, 255, 0.95);
    padding: 5rem 3rem;
    border-radius: 20px;
    margin: 4rem auto;
    max-width: 1400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.tentang-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.tentang-image {
    flex: 1;
    position: relative;
}

.tentang-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.tentang-image img:hover {
    transform: scale(1.02);
}

.tentang-text {
    flex: 1;
}

.tentang-text h2 {
    color: var(--primary-green);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.tentang-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--secondary-orange);
    border-radius: 2px;
}

.tentang-text p {
    font-size: 1.2rem;
    color: #555;
    line-height: 2;
    text-align: justify;
}

/* Statistik */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1400px;
    padding: 0 2rem;
}

.stat-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 5px solid var(--secondary-orange);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.stat-card i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--primary-green);
    margin: 1rem 0;
}

.stat-label {
    color: #666;
    font-size: 1.1rem;
}

/* Info Section */
.info-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 4rem 3rem;
    border-radius: 20px;
    margin: 4rem auto;
    max-width: 1400px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.info-section h2 {
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.info-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--secondary-orange);
    border-radius: 2px;
}

/* Dampak Plastik */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.impact-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-green);
}

.impact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.impact-card i {
    font-size: 3.5rem;
    color: var(--secondary-orange);
    margin-bottom: 1.5rem;
}

.impact-card h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.impact-card p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* === SDG SECTION YANG LEBIH BESAR === */
.sdg-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin: 3rem auto;
    max-width: 1200px;
}

.sdg-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.sdg-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.sdg-item.reverse {
    flex-direction: row-reverse;
    background: var(--light-gray);
}

.sdg-item img {
    width: 150px;
    height: 150px;
    border-radius: 15px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sdg-item:hover img {
    transform: scale(1.05);
}

.sdg-content {
    flex: 1;
    padding: 0 3rem;
}

.sdg-content h4 {
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.sdg-content p {
    color: #555;
    font-size: 1.25rem;
    line-height: 1.6;
}

/* === PANDUAN PLASTIK SLIDER === */
.plastic-guide {
    background: rgba(255, 255, 255, 0.95);
    padding: 4rem 3rem;
    border-radius: 20px;
    margin: 4rem auto;
    max-width: 1400px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.plastic-guide h3 {
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.plastic-slider {
    position: relative;
    padding: 2rem 0;
}

.plastic-slider .swiper-slide {
    height: auto;
}

.plastic-type {
    background: linear-gradient(135deg, var(--light-gray), #e8f5e9);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border-left: 6px solid var(--primary-green);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plastic-type:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.plastic-type h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: bold;
}

.plastic-type p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Border warna berbeda tiap jenis plastik */
.plastic-type:nth-child(1) { border-left-color: #1e88e5; }
.plastic-type:nth-child(2) { border-left-color: #43a047; }
.plastic-type:nth-child(3) { border-left-color: #e53935; }
.plastic-type:nth-child(4) { border-left-color: #fb8c00; }
.plastic-type:nth-child(5) { border-left-color: #8e24aa; }
.plastic-type:nth-child(6) { border-left-color: #fdd835; }
.plastic-type:nth-child(7) { border-left-color: #6d4c41; }

.plastic-slider .swiper-button-next,
.plastic-slider .swiper-button-prev {
    color: var(--primary-green) !important;
    background: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.plastic-slider .swiper-pagination-bullet {
    background: var(--primary-green) !important;
}

/* === BERITA TERKINI === */
.news-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 4rem 3rem;
    border-radius: 20px;
    margin: 4rem auto;
    max-width: 1400px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.news-section h2 {
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.news-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--secondary-orange);
    border-radius: 2px;
}

/* GRID */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
    grid-auto-rows: auto; /* FIX tingginya card */
}

/* CARD */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: visible; /* FIX tombol selengkapnya */
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    /* cursor: pointer;  <-- Dihapus agar link muncul */
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* IMAGE */
.news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* CONTENT */
.news-content {
    padding: 1.5rem;
    height: auto;            /* FIX */
    overflow: visible;       /* FIX */
}

/* Tanggal */
.news-date {
    color: var(--secondary-orange);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* Judul */
.news-title {
    color: var(--primary-green);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

/* Deskripsi */
.news-excerpt {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* LINK SELENGKAPNYA */
.news-link {
    color: var(--secondary-orange);
    text-decoration: none;
    font-weight: bold;
    align-items: center;
}

/* Hover Link */
.news-link:hover {
    gap: 1rem;
    color: var(--primary-green);
}



/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--secondary-orange);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-orange);
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.hidden {
    display: none;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    .hero-slide {
        height: 70vh;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .tentang-container {
        flex-direction: column;
        text-align: center;
    }

    .tentang-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .sdg-item,
    .sdg-item.reverse {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .sdg-item img {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }

    .sdg-content {
        padding: 0;
        text-align: center;
    }

    .sdg-content h4 {
        font-size: 1.6rem;
    }

    .sdg-content p {
        font-size: 1.1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   GAME PAGE STYLES
============================================ */

.game-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.game-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.game-header {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  color: white;
  padding: 2rem;
  text-align: center;
}

.game-header h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.game-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.game-section {
  max-width: 1800px !important;  /* ← Lebarin container */
}

.game-card iframe {
  width: 100%;
  height: 1100px;  /* ← Tinggi 1100px */
  border: none;
  display: block;
}

.game-footer {
  padding: 1.5rem;
  background: var(--light-gray);
  text-align: center;
}

.btn-game {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--secondary-orange);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 140, 66, 0.3);
}

.btn-game:hover {
  background: #ff7a20;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 140, 66, 0.5);
}

.btn-game i {
  margin-right: 0.5rem;
}

/* Game Info Section */
.game-info-section {
  margin-top: 4rem;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.game-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.info-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary-green);
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.info-card i {
  font-size: 3rem;
  color: var(--secondary-orange);
  margin-bottom: 1.5rem;
}

.info-card h4 {
  color: var(--primary-green);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.info-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

/* Game Frame Visibility */
.game-frame {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.game-frame.hidden {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .game-card iframe {
    height: 400px;
  }

  .game-header h3 {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .game-info-grid {
    grid-template-columns: 1fr;
  }

  .game-section {
    padding: 2rem 1rem;
  }
}

/* Loading Animation untuk Game */
.game-card iframe {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
/* ============================================
   SDG SECTION - IMAGE ONLY WITH POPUP VERSION
============================================ */

/* Background Section dengan Pattern */
.info-section.sdg-bg {
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.05), rgba(168, 218, 220, 0.1)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%232d8659" opacity="0.1"/></svg>');
    background-size: auto, 50px 50px;
    padding: 5rem 3rem;
    border-radius: 25px;
    margin: 4rem auto;
    max-width: 1400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* Decorative Wave di Background */
.info-section.sdg-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23a8dadc" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,138.7C672,128,768,128,864,154.7C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
    z-index: 0;
}

/* Judul Section */
.info-section.sdg-bg h2 {
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 4rem;
    font-size: 3rem;
    position: relative;
    z-index: 1;
    padding-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.info-section.sdg-bg h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-orange), var(--primary-green));
    border-radius: 10px;
}

/* SDG Container - Grid Layout */
.sdg-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

/* SDG Item - Image Only */
.sdg-item {
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Gambar SDG - Full Size */
.sdg-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: all 0.4s ease;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

/* Hover Effect */
.sdg-item:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 15px 50px rgba(45, 134, 89, 0.3);
}

.sdg-item:hover img {
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.2)) brightness(1.1);
}

/* Click Indicator */
.sdg-item::after {
    content: '🔍 Klik untuk info';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(45, 134, 89, 0.95);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.sdg-item:hover::after {
    opacity: 1;
    bottom: 20px;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.sdg-item:nth-child(1) {
    animation: float 6s ease-in-out infinite;
    animation-delay: 0s;
}

.sdg-item:nth-child(2) {
    animation: float 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

.sdg-item:nth-child(3) {
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
}

.sdg-item:nth-child(4) {
    animation: float 6s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Pulse Effect untuk Gambar */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 134, 89, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(45, 134, 89, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(45, 134, 89, 0);
    }
}

.sdg-item:hover {
    animation: pulse 2s infinite;
}

/* ============================================
   MODAL POPUP STYLES
============================================ */

/* Modal Overlay */
.sdg-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.sdg-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content */
.sdg-modal-content {
    background: white;
    border-radius: 25px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.sdg-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.sdg-modal-close:hover {
    background: var(--secondary-orange);
    transform: rotate(90deg);
}

/* Modal Header */
.sdg-modal-header {
    padding: 3rem 3rem 2rem;
    text-align: center;
    position: relative;
}

.sdg-modal-header img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.sdg-modal-header h3 {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.sdg-modal-header .sdg-subtitle {
    color: var(--secondary-orange);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Modal Body */
.sdg-modal-body {
    padding: 0 3rem 3rem;
}

.sdg-modal-body p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.sdg-modal-body ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.sdg-modal-body ul li {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
}

.sdg-modal-body ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.3rem;
}

/* Modal Footer */
.sdg-modal-footer {
    padding: 2rem 3rem;
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.05), rgba(168, 218, 220, 0.1));
    border-radius: 0 0 25px 25px;
    text-align: center;
}

.sdg-modal-footer p {
    color: var(--primary-green);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* Scrollbar untuk Modal */
.sdg-modal-content::-webkit-scrollbar {
    width: 8px;
}

.sdg-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.sdg-modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 10px;
}

.sdg-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-orange);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .sdg-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .info-section.sdg-bg {
        padding: 3rem 1.5rem;
    }

    .info-section.sdg-bg h2 {
        font-size: 2rem;
    }

    .sdg-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .sdg-item::after {
        font-size: 0.75rem;
        padding: 6px 15px;
    }

    /* Disable floating animation di mobile */
    .sdg-item {
        animation: none !important;
    }

    /* Modal Responsive */
    .sdg-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .sdg-modal-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .sdg-modal-header img {
        width: 150px;
        height: 150px;
    }

    .sdg-modal-header h3 {
        font-size: 1.8rem;
    }

    .sdg-modal-header .sdg-subtitle {
        font-size: 1.1rem;
    }

    .sdg-modal-body {
        padding: 0 1.5rem 2rem;
    }

    .sdg-modal-body p,
    .sdg-modal-body ul li {
        font-size: 1rem;
    }

    .sdg-modal-footer {
        padding: 1.5rem;
    }

    .sdg-modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .sdg-section {
        grid-template-columns: 1fr;
    }
}

/* === BONUS: Particle Effect (Optional) === */
.sdg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-green);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 10s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 2s; }
.particle:nth-child(3) { left: 50%; animation-delay: 4s; }
.particle:nth-child(4) { left: 70%; animation-delay: 6s; }
.particle:nth-child(5) { left: 90%; animation-delay: 8s; }

.stage-arrow-snake {
    position: absolute;
    right: -60px; /* Kurangi jarak */
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem; /* Kurangi ukuran */
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    animation: bounceRight 2s infinite;
    z-index: 5;
}

.stage-arrow-left {
    left: -60px; /* Kurangi jarak */
    right: auto;
    animation: bounceLeft 2s infinite;
}

.cycle-stage-snake::after {
    content: "→";
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    animation: bounceRight 2s infinite;
}

/* Sembunyikan arrow untuk stage terakhir di baris */
.cycle-stage-snake:last-child::after {
    display: none;
}


/* Background Utama */
body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #0f574d, #3da4a9);
    color: #ffffff;
}

/* Header Section */
.challenge-header {
    text-align: center;
    padding: 60px 20px 20px;
}

.challenge-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 700;
}

.challenge-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* Container Card */
.challenge-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 40px 20px;
    gap: 30px;
}

/* Card */
.challenge-card {
    width: 330px;
    background: #ffffff;
    color: #333333;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-6px);
}

/* Image Card */
.challenge-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

/* Title Card */
.challenge-card h2 {
    font-size: 20px;
    padding: 15px;
    font-weight: 600;
}

/* Description Text */
.challenge-card p {
    padding: 0 15px 20px;
    font-size: 15px;
    opacity: 0.85;
    line-height: 1.5;
}

/* Button Challenge */
.challenge-btn {
    display: block;
    width: calc(100% - 30px);
    margin: 0 auto 20px;
    padding: 12px;
    text-align: center;
    background: #0d7763;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: 0.3s;
}

.challenge-btn:hover {
    background: #0a5c4d;
}






