﻿/* ==========================================
   ISC BANPHAI - Modern Dark Theme
   Glassmorphism + Neon Accents
   ========================================== */

/* ==========================================
   CSS Variables
   ========================================== */
:root {
    /* Primary Palette - IVAO Creators Aesthetic */
    --primary: #2b5cff;
    --primary-dark: #1a43d6;
    --primary-light: #5c84ff;
    --secondary: #00e1ff;
    --accent: #00e1ff;
    --accent-warm: #ff2b70;
    --accent-green: #00e676;
    --accent-gold: #ffc400;
    
    /* Dark Backgrounds */
    --bg-deep: #09090b;
    --bg-dark: #121217;
    --bg-card: rgba(18, 18, 23, 0.7);
    --bg-card-hover: rgba(28, 28, 35, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.02);
    --bg-glass-strong: rgba(255, 255, 255, 0.05);
    --bg-section-alt: #0e0e12;
    
    /* Text Colors */
    --text: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --text-white: #ffffff;
    
    /* Borders & Shadows */
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --border-glow: rgba(43, 92, 255, 0.3);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(43, 92, 255, 0.15);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
    
    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fonts */
    --font: 'Outfit', 'Prompt', 'Inter', sans-serif;
    --font-body: 'Inter', 'Sarabun', sans-serif;
    --font-en: 'Outfit', 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

/* ==========================================
   Global Reset & Base
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light), var(--accent));
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

img {
    max-width: 100%;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: 95%;
    max-width: 1400px;
    z-index: 1000;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 50px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s var(--ease);
}

.navbar:hover {
    border-color: var(--border-hover);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateX(-50%) translateY(-2px);
}

.navbar.scrolled {
    background: var(--bg-card-hover);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(43, 92, 255, 0.1);
}

.navbar.hide {
    transform: translateX(-50%) translateY(-120%);
    opacity: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Styles */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
}

.logo-school {
    width: 48px;
    height: 48px;
    padding: 5px;
    background: linear-gradient(135deg, #ffffff 0%, #f3edff 100%);
    border: 2px solid rgba(124, 58, 237, 0.45);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.28), 0 0 0 4px rgba(124, 58, 237, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-school img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 5px rgba(76, 29, 149, 0.35)) saturate(1.18) contrast(1.08);
}

.nav-logo:hover .logo-school img {
    transform: scale(1.1);
}

.nav-logo:hover .logo-school {
    transform: translateY(-1px);
    box-shadow: 0 9px 24px rgba(124, 58, 237, 0.36), 0 0 0 5px rgba(124, 58, 237, 0.12);
}

.logo-divider {
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
    margin: 0 0.5rem;
    opacity: 0.5;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(145deg, #1f4fff 0%, #6d5cff 48%, #00d9ff 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(43, 92, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.logo-icon::before {
    content: "";
    position: absolute;
    inset: 3px 3px auto 3px;
    height: 42%;
    border-radius: 11px 11px 8px 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.logo-icon i {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(10, 22, 80, 0.35);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.nav-logo:hover .logo-icon img {
    transform: scale(1.1);
}

.nav-logo:hover .logo-icon {
    transform: translateY(-1px) rotate(4deg) scale(1.06);
    box-shadow: 0 14px 30px rgba(43, 92, 255, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.15rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.55rem 0.85rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: all 0.3s var(--ease);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font);
}

.nav-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.nav-link:hover .nav-arrow,
.nav-link.active .nav-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
    background: rgba(43, 92, 255, 0.15);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* CTA Button */
.nav-cta {
    padding: 0.65rem 1.1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent-warm));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 15px rgba(43, 92, 255, 0.4);
    position: relative;
    overflow: hidden;
    font-family: var(--font);
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.nav-cta:hover::before {
    left: 100%;
}

.nav-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(43, 92, 255, 0.5);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(28, 28, 35, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0.8rem 0.5rem;
    min-width: 220px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
    list-style: none;
    z-index: 1001;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(28, 28, 35, 0.95);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.dropdown-menu a i {
    font-size: 1rem;
    color: var(--primary);
    transition: all 0.25s ease;
}

.dropdown-menu a:hover {
    background: rgba(43, 92, 255, 0.15);
    color: var(--text-white);
    transform: translateX(5px);
}

.dropdown-menu a:hover i {
    transform: scale(1.2);
    color: var(--secondary);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 3px;
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-light);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--accent-warm);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--accent-warm);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 1.5rem 4rem;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(43, 92, 255, 0.15) 0%, transparent 50%),
        var(--bg-deep);
    position: relative;
    overflow: hidden;
}

