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

:root {
    /* 2026 Dark Futuristic Palette */
    --bg-dark: #020617; /* Very deep slate/black */
    --primary: #3b82f6; /* Electric Blue */
    --primary-glow: rgba(59, 130, 246, 0.6);
    --secondary: #8b5cf6; /* Neon Purple */
    --accent: #10b981; /* Cyan/Emerald */
    
    /* Text */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.cursor-dot {
    width: 10px; height: 10px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}
.cursor-outline {
    width: 40px; height: 40px;
    border: 2px solid var(--primary-glow);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s, border-color 0.2s;
}
.cursor-outline.hover {
    width: 70px; height: 70px;
    background: rgba(59, 130, 246, 0.1);
    border-color: transparent;
}

/* Background Aurora Effects */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}
.aurora {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; overflow: hidden;
    filter: blur(100px);
    opacity: 0.5;
}
.blob {
    position: absolute; border-radius: 50%;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.blob-1 { width: 50vw; height: 50vw; background: var(--primary); top: -20%; left: -20%; }
.blob-2 { width: 40vw; height: 40vw; background: var(--secondary); bottom: -20%; right: -20%; animation-delay: -5s; }
.blob-3 { width: 30vw; height: 30vw; background: #06b6d4; top: 40%; left: 30%; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.3); }
}

/* General Typography & Utilities */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #c084fc, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.container { max-width: 1300px; margin: 0 auto; padding: 0 5%; position: relative; z-index: 2; }
.section { padding: 120px 0; }
.section-title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; margin-bottom: 70px; letter-spacing: -1px; }

/* Navigation */
.glass-nav {
    position: fixed; top: 30px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1100px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 12px 30px;
    z-index: 1002;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.site-logo { height: 45px; object-fit: contain; }
.nav-links { display: flex; gap: 40px; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 700; font-size: 1.1rem; position: relative; }
.nav-links a::after {
    content:''; position: absolute; bottom:-8px; right:0; width:0%; height:3px;
    background: var(--primary); transition: width 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
}
.nav-links a:hover::after { width: 100%; }
.btn-glow {
    background: var(--primary); color: white; padding: 12px 30px; border-radius: 30px;
    text-decoration: none; font-weight: 800; box-shadow: 0 0 20px var(--primary-glow);
    transition: 0.4s; font-size: 1.1rem; border: 1px solid rgba(255,255,255,0.2);
}
.btn-glow:hover { box-shadow: 0 0 40px var(--primary-glow), 0 0 10px white; background: white; color: var(--primary); }

/* Hero Section */
.hero {
    height: 100vh; min-height: 800px; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; z-index: 2; padding-top: 140px;
}
.badge {
    display: inline-block; padding: 10px 25px; border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05);
    margin-bottom: 40px; font-weight: 700; font-size: 1.1rem; letter-spacing: 3px;
    backdrop-filter: blur(10px); color: var(--text-muted);
}
.hero h1 { font-size: clamp(3.5rem, 8vw, 7.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 20px; letter-spacing: -2px; }
.hero h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 30px; font-weight: 800; }
.hero p { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--text-muted); max-width: 700px; margin: 0 auto 50px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.btn-primary, .btn-secondary {
    padding: 18px 45px; border-radius: 40px; text-decoration: none; font-weight: 800; font-size: 1.2rem;
    transition: 0.4s cubic-bezier(0.1, 0.9, 0.2, 1); display: inline-flex; align-items: center; gap: 15px;
    text-align: center; justify-content: center;
}
.btn-primary { background: white; color: var(--bg-dark); }
.btn-primary:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 20px 40px rgba(255,255,255,0.15); }
.btn-secondary { background: var(--glass-bg); color: white; border: 1px solid var(--glass-border); backdrop-filter: blur(15px); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); transform: translateY(-5px); }

