/* Base Styles & Ocean Theme */
:root {
    --deep-ocean: #001f3f;
    --ocean-blue: #003366;
    --cyan-light: #00bcd4;
    --sand-color: #f4e8c1;
    --text-light: #f0f8ff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-light);
    background-color: var(--deep-ocean);
    background-image: linear-gradient(180deg, #001f3f 0%, #003366 50%, #001122 100%);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: 'Fredoka', sans-serif;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 2rem;
}

/* Bubbles Animation */
.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: rise 10s infinite ease-in;
}

.bubble:nth-child(1) { width: 40px; height: 40px; left: 10%; animation-duration: 8s; }
.bubble:nth-child(2) { width: 20px; height: 20px; left: 20%; animation-duration: 5s; animation-delay: 1s; }
.bubble:nth-child(3) { width: 50px; height: 50px; left: 35%; animation-duration: 10s; animation-delay: 2s; }
.bubble:nth-child(4) { width: 30px; height: 30px; left: 50%; animation-duration: 7s; animation-delay: 0s; }
.bubble:nth-child(5) { width: 60px; height: 60px; left: 65%; animation-duration: 11s; animation-delay: 3s; }
.bubble:nth-child(6) { width: 25px; height: 25px; left: 80%; animation-duration: 6s; animation-delay: 2s; }
.bubble:nth-child(7) { width: 45px; height: 45px; left: 90%; animation-duration: 9s; animation-delay: 1s; }
.bubble:nth-child(8) { width: 15px; height: 15px; left: 5%; animation-duration: 4s; animation-delay: 4s; }

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
    }
    50% {
        transform: translateX(100px);
    }
    100% {
        bottom: 1080px;
        transform: translateX(-200px);
    }
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 31, 63, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    color: var(--cyan-light);
    font-size: 1.8rem;
}

.icon {
    font-size: 2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s;
}

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

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Sections */
.section-container {
    padding: 5rem 5% 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--cyan-light);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #cbd5e1;
}

.bg-wave-dark {
    background: linear-gradient(135deg, rgba(0,31,63,0.9) 0%, rgba(0,51,102,0.9) 100%);
}

.bg-wave-light {
    background: linear-gradient(135deg, rgba(0,51,102,0.9) 0%, rgba(0,90,140,0.9) 100%);
}

.bg-deep-ocean {
    background: linear-gradient(135deg, rgba(0,17,34,0.95) 0%, rgba(0,31,63,0.95) 100%);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 5% 2rem;
    background: url('assets/hero_bg.jpg') center/cover no-repeat;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,31,63,0.6), rgba(0,17,34,0.9));
    z-index: 1;
}

.hero-content {
    flex: 1;
    z-index: 2;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-content h2 span {
    color: var(--cyan-light);
}

.hero-content h3 {
    font-size: 1.8rem;
    color: var(--sand-color);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.floating-img {
    max-width: 100%;
    width: 400px;
    border-radius: 30px;
    animation: float 4s ease-in-out infinite;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border: 4px solid rgba(255,255,255,0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes swimAcross {
    0% { left: -120px; transform: scaleX(-1) translateY(0); }
    50% { transform: scaleX(-1) translateY(-15px); }
    100% { left: 100%; transform: scaleX(-1) translateY(0); }
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    bottom: -50px;
    animation: floatUp infinite ease-in;
    z-index: -1;
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-100vh) scale(1.5); opacity: 0; }
}

.swimming-fish {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 100px;
    animation: bobbing 4s ease-in-out infinite;
    z-index: 0;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

@keyframes bobbing {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--cyan-light);
    color: #001122;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.6);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--cyan-light);
    border: 2px solid var(--cyan-light);
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--cyan-light);
    color: #001122;
}

/* Buku Saku Section */
.pocketbook-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.book-cover {
    flex: 1;
    display: flex;
    justify-content: center;
}

.book-img {
    width: 100%;
    max-width: 350px;
    border-radius: 15px;
    transform: perspective(1000px) rotateY(15deg);
    transition: transform 0.5s;
    box-shadow: -20px 20px 30px rgba(0,0,0,0.5);
}

.book-img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.book-info {
    flex: 1;
}

.book-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--sand-color);
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: left;
}

.feature-list .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Panduan Edukasi */
.steps-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
    padding-top: 3rem;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--cyan-light);
    color: #001122;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Fredoka', sans-serif;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.step-card h3 {
    margin-bottom: 1rem;
    color: var(--sand-color);
}

/* Galeri Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.gallery-item {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.img-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.video-placeholder {
    width: 100%;
    height: 200px;
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.video-placeholder:hover {
    background: rgba(0,0,0,0.6);
}

.play-icon {
    font-size: 3rem;
    color: var(--cyan-light);
    margin-bottom: 0.5rem;
}

.item-caption {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    text-align: center;
}

/* Berita Section */
.news-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.news-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: background 0.3s;
}

.news-card:hover {
    background: rgba(255, 255, 255, 0.15);
}

.news-date {
    font-size: 0.9rem;
    color: var(--cyan-light);
    font-weight: bold;
}

.news-card h3 {
    font-size: 1.5rem;
}

.read-more {
    color: var(--sand-color);
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
    margin-top: 1rem;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--cyan-light);
}

/* Footer */
footer {
    background: #000c1a;
    padding: 3rem 5%;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo h2 {
    color: var(--cyan-light);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-links p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content h2 { font-size: 2.5rem; }
    .hero-content h3 { font-size: 1.5rem; }
    .section-header h2 { font-size: 2.2rem; }
    .mitra-container { gap: 2rem; }
    .mitra-container img { max-width: 100%; }
}

@media (max-width: 900px) {
    .pocketbook-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .feature-list li {
        justify-content: center;
    }
    
    .hero-image .floating-img {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 0;
        background: rgba(0, 31, 63, 0.98);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 0;
        z-index: -1;
    }

    .nav-links li {
        opacity: 0;
        margin: 1.5rem 0;
    }
    
    .nav-links a {
        font-size: 1.5rem;
    }

    .burger {
        display: block;
        z-index: 100;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .section-container {
        padding: 4rem 5% 3rem;
    }
    
    .glass-panel {
        padding: 1.5rem;
    }

    #mitra .mitra-container img {
        max-height: 60px !important; /* Scale down standard logos */
    }
    #mitra .mitra-container img[alt="Mitra 3"] {
        max-height: 120px !important; /* Scale down enlarged logo proportionally */
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 { font-size: 2rem; }
    .hero-content h3 { font-size: 1.2rem; }
    .section-header h2 { font-size: 1.8rem; }
    .book-img { max-width: 250px; }
    .step-card { min-width: 100%; }
    
    #mitra .mitra-container img {
        max-height: 50px !important;
    }
    #mitra .mitra-container img[alt="Mitra 3"] {
        max-height: 100px !important;
    }
}

.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}
