/* ============================================
   CSS Design System - Kelas 6B Website
   MI Miftahul Ulum Pulosari Lumajang
   Developer: Madzz
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #5041c9;
    --secondary: #00cec9;
    --secondary-light: #81ecec;
    --accent: #fd79a8;
    --accent-light: #fab1cc;
    --gradient-1: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #00cec9 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-3: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-hero: linear-gradient(135deg, #0c0c1d 0%, #1a1a3e 30%, #2d1b69 60%, #0c0c1d 100%);
    --dark-bg: #0a0a1a;
    --dark-card: rgba(255, 255, 255, 0.05);
    --dark-card-hover: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(108, 92, 231, 0.3);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Particle Canvas --- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Glass Card --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition);
}

.nav-logo i {
    font-size: 1.6rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--glass-bg);
}

.nav-link.active {
    background: var(--gradient-1);
    color: white;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

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

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
    animation-delay: -3s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary-light);
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease;
}

.hero-badge i {
    color: #ffd700;
}

.hero-title {
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title-line {
    display: block;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.hero-title-big {
    display: block;
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(108, 92, 231, 0.4));
}

.hero-school {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-school i {
    color: var(--secondary);
    margin-right: 8px;
}

.hero-location {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-location i {
    color: var(--accent);
    margin-right: 6px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gradient-1);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease 0.7s both;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
}

.hero-cta i {
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeIn 1s ease 1.5s both;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.about-card {
    padding: 36px 28px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-8px);
    background: var(--dark-card-hover);
}

.about-card:hover::before {
    opacity: 1;
}

.about-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--gradient-2);
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.about-card-icon.teacher-icon {
    background: var(--gradient-3);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.3);
}

.about-card-icon.students-icon {
    background: linear-gradient(135deg, #00cec9, #55efc4);
    box-shadow: 0 8px 25px rgba(0, 206, 201, 0.3);
}

.about-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.editable-name {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.edit-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
    opacity: 0;
}

.about-card:hover .edit-btn {
    opacity: 1;
}

.edit-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.about-motto {
    padding: 30px 40px;
    text-align: center;
    position: relative;
}

.about-motto p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-motto i {
    color: var(--primary-light);
    opacity: 0.4;
    font-size: 1.5rem;
    margin: 0 10px;
}

/* ============================================
   STUDENTS SECTION
   ============================================ */
.students-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

.student-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: 0.6s;
}

.student-card:hover::before {
    left: 100%;
}

.student-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.2);
}

.student-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
}

.student-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--gradient-1);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.student-card:hover .student-avatar::after {
    opacity: 1;
}

