/* ===================== VARIABLES ===================== */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg-light: #f9fafb;
    --bg-lighter: #f3f4f6;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #1d4ed8);
    color: var(--bg-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--bg-white);
    color: var(--primary-color);
    font-weight: 700;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* ===================== HERO SECTION ===================== */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.5);
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bg-white);
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent-color), #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--bg-white);
    animation: bounce 2s ease-in-out infinite;
    z-index: 2;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--bg-white);
    border-radius: 12px;
    margin: 0 auto 10px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--bg-white);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel 1.5s ease-in-out infinite;
}

@keyframes wheel {
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ===================== STATISTIK SECTION ===================== */
.statistik {
    padding: 60px 20px;
    background: var(--bg-white);
}

.statistik-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-lighter));
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    animation: slideUp 0.6s ease-out;
}

.stat-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.1);
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 8px 0;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
    margin: 0;
}

/* ===================== SECTION HEADERS ===================== */
.section-header-center {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
    margin: 0 auto 24px;
}

.section-description {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================== TENTANG SECTION ===================== */
.tentang {
    padding: 80px 20px;
    background: var(--bg-light);
}

.tentang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tentang-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.play-button {
    width: 70px;
    height: 70px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--bg-white);
    transition: var(--transition);
    animation: pulse 2s ease-in-out infinite;
}

.play-button:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(245, 158, 11, 0);
    }
}

.image-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
    opacity: 0.2;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.tentang-content {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tentang-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 28px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-white);
    border-radius: 8px;
    border-left: 3px solid var(--success-color);
}

.feature-item i {
    color: var(--success-color);
    font-size: 18px;
}

.feature-item span {
    font-weight: 500;
    color: var(--text-dark);
}

/* ===================== TEACHERS SECTION ===================== */
.teachers {
    padding: 80px 20px;
    background: var(--bg-white);
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.teacher-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    animation: slideUp 0.6s ease-out;
}

.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.teacher-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: var(--bg-lighter);
}

.teacher-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.1);
}

.teacher-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 5;
}

.teacher-card:hover .teacher-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.teacher-info {
    padding: 20px;
}

.teacher-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.teacher-subject {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.teacher-quote {
    font-size: 12px;
    color: var(--secondary-color);
    font-style: italic;
    margin: 0;
}

.teacher-quote i {
    margin-right: 6px;
}

/* ===================== NEWS SECTION ===================== */
.news-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.news-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.6s ease-out;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.news-image {
    position: relative;
    width: 100%;
    padding-bottom: 60%;
    overflow: hidden;
    background: var(--bg-lighter);
}

.news-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bg-white);
    text-transform: capitalize;
}

.news-category.pengumuman {
    background: linear-gradient(135deg, var(--accent-color), #d97706);
}

.news-category.prestasi {
    background: linear-gradient(135deg, var(--success-color), #047857);
}

.news-category.berita {
    background: linear-gradient(135deg, var(--secondary-color), #1d4ed8);
}

.news-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.news-meta i {
    margin-right: 4px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    flex: 1;
    line-height: 1.6;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.news-link:hover {
    gap: 10px;
    color: var(--primary-color);
}

.news-footer {
    text-align: center;
}

/* ===================== CTA SECTION ===================== */
.cta-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    color: var(--bg-white);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        gap: 12px;
    }

    .section-title {
        font-size: 28px;
    }

    .tentang-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tentang-features {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }

    .statistik-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 28px;
    }

    .section-title {
        font-size: 20px;
    }

    .teachers-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cta-content h2 {
        font-size: 22px;
    }

    .cta-content p {
        font-size: 14px;
    }
}