/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== VARIABLES ===== */
:root {
    --primary-dark: #1e3a8a;    /* Biru laut */
    --primary-light: #38bdf8;   /* Biru langit */
    --accent: #3b82f6;          /* Biru medium */
    --white: #ffffff;
    --light-bg: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-dark: #1e293b;
    --text-light: #64748b;
    --shadow: 0 4px 20px rgba(30, 58, 138, 0.1);
    --shadow-hover: 0 8px 30px rgba(30, 58, 138, 0.15);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.school-name h1 {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.school-name p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* ===== NAVIGATION ===== */
nav {
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* ===== DROPDOWN MENU ===== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 240px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
    padding: 0.5rem 0;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--light-bg);
    color: var(--primary-dark);
    padding-left: 2rem;
}

.dropdown-menu a.active {
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    color: var(--white);
    font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    border-radius: 0 0 var(--radius) var(--radius);
    margin: 0 2rem;
    margin-bottom: 3rem;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(30, 58, 138, 0.8), rgba(56, 189, 248, 0.4));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-logo {
    height: 100px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.overlay h2 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    animation: fadeInUp 1s ease;
}

.overlay h3 {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease 0.2s both;
}

/* ===== PROFIL SEKOLAH ===== */
.profil {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 3rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.profil::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
}

.profil h2 {
    color: var(--primary-dark);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.profil h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 2px;
}

.deskripsi {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 12px;
    border-left: 4px solid var(--primary-light);
}

.list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.list li {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.1), transparent);
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.list li::before {
    content: '✓';
    color: var(--primary-light);
    font-weight: bold;
    font-size: 1.2rem;
}

.list li strong {
    color: var(--primary-dark);
    min-width: 140px;
}

/* ===== VISI MISI ===== */
.visi-misi {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.visi-misi h2 {
    color: var(--primary-dark);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.visi-misi h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-light);
}

.kotak-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.kotak {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(56, 189, 248, 0.1);
    position: relative;
    overflow: hidden;
}

.kotak:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.kotak::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-dark), var(--primary-light));
}

.kotak:nth-child(2)::before {
    background: linear-gradient(to bottom, var(--primary-light), var(--accent));
}

.kotak h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(56, 189, 248, 0.3);
}

.kotak p, .kotak ol {
    color: var(--text-dark);
    line-height: 1.7;
}

.kotak ol {
    padding-left: 1.5rem;
}

.kotak ol li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    position: relative;
}

.kotak ol li::marker {
    color: var(--primary-light);
    font-weight: bold;
}

/* ===== KEUNGGULAN ===== */
.keunggulan {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.keunggulan h2 {
    color: var(--primary-dark);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.keunggulan h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(56, 189, 248, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.card h4 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.card p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1rem;
}

/* ===== TIM PENGEMBANG ===== */
.tim-pengembang {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.tim-pengembang h2 {
    color: var(--primary-dark);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.tim-pengembang h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
}

.tim-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tim-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    width: 300px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.tim-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.foto-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-light);
    padding: 4px;
    background: white;
}

.foto-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition);
}

.tim-card:hover .foto-wrapper img {
    transform: scale(1.1);
}

.tim-card h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tim-card .peran {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 1.1rem;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.1), transparent);
    padding: 0.5rem;
    border-radius: 8px;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
    padding: 2rem;
    margin-top: auto;
    text-align: center;
}

.footer-credit {
    color: var(--white);
    font-size: 1rem;
}

.footer-credit strong {
    color: var(--primary-light);
    font-weight: 700;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero {
        margin: 0 1rem;
        height: 50vh;
    }
    
    .overlay h2 {
        font-size: 2.5rem;
    }
    
    .overlay h3 {
        font-size: 1.6rem;
    }
    
    .profil, .visi-misi, .keunggulan, .tim-pengembang {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
    }
    
    .school-name h1 {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
    
    .hero {
        height: 40vh;
        min-height: 350px;
        margin: 0 0.5rem;
        margin-bottom: 2rem;
    }
    
    .overlay h2 {
        font-size: 2rem;
    }
    
    .overlay h3 {
        font-size: 1.3rem;
    }
    
    .profil {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .profil h2, .visi-misi h2, .keunggulan h2, .tim-pengembang h2 {
        font-size: 1.8rem;
    }
    
    .list li {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .list li strong {
        min-width: auto;
    }
    
    .kotak-container {
        grid-template-columns: 1fr;
    }
    
    .kotak {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        height: 70px;
    }
    
    .overlay h2 {
        font-size: 1.6rem;
    }
    
    .overlay h3 {
        font-size: 1.1rem;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        display: none;
        margin-top: 0.5rem;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        color: var(--white);
        padding: 0.5rem 1rem;
    }
    
    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .tim-card {
        width: 100%;
        max-width: 280px;
    }
    
    .foto-wrapper {
        width: 120px;
        height: 120px;
    }
}

/* ===== HOVER EFFECTS ===== */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ===== PRINT STYLES ===== */
@media print {
    .hero, .dropdown-menu {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .kotak, .card, .tim-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}