/* style.css - CSS Lengkap untuk SMP Negeri 17 Depok */

/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    scroll-behavior: smooth;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
}

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    z-index: -1;
    filter: brightness(0.8);
}

.hero-content {
    text-align: center;
    color: #fff;
    padding: 0 20px;
    animation: fadeIn 1.5s ease-in-out;
}

.logo {
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
    border-radius: 50%;
    border: 3px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transition: transform 0.5s;
}

.logo:hover {
    transform: scale(1.1);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: #FFD700; /* Warna kuning emas */
    font-weight: 700; /* Ketebalan bold */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 1.5px;
    -webkit-text-stroke: 1px #1a3e72; /* Outline biru */
    text-stroke: 1px #1a3e72;
    animation: slideInDown 1s ease-out;
}

/* Navbar */
.navbar {
    background-color: #1a3e72;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

.navbar li {
    margin: 0 1.2rem;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.navbar a:hover {
    background-color: #FFD700;
    color: #1a3e72;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.navbar a.active {
    background-color: #FFD700;
    color: #1a3e72;
}

/* Sections */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a3e72;
    font-size: 2.5rem;
    position: relative;
    font-weight: 700;
}

.section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background-color: #FFD700;
    margin: 1rem auto;
    border-radius: 5px;
}

/* Info Grafis Modern */
.info-grafis {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 3rem 0;
    gap: 2rem;
    perspective: 1000px;
}

.info-box {
    position: relative;
    text-align: center;
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(26, 62, 114, 0.15);
    width: 220px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    overflow: hidden;
    z-index: 1;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1a3e72, #FFD700);
    z-index: 2;
}

.info-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 62, 114, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-box:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(26, 62, 114, 0.25);
}

.info-box:hover::after {
    opacity: 1;
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1a3e72;
    transition: all 0.3s ease;
}

.info-box:hover .info-icon {
    transform: scale(1.1);
    color: #FFD700;
}

.info-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a3e72;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(to right, #1a3e72, #2a56a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.info-box:hover .info-number {
    background: linear-gradient(to right, #FFD700, #FFC000);
    -webkit-background-clip: text;
    background-clip: text;
}

.info-label {
    font-size: 1.2rem;
    color: #555;
    font-weight: 600;
    position: relative;
    padding-bottom: 1rem;
}

.info-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #FFD700;
    transition: all 0.3s ease;
}

.info-box:hover .info-label::after {
    width: 80px;
    background: #1a3e72;
}

/* Animasi untuk info box */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.info-box:nth-child(1) {
    animation: float 4s ease-in-out infinite;
}

.info-box:nth-child(2) {
    animation: float 4s ease-in-out infinite 0.5s;
}

.info-box:nth-child(3) {
    animation: float 4s ease-in-out infinite 1s;
}

/* Sambutan Kepala Sekolah */
.sambutan-content {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    border-left: 5px solid #1a3e72;
    transition: all 0.4s ease;
}

.sambutan-content:hover {
    border-left-color: #FFD700;
    transform: translateY(-5px);
}

.kepsek-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 3rem;
    border: 5px solid #1a3e72;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.kepsek-img:hover {
    transform: scale(1.05);
    border-color: #FFD700;
}

.sambutan-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
}

.sambutan-text p {
    margin-bottom: 1.2rem;
    color: #444;
}

.kepsek-name {
    font-weight: 700;
    margin-top: 2rem;
    color: #1a3e72;
    font-size: 1.3rem;
}

/* CSS untuk Ekstrakurikuler Modern */
#ekstrakurikuler {
    background-color: #f8f9fa;
    padding: 5rem 2rem;
    position: relative;
}

#ekstrakurikuler::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1a3e72, #FFD700, #1a3e72);
}

#ekstrakurikuler h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a3e72;
    font-size: 2.5rem;
    position: relative;
}

#ekstrakurikuler h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    margin: 1rem auto;
    border-radius: 2px;
}

.ekstra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ekstra-item {
    background: white;
    padding: 1.5rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-weight: 600;
    color: #333;
}

