/* === VARIABEL WARNA BIRU === */
 :root {
            --biru-tua: #1a237e;
            --biru-sedang: #283593;
            --biru-muda: #3949ab;
            --biru-cerah: #2196F3;
            --biru-pastel: #e8eaf6;
            --hijau-tech: #00c853;
            --cyan-tech: #00bcd4;
            --ungu-tech: #16b9eb;
            --biru-toska: #20B2AA;
            --biru-toska-gelap: #008B8B;
            --hijau: #4CAF50;
            --ungu: #9C27B0;
            --oranye: #FF9800;
            --putih: #ffffff;
            --abu: #f5f5f5;
            --teks-gelap: #333333;
            --teks-abu: #666;
            --emas: #FFD700;
        }

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--abu);
    color: var(--teks-gelap);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--biru-tua);
    font-size: 2.2rem;
}

.section-title:after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--biru-muda);
    margin: 15px auto;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    background: var(--biru-muda);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--biru-tua);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* === HEADER STYLES === */
header {
    background: linear-gradient(135deg, var(--biru-tua) 0%, var(--biru-sedang) 100%);
    color: white;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.btn-admin {
    background: linear-gradient(135deg, var(--biru-toska) 0%, #48D1CC 100%);
    color: white;
    padding:8px 16px;
    font-size:1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.3);
    white-space: nowrap;
    font-size: 0.85rem;
    margin-left: 0;
}

.btn-admin:hover {
    background: linear-gradient(135deg, var(--biru-toska-gelap) 0%, var(--biru-toska) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(32, 178, 170, 0.4);
}

.btn-admin i {
    font-size: 1rem;
}

.spmb-dropdown {
    position: relative;
    display: inline-block;
}

.spmb-dropdown .btn-admin {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spmb-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: #fff;
    min-width: 210px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.25s ease;
}

.spmb-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    transition: 0.2s;
}

.spmb-menu a:hover {
    background: #f3f6ff;
    color: var(--biru-muda);
}

.spmb-dropdown:hover .spmb-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
header {
            background: linear-gradient(135deg, var(--biru-tua) 0%, var(--biru-sedang) 100%);
            color: white;
            padding: 1.5rem 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            top: 0;
            z-index: 1000;
        }

.header-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
            display: flex;
            align-items: center;
        }
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px !important;
    margin-right: 15px;
    border-radius: 8px;
}
.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}
.logo .yayasan {
    display: block;
    font-size: 0.9rem;
    font-weight: normal;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.9);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight:500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
    white-space: nowrap;
}

nav ul li a:hover, nav ul li a.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    padding: 80px 0;
    }

.home-hero-banner::before {
    display: none;
}

