/* ==== Variables & Reset ==== */
:root {
    --primary: #1e40af; /* Deep Royal Blue */
    --primary-light: #3b82f6;
    --secondary: #f59e0b; /* Amber/Gold */
    --secondary-hover: #d97706;
    --dark: #0f172a;
    --dark-alt: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --white: #ffffff;
    --font-main: 'Tajawal', sans-serif;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-main); color: var(--dark); background-color: var(--white); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-light { color: rgba(255,255,255,0.8); }
.text-gray { color: var(--gray); }
.bg-light { background-color: #f1f5f9; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.w-100 { width: 100%; }
.shadow-lg { box-shadow: var(--shadow-lg); }
.rounded-img { border-radius: 20px; }

/* ==== Buttons ==== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: 8px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: var(--transition); border: none; }
.btn-primary { background-color: var(--primary); color: var(--white); box-shadow: 0 4px 14px rgba(30, 64, 175, 0.4); }
.btn-primary:hover { background-color: var(--primary-light); transform: translateY(-2px); }
.btn-secondary { background-color: var(--secondary); color: var(--white); box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4); }
.btn-secondary:hover { background-color: var(--secondary-hover); transform: translateY(-2px); }
.btn-outline { background-color: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: var(--white); }
.btn-glass { background-color: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: var(--white); backdrop-filter: blur(10px); }
.btn-glass:hover { background-color: rgba(255,255,255,0.2); }
.btn-huge { padding: 16px 36px; font-size: 1.15rem; border-radius: 12px; }

/* ==== Topbar ==== */
.topbar { background-color: var(--dark); color: var(--gray-light); padding: 8px 0; font-size: 0.9rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-contact { display: flex; gap: 20px; }
.top-contact i { color: var(--secondary); margin-left: 5px; }
.top-social { display: flex; gap: 15px; }
.top-social a:hover { color: var(--secondary); }

/* ==== Navbar ==== */
.navbar { background-color: var(--white); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm); transition: var(--transition); }
.navbar.scrolled { padding: 10px 0; }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon-wrap { width: 45px; height: 45px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.5rem; }
.logo-text { font-size: 1.6rem; font-weight: 900; line-height: 1; color: var(--dark); }
.logo-text span { color: var(--primary); }
.logo-text small { display: block; font-size: 0.8rem; font-weight: 500; color: var(--gray); letter-spacing: 1px; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 700; color: var(--dark-alt); position: relative; padding: 5px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a::after { content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 3px; background-color: var(--primary); transition: var(--transition); border-radius: 5px; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.8rem; color: var(--dark); cursor: pointer; }

/* ==== Super Hero Section ==== */
.hero-super { position: relative; min-height: 90vh; display: flex; align-items: center; background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); color: var(--white); overflow: hidden; padding-top: 50px; }
.hero-overlay { position: absolute; inset: 0; background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E'); }
.hero-super-container { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

.pulse-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.1); padding: 8px 16px; border-radius: 50px; font-size: 0.9rem; font-weight: 500; border: 1px solid rgba(255,255,255,0.2); margin-bottom: 25px; }
.pulse-dot { width: 10px; height: 10px; background-color: var(--secondary); border-radius: 50%; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }

.hero-title { font-size: 4rem; font-weight: 900; line-height: 1.2; margin-bottom: 20px; }
.hero-title span { color: var(--secondary); }
.hero-desc { font-size: 1.2rem; color: rgba(255,255,255,0.8); margin-bottom: 40px; max-width: 90%; }
.hero-buttons { display: flex; gap: 20px; margin-bottom: 40px; }

.hero-features-bar { display: flex; gap: 30px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.hf-item { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.hf-item i { color: var(--secondary); }

.hero-graphics { position: relative; }
.main-img-container { position: relative; }
.hero-main-img { border-radius: 30px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); position: relative; z-index: 2; border: 4px solid rgba(255,255,255,0.1); }
.floating-card { position: absolute; background: var(--white); color: var(--dark); padding: 15px 25px; border-radius: 15px; display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow-lg); z-index: 3; animation: floatY 6s ease-in-out infinite; }
.floating-card i { font-size: 2.5rem; color: var(--secondary); }
.floating-card h4 { font-size: 1.5rem; font-weight: 800; line-height: 1; margin-bottom: 5px; }
.floating-card p { font-size: 0.85rem; color: var(--gray); font-weight: 700; margin: 0;}
.fc-1 { top: 10%; right: -30px; }
.fc-2 { bottom: 15%; left: -30px; animation-delay: 2s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

.wave-bottom { position: absolute; bottom: 0; left: 0; width: 100%; line-height: 0; }

/* ==== Global Sections ==== */
section { padding: 100px 0; }
.section-title-wrap { margin-bottom: 60px; }
.subtitle { display: inline-block; color: var(--primary); font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; background: rgba(30, 64, 175, 0.1); padding: 5px 15px; border-radius: 50px; }
.section-title-wrap h2 { font-size: 2.8rem; font-weight: 900; color: var(--dark); margin-bottom: 15px; }
.section-title-wrap h2 span { color: var(--primary); }
.section-title-wrap p { color: var(--gray); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ==== Stats Section ==== */
.stats-section { padding: 50px 0; margin-top: -30px; position: relative; z-index: 10; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; background: var(--white); padding: 40px; border-radius: 20px; box-shadow: var(--shadow-lg); }
.stat-box { text-align: center; }
.stat-icon { width: 70px; height: 70px; margin: 0 auto 20px; background: rgba(30, 64, 175, 0.1); color: var(--primary); font-size: 2rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.stat-box h3 { font-size: 2.5rem; font-weight: 900; color: var(--dark); margin-bottom: 5px; }
.stat-box p { color: var(--gray); font-weight: 700; }

/* ==== Features Section ==== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature-card { background: var(--white); padding: 40px 30px; border-radius: 20px; box-shadow: var(--shadow-sm); transition: var(--transition); text-align: center; border: 1px solid var(--gray-light); border-bottom: 4px solid transparent; }
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-bottom-color: var(--primary); }
.fc-icon { width: 80px; height: 80px; margin: 0 auto 25px; background: linear-gradient(135deg, rgba(30,64,175,0.1), rgba(59,130,246,0.1)); color: var(--primary); font-size: 2.5rem; display: flex; align-items: center; justify-content: center; border-radius: 20px; transition: var(--transition); }
.feature-card:hover .fc-icon { background: var(--primary); color: var(--white); transform: scale(1.1) rotate(5deg); }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 15px; font-weight: 800; }
.feature-card p { color: var(--gray); }

/* ==== About Detailed ==== */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-images { position: relative; }
.img-main img { border-radius: 30px; width: 80%; box-shadow: var(--shadow-lg); }
.img-secondary { position: absolute; bottom: -30px; left: 0; width: 50%; border: 10px solid var(--white); border-radius: 30px; box-shadow: var(--shadow-md); overflow: hidden; }
.exp-circle { position: absolute; top: -20px; left: 20px; width: 120px; height: 120px; background: var(--secondary); color: var(--white); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; box-shadow: 0 10px 20px rgba(245, 158, 11, 0.4); text-align: center; line-height: 1.2; }
.exp-circle span { font-size: 2rem; display: block; }
.about-info h2 { font-size: 3rem; font-weight: 900; margin-bottom: 20px; }
.about-info h2 span { color: var(--primary); }
.lead-text { font-size: 1.3rem; font-weight: 700; color: var(--dark-alt); margin-bottom: 20px; }
.about-info p { color: var(--gray); margin-bottom: 20px; }
.about-list { margin-bottom: 30px; }
.about-list li { margin-bottom: 15px; font-weight: 700; display: flex; align-items: flex-start; gap: 10px; }
.about-list i { color: var(--primary); margin-top: 5px; }

/* ==== Courses Section ==== */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.course-card { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.featured-course { border: 2px solid var(--secondary); transform: scale(1.05); box-shadow: var(--shadow-md); }
.featured-course:hover { transform: scale(1.05) translateY(-10px); }
.course-img { position: relative; height: 220px; }
.course-img img { width: 100%; height: 100%; object-fit: cover; }
.course-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: var(--white); padding: 5px 15px; border-radius: 30px; font-weight: 700; font-size: 0.9rem; }
.course-badge.vip { background: var(--secondary); }
.course-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.course-content h3 { font-size: 1.6rem; font-weight: 900; margin-bottom: 15px; }
.course-content p { color: var(--gray); margin-bottom: 25px; flex-grow: 1; }
.course-meta { display: flex; justify-content: space-between; border-top: 1px solid var(--gray-light); border-bottom: 1px solid var(--gray-light); padding: 15px 0; margin-bottom: 25px; color: var(--dark-alt); font-weight: 700; font-size: 0.9rem; }
.course-meta i { color: var(--primary); margin-left: 5px; }

/* ==== Testimonials ==== */
.testimonials-section { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%); color: var(--white); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testi-card { background: rgba(255,255,255,0.05); padding: 40px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px); position: relative; }
.testi-card::before { content: '\f10e'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 30px; left: 30px; font-size: 4rem; color: rgba(255,255,255,0.05); }
.testi-rating { color: var(--secondary); margin-bottom: 20px; }
.testi-text { font-size: 1.1rem; line-height: 1.8; margin-bottom: 30px; font-style: italic; }
.testi-user { display: flex; align-items: center; gap: 15px; }
.tu-avatar { width: 60px; height: 60px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 900; }
.tu-info h4 { font-size: 1.2rem; margin-bottom: 5px; }
.tu-info span { color: var(--secondary); font-size: 0.9rem; font-weight: 700; }

/* ==== FAQ ==== */
.faq-wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.accordion { display: flex; flex-direction: column; gap: 15px; }
.acc-item { background: var(--white); border-radius: 10px; box-shadow: var(--shadow-sm); overflow: hidden; }
.acc-header { padding: 20px 25px; font-weight: 800; font-size: 1.1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.acc-item.active .acc-header { background: var(--primary); color: var(--white); }
.acc-body { padding: 0 25px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--gray); background: var(--white); }
.acc-item.active .acc-body { padding: 20px 25px; max-height: 500px; border-top: 1px solid var(--gray-light); }

/* ==== CTA Banner ==== */
.cta-banner { background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&q=80&w=1920') center/cover; padding: 100px 0; position: relative; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: rgba(30, 64, 175, 0.9); }
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { font-size: 3.5rem; font-weight: 900; margin-bottom: 20px; }
.cta-banner p { font-size: 1.3rem; margin-bottom: 40px; }
.newsletter-form { display: flex; max-width: 600px; margin: 0 auto; background: var(--white); border-radius: 50px; padding: 5px; }
.newsletter-form input { flex-grow: 1; border: none; padding: 15px 25px; border-radius: 50px; font-family: var(--font-main); font-size: 1rem; outline: none; }
.newsletter-form button { border-radius: 50px; padding: 15px 40px; }

/* ==== Footer ==== */
.footer { background: var(--dark); color: var(--gray-light); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-logo .logo-text { color: var(--white); }
.footer-social a { display: inline-flex; width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; align-items: center; justify-content: center; transition: var(--transition); margin-left: 10px; }
.footer-social a:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }
.footer-links h3, .footer-contact h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 25px; font-weight: 800; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--secondary); padding-right: 5px; }
.footer-contact li { display: flex; gap: 15px; margin-bottom: 15px; align-items: center; }
.footer-contact i { color: var(--primary-light); font-size: 1.2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 25px 0; display: flex; justify-content: space-between; align-items: center; }

/* ==== Responsive ==== */
@media (max-width: 1024px) {
    .hero-super-container, .about-wrap, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
    .stats-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
    .courses-grid, .testi-grid { grid-template-columns: 1fr; }
    .featured-course { transform: none; }
    .featured-course:hover { transform: translateY(-10px); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 3rem; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-btn { display: block; }
    .stats-grid, .features-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .hero-features-bar { flex-direction: column; gap: 10px; }
    .newsletter-form { flex-direction: column; background: transparent; gap: 15px; }
    .newsletter-form input { border-radius: 8px; }
    .newsletter-form button { border-radius: 8px; width: 100%; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
}

/* ==== Cinematic Showcase ==== */
.cinematic-showcase { padding: 100px 0; background: var(--white); }
.showcase-wrapper { position: relative; width: 100%; border-radius: 30px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.3); border: 5px solid var(--white); }
.showcase-wrapper img { width: 100%; display: block; object-fit: cover; max-height: 700px; transition: transform 0.7s ease; }
.showcase-wrapper:hover img { transform: scale(1.02); }
.showcase-overlay-box { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.1) 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--white); opacity: 0; transition: all 0.5s ease; cursor: pointer; }
.showcase-wrapper:hover .showcase-overlay-box { opacity: 1; }
.play-pulse { width: 90px; height: 90px; background: var(--secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin-bottom: 20px; color: var(--white); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); animation: pulse 2s infinite; }
.showcase-overlay-box h3 { font-size: 2.5rem; font-weight: 900; transform: translateY(20px); transition: transform 0.5s ease; }
.showcase-wrapper:hover .showcase-overlay-box h3 { transform: translateY(0); }
