/* assets/css/style.css - CSS UTAMA FRONTEND */
:root {
    --primary-blue: #0d1b3e;
    --secondary-blue: #1a2d5f;
    --accent-blue: #2d4a8a;
    --light-blue: #4a8fe7;
    --soft-blue: #6eb5ff;
    --gradient-green: #2ecc71;
    --gradient-yellow: #f1c40f;
    --light-yellow: #ffd166;
    --light-bg: #f8f9fa;
    --text-dark: #333;
    --text-light: #fff;
    --section1-top-padding: 80px;
    --teal: #20c997;
    --soft-teal: #1ab394;
    --danger: #e74c3c;
    --success: #2ecc71;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ===== HEADER STYLES ===== */
header {
    background-color: rgba(13, 27, 62, 0.98);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-blue), var(--gradient-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.school-name {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    color: white;
    font-size: 18px;
    line-height: 1.2;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

nav a:hover {
    color: var(--gradient-yellow);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--gradient-yellow);
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* ===== MAIN CONTENT ===== */
main {
    min-height: calc(100vh - 200px);
}

/* ===== SECTION STYLES ===== */
section {
    min-height: 100vh;
    padding: 120px 20px 80px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Section Backgrounds */
#section1 {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a3a7a 30%, #2a7a5a 60%, var(--gradient-yellow) 100%);
    color: white;
    padding-top: var(--section1-top-padding);
    z-index: 3;
}

#section2 {
    background: linear-gradient(135deg, var(--gradient-yellow) 0%, var(--light-yellow) 20%, #5a9eff 50%, var(--soft-blue) 100%);
    color: white;
    z-index: 2;
    margin-top: -1px;
}

#section3 {
    background: linear-gradient(135deg, var(--soft-blue) 0%, var(--soft-teal) 50%, #189f7e 100%);
    color: white;
    z-index: 1;
}

#section4 {
    background: linear-gradient(135deg, #189f7e 0%, #1ab394 50%, var(--teal) 100%);
    color: white;
    z-index: 1;
}

#section5 {
    background: linear-gradient(135deg, var(--teal) 0%, #20c997 50%, #2ecc71 100%);
    color: white;
    z-index: 1;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.section-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.text-content {
    flex: 1;
    position: relative;
    z-index: 5;
}

.section-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section1-title {
    font-size: 3.2rem;
    margin-top: 40px;
}

.section-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: linear-gradient(to right, var(--gradient-yellow), #ff9f43);
    color: var(--primary-blue);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ===== IMAGES ===== */
.floating-image-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 45%;
    max-width: 600px;
    z-index: 2;
    pointer-events: none;
}

.floating-image-overlay img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.png-image-container .floating-image {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    object-fit: contain;
}

/* ===== GRID MENU ===== */
.menu-grid-container {
    width: 100%;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    text-decoration: none;
}

.grid-item:hover {
    transform: translateY(-5px);
    border-color: var(--gradient-yellow);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.grid-item i {
    font-size: 28px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--accent-blue), var(--gradient-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.grid-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.grid-item p {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* ===== SECTION HEADER ===== */
.section-header {
    width: 100%;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 5;
}

/* ===== NEWS GRID ===== */
.news-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.news-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll-news 40s linear infinite;
}

@keyframes scroll-news {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.news-track:hover {
    animation-play-state: paused;
}

.news-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    width: 350px;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-blue);
    min-height: 60px;
}

.news-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.news-divider {
    height: 1px;
    background: #eee;
    margin: 10px 0;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.news-category {
    background: var(--teal);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-details {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #777;
}

.news-detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-detail-item i {
    color: var(--teal);
}

.read-more-btn {
    display: block;
    text-align: center;
    background: var(--teal);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
    border: none;
    cursor: pointer;
}

.read-more-btn:hover {
    background: #18a185;
    transform: translateY(-3px);
}

/* ===== GALLERY ===== */
.gallery-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.gallery-track {
    display: flex;
    gap: 25px;
    width: max-content;
    animation: scroll-gallery 30s linear infinite;
}

@keyframes scroll-gallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

.gallery-track:hover {
    animation-play-state: paused;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    width: 350px;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-caption {
    padding: 20px;
    text-align: center;
}

.gallery-caption h3 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.gallery-caption p {
    font-size: 0.95rem;
    color: #666;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-blue);
    color: white;
    padding: 60px 20px 30px;
    position: relative;
    z-index: 3;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo .logo {
    width: 60px;
    height: 60px;
}

.footer-school-name {
    font-family: 'Quicksand', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.social-media {
    display: flex;
    gap: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--gradient-yellow);
    color: var(--primary-blue);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== FLOATING BUTTONS ===== */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.floating-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

@keyframes pulse {
    0% { box-shadow: 0 5px 15px rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 5px 20px rgba(37, 211, 102, 0.8); }
    100% { box-shadow: 0 5px 15px rgba(37, 211, 102, 0.5); }
}

.floating-map {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4285F4, #34A853);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-map:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* ===== VIEW ALL BUTTON ===== */
.view-all-btn {
    display: block;
    margin: 40px auto 0;
    width: 200px;
    text-align: center;
    background: transparent;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .section-content {
        flex-direction: column;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary-blue);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    nav ul.active {
        display: flex;
    }
    
    .news-track, .gallery-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .news-card, .gallery-item {
        width: 100%;
        max-width: 400px;
    }
    
    .floating-image-overlay {
        position: relative;
        width: 100%;
        margin-top: 30px;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section1-title {
        font-size: 2.2rem;
    }
    
    .section-desc {
        font-size: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-media {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 100px 15px 50px;
    }
    
    .floating-wa, .floating-map {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .floating-map {
        bottom: 80px;
    }
}