/* ============================================
   FABLAB JATHROPHA - STYLES
   Laboratoire Robotique & IoT
   Conakry, Republique de Guinee
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #0d0d2b;
    --bg-card: rgba(15, 15, 40, 0.7);
    --glass-border: rgba(0, 229, 255, 0.15);
    --cyan: #00E5FF;
    --purple: #7B2FFF;
    --orange: #FF6B35;
    --green: #00E676;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --gradient-main: linear-gradient(135deg, var(--cyan), var(--purple));
    --gradient-warm: linear-gradient(135deg, var(--orange), var(--purple));
    --shadow-glow: 0 0 30px rgba(0, 229, 255, 0.2);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

::selection {
    background: rgba(0, 229, 255, 0.3);
    color: #fff;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader { text-align: center; }

.circuit-line {
    width: 60px;
    height: 2px;
    background: var(--gradient-main);
    margin: 8px auto;
    animation: circuitPulse 1.5s ease-in-out infinite;
}

.circuit-line:nth-child(2) { animation-delay: 0.3s; width: 80px; }
.circuit-line:nth-child(3) { animation-delay: 0.6s; width: 40px; }

.loader-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--cyan);
    letter-spacing: 4px;
    margin-top: 20px;
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes circuitPulse {
    0%, 100% { opacity: 0.3; transform: scaleX(0.5); }
    50% { opacity: 1; transform: scaleX(1); }
}

@keyframes textGlow {
    0%, 100% { opacity: 0.5; text-shadow: none; }
    50% { opacity: 1; text-shadow: 0 0 20px rgba(0, 229, 255, 0.5); }
}

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

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

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

.glass-card:hover {
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.glass-card-static {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* --- Section Styles --- */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section:first-of-type {
    padding-top: 120px;
}

.section-bg-element {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(123, 47, 255, 0.08), transparent 70%);
    pointer-events: none;
}

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

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--cyan);
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line {
    width: 60px; height: 3px;
    background: var(--gradient-main);
    margin: 16px auto;
    border-radius: 2px;
}

.section-desc {
    max-width: 600px;
    margin: 12px auto 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* --- Page Hero Banner (sub-pages) --- */
.page-hero {
    padding: 160px 0 80px;
    position: relative;
    z-index: 1;
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 229, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--cyan);
    display: block;
    margin-bottom: 16px;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.page-hero-desc {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 0.82rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover { color: var(--cyan); }

.breadcrumb span { color: var(--cyan); }

.breadcrumb .sep { color: var(--text-muted); margin: 0 2px; }

/* --- Navbar --- */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 10, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Always solid on sub-pages */
body.sub-page #navbar {
    background: rgba(10, 10, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.logo-svg { width: 40px; height: 40px; }

.logo-text {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 3px;
    line-height: 1.2;
}

.logo-accent {
    color: var(--cyan);
    font-size: 0.85rem;
    font-weight: 800;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-nav-cta {
    padding: 10px 24px;
    background: var(--gradient-main);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 10px;
    transition: var(--transition);
}

.btn-nav-cta:hover {
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

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

.hamburger span {
    width: 24px; height: 2px;
    background: #fff;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 10, 26, 0.98);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.active { opacity: 1; visibility: visible; }

.mobile-nav-links { list-style: none; text-align: center; }
.mobile-nav-links li { margin: 12px 0; }

.mobile-link {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}
.mobile-link:hover { color: var(--cyan); }

.btn-mobile-cta {
    padding: 14px 32px;
    background: var(--gradient-main);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
}

/* --- Hero (Home) --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 60px;
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto;
    gap: 60px;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--cyan);
    margin-bottom: 24px;
    font-family: var(--font-mono);
}

.badge-dot {
    width: 8px; height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(0, 229, 255, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
}

.title-line { display: block; }

.title-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-cta-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient-main);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

.btn-glow { animation: btnGlow 3s ease-in-out infinite; }

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 229, 255, 0.2); }
    50% { box-shadow: 0 0 30px rgba(0, 229, 255, 0.4); }
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.05);
}

.btn-large { padding: 16px 36px; font-size: 1rem; }

.hero-stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }

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

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--cyan);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-visual { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; }

.robot-illustration { position: relative; width: 400px; height: 400px; }

.circuit-board { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

.circuit-svg {
    width: 100%; height: 100%;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.3));
}

.pulse-circuit { animation: circuitPulseAnim 3s ease-in-out infinite; }

@keyframes circuitPulseAnim {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.trace-anim {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: traceDraw 3s ease-in-out infinite;
}

.trace-anim.delay-1 { animation-delay: 0.5s; }
.trace-anim.delay-2 { animation-delay: 1s; }
.trace-anim.delay-3 { animation-delay: 1.5s; }

@keyframes traceDraw {
    0% { stroke-dashoffset: 200; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -200; }
}

.node-pulse { animation: nodePulse 2s ease-in-out infinite; }
.node-pulse.delay-1 { animation-delay: 0.5s; }
.node-pulse.delay-2 { animation-delay: 1s; }
.node-pulse.delay-3 { animation-delay: 1.5s; }

@keyframes nodePulse {
    0%, 100% { r: 5; opacity: 0.7; }
    50% { r: 7; opacity: 1; }
}

.floating-elements {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

.float-el {
    position: absolute;
    color: rgba(0, 229, 255, 0.4);
    font-size: 1.5rem;
    animation: floatAnim 6s ease-in-out infinite;
}

.el-1 { top: 5%; left: 10%; animation-delay: 0s; color: var(--cyan); }
.el-2 { top: 10%; right: 15%; animation-delay: 1s; color: var(--purple); }
.el-3 { bottom: 15%; left: 5%; animation-delay: 2s; color: var(--orange); }
.el-4 { bottom: 10%; right: 10%; animation-delay: 3s; color: var(--cyan); }
.el-5 { top: 50%; left: 0%; animation-delay: 4s; color: var(--purple); }

@keyframes floatAnim {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
    50% { transform: translateY(-15px) rotate(10deg); opacity: 0.8; }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: scrollBounce 2s ease-in-out infinite;
}

.mouse {
    width: 24px; height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin: 0 auto 8px;
    position: relative;
}

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

.scroll-indicator span {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-family: var(--font-mono);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 22px; opacity: 0; }
}

/* --- Home Quick Sections --- */
.home-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-quick-card {
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-quick-icon {
    font-size: 2rem;
    color: var(--cyan);
    margin-bottom: 16px;
}

.home-quick-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 8px;
}

.home-quick-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.home-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cyan);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.home-quick-link:hover {
    gap: 10px;
}

.home-quick-link i {
    font-size: 0.7rem;
    transition: var(--transition);
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

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

.about-icon {
    width: 64px; height: 64px;
    background: var(--gradient-main);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--cyan);
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.about-story {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    padding: 40px;
    align-items: center;
}

.about-story h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--cyan);
}

.about-story p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

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

.value-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
}

.value-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 10px;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.timeline-mini {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 20px;
    border-left: 2px solid rgba(0, 229, 255, 0.2);
}

.tl-item {
    position: relative;
    padding: 8px 0 8px 20px;
}

.tl-item::before {
    content: '';
    position: absolute;
    left: -26px; top: 14px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.3);
    border: 2px solid var(--cyan);
}

.tl-item.active::before {
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.tl-year {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--cyan);
    display: block;
}

.tl-text { color: var(--text-secondary); font-size: 0.85rem; }

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.service-icon-wrap {
    width: 56px; height: 56px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--cyan);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.service-features { list-style: none; }

.service-features li {
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li i { color: var(--green); font-size: 0.7rem; }

.service-glow {
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.08), transparent 70%);
    pointer-events: none;
}

/* --- Formations --- */
.formations-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 12px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.tab-btn:hover, .tab-btn.active {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--cyan);
    color: var(--cyan);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease; }

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

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