/* Bento Grid */
.bento-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(280px, auto); gap: 25px;
}
.bento-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 40px; padding: 45px; backdrop-filter: blur(20px);
    position: relative; overflow: hidden; transition: 0.5s cubic-bezier(0.1, 0.9, 0.2, 1);
    display: flex; flex-direction: column; justify-content: center;
}
.bento-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-5px) scale(1.02); background: rgba(255,255,255,0.05); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.span-2 { grid-column: span 2; }
.center-content { align-items: center; text-align: center; }

.about-card h3 { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; font-weight: 900; }
.about-card p { font-size: 1.25rem; color: var(--text-muted); line-height: 1.8; font-weight: 600; }
.water-mark { position: absolute; left: 30px; top: 30px; font-size: 8rem; opacity: 0.03; color: white; pointer-events: none; }

.stat-num { font-size: clamp(3.5rem, 6vw, 5.5rem); font-weight: 900; background: linear-gradient(135deg, #fff, #64748b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: 10px;}
.stat-num.plus::after { content: '+'; font-size: clamp(2.5rem, 4vw, 4rem); color: var(--accent); -webkit-text-fill-color: initial; vertical-align: top; }
.stat-label { font-size: 1.3rem; color: var(--text-muted); font-weight: 700; }
.gradient-bg { background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15)); border-color: rgba(139, 92, 246, 0.2); }

.icon-box { width: 80px; height: 80px; background: rgba(255,255,255,0.05); border-radius: 25px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--accent); margin-bottom: 25px; border: 1px solid rgba(255,255,255,0.1); }
.bento-card h4 { font-size: 1.8rem; margin-bottom: 15px; font-weight: 800; }
.bento-card p { color: var(--text-muted); font-size: 1.1rem; }

.flex-row { flex-direction: row; align-items: center; justify-content: space-between; }
.branch-info h3 { font-size: 2.5rem; margin-bottom: 15px; color: var(--primary); font-weight: 900; }
.branch-info p { max-width: 200px; }
.branch-tags { display: flex; flex-direction: column; gap: 15px; }
.branch-tags span { background: rgba(255,255,255,0.05); padding: 12px 25px; border-radius: 30px; font-weight: 700; border: 1px solid rgba(255,255,255,0.1); font-size: 1.1rem; text-align: center; }

/* Infinite Marquee */
.programs-marquee { padding: 70px 0; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); background: rgba(0,0,0,0.3); overflow: hidden; white-space: nowrap; position: relative; z-index: 2; margin: 100px 0; }
.marquee-track { display: inline-flex; animation: scrollText 40s linear infinite; }
.marquee-content { display: inline-flex; align-items: center; }
.marquee-content span { font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 900; margin: 0 40px; -webkit-text-stroke: 1.5px rgba(255,255,255,0.2); color: transparent; transition: 0.4s; cursor: default; }
.marquee-content span:hover { color: white; -webkit-text-stroke: 0px; text-shadow: 0 0 30px rgba(255,255,255,0.4); transform: scale(1.05); }
.marquee-content i { font-size: 2rem; color: var(--accent); }
@keyframes scrollText { from { transform: translateX(0); } to { transform: translateX(50%); } } 