.hero-banner .container {
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.hero-banner h1 {
    font-size: 2.4rem;
    margin-bottom: 12px;
    color: white;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero-banner p {
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .hero-banner {
        min-height: 300px;
        padding: 60px 0;
        border-radius: 0 0 24px 24px;
    }
    .header-content {
                flex-direction: column;
                text-align: center;
            }
            nav {
            display: flex;
            align-items: center;
           }
            
            nav ul li {
                margin: 5px 10px;
            }
            .header-actions {
    margin: 15px 0 0 0;
    width: 100%;
    justify-content: center;
}

.btn-admin {
    margin: 0;
    width: 100%;
    justify-content: center;
}
    .hero-banner h1 {
        font-size: 2rem;
    }
    .hero-banner p {
        font-size: 0.9rem;
    }
}
.yayasan-section {
    padding: 60px 0;
    background: white;
    text-align: center;
    width: 100%;
}

.yayasan-logo {
    max-width: 150px;
    margin: 0 auto 30px;
}

.yayasan-logo img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.visi-misi-sekolah {
    margin-top: 40px;
    padding: 20px;
    background: var(--biru-pastel);
    border-radius: 12px;
    text-align: left;
}

.visi-misi-sekolah h3 {
    color: var(--biru-tua);
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.visi-sekolah {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid var(--emas);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.visi-sekolah h4 {
    color: var(--biru-tua);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.visi-sekolah p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--teks-gelap);
}

.misi-sekolah {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--biru-muda);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.misi-sekolah h4 {
    color: var(--biru-tua);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.misi-sekolah ul {
    list-style: none;
}

.misi-sekolah li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
}

.misi-sekolah li:before {
    content: "•";
    position: absolute;
    left: 10px;
    color: var(--biru-muda);
    font-weight: bold;
    font-size: 1.2rem;
}

/* === FEATURES SECTION === */
.features {
    padding: 60px 0;
    background: white;
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.feature-card {
    background: var(--biru-pastel);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--biru-muda);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--biru-tua);
    font-size: 1.2rem;
}

/* === JURUSAN SECTION === */
.jurusan {
    padding: 60px 0;
    background: white;
    width: 100%;
}

.jurusan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.jurusan-card {
    background: var(--biru-pastel);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.jurusan-card:hover {
    transform: translateY(-5px);
}

.jurusan-icon {
    font-size: 2.2rem;
    color: var(--biru-muda);
    margin-bottom: 15px;
}

.jurusan-card h3 {
    color: var(--biru-tua);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* === NEWS SECTION === */
.news {
    padding: 60px 0;
    background: var(--abu);
    width: 100%;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
}

.news-card h3 {
    margin-bottom: 15px;
    color: var(--biru-tua);
    font-size: 1.1rem;
}

.news-card p {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95rem;
}

.news-link {
    color: var(--biru-muda);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
}

.news-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.news-link:hover i {
    transform: translateX(5px);
}

/* === STATS SECTION === */
.stats {
    padding: 60px 0;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
        url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    width: 100%;
}

.stats .section-title {
    color: white;
}

.stats .section-title:after {
    background: var(--biru-cerah);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.stat-item {
    padding: 25px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: block;
    color: var(--biru-cerah);
    text-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* === TESTIMONIALS SECTION === */
.testimonials {
    padding: 60px 0;
    background: var(--abu);
    width: 100%;
}

.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.testimonial:after {
    content: "\"";
    font-size: 4rem;
    color: var(--biru-muda);
    opacity: 0.2;
    position: absolute;
    top: -15px;
    left: 20px;
    font-family: Georgia, serif;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    color: #333;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--biru-muda);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 15px;
    font-size: 0.9rem;
}

.author-info h4 {
    color: var(--biru-tua);
    margin-bottom: 5px;
    font-size: 1rem;
}

.author-info p {
    color: #666;
    font-size: 0.85rem;
}

/* === GALLERY SECTION === */
.gallery-section {
    padding: 60px 0;
    background: white;
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--biru-muda), var(--biru-tua)) border-box;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

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

/* === FOOTER STYLES === */
footer {
    background: var(--biru-tua);
    color: white;
    padding: 40px 0 20px;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 15px;
    opacity: 0.9;
    font-size: 0.9rem;
}

.quick-links {
    list-style: none;
}

.quick-links li {
    margin-bottom: 12px;
}

.quick-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.quick-links a i {
    margin-right: 10px;
}

.quick-links a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background 0.3s;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* === RESPONSIVE STYLES === */

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    nav {
    display: flex;
    align-items: center;
    }
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 8px 12px;
    }
    
    .features-grid,
    .jurusan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
        min-width: auto;
    }
    
    .logo img {
        margin-right: 0;
        margin-bottom: 10px;
        height: 45px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    nav {
        width: 100%;
        margin-top: 15px;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 5px 8px;
    }
    
    nav ul li a {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
    
    .hero {
        padding: 80px 0;
        min-height: 400px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .features,
    .jurusan,
    .news,
    .stats,
    .testimonials,
    .gallery-section,
    .pendaftaran-section,
    .cta,
    .yayasan-section {
        padding: 40px 0;
    }
    
    .features-grid,
    .jurusan-grid,
    .news-grid,
    .stats-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-pendaftaran {
        padding: 20px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .section-title {
        margin-bottom: 30px;
        font-size: 1.5rem;
    }
    
    .feature-card,
    .jurusan-card {
        padding: 20px;
    }
    
    .visi-misi-sekolah {
        padding: 15px;
    }
    
    .visi-sekolah,
    .misi-sekolah {
        padding: 15px;
    }
    
    .cta {
        padding: 60px 0;
    }
    
    .cta h2 {
        font-size: 1.6rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .logo .yayasan {
        font-size: 0.7rem;
    }
    
    nav ul li {
        margin: 3px 5px;
    }
    
    nav ul li a {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
    
    .hero {
        padding: 60px 0;
        min-height: 300px;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .feature-icon,
    .jurusan-icon {
        font-size: 1.8rem;
    }
    
    .feature-card h3,
    .jurusan-card h3 {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        margin-bottom: 20px;
    }
    
    .cta h2 {
        font-size: 1.4rem;
    }
    
    .cta p {
        font-size: 1rem;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.menu-toggle {
    display: none;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1001;
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background:
        linear-gradient(
            135deg,
            var(--biru-tua),
            var(--biru-sedang)
        );
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        flex-direction: column;
        padding: 100px 25px 30px;
        margin: 0;
        z-index: 1000;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        overflow-y: auto;
        list-style: none;
        display: flex !important;
        border-radius: 0 24px 24px 0;
        overflow: hidden;
        filter: drop-shadow(0 0 0 transparent);
        -webkit-filter: drop-shadow(0 0 0 transparent);
        }
    
          @keyframes gentleFloat {
        0% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-15px);
        }
        100% {
            transform: translateY(0);
        }
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease;
        transition-delay: calc(0.05s * var(--i, 0));
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav ul li a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 20px;
        font-size: 1rem;
        font-weight: 500;
        border-radius: 0;
        margin-bottom: 0;
        background: transparent;
        transition: all 0.25s ease;
        white-space: normal;
        color: white;
    }
    
    nav ul li a:hover {
        background: rgba(255,255,255,0.15);
        transform: translateX(8px);
        border-radius: 8px;
    }
    
    nav ul::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: var(--mobile-menu-image, url('images/siswa.1.jpg'));
        background-size: 170% 100%;
        background-position: center;
        background-repeat: no-repeat;
        z-index: -2;
        border-radius: 0 24px 24px 0;
        animation: gentleFloat 4s ease-in-out infinite;
        box-shadow: none;

    }
    
    nav ul::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(26, 35, 126, 0.35), rgba(40, 53, 147, 0.4));
        z-index: -1;
        border-radius: 0 24px 24px 0;
        pointer-events: none;
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(3px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}
.menu-toggle .close-icon {
    display: none;
}

.menu-toggle.active .menu-icon {
    display: none;
}

.menu-toggle.active .close-icon {
    display: inline;
}

.menu-toggle {
    position: relative;
    overflow: hidden;
}

.menu-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.menu-toggle:active::before {
    width: 100%;
    height: 100%;
}
nav ul .menu-profile {
    text-align: center;
    padding: 30px 0 25px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

nav ul .menu-profile img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFD700;
    margin-bottom: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

nav ul .menu-profile h4 {
    color: white;
    font-size: 1.1rem;
    margin: 8px 0 4px;
}

nav ul .menu-profile p {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

/* === MOBILE TECH NAVIGATION POLISH === */
@media (max-width: 768px) {
    @keyframes menuPhotoFloat {
        0%, 100% {
            background-position: center, center 52%;
        }

        50% {
            background-position: center, center 49%;
        }
    }

    nav ul {
        width: min(74vw, 292px);
        padding: 92px 16px 22px;
        border-radius: 0 28px 28px 0;
        background:
            radial-gradient(circle at 28px 88px, rgba(0,200,83,0.24), transparent 95px),
            radial-gradient(circle at 92% 22%, rgba(0,188,212,0.32), transparent 130px),
            linear-gradient(145deg, rgba(9,18,72,0.97), rgba(26,35,126,0.95) 54%, rgba(0,139,139,0.9));
        border-right: 0;
        box-shadow: 18px 0 45px rgba(0,0,0,0.35);
        backdrop-filter: blur(18px);
        isolation: isolate;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    nav ul::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    nav ul::before {
        z-index: 1;
        background:
            linear-gradient(135deg, rgba(8,15,60,0.78), rgba(26,35,126,0.52) 55%, rgba(0,139,139,0.38));
        background-size: auto;
        border-radius: 0 28px 28px 0;
        mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.35));
        opacity: 0.95;
    }

    nav ul::after {
        content: "";
        position: absolute;
        inset: 0;
        width: auto;
        height: auto;
        border-radius: 0 28px 28px 0;
        background:
            radial-gradient(circle at 72% 12%, rgba(56,189,248,0.30), transparent 90px),
            var(--mobile-menu-image, url('images/siswa.1.jpg'));
        background-size: auto, auto 124%;
        background-position: center, center 52%;
        background-repeat: no-repeat;
        animation: menuPhotoFloat 5s ease-in-out infinite;
        z-index: 0;
        pointer-events: none;
    }

    nav ul li {
        position: relative;
        z-index: 2;
        border-bottom: 0;
        margin-bottom: 8px;
    }

    nav ul li:first-child::before {
        content: "Menu Halaman";
        display: block;
        margin: 0 0 10px;
        color: rgba(255,255,255,0.92);
        font-size: 0.86rem;
        font-weight: 800;
        letter-spacing: 0;
        text-transform: uppercase;
        text-shadow: 0 2px 10px rgba(0,0,0,0.28);
    }

    nav ul li a {
        min-height: 48px;
        padding: 11px 12px;
        border: 1px solid rgba(148,163,184,0.32);
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(15,23,42,0.78), rgba(30,41,59,0.62));
        box-shadow: 0 10px 22px rgba(2,6,23,0.20), inset 0 0 0 1px rgba(255,255,255,0.04);
        font-weight: 650;
    }

    nav ul li a::before {
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 30px;
        border-radius: 10px;
        background: rgba(15,23,42,0.48);
        color: #7dd3fc;
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 0.9rem;
        box-shadow: inset 0 0 0 1px rgba(125,211,252,0.24);
    }

    nav ul li:nth-child(1) a::before { content: "\f015"; }
    nav ul li:nth-child(2) a::before { content: "\f19d"; }
    nav ul li:nth-child(3) a::before { content: "\f073"; }
    nav ul li:nth-child(4) a::before { content: "\f03e"; }
    nav ul li:nth-child(5) a::before { content: "\f0b1"; }
    nav ul li:nth-child(6) a::before { content: "\f3c5"; }

    nav ul li a:hover,
    nav ul li a.active {
        background: linear-gradient(135deg, rgba(14,165,233,0.34), rgba(15,23,42,0.70));
        border-color: rgba(125,211,252,0.48);
        transform: translateX(8px);
        box-shadow: 0 12px 24px rgba(2,6,23,0.28), inset 0 0 20px rgba(125,211,252,0.12);
    }

    .menu-overlay {
        background: rgba(4,8,24,0.68);
        backdrop-filter: blur(6px);
    }

}

@media (max-width: 768px) and (max-height: 640px) {
    nav ul {
        padding-top: 82px;
        padding-bottom: 18px;
    }

    nav ul li {
        margin-bottom: 6px;
    }

    nav ul li a {
        min-height: 44px;
        padding-top: 9px;
        padding-bottom: 9px;
    }
}

@media (max-width: 480px) {
    nav ul {
        width: min(78vw, 278px);
        padding-left: 14px;
        padding-right: 14px;
    }
}