.track-level {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 28px;
    transition: var(--transition);
}

.track-level:hover {
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-4px);
}

.level-badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 12px;
}

.level-badge.beginner { background: rgba(0, 230, 118, 0.15); color: var(--green); border: 1px solid rgba(0, 230, 118, 0.3); }
.level-badge.intermediate { background: rgba(0, 229, 255, 0.15); color: var(--cyan); border: 1px solid rgba(0, 229, 255, 0.3); }
.level-badge.advanced { background: rgba(123, 47, 255, 0.15); color: var(--purple); border: 1px solid rgba(123, 47, 255, 0.3); }

.track-level h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 10px;
}

.track-level p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.level-details { display: flex; gap: 16px; flex-wrap: wrap; }

.level-details span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.level-details span i { color: var(--cyan); font-size: 0.7rem; }

/* --- School Packages --- */
.school-packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.package-card {
    padding: 32px;
    position: relative;
    text-align: center;
}

.package-card.featured {
    border-color: var(--cyan);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.15);
    transform: scale(1.03);
}

.package-popular {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-main);
    color: #fff;
    padding: 4px 20px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.package-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(123, 47, 255, 0.15);
    border: 1px solid rgba(123, 47, 255, 0.3);
    border-radius: 8px;
    color: var(--purple);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.package-icon { font-size: 2rem; color: var(--cyan); margin-bottom: 12px; }

.package-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.highlight { color: var(--cyan); }

.package-price { margin: 16px 0; }

.package-price .currency {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.package-price .amount {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--cyan);
}

.package-list { list-style: none; text-align: left; margin: 16px 0; }

.package-list li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.package-list li i { color: var(--green); margin-top: 3px; }

.package-note {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-style: italic;
    margin-bottom: 20px;
}