/* Horizontal Scroll Summer Courses */
.summer-section { overflow: hidden; padding-top: 50px; }
.horizontal-scroll-container { width: 100%; overflow-x: auto; padding: 40px 5%; scrollbar-width: none; cursor: grab; }
.horizontal-scroll-container::-webkit-scrollbar { display: none; }
.horizontal-scroll-container:active { cursor: grabbing; }
.horizontal-cards { display: flex; gap: 50px; width: max-content; }
.h-card {
    width: clamp(300px, 80vw, 500px); height: clamp(400px, 70vh, 600px); border-radius: 40px; overflow: hidden; position: relative;
    text-decoration: none; color: white; display: flex; align-items: flex-end;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5); transition: 0.5s cubic-bezier(0.1, 0.9, 0.2, 1);
    border: 1px solid var(--glass-border);
}
.h-card:hover { transform: scale(0.97) translateY(-10px); border-color: rgba(255,255,255,0.3); }
.h-card-bg { position: absolute; top:0; left:0; width:100%; height:100%; background-size: cover; background-position: center; transition: 0.8s; z-index: 1; filter: saturate(0.8) brightness(0.8); }
.h-card:hover .h-card-bg { transform: scale(1.1); filter: saturate(1.2) brightness(1); }
.h-card::after { content:''; position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(to top, #020617 15%, transparent 70%); z-index: 2; }
.h-card-content { position: relative; z-index: 3; padding: 40px; width: 100%; }
.h-badge { display: inline-block; padding: 10px 20px; background: rgba(255,255,255,0.15); backdrop-filter: blur(15px); border-radius: 30px; font-weight: 800; margin-bottom: 25px; font-size: 1.1rem; border: 1px solid rgba(255,255,255,0.2); }
.h-badge.glow { background: var(--accent); color: #000; box-shadow: 0 0 30px var(--accent); border: none; }
.h-card h3 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 15px; font-weight: 900; }
.h-card p { font-size: 1.1rem; color: #cbd5e1; margin-bottom: 30px; font-weight: 600; line-height: 1.6; }
.h-arrow { width: 60px; height: 60px; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-top: 20px; transition: 0.4s; transform: rotate(45deg); }
.h-card:hover .h-arrow { transform: rotate(0deg); background: white; color: var(--bg-dark); }

/* Creative 3D Gallery */
.gallery-section { text-align: center; overflow: hidden; padding-bottom: 60px; }
.creative-gallery {
    position: relative; height: 500px; display: flex; align-items: center; justify-content: center;
    perspective: 1200px; margin: 60px 0 20px; cursor: grab;
}
.creative-gallery:active { cursor: grabbing; }
.g-item {
    position: absolute; width: clamp(250px, 60vw, 350px); height: clamp(350px, 60vh, 500px); border-radius: 30px; overflow: hidden;
    transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1); pointer-events: none; /* Prevent image dragging issues */
}
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.drag-hint { color: var(--text-muted); font-size: 1.1rem; animation: pulse 2s infinite; opacity: 0.7; }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* Testimonials */
.testimonials-section { margin-top: 50px; padding-bottom: 100px; position: relative; }
.testi-container { max-width: 900px; margin: 0 auto; text-align: center; position: relative; padding: 60px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 50px; backdrop-filter: blur(20px); }
.testi-icon { font-size: 3rem; color: var(--primary-glow); margin-bottom: 30px; }
.testi-content { min-height: 200px; display: flex; align-items: center; justify-content: center; }
.testi-item { display: none; animation: fadeInTest 0.6s cubic-bezier(0.1, 0.9, 0.2, 1) forwards; }
.testi-item.active { display: block; }
@keyframes fadeInTest { from{opacity:0; transform: translateY(20px) scale(0.95);} to{opacity:1; transform: translateY(0) scale(1);} }
.testi-item p { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.6; margin-bottom: 30px; color: white; }
.testi-item h4 { font-size: 1.2rem; color: var(--accent); font-weight: 800; }
.testi-nav { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }
.t-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.1); cursor: pointer; transition: 0.4s; }
.t-dot.active { background: var(--primary); transform: scale(1.5); box-shadow: 0 0 15px var(--primary); }

/* FAQ */
.faq-accordion { max-width: 1000px; margin: 0 auto; }
.faq-row { border-bottom: 1px solid var(--glass-border); padding: 30px 0; cursor: pointer; transition: 0.3s; }
.faq-q { display: flex; justify-content: space-between; align-items: center; font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 800; transition: 0.3s; color: white; }
.faq-row:hover .faq-q { color: var(--primary); transform: translateX(-10px); }
.faq-icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; transition: 0.5s cubic-bezier(0.1, 0.9, 0.2, 1); font-weight: 300; font-size: 1.2rem; background: var(--glass-bg); flex-shrink: 0; margin-right: 15px; }
.faq-row.active .faq-icon { transform: rotate(135deg); background: white; border-color: white; color: var(--bg-dark); }
.faq-a { max-height: 0; overflow: hidden; transition: 0.6s cubic-bezier(0.1, 0.9, 0.2, 1); }
.faq-row.active .faq-a { max-height: 300px; }
.faq-a p { padding-top: 20px; color: var(--text-muted); font-size: 1.2rem; line-height: 1.8; font-weight: 600; }

