@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary: #355872;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --color1: #4CC9FE;
    --color2: #A1E3F9;
    --color3: #0F67B1;
    --color4: #00A9FF;
    --color5: #F4D160;
    --color6: #2C3E50;
    --color7: #FFFFFF;
    --footer-bg: #1a1f2e;
    --footer-text: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    background: linear-gradient(145deg, #1a1f2e 0%, #2a2f45 100%);
    min-height: 100vh;
    color: var(--color6);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(76, 201, 254, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(244, 209, 96, 0.08) 0%, transparent 50%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 2px, transparent 2px, transparent 8px);
    pointer-events: none;
    z-index: 0;
}

/* ========== INTRO SCREEN ========== */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
    z-index: 20000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    opacity: 1;
    visibility: visible;
}

.intro-screen.hide {
    opacity: 0;
    visibility: hidden;
}

.intro-logo-container {
    text-align: center;
    animation: introZoom 0.8s ease-out;
}

@keyframes introZoom {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.intro-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(244, 209, 96, 0.5));
}

.intro-text h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.intro-text p {
    font-size: 1rem;
    color: var(--color5);
    letter-spacing: 1px;
}

.intro-progress {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    margin-top: 40px;
    overflow: hidden;
}

.intro-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color5), var(--color1));
    border-radius: 3px;
    animation: progressBar 2.5s ease-out forwards;
}

@keyframes progressBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ========== WELCOME POPUP ========== */
.welcome-popup {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color5), var(--color1));
    border-radius: 50px;
    padding: 12px 24px;
    z-index: 15000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.welcome-popup.show {
    top: 20px;
    opacity: 1;
}

.welcome-popup-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color6);
}

.welcome-icon i {
    width: 24px;
    height: 24px;
}

.welcome-popup-content h3 {
    font-size: 1rem;
    margin: 0;
}

.welcome-popup-content p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.8;
}

.welcome-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0,0,0,0.2);
    border-radius: 0 0 50px 50px;
    overflow: hidden;
}

.welcome-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--color6);
    animation: welcomeProgress 5s linear forwards;
}

@keyframes welcomeProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ========== NAVBAR ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 7%;
    background: rgba(26, 31, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(244, 209, 96, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transform: translateY(-100%);
    animation: slideDownNav 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 2.8s;
}

@keyframes slideDownNav {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0); }
}

.navbar .navbar-logo {
    font-size: 1.3rem;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: italic;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
}

.navbar .navbar-logo:hover {
    transform: scale(1.02);
    text-shadow: 0 0 15px var(--color5);
}

.navbar .navbar-logo span1 {
    color: var(--color1);
}

.navbar .navbar-logo span2 {
    color: var(--color5);
}

.navbar .navbar-nav {
    display: flex;
}

.navbar .navbar-nav a {
    color: white;
    display: inline-block;
    font-size: 0.85rem;
    margin: 0 0.7rem;
    padding: 0.5rem 0;
    position: relative;
    transition: 0.3s;
    cursor: pointer;
    font-weight: 500;
}

.navbar .navbar-nav a:hover {
    color: var(--color5);
    transform: translateY(-2px);
}

.navbar .navbar-nav a.active {
    color: var(--color5);
    font-weight: 600;
}

.navbar .navbar-nav a::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color5);
    transform: scaleX(0);
    transition: 0.3s ease;
}

.navbar .navbar-nav a:hover::after,
.navbar .navbar-nav a.active::after {
    transform: scaleX(1);
}

.navbar .navbar-extra a {
    color: white;
    margin: 0 0.5rem;
    transition: 0.3s;
}

.navbar .navbar-extra a:hover {
    color: var(--color2);
    transform: scale(1.1);
}

#hamburger-menu {
    display: none;
    cursor: pointer;
}

/* Pages Container */
.pages-container {
    margin-top: 5rem;
    min-height: calc(100vh - 5rem);
    padding-bottom: 0;
    position: relative;
    z-index: 1;
}

.page {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page.active {
    display: block;
    animation: pageFadeIn 0.35s ease forwards;
}

@keyframes pageFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://res.cloudinary.com/duemncbn0/image/upload/v1773484996/WhatsApp_Image_2026-02-24_at_16.24.20_xclmwc.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.hero .content {
    padding: 1.4rem 7%;
    max-width: 60rem;
    color: white;
    position: relative;
    z-index: 1;
    animation: heroContentFade 0.5s ease-out 3s both;
}

@keyframes heroContentFade {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero .content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .content h1 span {
    color: var(--color5);
}

.hero .content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: var(--color5);
    color: var(--color6);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta i {
    width: 18px;
    height: 18px;
}

.cta:hover {
    background: transparent;
    border-color: var(--color5);
    color: var(--color5);
    transform: translateY(-2px);
}

/* Page Titles */
.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: white;
    padding-top: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.page-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color5), var(--color1));
    border-radius: 3px;
}

.sub-section-title {
    text-align: center;
    font-size: 1.4rem;
    color: white;
    margin: 1.5rem 0 1rem;
}