.ekstra-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1a3e72, #FFD700);
    transition: all 0.3s ease;
}

.ekstra-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    color: #1a3e72;
}

.ekstra-item:hover::before {
    height: 6px;
}

/* Ikon untuk setiap ekstrakurikuler */
.ekstra-item::after {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2rem;
    color: rgba(26, 62, 114, 0.1);
    position: absolute;
    right: 1rem;
    bottom: 0.5rem;
    z-index: -1;
    transition: all 0.3s ease;
}

.ekstra-item:nth-child(1)::after { content: '\f6ec'; } /* Pramuka */
.ekstra-item:nth-child(2)::after { content: '\f0fa'; } /* PMR */
.ekstra-item:nth-child(3)::after { content: '\f024'; } /* Paskibra */
.ekstra-item:nth-child(4)::after { content: '\f1e3'; } /* Futsal */
.ekstra-item:nth-child(5)::after { content: '\f434'; } /* Basket */
.ekstra-item:nth-child(6)::after { content: '\f45f'; } /* Voli */
.ekstra-item:nth-child(7)::after { content: '\f45d'; } /* Tenis Meja */
.ekstra-item:nth-child(8)::after { content: '\f433'; } /* Badminton */
.ekstra-item:nth-child(9)::after { content: '\f574'; } /* Seni Tari */
.ekstra-item:nth-child(10)::after { content: '\f001'; } /* Paduan Suara */
.ekstra-item:nth-child(11)::after { content: '\f678'; } /* Rohis */
.ekstra-item:nth-child(12)::after { content: '\f94b'; } /* Taekwondo */
.ekstra-item:nth-child(13)::after { content: '\f94a'; } /* Pencak Silat */
.ekstra-item:nth-child(14)::after { content: '\f8bb'; } /* Hadroh */
.ekstra-item:nth-child(15)::after { content: '\f121'; } /* Kelas Coding */

.ekstra-item:hover::after {
    color: rgba(26, 62, 114, 0.15);
    transform: scale(1.2) rotate(10deg);
    right: 0.5rem;
    bottom: 0.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ekstra-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .ekstra-item {
        padding: 1.2rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .ekstra-item::after {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ekstra-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    #ekstrakurikuler h2 {
        font-size: 2rem;
    }
}
/* Galeri */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.galeri-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    filter: grayscale(20%);
}

.galeri-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    filter: grayscale(0%);
    z-index: 1;
}

/* Kontak */
.kontak-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 3rem;
    gap: 2rem;
}

.sosmed, .alamat {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.sosmed:hover, .alamat:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.sosmed {
    border-right: 5px solid #1a3e72;
}

.alamat {
    border-left: 5px solid #FFD700;
}

.sosmed a {
    display: flex;
    align-items: center;
    color: #1a3e72;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

.sosmed a:hover {
    color: #FFD700;
    transform: translateX(5px);
}

.sosmed i, .alamat i {
    margin-right: 1rem;
    width: 30px;
    height: 30px;
    background-color: #1a3e72;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sosmed a:hover i {
    background-color: #FFD700;
    color: #1a3e72;
    transform: scale(1.1);
}

.alamat p {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

/* Footer */
footer {
    background-color: #1a3e72;
    color: white;
    text-align: center;
    padding: 2.5rem;
    margin-top: 3rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1a3e72, #FFD700, #1a3e72);
}

footer p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

footer p:last-child {
    font-weight: 600;
    color: #FFD700;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
        -webkit-text-stroke: 0.5px #1a3e72;
        text-stroke: 0.5px #1a3e72;
    }
    
    .navbar ul {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }
    
    .navbar a {
        display: block;
        width: 100%;
        border-radius: 5px;
    }
    
    .sambutan-content {
        flex-direction: column;
        text-align: center;
    }
    
    .kepsek-img {
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    .kontak-content {
        flex-direction: column;
    }
    
    .section {
        padding: 3rem 1.5rem;
    }
    
    .info-box {
        padding: 2rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .info-number {
        font-size: 2.5rem;
    }
    
    .info-label {
        font-size: 1.1rem;
    }
}