/* Footer */
.creative-footer { padding: 100px 0 30px; border-top: 1px solid var(--glass-border); margin-top: 80px; position: relative; z-index: 2; background: radial-gradient(circle at top, rgba(59, 130, 246, 0.05) 0%, transparent 60%); }
.huge-contact { text-align: center; margin-bottom: 80px; }
.huge-contact h2 { font-size: clamp(3rem, 6vw, 6rem); font-weight: 900; letter-spacing: -2px; }

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-bottom: 60px; padding-bottom: 40px; border-bottom: 1px solid var(--glass-border); }
.site-logo-footer { height: 60px; object-fit: contain; margin-bottom: 20px; }
.f-desc { color: var(--text-muted); font-size: 1.1rem; line-height: 1.8; }
.f-col h4 { font-size: 1.5rem; margin-bottom: 25px; font-weight: 800; color: white; }

.quick-links ul { list-style: none; }
.quick-links li { margin-bottom: 15px; }
.quick-links a { color: var(--text-muted); text-decoration: none; font-size: 1.1rem; transition: 0.3s; display: inline-block; }
.quick-links a:hover { color: var(--primary); transform: translateX(-5px); }

.f-contact-list { list-style: none; }
.f-contact-list li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; color: var(--text-main); font-size: 1.1rem; line-height: 1.6;}
.f-contact-list i { color: var(--accent); margin-top: 5px; font-size: 1.2rem; }
.email-link-small { color: var(--text-main); text-decoration: none; transition: 0.3s; }
.email-link-small:hover { color: var(--primary); }

.socials { display: flex; gap: 15px; margin-top: 30px; }
.socials a { display: inline-flex; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass-bg); align-items: center; justify-content: center; color: white; text-decoration: none; font-size: 1.2rem; transition: 0.4s cubic-bezier(0.1, 0.9, 0.2, 1); }
.socials a:hover { background: white; color: var(--bg-dark); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(255,255,255,0.2); }

.f-bottom { text-align: center; color: var(--text-muted); font-size: 1rem; font-weight: 600; }

/* Mobile Menu */
.mobile-menu-btn {
    display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 20px; cursor: pointer; z-index: 1002;
}
.mobile-menu-btn span {
    display: block; height: 3px; width: 100%; background-color: var(--text-main); border-radius: 3px; transition: 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
}
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(2, 6, 23, 0.95); backdrop-filter: blur(20px); z-index: 1001;
    display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
}
.mobile-menu-overlay.active { opacity: 1; pointer-events: all; }
.mobile-nav-links {
    display: flex; flex-direction: column; align-items: center; gap: 30px; transform: translateY(50px); transition: 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
}
.mobile-menu-overlay.active .mobile-nav-links { transform: translateY(0); }
.mobile-nav-links a { color: var(--text-main); text-decoration: none; font-size: 2rem; font-weight: 800; transition: 0.3s; }
.mobile-nav-links a:hover { color: var(--primary); }
.mobile-nav-links .btn-glow { font-size: 1.5rem; margin-top: 20px; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
    .span-2 { grid-column: span 2; }
}
@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .hero-content { margin-top: 100px; }
    .bento-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .bento-card { padding: 30px; min-height: auto; }
    .flex-row { flex-direction: column; align-items: flex-start; gap: 20px; }
    
    .glass-nav { width: 90%; padding: 15px 25px; border-radius: 20px; }
    .nav-links, .nav-container .btn-glow { display: none; } 
    .mobile-menu-btn { display: flex; }
    .cursor-dot, .cursor-outline { display: none; }
    
    .testi-container { padding: 40px 20px; border-radius: 30px; }
    .horizontal-scroll-container { padding: 20px 5%; }
    .hero-actions { flex-direction: column; width: 100%; padding: 0 20px; }
    .btn-primary, .btn-secondary { width: 100%; }
}
