/* =========================================
   VARIABLES & SETUP
   ========================================= */
:root {
    --bg-dark: #070b19;
    --bg-darker: #04060e;
    --primary: #5b21b6;
    --primary-light: #8b5cf6;
    --accent-1: #00f0ff;
    --accent-2: #ff00ff;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --whatsapp: #25D366;
    --navbar-bg: rgba(4, 6, 14, 0.85);

    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
    --gradient-neon: linear-gradient(90deg, var(--accent-1), var(--accent-2));

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);

    --neon-glow: 0 0 20px rgba(0, 240, 255, 0.4), 0 0 40px rgba(0, 240, 255, 0.2);
    --purple-glow: 0 0 20px rgba(139, 92, 246, 0.4);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* =========================================
   LIGHT THEME
   ========================================= */
body.light-theme, html.light-theme {
    --bg-dark: #f8fafc;
    --bg-darker: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --navbar-bg: rgba(248, 250, 252, 0.85);
    
    --glass-bg: rgba(15, 23, 42, 0.04);
    --glass-border: rgba(15, 23, 42, 0.08);
    
    --gradient-primary: linear-gradient(135deg, #4f46e5, #6366f1);
    --purple-glow: 0 0 20px rgba(79, 70, 229, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.w-100 { width: 100%; }
.text-white { color: white !important; }

.gradient-text {
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.highlight { position: relative; z-index: 1; }

.highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--primary);
    opacity: 0.25;
    z-index: -1;
    border-radius: 4px;
}

#bgCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.btn-sm { padding: 10px 22px; font-size: 0.875rem; }

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-1);
    color: var(--accent-1);
}

.btn-outline:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-accent {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-accent:hover { background: rgba(56, 189, 248, 0.25); }

.btn-whatsapp {
    background: var(--whatsapp);
    color: white;
}

.btn-whatsapp:hover {
    background: #1ebe57;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.45);
    transform: translateY(-2px);
}

.glow-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--purple-glow);
}

/* =========================================
   GLASS & CARDS
   ========================================= */
.glass-panel, .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.card-3d {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.glow-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.35);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

section { padding: 90px 5%; position: relative; }

.section-header { margin-bottom: 50px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 12px; }
.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
}

/* =========================================
   POPUP & WHATSAPP FLOAT
   ========================================= */
.admission-popup, .privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}

.admission-popup.active, .privacy-modal.active {
    opacity: 1;
    visibility: visible;
}

.popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(4px);
}

.popup-content {
    position: relative;
    max-width: 420px;
    width: 90%;
    padding: 40px 32px;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s;
}

.admission-popup.active .popup-content,
.privacy-modal.active .popup-content {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: var(--text-muted);
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.popup-close:hover { background: rgba(255,255,255,0.15); color: white; }

.popup-icon { font-size: 3rem; margin-bottom: 12px; }

.popup-content h3 { font-size: 1.4rem; margin-bottom: 12px; }
.popup-content p { color: var(--text-muted); margin-bottom: 24px; }

.popup-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.privacy-content { max-width: 520px; text-align: left; }
.privacy-content p { margin-bottom: 12px; color: var(--text-muted); }


.modal-box {
    position: relative;
    max-width: 520px;
    width: 100%;
    padding: 34px 30px;
    text-align: left;
}

.modal-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.modal-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    font-size: 1.6rem;
}

.modal-body ul {
    margin: 20px 0;
    padding-left: 20px;
    color: var(--text-muted);
    gap: 10px;
    display: grid;
}

.modal-body li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
    justify-content: flex-start;
}

.modal-actions .btn {
    min-width: 170px;
}

.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px; height: 58px;
    background: var(--whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    right: 68px;
    background: var(--bg-darker);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    border: 1px solid var(--glass-border);
}

.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--navbar-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 5%;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    font-weight: 800;
}

.logo-sub { font-weight: 300; margin-left: 4px; }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a:not(.btn) { font-weight: 500; font-size: 0.95rem; }
.nav-links a:not(.btn):hover {
    color: var(--accent-1);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.nav-btn { padding: 10px 22px; }

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: rotate(30deg) scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--purple-glow);
}

body.light-theme .theme-toggle-btn {
    background: rgba(15, 23, 42, 0.05);
    color: #f59e0b;
}

body.light-theme .theme-toggle-btn:hover {
    background: rgba(15, 23, 42, 0.1);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.4rem;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--bg-darker);
    border-left: 1px solid var(--glass-border);
    z-index: 1001;
    padding: 80px 28px;
    transition: right 0.4s ease;
}

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

.close-menu {
    position: absolute;
    top: 22px; right: 24px;
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
}