.btn-package {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 12px;
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-package:hover {
    background: var(--gradient-main);
    color: #fff;
    border-color: transparent;
}

.btn-featured { background: var(--gradient-main); color: #fff; border-color: transparent; }

.school-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 24px;
    background: rgba(0, 229, 255, 0.03);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 12px;
}

.sf-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sf-item i { color: var(--cyan); }

/* --- Projects --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card { overflow: hidden; }

.project-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon-big { font-size: 2.5rem; color: rgba(0, 229, 255, 0.6); }

.project-content { padding: 24px; }

.project-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.project-tag.green { background: rgba(0, 230, 118, 0.15); color: var(--green); }
.project-tag.purple { background: rgba(123, 47, 255, 0.15); color: var(--purple); }
.project-tag.orange { background: rgba(255, 107, 53, 0.15); color: var(--orange); }
.project-tag.cyan { background: rgba(0, 229, 255, 0.15); color: var(--cyan); }

.project-content h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 8px;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 16px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-item.large { grid-column: span 2; }

.gallery-overlay {
    text-align: center;
    opacity: 0.6;
    transition: var(--transition);
}

.gallery-overlay i { color: rgba(0, 229, 255, 0.5); margin-bottom: 8px; }
.gallery-overlay p { color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; font-family: var(--font-display); }

.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay i { color: var(--cyan); }
.gallery-item:hover .gallery-overlay p { color: #fff; }

/* --- Partners --- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.partner-card { padding: 28px; text-align: center; }

.partner-card i { font-size: 2rem; color: var(--cyan); margin-bottom: 12px; }

.partner-card h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.partner-card p { color: var(--text-muted); font-size: 0.8rem; }

/* --- CTA --- */
.cta-section { padding: 80px 0; }

.cta-box {
    display: flex;
    align-items: center;
    padding: 48px;
    gap: 40px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), rgba(123, 47, 255, 0.05));
}

.cta-content { flex: 1; }

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.cta-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.cta-decoration { flex-shrink: 0; width: 200px; height: 200px; }

.cta-circuit {
    width: 100%; height: 100%;
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pulse-dot { animation: pulseDot 2s ease-in-out infinite; }

@keyframes pulseDot {
    0%, 100% { r: 3; opacity: 0.6; }
    50% { r: 5; opacity: 1; }
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
}

.contact-info { padding: 36px; }

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--cyan);
}

.info-item { display: flex; gap: 16px; margin-bottom: 20px; }

.info-item i { color: var(--cyan); font-size: 1.1rem; margin-top: 4px; }

.info-item strong { display: block; margin-bottom: 4px; font-size: 0.9rem; }

.info-item p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; }

.social-links { display: flex; gap: 10px; margin-top: 24px; }

.social-btn {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--gradient-main);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
}

.contact-form { padding: 36px; }

.contact-form h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--cyan);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group { display: flex; flex-direction: column; }

.form-group.full { margin-bottom: 16px; }

.form-group label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.form-group select option { background: var(--bg-secondary); color: #fff; }

.form-group textarea { resize: vertical; }

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--gradient-main);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

/* --- Map placeholder --- */
.map-container {
    margin-top: 48px;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
}

.map-container .map-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.map-container .map-placeholder i {
    font-size: 3rem;
    color: rgba(0, 229, 255, 0.3);
    margin-bottom: 12px;
    display: block;
}

.map-container .map-placeholder p {
    font-size: 0.9rem;
}

/* --- Footer --- */
.footer {
    padding: 60px 0 24px;
    background: rgba(5, 5, 20, 0.95);
    border-top: 1px solid rgba(0, 229, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.logo-svg-sm { width: 32px; height: 32px; }

.footer-logo span {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--cyan);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-social { display: flex; gap: 10px; }

.footer-social a {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover { color: var(--cyan); background: rgba(0, 229, 255, 0.1); }

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    margin-bottom: 16px;
    color: var(--cyan);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--cyan); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p { color: var(--text-muted); font-size: 0.78rem; }

.footer-flags { display: flex; gap: 16px; }

.footer-flags span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    background: var(--gradient-main);
    border: none;
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
    font-size: 1rem;
}

.back-to-top.visible { opacity: 1; visibility: visible; }

.back-to-top:hover {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    transform: translateY(-4px);
}

/* --- Reveal Animations --- */
.reveal-left, .reveal-right, .reveal-up {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-up { transform: translateY(30px); }

.reveal-left.revealed, .reveal-right.revealed, .reveal-up.revealed {
    opacity: 1;
    transform: translate(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .hero { flex-direction: column; text-align: center; padding-top: 100px; }
    .hero-visual { display: none; }
    .hero-stats { justify-content: center; }
    .hero-cta-group { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; }
    .about-story { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .home-quick-grid { grid-template-columns: 1fr; }
    .formation-track { grid-template-columns: 1fr; }
    .school-packages { grid-template-columns: 1fr; }
    .package-card.featured { transform: none; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-box { flex-direction: column; text-align: center; }
    .cta-decoration { display: none; }
    .cta-buttons { justify-content: center; }
}

@media (max-width: 640px) {
    .hero-title { font-size: 2rem; }
    .hero-badge { font-size: 0.7rem; }
    .hero-stats { gap: 16px; }
    .stat-number { font-size: 1.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.large { grid-column: span 1; }
    .partners-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .school-features { flex-direction: column; align-items: center; }
    .tab-btn { padding: 10px 16px; font-size: 0.8rem; }
    .page-hero { padding: 130px 0 60px; }
    .page-hero-title { font-size: 1.8rem; }
}