@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Cairo:wght@400;700&display=swap');

:root {
    --primary-blue: #0A2463;
    --gold: #D4AF37;
    --cyber-blue: #00f3ff;
    --neon-green: #39ff14;
    --madrasa-blue: #2A5C82;
    --digi-pink: #ff007f;
    --digi-purple: #7928ca;
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --nav-height: 80px;
}

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

body, html {
    width: 100%; height: 100%;
    overflow: hidden;
    background: #050510;
    color: var(--text-light);
    font-family: 'Outfit', 'Cairo', sans-serif;
}

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

/* ===== LOADER ===== */
#loader {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: #050510; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 1s ease;
}
#loader.hidden { opacity: 0; pointer-events: none; }
.loader-content { text-align: center; }
.loader-logo { width: 150px; margin-bottom: 20px; animation: pulse 2s infinite; }
.spinner {
    width: 40px; height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid var(--gold);
    border-radius: 50%; animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

/* ===== GLASS NAVIGATION ===== */
.glass-nav {
    position: fixed; top: 15px; left: 50%; transform: translateX(-50%);
    width: 92%; max-width: 1200px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 30px;
    background: rgba(5, 5, 16, 0.6);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px; z-index: 1000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.nav-logo { height: 36px; }
.nav-links { list-style: none; display: flex; gap: 8px; }
.nav-links li a {
    color: rgba(255,255,255,0.7); text-decoration: none;
    font-weight: 600; font-size: 13px; text-transform: uppercase;
    letter-spacing: 1px; padding: 8px 16px; border-radius: 20px;
    transition: all 0.3s ease;
}
.nav-links li a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-links li a.active { background: var(--gold); color: var(--primary-blue); }

/* ===== PRESENTATION CONTAINER ===== */
.presentation-container {
    height: 100vh; overflow-y: scroll; overflow-x: hidden;
    scroll-behavior: smooth; scroll-snap-type: y mandatory;
    position: relative; z-index: 2;
}

/* ===== BASE SECTION ===== */
.section {
    min-height: 100vh; width: 100vw;
    position: relative;
    display: flex; justify-content: center; align-items: center;
    scroll-snap-align: start;
    padding-top: calc(var(--nav-height) + 10px);
    padding-bottom: 20px;
    overflow: hidden;
}

.bg-3d {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; z-index: 0;
}
.bg-image {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; top: 0; left: 0;
}
.overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
}

.content-wrapper {
    width: 92%; max-width: 1000px;
    z-index: 10; padding: 20px 30px;
    border-radius: 24px;
    position: relative;
    transform: scale(0.85); /* Reduced scale to ensure fit on laptops */
}

.card-3d {
    background: var(--glass-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    transition: transform 0.4s ease;
}

.content-inner {
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
}
.dual-layout { flex-direction: row; text-align: left; align-items: center; gap: 40px; }
.dual-layout.reverse { flex-direction: row-reverse; }
.text-content, .visual-content { flex: 1; }

/* ===== 3D LOGO EFFECT ===== */
.logo-3d-wrapper {
    perspective: 800px;
    display: inline-block;
    margin-bottom: 15px;
}
.logo-3d {
    width: 100%; height: 100%;
    object-fit: contain;
    transform: rotateY(-10deg) rotateX(5deg);
    animation: logo3dFloat 6s ease-in-out infinite;
    filter: brightness(1.1) contrast(1.1) drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.circular-logo {
    border-radius: 50%;
    overflow: hidden;
    background: white; /* For transparency consistency */
    padding: 5px;
    border: 2px solid rgba(255,255,255,0.2);
}

.circular-logo-small {
    border-radius: 50%;
    overflow: hidden;
    background: white;
    padding: 2px;
}

.logo-3d-wrapper:hover .logo-3d {
    transform: rotateY(25deg) rotateX(10deg) scale(1.1);
    filter: drop-shadow(0 30px 50px rgba(212,175,55,0.3));
}

.main-logo { width: 150px; height: 150px; object-fit: contain; }
.section-logo { height: 70px; width: 70px; object-fit: contain; }

@keyframes logo3dFloat {
    0% { transform: rotateY(-8deg) rotateX(5deg) translateY(0px); }
    50% { transform: rotateY(8deg) rotateX(-5deg) translateY(-12px); }
    100% { transform: rotateY(-8deg) rotateX(5deg) translateY(0px); }
}

/* Section Logo Specific Styling */
.mental-logo-wrap .logo-3d { filter: drop-shadow(0 15px 30px rgba(0,243,255,0.4)); }
.robo-logo-wrap .logo-3d { filter: drop-shadow(0 15px 30px rgba(57,255,20,0.4)); }
.madrasa-logo-wrap .logo-3d { filter: drop-shadow(0 15px 30px rgba(42,92,130,0.4)); }
.digi-logo-wrap .logo-3d { 
    background: rgba(255, 255, 255, 0.9); /* Added white background for visibility */
    border-radius: 50%;
    padding: 2px;
    filter: brightness(1.1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.6)); 
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 10px; letter-spacing: 2px; }
h2 { font-size: 1.6rem; font-weight: 300; margin-bottom: 20px; color: rgba(255,255,255,0.7); }
p.desc, .text-content p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 25px; }
.text-center { text-align: center; }
.mt-2 { margin-top: 15px; }

/* ============================================
   1. BFC THEME
============================================ */
.bfc-gradient {
    background: linear-gradient(135deg, #0A2463 0%, #0d1b3e 40%, #050510 100%);
}
.glitch {
    position: relative; color: white;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}
.glitch::before, .glitch::after {
    content: attr(data-text); position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; opacity: 0.6;
}
.glitch::before { color: var(--cyber-blue); z-index: -1; animation: glitch1 4s infinite alternate; }
.glitch::after { color: var(--gold); z-index: -2; animation: glitch2 3s infinite alternate; }

.subtitle { color: var(--gold); font-weight: 400; }

.stats-container {
    display: flex; justify-content: center; gap: 30px;
    margin-top: 30px; width: 100%; flex-wrap: wrap;
}
.stat-box {
    background: rgba(10,36,99,0.5); padding: 25px 30px;
    border-radius: 20px; border: 1px solid rgba(212,175,55,0.3);
    min-width: 140px; backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
}
.stat-box:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(212,175,55,0.2);
}
.stat-box i { font-size: 1.8rem; color: var(--gold); margin-bottom: 12px; display: block; }
.counter { font-size: 2.8rem; font-weight: 800; }

/* ============================================
   2. MENTAL SPACE THEME
============================================ */
.mental-theme .bg-3d { background: #000a14; }
.digital-grid {
    width: 200%; height: 200%;
    position: absolute; top: -50%; left: -50%;
    background-image:
        linear-gradient(rgba(0,243,255,0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,243,255,0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
}
.gradient-overlay-blue {
    background: radial-gradient(ellipse at center, rgba(0,10,20,0) 0%, rgba(0,10,20,0.95) 70%);
}
.cyber-text {
    color: var(--cyber-blue);
    text-shadow: 0 0 15px var(--cyber-blue), 0 0 30px rgba(0,243,255,0.3);
}
.feature-list { list-style: none; margin-top: 20px; }
.feature-list li {
    font-size: 1.1rem; margin-bottom: 14px;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 15px; border-radius: 10px;
    background: rgba(0,243,255,0.05); border: 1px solid rgba(0,243,255,0.1);
    transition: all 0.3s;
}
.feature-list li:hover {
    background: rgba(0,243,255,0.1);
    transform: translateX(10px);
}
.feature-list i { color: var(--cyber-blue); font-size: 1.2rem; }

.floating-numbers { position: relative; height: 250px; }
.floating-numbers span {
    position: absolute; font-weight: 800;
    color: rgba(0,243,255,0.4);
    animation: floatNum 5s ease-in-out infinite alternate;
    text-shadow: 0 0 20px rgba(0,243,255,0.3);
}
.floating-numbers span:nth-child(1) { top: 10%; left: 20%; font-size: 3rem; animation-delay: 0s; }
.floating-numbers span:nth-child(2) { top: 40%; left: 75%; font-size: 4rem; animation-delay: 1s; }
.floating-numbers span:nth-child(3) { top: 65%; left: 30%; font-size: 2.5rem; animation-delay: 2s; }
.floating-numbers span:nth-child(4) { top: 20%; left: 60%; font-size: 2rem; animation-delay: 1.5s; }
.floating-numbers span:nth-child(5) { top: 55%; left: 10%; font-size: 4.5rem; animation-delay: 0.5s; }

/* Planets Background for Mental Space */
.planets-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; overflow: hidden;
    pointer-events: none;
}
.bg-planet {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.5px);
    opacity: 0.6; /* Increased for better visibility */
    box-shadow: inset -10px -10px 20px rgba(0,0,0,0.6);
}

/* Individual Planet Styles & Varied Animations */
.planet-1 { width: 140px; height: 140px; background: radial-gradient(circle at 30% 30%, #2b82c9, #0a1b3e); top: 10%; left: -5%; animation: floatOrbit1 40s linear infinite; }
.planet-2 { width: 200px; height: 200px; background: radial-gradient(circle at 30% 30%, #e27b58, #4d1505); bottom: 10%; right: -5%; animation: floatOrbit2 50s linear infinite; }
.planet-3 { width: 90px; height: 90px; background: radial-gradient(circle at 30% 30%, #b3e5e5, #1a4a4a); top: 40%; right: 15%; animation: floatOrbit3 30s linear infinite; }
.planet-4 { width: 70px; height: 70px; background: radial-gradient(circle at 30% 30%, #f9d71c, #8a6d00); top: 20%; left: 35%; animation: floatOrbit4 25s linear infinite; }
.planet-5 { width: 110px; height: 110px; background: radial-gradient(circle at 30% 30%, #a5a5a5, #333); bottom: 40%; left: 20%; animation: floatOrbit1 35s linear infinite reverse; }
.planet-6 { 
    width: 150px; height: 150px; background: radial-gradient(circle at 30% 30%, #dfd195, #6e5f1a); 
    top: 60%; left: 10%; animation: floatOrbit2 45s linear infinite reverse;
}
/* Saturn-like ring for planet 6 */
.planet-6::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 160%; height: 25%; border: 4px solid rgba(223, 209, 149, 0.3);
    border-radius: 50%; transform: translate(-50%, -50%) rotate(-25deg);
}
.planet-7 { width: 40px; height: 40px; background: #fff; box-shadow: 0 0 20px #fff; top: 70%; right: 30%; animation: floatOrbit3 20s linear infinite; }
.planet-8 { width: 120px; height: 120px; background: radial-gradient(circle at 30% 30%, #ff4500, #4d0000); top: -5%; right: 40%; animation: floatOrbit4 55s linear infinite reverse; }

@keyframes floatOrbit1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, 30px); }
    50% { transform: translate(100px, -20px) rotate(180deg); }
    75% { transform: translate(50px, -50px); }
    100% { transform: translate(0, 0) rotate(360deg); }
}
@keyframes floatOrbit2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-80px, 40px); }
    66% { transform: translate(40px, 80px) rotate(-120deg); }
    100% { transform: translate(0, 0) rotate(-360deg); }
}
@keyframes floatOrbit3 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-150px, -100px) scale(1.1); }
    100% { transform: translate(0, 0); }
}
@keyframes floatOrbit4 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(200px, 150px) scale(1.2); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Home Background Gallery */
.home-bg-gallery {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; overflow: hidden;
    opacity: 0.7; /* Significantly increased for clarity */
    pointer-events: none;
}
.gallery-track {
    display: flex;
    width: fit-content;
    height: 100%;
    animation: bgScroll 60s linear infinite;
}
.bg-gallery-item {
    min-width: 500px;
    height: 100%;
    background: rgba(255,255,255,0.05);
    margin-right: 2px;
    background-size: cover;
    background-position: center;
}
/* Removed filters for maximum clarity as requested */

@keyframes bgScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
}
.partner-card {
    background: rgba(255,255,255,0.8);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.partner-card:hover { transform: translateY(-5px); }
.partner-logo-box {
    width: 100px; height: 100px;
    display: flex; align-items: center; justify-content: center;
    background: white; border-radius: 12px;
    padding: 10px; box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}
.partner-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.partner-info { text-align: left; }
.partner-info h3 { font-size: 1.1rem; color: var(--primary-blue); margin-bottom: 5px; font-weight: 800; }
.partner-info p { font-size: 0.9rem; color: #666; margin: 0; }

.glass-panel {
    background: rgba(0,243,255,0.05);
    border: 1px solid rgba(0,243,255,0.2);
    padding: 30px; border-radius: 20px; text-align: center;
    box-shadow: inset 0 0 30px rgba(0,243,255,0.05);
    backdrop-filter: blur(10px);
}
.large-icon { font-size: 4rem; color: var(--cyber-blue); margin-bottom: 15px; }

/* Planets System */
.planets-system {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}
.planet-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.planet-level span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cyber-blue);
    letter-spacing: 1px;
}
.planet {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    position: relative;
    box-shadow: inset -5px -5px 10px rgba(0,0,0,0.5), 0 0 10px rgba(0,243,255,0.2);
}
.planet.earth { background: radial-gradient(circle at 30% 30%, #2b82c9, #1a2a6c); }
.planet.mercury { background: radial-gradient(circle at 30% 30%, #a5a5a5, #555); }
.planet.venus { background: radial-gradient(circle at 30% 30%, #e3bb76, #a17438); }
.planet.mars { background: radial-gradient(circle at 30% 30%, #e27b58, #8e3214); }
.planet.jupiter { background: radial-gradient(circle at 30% 30%, #d39c7e, #6e4b3a); }
.planet.saturn { 
    background: radial-gradient(circle at 30% 30%, #dfd195, #a18e48); 
}
.planet.saturn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 140%; height: 20%;
    border: 2px solid rgba(223, 209, 149, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
}
.planet.uranus { background: radial-gradient(circle at 30% 30%, #b3e5e5, #4ca6a6); }
.planet.star1 { background: radial-gradient(circle at 30% 30%, #fff9e6, #f9d71c); box-shadow: 0 0 15px #f9d71c; }
.planet.star2 { background: radial-gradient(circle at 30% 30%, #fff, #ff4500); box-shadow: 0 0 15px #ff4500; }

/* ============================================
   3. ROBO SPACE THEME
============================================ */
.robo-gradient {
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,15,0,0.6) 50%, rgba(0,0,0,0.8) 100%);
}
.circuit-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        radial-gradient(circle, rgba(57,255,20,0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: circuitPulse 4s ease-in-out infinite;
}
.neon-text {
    color: var(--text-light);
    text-shadow: 0 0 15px var(--neon-green), 0 0 40px rgba(57,255,20,0.3);
}
.filter-glow { filter: drop-shadow(0 0 15px var(--neon-green)); }

.levels-container { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.level-badge {
    background: rgba(57,255,20,0.08); border: 1px solid rgba(57,255,20,0.4);
    color: var(--neon-green); padding: 10px 20px; border-radius: 30px;
    font-weight: 600; transition: all 0.3s; display: flex; align-items: center; gap: 8px;
}
.level-badge:hover {
    background: var(--neon-green); color: #000;
    box-shadow: 0 0 20px var(--neon-green);
}
.age-badge {
    margin-top: 20px; font-size: 1.3rem; font-weight: 700;
    color: var(--neon-green);
    display: flex; align-items: center; gap: 10px;
}

.hologram-effect {
    position: relative; width: 280px; height: 350px;
    margin: 0 auto; display: flex; justify-content: center; align-items: center;
}
.hologram-icon {
    font-size: 10rem; color: rgba(57,255,20,0.7);
    filter: drop-shadow(0 0 30px var(--neon-green));
    animation: rotate3d 10s linear infinite;
}
.scan-line {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--neon-green);
    box-shadow: 0 0 30px var(--neon-green);
    animation: scanAnim 3s ease-in-out infinite alternate;
    opacity: 0.6;
}

/* ============================================
   4. MADRASA SPACE THEME
============================================ */
.madrasa-gradient {
    background: linear-gradient(135deg, #e8eef5 0%, #d4e0ed 50%, #c2d1e0 100%);
}
.glass-light {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    color: var(--text-dark);
}
.glass-light h1, .glass-light h2, .glass-light p { color: var(--text-dark); }
.glass-light h2 { color: #555; }
.corporate-text { color: var(--madrasa-blue) !important; }

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

.feature-list-light {
    list-style: none;
    margin-top: 15px;
}

.feature-list-light li {
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #444;
}

.feature-list-light i {
    color: var(--madrasa-blue);
}

.dashboard-mockup {
    width: 100%; height: 260px;
    background: #f4f6f9; border-radius: 16px;
    box-shadow: 0 20px 50px rgba(42,92,130,0.15);
    display: flex; overflow: hidden;
    margin: 20px 0;
    transform: perspective(1000px) rotateX(8deg) rotateY(-5deg);
    transition: transform 0.5s ease;
    border: 1px solid #ddd;
}
.dashboard-mockup:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(0deg) scale(1.03);
}
.dash-sidebar {
    width: 18%; background: var(--madrasa-blue); height: 100%;
    display: flex; flex-direction: column; padding: 15px 8px; gap: 8px;
}
.dash-sidebar-item {
    width: 100%; height: 30px; background: rgba(255,255,255,0.15);
    border-radius: 6px;
}
.dash-sidebar-item.active-item { background: rgba(255,255,255,0.35); }
.dash-main { width: 82%; padding: 15px; display: flex; flex-direction: column; }
.dash-header {
    height: 35px; background: white; border-radius: 8px;
    margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.dash-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; flex: 1; }
.dash-card {
    background: white; border-radius: 12px; padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    transition: transform 0.3s;
}
.dash-card:hover { transform: translateY(-5px); }
.dash-card i { font-size: 1.8rem; color: var(--madrasa-blue); margin-bottom: 8px; }
.dash-card h4 { font-size: 0.9rem; margin-bottom: 4px; color: #333; }
.dash-card p { font-size: 0.75rem; color: #888; }

/* Competition Box */
.competition-box {
    margin-top: 20px;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.competition-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.competition-box p {
    font-size: 0.95rem !important;
    margin-bottom: 0 !important;
    opacity: 0.9;
}

.mental-glow {
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.05);
}

.mental-glow h3 { color: var(--cyber-blue); }

.robo-glow {
    border-color: rgba(57, 255, 20, 0.3);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.05);
}

.robo-glow h3 { color: var(--neon-green); }

/* ============================================
   5. DIGI SPACE THEME
============================================ */
.gradient-mesh {
    background: linear-gradient(-45deg, #ff007f, #7928ca, #00b4d8, #ff007f);
    background-size: 400% 400%;
    animation: gradientFlow 12s ease infinite;
}
.glass-vibrant {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.bg-white-rounded {
    background: white; padding: 8px; border-radius: 12px;
}
.gradient-text-anim {
    background: linear-gradient(90deg, #fff, #ffd700, #ff007f, #fff);
    background-size: 300% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineText 4s linear infinite;
}
.services-grid {
    display: grid; grid-template-columns: repeat(2,1fr);
    gap: 15px; margin-top: 25px;
}
.service-item {
    background: rgba(0,0,0,0.2); padding: 14px 18px;
    border-radius: 12px; display: flex; align-items: center; gap: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s; font-size: 0.95rem;
}
.service-item:hover {
    transform: translateY(-5px); background: rgba(255,255,255,0.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.service-item i { font-size: 1.3rem; }

.floating-mockups {
    position: relative; height: 350px; perspective: 1000px;
}
.mockup {
    position: absolute; background: rgba(255,255,255,0.92);
    border-radius: 16px; display: flex;
    justify-content: center; align-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    color: var(--digi-purple); border: 4px solid #333;
}
.phone {
    width: 110px; height: 220px; top: 10%; left: 10%; z-index: 3;
    font-size: 2.5rem; animation: floatMock 4s ease-in-out infinite alternate;
}
.laptop {
    width: 260px; height: 160px; top: 45%; left: 30%; z-index: 1;
    border-radius: 10px; font-size: 3rem;
    animation: floatMock 4s ease-in-out 1s infinite alternate;
}
.tablet {
    width: 180px; height: 230px; top: 15%; right: 5%; z-index: 2;
    border-radius: 14px; font-size: 2.8rem;
    animation: floatMock 4s ease-in-out 0.5s infinite alternate;
}

/* ===== FOOTER ===== */
.footer-theme {
    min-height: 50vh; background: #050510;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
    width: 140px; margin-bottom: 20px;
    opacity: 0.6; transition: all 0.3s;
}
.footer-logo:hover { opacity: 1; }
.contact-info { margin-top: 20px; font-size: 1.1rem; color: #999; }
.contact-info p { margin: 10px 0; }

/* ============ ANIMATIONS ============ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}
@keyframes glitch1 {
    0% { clip-path: inset(10% 0 80% 0); transform: translate(-3px,-2px); }
    25% { clip-path: inset(80% 0 5% 0); transform: translate(2px,1px); }
    50% { clip-path: inset(30% 0 50% 0); transform: translate(-1px,3px); }
    75% { clip-path: inset(60% 0 20% 0); transform: translate(3px,-1px); }
    100% { clip-path: inset(5% 0 90% 0); transform: translate(-2px,2px); }
}
@keyframes glitch2 {
    0% { clip-path: inset(90% 0 5% 0); transform: translate(2px,2px); }
    33% { clip-path: inset(20% 0 60% 0); transform: translate(-3px,-1px); }
    66% { clip-path: inset(50% 0 30% 0); transform: translate(1px,-3px); }
    100% { clip-path: inset(10% 0 70% 0); transform: translate(-1px,1px); }
}
@keyframes gridMove { 0% { background-position: 0 0; } 100% { background-position: 50px 50px; } }
@keyframes floatNum {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
    100% { transform: translateY(-20px) rotate(5deg); opacity: 0.7; }
}
@keyframes scanAnim { 0% { top: 0; } 100% { top: calc(100% - 4px); } }
@keyframes rotate3d { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(360deg); } }
@keyframes circuitPulse {
    0%,100% { opacity: 0.5; } 50% { opacity: 1; }
}
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes shineText { to { background-position: 300% center; } }
@keyframes floatMock {
    0% { transform: translateY(0) rotate(-2deg); }
    100% { transform: translateY(-18px) rotate(2deg); }
}

/* ===== IMAGE SHOWCASE ===== */
.image-showcase {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}
.image-showcase:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}
.showcase-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.image-caption {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    color: white;
}
.image-caption h3 { font-size: 1.1rem; margin-bottom: 5px; color: var(--cyber-blue); }
.image-caption p { font-size: 0.85rem; margin-bottom: 0; color: #ddd; }

.image-caption-light {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(42,92,130,0.9), rgba(42,92,130,0));
    color: white;
}
.image-caption-light h3 { font-size: 1.1rem; margin-bottom: 5px; color: white; }
.image-caption-light p { font-size: 0.85rem; margin-bottom: 0; color: #eee; }

.mental-image-glow { border-color: rgba(0,243,255,0.3); box-shadow: 0 0 20px rgba(0,243,255,0.15); }
.madrasa-image-glow { border-color: rgba(42,92,130,0.3); box-shadow: 0 0 20px rgba(42,92,130,0.15); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .glass-nav {
        top: auto;
        bottom: 0px; /* Docked to bottom */
        left: 0;
        transform: none;
        width: 100%; /* Full width */
        padding: 5px 0; /* Very thin */
        flex-direction: row;
        border-radius: 15px 15px 0 0; /* Rounded only at top */
        background: rgba(5, 15, 45, 0.95);
        border: none;
        border-top: 1px solid rgba(0, 243, 255, 0.2);
        box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
        backdrop-filter: blur(20px);
    }
    
    .nav-logo { display: none; }
    
    .nav-links {
        display: flex;
        width: 100%;
        justify-content: space-around;
        gap: 0;
        padding: 0;
    }
    
    .nav-links li a {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 0.5rem; /* Ultra small for simplicity */
        padding: 2px;
        gap: 0px;
        border-radius: 0;
        min-width: 40px;
        text-transform: none;
        letter-spacing: 0;
        opacity: 0.7;
    }
    
    .nav-links li a.active {
        opacity: 1;
        color: var(--cyber-blue); /* Theme-consistent color for active tab */
    }
    
    .nav-links li a i { 
        display: block;
        font-size: 1rem; /* Smaller icon */
        margin-bottom: 0px;
    }
    .nav-links li a span {
        display: block;
        font-weight: 500;
    }

    .section {
        padding-top: 10px;
        padding-bottom: 70px; /* Space for bottom nav */
    }

    .content-wrapper {
        padding: 10px;
        transform: scale(0.8); /* Further scale down for mobile */
        width: 98%;
        max-height: 85vh;
        overflow-y: auto; /* Fallback just in case, but goal is no scroll */
    }

    /* Make Home section larger on mobile as requested */
    #intro .content-wrapper {
        transform: scale(0.9);
        width: 100%;
        max-height: 90vh;
    }

    .dual-layout, .dual-layout.reverse {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    h1 { font-size: 1.6rem; margin-bottom: 2px; }
    h2 { font-size: 0.9rem; margin-bottom: 2px; }
    p.desc, .text-content p { font-size: 0.8rem; margin-bottom: 5px; line-height: 1.3; }

    /* Increase Logo Sizes */
    .main-logo { width: 140px; height: 140px; }
    .section-logo { width: 80px; height: 80px; }

    .stats-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 10px;
    }
    .stat-box { min-width: 45%; padding: 10px; }
    .stat-box i { font-size: 1.2rem; margin-bottom: 5px; }
    .counter { font-size: 1.5rem; }
    .stat-box p { font-size: 0.8rem; }

    .feature-list, .feature-list-light { margin-top: 10px; }
    .feature-list li, .feature-list-light li { font-size: 0.85rem; margin-bottom: 5px; }
    
    .competition-box { padding: 12px; margin-top: 15px; }
    .competition-box h3 { font-size: 1rem; margin-bottom: 5px; }
    .competition-box p { font-size: 0.8rem !important; }

    /* Madrasa Mobile Fix */
    .dashboard-mockup { height: 160px; transform: none; }
    .dash-cards { grid-template-columns: 1fr 1fr; gap: 8px; padding: 5px; }
    .dash-card { padding: 5px; }
    .dash-card i { font-size: 1.1rem; margin-bottom: 4px; }
    .dash-card h4 { font-size: 0.75rem; margin-bottom: 0; }
    .dash-card p { display: none; } /* Hide text to fit in frame */

    /* Digi Space Mobile */
    .floating-mockups { height: 180px; }
    .phone { width: 60px; height: 120px; font-size: 1.5rem; }
    .laptop { width: 140px; height: 90px; font-size: 2rem; }
    .tablet { width: 90px; height: 120px; font-size: 1.8rem; }
    
    .services-grid { gap: 10px; margin-top: 15px; }
    .service-item { padding: 8px; font-size: 0.8rem; }

    /* Partners Mobile Fix */
    .partners-grid { grid-template-columns: 1fr; gap: 15px; }
    .partner-card { padding: 15px; gap: 15px; }
    .partner-logo-box { width: 70px; height: 70px; }
    .partner-info h3 { font-size: 1rem; }
    .partner-info p { font-size: 0.8rem; }

    /* Planets Mobile */
    .planets-system {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 15px;
    }
    .planet {
        width: 30px;
        height: 30px;
    }
    .planet-level span {
        font-size: 0.6rem;
    }
}
