/* ================================
   Root Variables & General Styles
   ================================ */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #1abc9c;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4);
}

/* ================================
   Header & Navigation
   ================================ */
.header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 101;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.school-info h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.school-info p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

/* Navigation Bar */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--color-primary, #0066cc);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-item {
    flex: 1;
    border-right: 1px solid #e0e0e0;
}

.nav-item:last-child {
    border-right: none;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    background: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-primary, #0066cc);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary, #0066cc);
    background: #f0f5ff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

/* ================================
   Hero Section & Slider
   ================================ */
.hero {
    height: 600px;
    overflow: hidden;
    position: relative;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    transform: scale(1.3);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ================================
   Sections
   ================================ */
.section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
}

.section-light {
    background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 80px;
        opacity: 1;
    }
}

/* Profile Section */
.profile-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.profile-item {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 10px;
    border-top: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.profile-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
    background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 100%);
}

.profile-item .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.profile-item h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.profile-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Akademik Section */
.akademik-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.akademik-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.akademik-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
    border-left-color: var(--accent-color);
    background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 100%);
}

.akademik-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.akademik-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.akademik-card ul {
    list-style: none;
}

.akademik-card li {
    padding: 8px 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.akademik-card li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Ekstrakurikuler Section */
.ekstrakurikuler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.ekstrakurikuler-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border-top: 3px solid transparent;
}

.ekstrakurikuler-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 100%);
    border-top-color: var(--primary-color);
}

.ekstrakurikuler-card:nth-child(1) .card-icon {
    background: linear-gradient(135deg, #3498db, #1abc9c);
}

.ekstrakurikuler-card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.ekstrakurikuler-card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.ekstrakurikuler-card:nth-child(4) .card-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.ekstrakurikuler-card:nth-child(5) .card-icon {
    background: linear-gradient(135deg, #1abc9c, #16a085);
}

.ekstrakurikuler-card:nth-child(6) .card-icon {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
}

.ekstrakurikuler-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.ekstrakurikuler-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-top: 3px solid transparent;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
    background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 100%);
}

.news-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.news-card-content {
    padding: 25px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    height: 250px;
    background: var(--light-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
}

.gallery-item:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.7) 0%, rgba(0, 61, 153, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    min-width: 50px;
}

.info-item h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid var(--light-bg);
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(52, 152, 219, 0.05);
}

.contact-form button {
    width: 100%;
}

/* ================================
   Footer
   ================================ */
.footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section i {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #ffffff;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-item {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .nav-link {
        text-align: left;
        padding: 15px 20px;
        background: #ffffff;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.active {
        background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
        color: var(--white);
    }

    .navbar {
        position: static;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .prev {
        left: 15px;
    }

    .next {
        right: 15px;
    }

    .profile-content,
    .akademik-grid,
    .ekstrakurikuler-grid,
    .news-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 400px;
    }

    .section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .logo-section {
        gap: 10px;
    }

    .logo {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .school-info h1 {
        font-size: 1.2rem;
    }

    .school-info p {
        font-size: 0.75rem;
    }

    .hero {
        height: 300px;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section {
        padding: 30px 0;
    }

    .slider-dots {
        bottom: 15px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-section h4 {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-item,
.akademik-card,
.ekstrakurikuler-card,
.news-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.profile-item:nth-child(1) {
    animation-delay: 0.1s;
}

.profile-item:nth-child(2) {
    animation-delay: 0.2s;
}

.profile-item:nth-child(3) {
    animation-delay: 0.3s;
}

.akademik-card:nth-child(1) {
    animation-delay: 0.1s;
}

.akademik-card:nth-child(2) {
    animation-delay: 0.2s;
}

.akademik-card:nth-child(3) {
    animation-delay: 0.3s;
}

.ekstrakurikuler-card:nth-child(1) {
    animation-delay: 0.1s;
}

.ekstrakurikuler-card:nth-child(2) {
    animation-delay: 0.2s;
}

.ekstrakurikuler-card:nth-child(3) {
    animation-delay: 0.3s;
}

.ekstrakurikuler-card:nth-child(4) {
    animation-delay: 0.4s;
}

.ekstrakurikuler-card:nth-child(5) {
    animation-delay: 0.5s;
}

.ekstrakurikuler-card:nth-child(6) {
    animation-delay: 0.6s;
}

.news-card:nth-child(1) {
    animation-delay: 0.1s;
}

.news-card:nth-child(2) {
    animation-delay: 0.2s;
}

.news-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Smooth transitions */
button,
a {
    transition: var(--transition);
}

.section {
    animation: fadeInUp 0.8s ease-out;
}