.mobile-menu ul { display: flex; flex-direction: column; gap: 22px; }
.mobile-menu a { font-size: 1.1rem; font-weight: 600; }

/* =========================================
   HERO
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 10;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stats .stat-num {
    display: block;
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary-light);
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.relative-sec { position: relative; }

.hero-3d-visual {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-3d-illustration {
    position: relative;
    z-index: 5;
    animation: float 6s ease-in-out infinite;
}

.code-editor {
    width: 400px;
    height: 250px;
    padding: 0;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    box-shadow: 20px 20px 50px rgba(0,0,0,0.5), inset 0 0 0 1px var(--glass-border);
}

.editor-header {
    background: rgba(0,0,0,0.4);
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #ff5f56; }
.dot.y { background: #ffbd2e; }
.dot.g { background: #27c93f; }

.editor-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.keyword { color: #ff7b72; }
.variable { color: #79c0ff; }
.method { color: #d2a8ff; }
.comment { color: #8b949e; font-style: italic; }

.glass-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    z-index: 1;
}

.orb-1 { width: 280px; height: 280px; background: rgba(37, 99, 235, 0.35); top: 40px; right: 40px; }
.orb-2 { width: 180px; height: 180px; background: rgba(56, 189, 248, 0.25); bottom: 40px; left: 30px; }

.floating-icon {
    position: absolute;
    font-size: 2.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    width: 70px; height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
}

.tech-icon-1 { top: 15%; left: 5%; color: #3776AB; animation: float 5s ease-in-out infinite alternate; }
.tech-icon-2 { bottom: 25%; right: 5%; color: #f89820; animation: float 7s ease-in-out infinite alternate-reverse; }
.tech-icon-3 { top: 55%; left: 0; color: #61dafb; animation: float 6s ease-in-out infinite alternate; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

/* Stats strip — matches original hero-stat style */
.stats-strip {
    padding: 0 5% 60px;
    margin-top: -30px;
    position: relative;
    z-index: 5;
}

.stats-strip-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 28px 40px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
}

.stat-block {
    text-align: center;
    min-width: 120px;
}

.stat-counter {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary-light);
}

.stat-plus {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-1);
}

.stat-block .stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* =========================================
   ABOUT
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
}

.feature-card:hover { box-shadow: var(--shadow-glow); }

.icon-wrap {
    width: 72px; height: 72px;
    margin: 0 auto 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.bg-gradient-1 { background: linear-gradient(135deg, #2563EB, #38BDF8); }
.bg-gradient-2 { background: linear-gradient(135deg, #0EA5E9, #22D3EE); }
.bg-gradient-3 { background: linear-gradient(135deg, #6366F1, #818CF8); }
.bg-gradient-4 { background: linear-gradient(135deg, #3B82F6, #60A5FA); }

.feature-card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; }

/* =========================================
   COURSE CARDS
   ========================================= */
.course-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto 70px;
}

.course-card {
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(37, 99, 235, 0.35);
}

.course-img-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.course-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: var(--bg-darker);
}

.course-img-wrap img[src=""],
.gallery-item img[src=""] {
    min-height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
}

.course-card:hover .course-img-wrap img { transform: scale(1.08); }

.course-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-ai { background: linear-gradient(135deg, #8B5CF6, #EC4899); }

.course-body { padding: 22px; }

.course-body h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-duration {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.course-features {
    margin-bottom: 18px;
}

.course-features li {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 4px 0 4px 18px;
    position: relative;
}

.course-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Technology catalog */
.technology-catalog .tech-grid,
.course-offerings .course-cards-grid,
.top-courses .top-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-card,
.course-card,
.top-course-card {
    padding: 28px 22px;
    cursor: pointer;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.tech-card:hover,
.course-card:hover,
.top-course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(37, 99, 235, 0.25);
}

.tech-icon,
.course-body h3 i {
    font-size: 2.3rem;
    color: var(--accent-1);
}

.tech-card h4,
.course-card h3,
.top-course-card h3 {
    margin: 18px 0 10px;
    font-size: 1.25rem;
}

.tech-card p,
.top-course-card p,
.course-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.course-card .course-duration {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
}

.info-modal,
.privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.info-modal.active,
.privacy-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    position: relative;
    width: min(640px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    text-align: left;
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.info-modal.active .modal-box {
    transform: translateY(0);
}

.modal-head {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
}

.modal-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-1);
    font-size: 1.65rem;
}

.modal-body ul {
    list-style: disc inside;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.modal-body li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.modal-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(6px);
}

.popup-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
}

/* Featured courses transition */
.featured-courses-section {
    text-align: center;
    padding: 50px 0;
    margin-top: 30px;
}

.featured-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.featured-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.premium-divider {
    text-align: center;
    padding: 40px 0;
    margin: 40px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.premium-divider h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--primary-light);
}

.premium-divider p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        padding-top: 140px;
    }

    .hero-3d-visual { height: 480px; }
}

@media (max-width: 680px) {
    .hero-title { font-size: 2.6rem; }
    .hero-buttons { flex-direction: column; gap: 14px; }
    .top-course-card,
    .course-card,
    .tech-card { min-height: auto; }
}

/* Program path */
.program-path { margin-top: 40px; }
.program-path-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--text-muted);
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 50px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--glass-border);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 16px 36px;
}

.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }

.timeline-dot {
    position: absolute;
    width: 18px; height: 18px;
    background: var(--primary-light);
    border-radius: 50%;
    top: 40px;
    box-shadow: var(--shadow-glow);
}

.timeline-item.left .timeline-dot { right: -9px; }
.timeline-item.right .timeline-dot { left: -9px; }

.month-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.timeline-content { padding: 28px; }
.timeline-content h4 { font-size: 1.4rem; margin-bottom: 10px; }
.timeline-content p { color: var(--text-muted); margin-bottom: 14px; }

.price-tag {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 8px;
    font-weight: 600;
    color: var(--accent);
}

.course-path-anim {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 18px 36px;
    max-width: 800px;
    margin: 0 auto;
}

.path-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.path-step:hover .step-icon,
.highlight-step .step-icon {
    background: var(--primary);
    box-shadow: var(--purple-glow);
    transform: scale(1.1);
}

.path-arrow { color: var(--text-muted); font-size: 1.2rem; }

.glow-box { box-shadow: var(--purple-glow); }

.tech-tracks { margin-top: 70px; text-align: center; }
.tech-tracks-title { font-size: 1.6rem; margin-bottom: 10px; }
.tech-tracks-desc { color: var(--text-muted); margin-bottom: 36px; }
.tech-tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.tech-track {
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.tech-track:hover { transform: translateY(-6px); box-shadow: var(--purple-glow); }
.tech-track i { font-size: 2.5rem; margin-bottom: 14px; display: block; }
.tech-track h4 { font-size: 1rem; margin-bottom: 6px; }
.tech-track span { font-size: 0.8rem; color: var(--accent-1); display: block; margin-bottom: 12px; }
.track-link { font-size: 0.85rem; color: var(--primary-light); font-weight: 600; }
.track-link:hover { color: var(--accent-1); }
.tech-react { color: #61dafb; }
.tech-spring { color: #6db33f; }
.tech-ai { color: #c084fc; }
.tech-web { color: var(--accent-1); }
.tech-data { color: #f472b6; }
.tech-sql { color: #38bdf8; }

.gallery-scene-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.gallery-scene { text-align: center; padding: 0 0 24px; overflow: hidden; }
.scene-visual {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 16px;
    color: white;
}
.scene-1 { background: linear-gradient(135deg, #5b21b6, #8b5cf6); }
.scene-2 { background: linear-gradient(135deg, #0891b2, #00f0ff); }
.scene-3 { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.scene-4 { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.scene-5 { background: linear-gradient(135deg, #059669, #34d399); }
.scene-6 { background: linear-gradient(135deg, #d97706, #fbbf24); }
.scene-7 { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.scene-8 { background: linear-gradient(135deg, #be185d, #f472b6); }
.gallery-scene h4 { margin-bottom: 6px; font-size: 1.05rem; }
.gallery-scene p { color: var(--text-muted); font-size: 0.88rem; padding: 0 16px; }
.gallery-scene:hover { box-shadow: var(--purple-glow); }

.contact-section { padding-bottom: 60px; }
.contact-row {
    display: flex;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto 40px;
    flex-wrap: wrap;
}
.contact-details { flex: 1; min-width: 260px; padding: 32px; }
.contact-form { flex: 1.2; min-width: 280px; padding: 32px; }
.map-wrap {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}
.map-wrap iframe { display: block; }
.privacy-box { max-width: 480px; text-align: left; }
.privacy-box p { color: var(--text-muted); margin-top: 10px; }
.popup-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

section { padding: 100px 5%; position: relative; }

/* =========================================
   WHY US
   ========================================= */
.why-us { background: var(--bg-darker); }

.bg-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70%; height: 70%;
    background: radial-gradient(circle, rgba(91, 33, 182, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.why-card {
    text-align: center;
    padding: 32px 18px;
}

.why-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.icon-3d {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-1);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    transition: transform 0.3s;
}

.why-card:hover .icon-3d { transform: scale(1.15); }

.why-card h4 { font-size: 1.05rem; }

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

.testimonial-card {
    position: relative;
    padding-top: 40px;
}

.quote-icon {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 3rem;
    color: rgba(255,255,255,0.05);
}

.stars { color: #FFD700; margin-bottom: 15px; }

.review-text {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.avatar {
    width: 50px; height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

/* =========================================
   PAGE SWITCHING (SPA STYLE)
   ========================================= */
section {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Hide all sections except on full page view */
body.page-view section {
    display: none !important;
    opacity: 0;
    visibility: hidden;
}

body.page-view section.active-page {
    display: block !important;
    opacity: 1;
    visibility: visible;
    min-height: calc(100vh - 140px);
    padding: 140px 20px 40px !important;
    margin: 0 !important;
}

/* Ensure content in page-view sections is visible */
body.page-view section.active-page * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* When in page-view mode, fix navbar at top */
body.page-view #navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: var(--navbar-bg);
}

/* Add padding to body when navbar is fixed to prevent content overlap */
body.page-view {
    padding-top: 120px;
    background: var(--bg-dark);
}

/* Hide section headers in page-view mode for clean layout */
body.page-view .section-header {
    display: none !important;
}

/* Hide mobile menu in page-view mode */
body.page-view .mobile-menu {
    display: none !important;
}

#navbar {
    position: relative;
    z-index: 1000;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.page-header button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.page-header button:hover {
    background: var(--primary-light);
    transform: scale(1.1);
    box-shadow: var(--purple-glow);
}

.page-header h1 {
    font-size: 2.5rem;
    margin: 0;
}

.page-content {
    padding: 0 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.info h4 { margin: 0; font-size: 1.1rem; }
.info span { font-size: 0.85rem; color: var(--text-muted); }

/* =========================================
   REGISTRATION (original)
   ========================================= */
.enroll-container {
    display: flex;
    gap: 40px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

.form-wrapper { flex: 3; }

.payment-wrapper {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.form-title {
    font-size: 2rem;
    margin-bottom: 25px;
    font-family: var(--font-heading);
}

.form-group { position: relative; margin-bottom: 20px; }

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

input, select {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

input:focus, select:focus {
    border-color: var(--primary-light);
    box-shadow: inset 0 0 10px rgba(139, 92, 246, 0.2);
}

select option { background: var(--bg-dark); color: white; }

.submit-btn { font-size: 1.1rem; padding: 16px; margin-top: 10px; }

.form-message { margin-top: 15px; text-align: center; font-weight: 500; }
.msg-success { color: #27c93f; }

.payment-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.payment-icon {
    font-size: 4rem;
    color: #25D366;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite both;
}

@keyframes heartbeat {
    from { transform: scale(1); }
    10% { transform: scale(1.1); }
    17% { transform: scale(0.98); }
    33% { transform: scale(1.1); }
    45% { transform: scale(1); }
}

.hover-glow:hover { box-shadow: var(--purple-glow); }

/* =========================================
   FOOTER (original)
   ========================================= */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    padding-top: 80px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 60px;
}

.footer-col { flex: 1; min-width: 250px; }
.footer-col h3 { font-size: 1.3rem; margin-bottom: 25px; color: white; }

.social-btn {
    display: inline-flex;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--purple-glow);
}

.links-col ul li { margin-bottom: 15px; }
.links-col ul li a { color: var(--text-muted); }
.links-col ul li a:hover { color: var(--accent-1); margin-left: 5px; }

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.c-icon {
    color: var(--primary-light);
    font-size: 1.2rem;
    margin-top: 2px;
}

.hover-neon:hover { color: var(--accent-1) !important; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    text-align: center;
    padding: 25px;
    background: rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom a { color: var(--accent-1); }

.gs-reveal { opacity: 0; transform: translateY(40px); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; padding-top: 120px; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-3d-visual { min-height: 320px; width: 100%; }
    .stats-strip-inner { flex-direction: column; align-items: center; }
    .enroll-container, .contact-row { flex-direction: column; }
}

@media (max-width: 768px) {
    .nav-links, .navbar .btn { display: none; }
    .hamburger { display: block; }

    .hero { flex-direction: column; text-align: center; padding-top: 150px; }
    .hero-content { margin-bottom: 50px; }
    .hero-stats { justify-content: center; gap: 20px; }

    .timeline-line { left: 30px; }
    .timeline-item { width: 100%; left: 0 !important; padding-left: 60px; }
    .timeline-item .timeline-dot { left: 15px !important; right: auto !important; }

    .course-path-anim { flex-direction: column; gap: 20px; }
    .path-arrow { transform: rotate(90deg); }

    .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.5rem; }
    .hero-stats { flex-direction: column; gap: 15px; }
    .code-editor { width: 300px; height: 200px; }
    section { padding: 80px 5%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