/* Background Effects */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 60%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 60%);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(43, 92, 255, 0.6);
    animation: float-particle 12s infinite;
    opacity: 0;
}

.particle:nth-child(even) {
    background: var(--secondary);
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.6);
}

.particle:nth-child(3n) {
    background: var(--accent-warm);
    box-shadow: 0 0 6px rgba(255, 107, 157, 0.6);
}

@keyframes float-particle {
    0% { 
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% { opacity: 0.8; transform: translateY(80vh) scale(1); }
    90% { opacity: 0.8; }
    100% { 
        transform: translateY(-20vh) scale(0.5);
        opacity: 0;
    }
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: orb-pulse 8s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -15%;
    right: 5%;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-warm);
    bottom: -10%;
    left: -10%;
    animation-delay: -4s;
}

@keyframes orb-pulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.3); opacity: 0.35; }
}

/* Hero Content */
.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    color: white;
}

.badge-tech {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    background: rgba(43, 92, 255, 0.1);
    border: 1px solid rgba(43, 92, 255, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    color: var(--text-secondary);
}

.badge-pulse {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.5; transform: translateY(-50%) scale(1.3); }
}

.badge-tech i {
    color: var(--primary);
    margin-left: 1rem;
}

/* Hero Title */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    position: relative;
    letter-spacing: -0.02em;
}

.hero-title .line-1 {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    font-family: var(--font-body);
}

.hero-title .line-2 {
    display: block;
    color: var(--text-white);
}

.hero-title .line-3 {
    display: block;
    background: linear-gradient(135deg, var(--text-white), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Typing Effect */
.typing-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--accent-green);
}

.typing-prefix {
    color: var(--primary);
    font-family: var(--font-body);
}

.typing-cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 520px;
}

/* Feature Chips */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.feature-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(43, 92, 255, 0.08);
    border: 1px solid rgba(43, 92, 255, 0.2);
    border-radius: 25px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.feature-chip:hover {
    background: rgba(43, 92, 255, 0.18);
    border-color: var(--primary);
    transform: translateY(-2px);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(43, 92, 255, 0.2);
}

