/* ========== BASE ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    overflow-x: hidden;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0e1a;
    color: #e2e8f0;
    overflow-x: hidden;
    max-width: 100vw;
}
section[id] {
    scroll-margin-top: 80px;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0e1a; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #3b82f6, #8b5cf6); border-radius: 10px; }

/* ========== GRADIENT TEXT ========== */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-warm {
    background: linear-gradient(135deg, #f43f5e, #f97316, #eab308);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== GLASSMORPHISM ========== */
.glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-hover:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ========== GRADIENT BUTTON ========== */
.btn-gradient {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-gradient:hover::before { opacity: 1; }
.btn-gradient span { position: relative; z-index: 1; }

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}
.btn-outline:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* ========== NAVBAR ========== */
.navbar {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.navbar.scrolled {
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: #3b82f6; }

/* ========== HERO ========== */
.hero-overlay {
    background: linear-gradient(180deg, rgba(10,14,26,0.75) 0%, rgba(10,14,26,0.92) 100%);
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
}

/* ========== FEATURE CARDS ========== */
.feature-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.12);
}
.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 24px;
    transition: transform 0.3s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(5deg); }

/* ========== COURSE CARDS ========== */
.course-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}
.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-accent, #3b82f6), var(--card-accent-end, #8b5cf6));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.course-card:hover::before { opacity: 1; }
.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ========== QUOTES CAROUSEL ========== */
.quote-slide {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quote-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* ========== FLOATING PARTICLES ========== */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    animation: float-particle linear infinite;
    pointer-events: none;
}
@keyframes float-particle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ========== PULSE GLOW ========== */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.4); }
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .mobile-link {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateX(0);
}
.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.17s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.24s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.31s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.38s; }
.mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.45s; }
.mobile-link-hover {
    position: relative;
    overflow: hidden;
}
.mobile-link-hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}
.mobile-link-hover:hover::before {
    transform: scaleY(1);
}

/* ========== SECTION DIVIDER ========== */
.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
    margin: 0 auto;
}

/* ========== FORM INPUTS ========== */
.form-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    color: #e2e8f0;
}
.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: rgba(255, 255, 255, 0.06);
}
.form-input::placeholder { color: rgba(255, 255, 255, 0.3); }
select.form-input { color: #e2e8f0; }
select.form-input option {
    background: #141c38;
    color: #e2e8f0;
    padding: 8px 12px;
}
select.form-input option:disabled {
    color: rgba(255, 255, 255, 0.3);
}

/* ========== COUNTER ANIMATION ========== */
@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== ABOUT IMAGE ========== */
.about-image-wrapper {
    position: relative;
}
.about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    z-index: -1;
    opacity: 0.6;
}
.about-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    z-index: -2;
    filter: blur(20px);
    opacity: 0.3;
}