.student-number {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.student-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.student-role {
    font-size: 0.8rem;
    color: var(--primary-light);
    font-weight: 500;
}

/* Student Avatar Colors */
.avatar-1 { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }
.avatar-2 { background: linear-gradient(135deg, #00cec9, #55efc4); }
.avatar-3 { background: linear-gradient(135deg, #fd79a8, #e84393); }
.avatar-4 { background: linear-gradient(135deg, #fdcb6e, #f39c12); }
.avatar-5 { background: linear-gradient(135deg, #74b9ff, #0984e3); }
.avatar-6 { background: linear-gradient(135deg, #ff7675, #d63031); }
.avatar-7 { background: linear-gradient(135deg, #a29bfe, #6c5ce7); }
.avatar-8 { background: linear-gradient(135deg, #55efc4, #00b894); }
.avatar-9 { background: linear-gradient(135deg, #fab1a0, #e17055); }
.avatar-10 { background: linear-gradient(135deg, #81ecec, #00cec9); }
.avatar-11 { background: linear-gradient(135deg, #ffeaa7, #fdcb6e); }
.avatar-12 { background: linear-gradient(135deg, #dfe6e9, #b2bec3); }
.avatar-13 { background: linear-gradient(135deg, #fd79a8, #fab1cc); }
.avatar-14 { background: linear-gradient(135deg, #00b894, #00cec9); }
.avatar-15 { background: linear-gradient(135deg, #e17055, #d63031); }
.avatar-16 { background: linear-gradient(135deg, #0984e3, #74b9ff); }

/* ============================================
   TEACHER SECTION
   ============================================ */
.teacher-section {
    background: linear-gradient(180deg, transparent 0%, rgba(108, 92, 231, 0.05) 50%, transparent 100%);
}

.teacher-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.teacher-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 3rem;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
}

.teacher-avatar::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px dashed var(--primary-light);
    animation: spin 20s linear infinite;
}

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

.teacher-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.teacher-role {
    font-size: 1rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 6px;
}

.teacher-school {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.teacher-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #ffd700;
    font-weight: 500;
}

.edit-btn-teacher {
    position: absolute;
    top: 20px;
    right: 20px;
    width: auto;
    height: auto;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    opacity: 0;
}

.teacher-card:hover .edit-btn-teacher {
    opacity: 1;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    padding: 36px 24px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-light);
}

.gallery-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
    transition: var(--transition);
}

.gallery-item:nth-child(1) .gallery-icon { background: linear-gradient(135deg, #6c5ce7, #a29bfe); color: white; }
.gallery-item:nth-child(2) .gallery-icon { background: linear-gradient(135deg, #00cec9, #55efc4); color: white; }
.gallery-item:nth-child(3) .gallery-icon { background: linear-gradient(135deg, #fd79a8, #e84393); color: white; }
.gallery-item:nth-child(4) .gallery-icon { background: linear-gradient(135deg, #fdcb6e, #f39c12); color: white; }
.gallery-item:nth-child(5) .gallery-icon { background: linear-gradient(135deg, #55efc4, #00b894); color: white; }
.gallery-item:nth-child(6) .gallery-icon { background: linear-gradient(135deg, #74b9ff, #0984e3); color: white; }

.gallery-item:hover .gallery-icon {
    transform: scale(1.15) rotate(5deg);
}

.gallery-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.gallery-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.photo-gallery-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.photo-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.photo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.3);
    border-color: var(--primary-light);
}

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

.photo-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
    text-align: center;
}

.photo-card:hover .photo-card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.photo-card-overlay p {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(108, 92, 231, 0.1));
}

.footer-wave {
    color: rgba(108, 92, 231, 0.08);
    margin-bottom: -2px;
}

.footer-wave svg {
    display: block;
    width: 100%;
}

.footer-content {
    text-align: center;
    padding: 40px 24px 30px;
    background: rgba(108, 92, 231, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-logo i {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-school {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-divider {
    width: 60px;
    height: 2px;
    background: var(--gradient-1);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

/* Developer Badge */
.footer-dev-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 16px;
    transition: var(--transition);
}

.footer-dev-badge:hover {
    border-color: var(--primary-light);
    background: rgba(108, 92, 231, 0.1);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.2);
}

.footer-dev-badge i.fa-code {
    color: var(--primary-light);
}

.footer-dev-badge .beating-heart {
    color: #ff6b6b;
    animation: heartbeat 1.2s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.2); }
    28% { transform: scale(1); }
    42% { transform: scale(1.2); }
    56% { transform: scale(1); }
}

.footer-dev-badge .dev-name {
    font-size: 0.95rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

/* Admin Nav Link */
.nav-admin {
    border: 1px solid rgba(108, 92, 231, 0.4);
    background: rgba(108, 92, 231, 0.1) !important;
}

.nav-admin:hover {
    background: var(--gradient-1) !important;
    color: white !important;
    border-color: transparent;
}

.nav-admin i {
    font-size: 0.8rem;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 90%;
    max-width: 450px;
    padding: 0;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--glass-bg);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.modal-body {
    padding: 24px;
}

.modal-body label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.modal-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.modal-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--glass-border);
}

.btn {
    padding: 10px 24px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
}

/* Student Detail Modal */
.student-detail-modal {
    max-width: 400px;
}

.student-detail-body {
    text-align: center;
    padding: 30px 24px 40px;
}

.student-detail-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
}

.student-detail-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.student-detail-number {
    font-size: 1rem;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.student-detail-class {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.5);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* AOS-like animation classes */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .students-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 30px 30px;
        transition: var(--transition);
        border-left: 1px solid var(--glass-border);
    }

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

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

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

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

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

    .hero-title-big {
        font-size: 5rem;
    }

    .hero-title-line {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .students-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .teacher-card {
        padding: 36px 24px;
    }

    .hero-stats {
        gap: 18px;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title-big {
        font-size: 4rem;
    }

    .students-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .student-card {
        padding: 20px 14px;
    }

    .student-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

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

    .section {
        padding: 60px 0;
    }
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 28px;
    background: var(--gradient-1);
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.5);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