.feature-chip i {
    color: var(--primary);
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:active::after {
    width: 300%;
    height: 300%;
}

.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    box-shadow: 0 0 25px rgba(43, 92, 255, 0.4);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(43, 92, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid rgba(43, 92, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--text-white);
    background: rgba(43, 92, 255, 0.1);
    transform: translateY(-3px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent-warm));
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(43, 92, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(43, 92, 255, 0.45);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Stats Row */
.hero-stats-row {
    display: flex;
    gap: 2rem;
}

.stat-box {
    text-align: center;
    padding: 1rem 1.25rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    min-width: 100px;
    transition: var(--transition);
}

.stat-box:hover {
    border-color: var(--border-hover);
    background: var(--bg-glass-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-unit {
    font-size: 1rem;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ==========================================
   Hero Visual - Right Side
   ========================================== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rotating Rings */
.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-1 {
    width: 350px;
    height: 350px;
    border-top-color: var(--primary);
    border-right-color: rgba(43, 92, 255, 0.3);
    animation: rotate 10s linear infinite;
    box-shadow: 0 0 30px rgba(43, 92, 255, 0.15);
}

.ring-2 {
    width: 280px;
    height: 280px;
    border-bottom-color: var(--accent-warm);
    border-left-color: rgba(255, 107, 157, 0.3);
    animation: rotate-reverse 15s linear infinite;
    box-shadow: 0 0 30px rgba(255, 107, 157, 0.15);
}

.ring-3 {
    width: 420px;
    height: 420px;
    border: 1px dashed rgba(0, 212, 255, 0.25);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Core Logo */
.logo-core {
    position: relative;
    z-index: 10;
    animation: core-pulse 3s ease-in-out infinite;
}

@keyframes core-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.core-inner {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: 
        0 0 60px rgba(43, 92, 255, 0.5),
        inset 0 0 30px rgba(255,255,255,0.15);
    position: relative;
    z-index: 2;
}

.core-inner img {
    animation: logo-glow 3s ease-in-out infinite;
}

@keyframes logo-glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(43, 92, 255, 0.6)); }
    50% { filter: drop-shadow(0 0 25px rgba(43, 92, 255, 0.9)); }
}

.core-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.4;
    z-index: 1;
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

/* Orbiting Elements */
.orbit {
    position: absolute;
    animation: orbit-rotate 12s linear infinite;
}

.orbit-1 {
    width: 280px;
    height: 280px;
    animation-duration: 12s;
}

.orbit-2 {
    width: 340px;
    height: 340px;
    animation-duration: 18s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 380px;
    height: 380px;
    animation-duration: 24s;
}

.orbit-item {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(18, 18, 23, 0.9);
    border: 2px solid var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-light);
    box-shadow: 0 0 20px rgba(43, 92, 255, 0.4);
    backdrop-filter: blur(10px);
}

.orbit-1 .orbit-item { top: -25px; left: 50%; transform: translateX(-50%); }
.orbit-2 .orbit-item { bottom: -25px; right: 50%; transform: translateX(50%); }
.orbit-3 .orbit-item { top: 50%; right: -25px; transform: translateY(-50%); }

@keyframes orbit-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Floating Tech Icons */
.float-tech {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(43, 92, 255, 0.08);
    border: 1px solid rgba(43, 92, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    animation: float-tech 6s ease-in-out infinite;
}

.tech-1 { top: 10%; left: 0; animation-delay: 0s; }
.tech-2 { top: 20%; right: 0; animation-delay: 1s; }
.tech-3 { bottom: 20%; left: 5%; animation-delay: 2s; }
.tech-4 { bottom: 10%; right: 10%; animation-delay: 3s; }

@keyframes float-tech {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
    50% { transform: translateY(-20px) rotate(10deg); opacity: 1; }
}

/* Program Badge */
.program-badge {
    position: absolute;
    bottom: -20px;
    right: 0;
    background: rgba(18, 18, 23, 0.9);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow);
    animation: badge-float 4s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.badge-inner {
    text-align: center;
}

.badge-year {
    display: block;
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 0.1em;
    font-family: var(--font-en);
}

.badge-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0.25rem 0;
}

.badge-level {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

.mouse-tech {
    width: 25px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 15px;
    position: relative;
}

.mouse-wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: wheel-scroll 2s infinite;
}

@keyframes wheel-scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ==========================================
   Sections General
   ========================================== */
.section {
    padding: 6rem 1.5rem;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* หน้า alumni ไม่ใช้ scroll-reveal เพราะ section ใหญ่เกินไป */
.alumni-section,
.alumni-stats-section,
.universities-section {
    opacity: 1 !important;
    transform: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(43, 92, 255, 0.1);
    border: 1px solid rgba(43, 92, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

.section-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   About Section
   ========================================== */
.about {
    background: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s var(--ease);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.feature-card:nth-child(1).visible { transition-delay: 0.1s; }
.feature-card:nth-child(2).visible { transition-delay: 0.2s; }
.feature-card:nth-child(3).visible { transition-delay: 0.3s; }
.feature-card:nth-child(4).visible { transition-delay: 0.4s; }

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 
        var(--shadow-hover),
        0 0 40px rgba(43, 92, 255, 0.1);
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 1.25rem;
    transition: all 0.4s var(--ease);
    box-shadow: 0 8px 25px rgba(43, 92, 255, 0.3);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--accent-warm), var(--primary));
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.4);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* About Content */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-weight: 500;
}

.highlight-item i {
    color: var(--accent-green);
    font-size: 1.25rem;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent-warm));
    border-radius: 22px;
    z-index: -1;
    opacity: 0.5;
    animation: border-glow 3s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Slideshow */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--bg-dark);
}