/* Profil Page */
.profil-page {
    padding: 1.5rem 7%;
    position: relative;
    z-index: 1;
}

.visi-misi-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
}

.visi-card, .misi-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(15px);
    animation: cardFadeUp 0.35s ease forwards;
}

.visi-card { animation-delay: 0.05s; }
.misi-card { animation-delay: 0.1s; }

@keyframes cardFadeUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.visi-card:hover, .misi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color5), var(--color1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
}

.card-icon i {
    width: 30px;
    height: 30px;
    color: var(--color6);
}

.visi-card h3, .misi-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.visi-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.misi-card ul {
    text-align: left;
    padding-left: 1.2rem;
}

.misi-card ul li {
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}

/* Sambutan Kepala Sekolah */
.sambutan-section {
    margin: 2rem 0;
}

.sambutan-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(15px);
    animation: cardFadeUp 0.35s ease forwards;
    animation-delay: 0.15s;
}

.sambutan-foto {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color5);
}

.sambutan-text {
    flex: 1;
}

.sambutan-text h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.sambutan-text p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Struktur Organisasi */
.struktur-section {
    margin: 2rem 0;
}

.struktur-level {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.level-1 .struktur-card {
    min-width: 250px;
}

.level-2 .struktur-card {
    min-width: 200px;
}

.level-3 .struktur-card {
    min-width: 250px;
}

.struktur-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(15px);
    animation: cardFadeUp 0.35s ease forwards;
}

.struktur-card:hover {
    transform: translateY(-3px);
}

.struktur-foto {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.8rem;
    border: 2px solid var(--color5);
}

.struktur-card h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.struktur-card p {
    color: #666;
    font-size: 0.8rem;
}

/* Guru Mapel Grid */
.guru-mapel-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.mapel-group {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.mapel-title {
    font-size: 1.1rem;
    color: var(--color5);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(244, 209, 96, 0.3);
}

.mapel-guru-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.guru-item {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
}

.guru-item:hover {
    transform: translateY(-2px);
}

.guru-item-foto {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid var(--color5);
}

.guru-item h5 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.guru-item p {
    font-size: 0.75rem;
    color: #666;
}

/* Staff Grid */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.staff-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(15px);
    animation: cardFadeUp 0.35s ease forwards;
}

.staff-card:hover {
    transform: translateY(-2px);
}

.staff-foto {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid var(--color5);
}

.staff-card h4 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.staff-card p {
    font-size: 0.75rem;
    color: #666;
}

/* Coming Soon Page */
.coming-soon-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.coming-soon-content {
    text-align: center;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(15px);
    animation: cardFadeUp 0.35s ease forwards;
}

.coming-soon-icon i {
    width: 80px;
    height: 80px;
    color: var(--color5);
    margin-bottom: 1rem;
}

.coming-soon-content h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.coming-soon-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.coming-soon-progress {
    width: 100%;
    height: 4px;
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.coming-soon-progress .progress-bar {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, var(--color5), var(--color1));
    border-radius: 4px;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { width: 30%; }
    50% { width: 70%; }
}

/* SPMB Page */
.spmb-page {
    padding: 1.5rem 7%;
    position: relative;
    z-index: 1;
}

.countdown-container {
    background: linear-gradient(135deg, rgba(244, 209, 96, 0.15), rgba(76, 201, 254, 0.15));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.countdown-container h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    background: rgba(0,0,0,0.5);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    min-width: 70px;
}

.countdown-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color5);
    display: block;
}

.countdown-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
}

.spmb-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.spmb-info-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(15px);
    animation: cardFadeUp 0.35s ease forwards;
}

.spmb-info-card:hover {
    transform: translateY(-3px);
}

.spmb-icon i {
    width: 40px;
    height: 40px;
    color: var(--color5);
    margin-bottom: 0.8rem;
}

.spmb-info-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

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

.badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: linear-gradient(135deg, var(--color5), var(--color1));
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color6);
    margin-top: 0.5rem;
}

.spmb-persyaratan {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    opacity: 0;
    transform: translateY(15px);
    animation: cardFadeUp 0.35s ease forwards;
    animation-delay: 0.1s;
}

.spmb-persyaratan h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.spmb-persyaratan ul li {
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.85rem;
    list-style-position: inside;
}

.spmb-button {
    text-align: center;
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(15px);
    animation: cardFadeUp 0.35s ease forwards;
    animation-delay: 0.15s;
}

/* Kontak Page */
.kontak-page {
    padding: 1.5rem 7%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.kontak-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.kontak-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(15px);
    animation: cardFadeUp 0.35s ease forwards;
}

.kontak-card:first-child { animation-delay: 0.05s; }
.kontak-card:last-child { animation-delay: 0.1s; }

.kontak-card:hover {
    transform: translateY(-3px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color5);
    padding-bottom: 0.8rem;
}

.card-header i {
    width: 25px;
    height: 25px;
    color: var(--primary);
}

.card-header h3 {
    font-size: 1.2rem;
    color: var(--primary);
}

