/* ================================
   GLOBAL RESET & VARIABLES
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Mode Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-color: #ff6b6b;
    --bg-color: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.8);
    
    /* Fonts */
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Mode Colors */
body.dark-mode {
    --primary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --secondary-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --accent-color: #00f2fe;
    --bg-color: #0f0f1e;
    --card-bg: rgba(20, 20, 40, 0.9);
    --text-primary: #e8eaed;
    --text-secondary: #b0b3b8;
    --glass-bg: rgba(20, 20, 40, 0.3);
    --glass-border: rgba(79, 172, 254, 0.2);
    --shadow-color: rgba(0, 242, 254, 0.2);
    --nav-bg: rgba(15, 15, 30, 0.8);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: var(--transition-smooth);
    cursor: none;
}

/* ================================
   CUSTOM CURSOR
================================ */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, background 0.2s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.4s ease;
    opacity: 0.5;
    mix-blend-mode: difference;
}

.cursor.active {
    transform: scale(1.5);
    background: var(--accent-color);
}

/* ================================
   LOADING SCREEN
================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 30px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ================================
   SCROLL PROGRESS BAR
================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--accent-color);
}

/* ================================
   NAVBAR
================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 30px var(--shadow-color);
}

.navbar.scrolled {
    padding: 15px 5%;
    box-shadow: 0 8px 40px var(--shadow-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    width: 60px;
    height: 30px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dark-mode-toggle::before {
    content: '☀️';
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 18px;
    transition: var(--transition-smooth);
}

body.dark-mode .dark-mode-toggle::before {
    content: '🌙';
    left: calc(100% - 25px);
}

.dark-mode-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body.dark-mode .dark-mode-toggle::after {
    left: calc(100% - 23px);
    background: #0f0f1e;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ================================
   HERO SECTION
================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--primary-gradient);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 28px);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-btn {
    display: inline-block;
    padding: 18px 50px;
    background: white;
    color: #667eea;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    border-radius: 50px;
    transition: var(--transition-spring);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    transition: width 0.6s ease, height 0.6s ease;
    transform: translate(-50%, -50%);
}

.hero-btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/* Floating Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   SECTIONS
================================ */
section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* ================================
   SAMBUTAN WALI KELAS
================================ */
.sambutan-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.wali-photo {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow-color);
    transition: var(--transition-smooth);
}

.wali-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
}

.wali-photo:hover::before {
    opacity: 0.2;
}

.wali-photo:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px var(--shadow-color);
}

.wali-photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

.wali-photo:hover img {
    transform: scale(1.05);
}

.sambutan-text {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px var(--shadow-color);
}

.sambutan-text h3 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.sambutan-text .position {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 25px;
}

.sambutan-text p {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 18px;
}

/* ================================
   STRUKTUR KELAS
================================ */
.struktur-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.member-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--primary-gradient);
    opacity: 0;
    transform: rotate(45deg);
    transition: var(--transition-smooth);
}

.member-card:hover::before {
    opacity: 0.1;
}

.member-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 70px var(--shadow-color);
    border-color: var(--accent-color);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 25px;
    overflow: hidden;
    border: 5px solid var(--glass-border);
    box-shadow: 0 10px 30px var(--shadow-color);
    position: relative;
    z-index: 1;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.member-card:hover .member-photo img {
    transform: scale(1.1);
}

.member-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.member-role {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

/* ================================
   GALERI
================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: 0 10px 40px var(--shadow-color);
    transition: var(--transition-smooth);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px var(--shadow-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: var(--transition-smooth);
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Modal Lightbox */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 30px;
    font-weight: 700;
    color: #333;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: var(--accent-color);
    color: white;
}

/* ================================
   TENTANG KELAS
================================ */
.tentang-container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 60px;
    border-radius: 30px;
    border: 2px solid transparent;
    background-image: 
        linear-gradient(var(--card-bg), var(--card-bg)),
        var(--primary-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 20px 60px var(--shadow-color);
}

.tentang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.info-item {
    text-align: center;
}

.info-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 16px;
}

.info-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.motto {
    text-align: center;
    font-size: 28px;
    font-style: italic;
    color: var(--accent-color);
    margin-top: 40px;
    font-weight: 600;
}

/* ================================
   FOOTER
================================ */
footer {
    background: var(--primary-gradient);
    color: white;
    text-align: center;
    padding: 50px 5%;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: footerPattern 20s linear infinite;
}

@keyframes footerPattern {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

footer .footer-content {
    position: relative;
    z-index: 1;
}

footer h3 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
}

footer p {
    font-size: 18px;
    opacity: 0.9;
}

/* ================================
   ANIMATIONS
================================ */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-smooth);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
    .sambutan-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tentang-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 30px var(--shadow-color);
    }

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

    .hamburger {
        display: flex;
    }

    section {
        padding: 60px 5%;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .sambutan-text {
        padding: 30px;
    }

    .struktur-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .tentang-container {
        padding: 40px 30px;
    }

    .tentang-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 22px;
    }

    .navbar {
        padding: 15px 5%;
    }

    .sambutan-text h3 {
        font-size: 24px;
    }

    .sambutan-text p {
        font-size: 16px;
    }

    .member-name {
        font-size: 20px;
    }

    .tentang-container {
        padding: 30px 20px;
    }

    .motto {
        font-size: 20px;
    }
}