.slideshow-fade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slideshow-fade.active {
    opacity: 1;
    z-index: 2;
}

.slideshow-fade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slideshow-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background-color: rgba(255,255,255,0.5);
}

.dot.active {
    background-color: var(--primary);
    border-color: rgba(43, 92, 255, 0.5);
    box-shadow: 0 0 10px rgba(43, 92, 255, 0.5);
}

/* ==========================================
   Curriculum Section
   ========================================== */
.curriculum {
    background: var(--bg-section-alt);
}

.curriculum-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--text-white);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(43, 92, 255, 0.4);
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s var(--ease);
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.curriculum-all {
    display: grid;
    gap: 3rem;
}

.curriculum-level {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
}

.curriculum-level:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.curriculum-level-title {
    font-size: 1.4rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
    justify-content: center;
    gap: 1.5rem;
}

.subject-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.subject-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.subject-card:nth-child(1).visible { transition-delay: 0.1s; }
.subject-card:nth-child(2).visible { transition-delay: 0.2s; }
.subject-card:nth-child(3).visible { transition-delay: 0.3s; }

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s var(--ease);
    transform-origin: left;
}

.subject-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    background: var(--bg-card-hover);
}

.subject-card:hover::before {
    transform: scaleX(1);
}

.subject-icon {
    width: 70px;
    height: 70px;
    background: rgba(43, 92, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-light);
    margin: 0 auto 1rem;
    transition: all 0.4s var(--ease);
}

.subject-card:hover .subject-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(43, 92, 255, 0.3);
    transform: scale(1.1);
}

.subject-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.subject-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-en);
}

.subject-hours {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(43, 92, 255, 0.1);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    border: 1px solid var(--border);
}

/* ==========================================
   Activities Section
   ========================================== */
.activities {
    background: var(--bg-dark);
    padding: 6rem 1.5rem;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.activity-block {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.4s var(--ease);
    cursor: pointer;
    aspect-ratio: 1 / 1.2;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.activity-block.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.activity-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) saturate(0.8);
    transition: all 0.5s ease;
}

.activity-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(5, 5, 16, 0.2) 0%,
        rgba(5, 5, 16, 0.7) 100%
    );
    transition: all 0.4s ease;
}

.activity-static {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    text-align: center;
    z-index: 2;
    transition: all 0.4s ease;
}

.activity-icon {
    width: 70px;
    height: 70px;
    background: rgba(10, 10, 26, 0.8);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-light);
    margin: 0 auto 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.activity-static h3 {
    font-size: 1.2rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
}

.activity-hint {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(43, 92, 255, 0.2);
    border: 1px solid rgba(43, 92, 255, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.activity-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    background: rgba(28, 28, 35, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease-bounce);
    backdrop-filter: blur(20px);
}

.popup-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, var(--primary), var(--accent-warm));
    color: white;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.activity-popup h3 {
    font-size: 1.05rem;
    color: var(--text-white);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    text-shadow: none;
}

.activity-popup p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.popup-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.popup-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.popup-meta i {
    color: var(--primary);
}

/* Activity Hover Effects */
.activity-block:hover {
    transform: scale(1.03);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    z-index: 5;
}

.activity-block:hover .activity-image img {
    filter: brightness(0.4) saturate(0.6) blur(2px);
    transform: scale(1.1);
}

.activity-block:hover .activity-overlay {
    background: linear-gradient(
        to bottom,
        rgba(5, 5, 16, 0.5) 0%,
        rgba(5, 5, 16, 0.85) 100%
    );
}