.kontak-section h4 {
    font-size: 1rem;
    color: var(--color3);
    margin-bottom: 0.8rem;
}

.kontak-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kontak-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1rem;
    background: rgba(244, 209, 96, 0.1);
    border-radius: 10px;
    color: var(--color6);
    transition: 0.3s;
}

.kontak-item i {
    width: 18px;
    height: 18px;
}

.kontak-item:hover {
    background: var(--color5);
    transform: translateX(5px);
}

.sosial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.sosial-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem;
    background: rgba(244, 209, 96, 0.1);
    border-radius: 10px;
    color: var(--color6);
    transition: 0.3s;
    font-size: 0.85rem;
}

.sosial-item i {
    width: 18px;
    height: 18px;
}

.sosial-item:hover {
    background: var(--color5);
    transform: scale(1.02);
}

/* Developers Grid */
.developers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.developer-profile {
    text-align: center;
}

.developer-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 3px solid var(--color5);
}

.developer-profile h4 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.developer-role {
    color: #666;
    font-size: 0.7rem;
}

.developer-contact {
    background: rgba(244, 209, 96, 0.1);
    padding: 0.8rem;
    border-radius: 10px;
    margin: 0.8rem 0;
}

.developer-sosial h4 {
    color: var(--color3);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.sosial-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sosial-text a {
    color: var(--color6);
    padding: 0.4rem;
    background: rgba(244, 209, 96, 0.1);
    border-radius: 5px;
    transition: 0.3s;
    display: block;
    font-size: 0.75rem;
}

.sosial-text a:hover {
    background: var(--color5);
    transform: translateX(3px);
}

/* Modal Gambar */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: modalZoom 0.2s ease;
}

@keyframes modalZoom {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--color5);
    transform: scale(1.1);
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    border-radius: 30px;
    font-size: 0.85rem;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 12px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
    background: rgba(0,0,0,0.3);
    z-index: 10001;
    border-radius: 50%;
}

.next {
    right: 20px;
}

.prev {
    left: 20px;
}

.prev:hover, .next:hover {
    background-color: var(--color5);
    color: black;
}

/* Footer */
.footer {
    background: #0b0e14;
    color: #fff;
    padding: 2rem 7% 1.5rem;
    margin-top: 2rem;
    position: relative;
    border-top: 3px solid var(--color5);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.footer-logo {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 0.8rem;
}

.footer-logo span1 {
    color: var(--color1);
}

.footer-logo span2 {
    color: var(--color5);
}

.footer-desc {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
}

.footer-address {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.4rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--color5), var(--color1));
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.footer-links a i {
    width: 16px;
    height: 16px;
}

.footer-links a:hover {
    color: var(--color5);
    transform: translateX(3px);
}

.footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.7rem;
}

/* Media Queries */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    #hamburger-menu {
        display: inline-block;
    }

    .navbar .navbar-nav {
        position: absolute;
        top: 100%;
        right: -100%;
        background: #0b0e14;
        width: 70%;
        max-width: 280px;
        height: 100vh;
        flex-direction: column;
        transition: 0.3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
        padding: 1rem 0;
        border-radius: 0 0 0 20px;
    }

    .navbar .navbar-nav.active {
        right: 0;
    }

    .navbar .navbar-nav a {
        color: white;
        display: block;
        margin: 0.5rem 1.5rem;
        padding: 0.5rem;
        font-size: 1rem;
        text-align: left;
    }

    .navbar .navbar-nav a::after {
        display: none;
    }

    .navbar .navbar-nav a:hover,
    .navbar .navbar-nav a.active {
        background: rgba(244, 209, 96, 0.2);
        border-radius: 10px;
        padding-left: 1rem;
    }

    .visi-misi-container,
    .kontak-container {
        grid-template-columns: 1fr;
    }

    .hero .content h1 {
        font-size: 2rem;
    }

    .hero .content p {
        font-size: 1rem;
    }

    .sambutan-card {
        flex-direction: column;
        text-align: center;
    }

    .struktur-level {
        flex-direction: column;
        align-items: center;
    }

    .level-2 {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .mapel-guru-list {
        grid-template-columns: 1fr;
    }

    .coming-soon-content {
        padding: 2rem;
    }

    .coming-soon-icon i {
        width: 60px;
        height: 60px;
    }

    .coming-soon-content h2 {
        font-size: 1.5rem;
    }

    .countdown-item {
        min-width: 60px;
        padding: 0.5rem 0.8rem;
    }

    .countdown-number {
        font-size: 1.3rem;
    }

    .developers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .hero .content h1 {
        font-size: 1.6rem;
    }

    .countdown-timer {
        gap: 0.5rem;
    }

    .countdown-item {
        min-width: 50px;
    }

    .countdown-number {
        font-size: 1.1rem;
    }

    .welcome-popup-content {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        padding: 8px 16px;
    }

    .welcome-popup.show {
        top: 70px;
    }

    .welcome-popup-content h3 {
        font-size: 0.9rem;
    }

    .welcome-popup-content p {
        font-size: 0.7rem;
    }
}