.activity-block:hover .activity-static {
    opacity: 0;
    transform: translateY(20px);
}

.activity-block:hover .activity-icon {
    transform: scale(0) rotate(180deg);
}

.activity-block:hover .activity-popup {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* ==========================================
   Teachers Section
   ========================================== */
.teachers {
    background: var(--bg-section-alt);
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.teacher-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s var(--ease);
    text-align: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.teacher-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.teacher-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.teacher-avatar {
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    overflow: hidden;
    position: relative;
}

.teacher-avatar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--bg-card), transparent);
    pointer-events: none;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.teacher-card:hover .teacher-avatar img {
    transform: scale(1.1);
}

.teacher-info {
    padding: 1.25rem;
}

.teacher-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text-white);
}

.teacher-role {
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.teacher-subject {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--font-body);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-items: center;
}

.teacher-card.featured {
    max-width: 350px;
}

.teacher-card.featured:hover {
    box-shadow: 0 30px 60px rgba(43, 92, 255, 0.25);
}

.leadership-section-intro {
    margin-bottom: 2rem;
    text-align: center;
}

.leadership-section-intro h3 {
    font-size: 1.75rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.leadership-section-intro p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact {
    background: var(--bg-dark);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.contact-info h2 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
    padding: 0.75rem;
    border-radius: 12px;
}

.contact-item:hover {
    background: var(--bg-glass);
}

.contact-item i {
    width: 45px;
    height: 45px;
    background: rgba(43, 92, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-light);
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover i {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(43, 92, 255, 0.3);
}

.contact-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text-white);
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(43, 92, 255, 0.15);
    transform: translateY(-2px);
    background: rgba(43, 92, 255, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236c63ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

.form-group select option {
    background: var(--bg-dark);
    color: var(--text);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    margin-top: auto;
    color: var(--text);
    padding: 3rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-brand .logo-icon {
    width: 50px;
    height: 50px;
}

.footer-brand i {
    color: var(--primary);
    font-size: 1.5rem;
}

.footer-brand span {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0.5rem;
    -webkit-text-fill-color: var(--text-muted);
}

.footer-brand img {
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    padding: 5px;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================
   Developer Page
   ========================================== */
.developer-page {
    flex: 1;
    background: var(--bg-deep);
}

.developer-hero {
    position: relative;
    min-height: 78vh;
    padding: 8rem 1.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(43, 92, 255, 0.22), transparent 32%),
                radial-gradient(circle at 80% 15%, rgba(0, 225, 255, 0.16), transparent 30%),
                var(--bg-deep);
}

.developer-bg-grid {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 42px 42px;
}

.developer-profile {
    position: relative;
    z-index: 1;
    width: min(100%, 980px);
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow-hover);
    backdrop-filter: blur(16px);
}

.developer-mark {
    width: 220px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(145deg, var(--primary), #6d5cff 52%, var(--secondary));
    color: white;
    font-size: 5rem;
    box-shadow: 0 22px 50px rgba(43, 92, 255, 0.34);
    overflow: hidden;
}

.developer-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.developer-copy h1 {
    color: var(--text-white);
    font-size: clamp(2.25rem, 5vw, 4rem);
    margin: 0.8rem 0 0.35rem;
}

.developer-role {
    color: var(--primary-light);
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.developer-desc {
    max-width: 680px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.developer-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.developer-section {
    padding: 5rem 1.5rem;
    background: var(--bg-section);
}

.developer-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.developer-card {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.developer-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.developer-card i {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 1.45rem;
}

.contact-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.contact-link-card {
    padding: 2rem;
    border: 2px solid var(--border);
    border-radius: 18px;
    background: var(--bg-card);
    text-decoration: none;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-link-card:hover {
    border-color: var(--primary);
    box-shadow: 0 22px 50px rgba(43, 92, 255, 0.34);
    transform: translateY(-6px);
}

.contact-link-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 2rem;
}

.contact-link-card h3 {
    font-size: 1.45rem;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.contact-link-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.developer-card h3 {
    color: var(--text-white);
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
}

.developer-card p {
    color: var(--text-muted);
    line-height: 1.75;
}

/* ==========================================
   Back to Top
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 15px rgba(43, 92, 255, 0.4);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(43, 92, 255, 0.5);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-stats-row {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .badge-tech {
        margin-left: auto;
        margin-right: auto;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .teachers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .nav-container {
        padding: 0.5rem 1.2rem;
    }
    
    .logo-school {
        width: 42px;
        height: 42px;
        padding: 4px;
        border-radius: 12px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        border-radius: 11px;
        font-size: 1rem;
    }
    
    .logo-main {
        font-size: 0.9rem;
    }
    
    .logo-sub {
        font-size: 0.65rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 1180px) {
    .nav-container {
        padding: 0.5rem 1.2rem;
    }

    .nav-menu {
        gap: 0.7rem;
    }

    .nav-link {
        padding: 0.5rem 0.65rem;
        font-size: 0.82rem;
    }

    .nav-cta {
        padding: 0.58rem 0.85rem;
        font-size: 0.82rem;
    }

    .logo-main {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 98%;
        top: 10px;
        border-radius: 30px;
    }
    
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .logo-school {
        width: 38px;
        height: 38px;
        padding: 4px;
        border-radius: 11px;
    }
    
    .logo-divider {
        height: 25px;
        margin: 0 0.3rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 0.9rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .nav-logo {
        gap: 0.3rem;
    }
    
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(43, 92, 255, 0.08);
        border-radius: 12px;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .nav-toggle:hover {
        background: rgba(43, 92, 255, 0.15);
    }
    
    .hamburger {
        width: 20px;
        height: 2px;
    }
    
    .hamburger::before,
    .hamburger::after {
        width: 20px;
        height: 2px;
    }
    
    .hamburger::before { top: -6px; }
    .hamburger::after { top: 6px; }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%) translateY(-150%);
        width: 95%;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 24px;
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        border: 1px solid var(--border);
        transition: all 0.4s var(--ease);
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-menu.active {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0.3rem;
    }
    
    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 0.8rem 1rem;
        border-radius: 12px;
    }
    
    .nav-cta {
        width: 100%;
        text-align: center;
        justify-content: center;
        margin-top: 0.5rem;
        display: block;
    }
    
    /* Mobile dropdown */
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        border: none;
        background: rgba(43, 92, 255, 0.05);
        border-radius: 12px;
        margin-top: 0.5rem;
        padding: 0.5rem;
        width: 100%;
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 0.7rem 1rem;
    }
    
    /* Hero responsive */
    .hero {
        padding-top: 5rem;
    }
    
    .glitch-text {
        font-size: 2.5rem;
    }
    
    .hero-stats-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .section {
        padding: 4rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Grid layouts */
    .features-grid,
    .subjects-grid {
        grid-template-columns: 1fr;
    }
    
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .developer-profile {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }

    .developer-mark {
        width: min(100%, 180px);
        margin: 0 auto;
        font-size: 4rem;
    }

    .developer-desc {
        margin: 0 auto;
    }

    .developer-actions {
        justify-content: center;
    }
    
    /* ===== Activities mobile - Redesigned ===== */
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .activity-block {
        aspect-ratio: auto;
        border-radius: 16px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        min-height: 140px;
        overflow: hidden;
    }
    
    .activity-image {
        position: relative;
        width: 40%;
        min-width: 120px;
        flex-shrink: 0;
    }
    
    .activity-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.8) saturate(0.9);
    }
    
    .activity-overlay {
        display: none;
    }
    
    .activity-hint {
        display: none !important;
    }
    
    /* Show activity-static as always-visible info panel */
    .activity-static {
        position: relative;
        bottom: auto;
        left: auto;
        width: 60%;
        padding: 1rem 1.15rem;
        text-align: left;
        z-index: 2;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;
        background: transparent;
    }
    
    .activity-icon {
        width: 38px;
        height: 38px;
        margin: 0 0 0.25rem 0;
        font-size: 1.1rem;
        background: rgba(43, 92, 255, 0.12);
        border: 1.5px solid var(--primary);
    }
    
    .activity-static h3 {
        font-size: 0.95rem;
        color: var(--text-white);
        margin: 0;
        line-height: 1.4;
        text-shadow: none;
    }
    
    /* Show popup info inline on mobile */
    .activity-popup {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        background: transparent;
        border-radius: 0;
        padding: 0 1.15rem 1rem 1.15rem;
        opacity: 1;
        visibility: visible;
        z-index: 2;
        box-shadow: none;
        border: none;
        backdrop-filter: none;
        display: none;
    }
    
    .activity-block.active .activity-popup {
        display: block;
    }
    
    .activity-popup h3 {
        display: none;
    }
    
    .activity-popup p {
        font-size: 0.8rem;
        color: var(--text-muted);
        line-height: 1.5;
        margin-bottom: 0.25rem;
    }
    
    .popup-tag {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
        margin-bottom: 0.4rem;
    }
    
    .popup-meta {
        gap: 0.75rem;
    }
    
    .popup-meta span {
        font-size: 0.72rem;
    }

    /* Active state for mobile cards */
    .activity-block.active {
        border-color: var(--primary);
        box-shadow: 0 0 20px rgba(43, 92, 255, 0.15);
    }
    
    .activity-block.active .activity-image img {
        filter: brightness(0.7);
    }
    
    /* Disable hover effects on mobile */
    .activity-block:hover {
        transform: none;
    }
    
    .activity-block:hover .activity-static {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none;
    }
    
    .activity-block:hover .activity-image img {
        transform: none;
        filter: brightness(0.8) saturate(0.9);
    }
    
    .activity-block:hover .activity-popup,
    .activity-block:hover .activity-icon {
        transform: none;
    }
    
    .activity-block.active .activity-popup {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

@media (max-width: 480px) {
    .navbar {
        border-radius: 25px;
    }
    
    .logo-school,
    .logo-icon {
        width: 34px;
        height: 34px;
    }

    .logo-icon {
        border-radius: 10px;
        font-size: 0.85rem;
    }
    
    .logo-divider {
        height: 20px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-title .line-1 {
        font-size: 0.95rem;
    }
    
    .hero-desc {
        font-size: 0.95rem;
    }
    
    .typing-container {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .teachers-grid {
        grid-template-columns: 1fr;
    }
    
    .curriculum-tabs {
        flex-direction: column;
        width: 100%;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .stat-box {
        min-width: 80px;
        padding: 0.75rem;
    }
    
    .stat-num {
        font-size: 1.5rem;
    }
    
    /* Activity cards stack vertically on small phones */
    .activity-block {
        flex-direction: column;
        min-height: auto;
    }
    
    .activity-image {
        width: 100%;
        height: 160px;
        min-width: auto;
    }
    
    .activity-static {
        width: 100%;
        padding: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .feature-chip {
        font-size: 0.78rem;
        padding: 0.4rem 0.75rem;
    }
    
    .hero-features {
        gap: 0.5rem;
    }
    
    .hero-stats-row {
        gap: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .nav-link:hover {
        transform: none;
    }
    
    .navbar:hover {
        transform: translateX(-50%);
    }
    
    .feature-card:hover,
    .subject-card:hover,
    .teacher-card:hover {
        transform: none;
    }
    
    .activity-block:hover {
        transform: none;
        z-index: auto;
    }
    
    .activity-block:hover .activity-image img {
        filter: brightness(0.8) saturate(0.9);
        transform: none;
    }
    
    .activity-block:hover .activity-static {
        opacity: 1;
        transform: none;
    }
    
    .activity-block:hover .activity-popup {
        opacity: 0;
        visibility: hidden;
    }
    
    .activity-block:hover .activity-icon {
        transform: none;
    }
    
    .btn-glow:hover,
    .btn-outline:hover,
    .btn-primary:hover {
        transform: none;
    }
    
    .stat-box:hover {
        transform: none;
    }
}