/* ===== Global Styles & Colors ===== */
:root {
    --bg-dark: #0a0f1d;
    --text-light: #ffffff;
    --text-muted: #b0c4de;
    --primary-color: #6366f1;
    --secondary-color: #ec4899;
    --gradient-1: linear-gradient(135deg, #6366f1, #ec4899, #8b5cf6);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --success-color: #10b981;
}

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

body {
    font-family: 'Tajawal', 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background animated Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
    animation: floatOrb 20s infinite alternate;
}
.orb-1 {
    width: 300px;
    height: 300px;
    background: #6366f1;
    top: -100px;
    right: -50px;
}
.orb-2 {
    width: 400px;
    height: 400px;
    background: #ec4899;
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}
.orb-3 {
    width: 250px;
    height: 250px;
    background: #8b5cf6;
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 50px) scale(1.2); }
    100% { transform: translate(-30px, -50px) scale(0.9); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 10px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--success-color); /* Whatsapp default-like */
    color: white;
}
.btn-primary:hover {
    background-color: #0e9f6e;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-gradient {
    background: var(--gradient-1);
    color: white;
    background-size: 200% auto;
}
.btn-gradient:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}
.btn-outline:hover {
    background: var(--text-light);
    color: var(--bg-dark);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--primary-color);
    color: var(--text-light);
}
.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ===== Header ===== */
.glass-header {
    background: rgba(10, 15, 29, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: padding 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo h1 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.5px;
}
.logo span {
    color: var(--secondary-color);
}
.glow-icon {
    font-size: 2rem;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}
nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}
nav a:hover::after {
    width: 100%;
}

/* ===== Hero Section ===== */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 900;
}
.hero-text h2 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}
.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
}

.floating {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* ===== Typography Sections ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.section-header h2 span {
    color: var(--primary-color);
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ===== About Section ===== */
.about {
    padding: 80px 0;
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.about-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glass-shadow);
}
.about-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.about-card p {
    color: var(--text-muted);
}

/* ===== Courses Section ===== */
.courses {
    padding: 100px 0;
}
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.course-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: var(--primary-color);
}
.course-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.course-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.course-card:hover .course-img-wrapper img {
    transform: scale(1.1);
}
.course-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.badge {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    align-self: flex-start;
    margin-bottom: 15px;
    font-weight: 700;
}
.course-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.course-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
}

/* ===== Footer ===== */
.glass-footer {
    background: rgba(10, 15, 29, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 20px;
    margin-top: 50px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.footer-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
}
.contact-details a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}
.contact-details a:hover {
    color: var(--success-color);
}
.footer-cta {
    max-width: 400px;
}
.footer-cta p {
    color: var(--text-muted);
    margin-bottom: 15px;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}
.slide-in {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
[dir="rtl"] .slide-in {
    transform: translateX(30px);
}
.slide-in.appear {
    opacity: 1;
    transform: translateX(0);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* ===== Media Queries ===== */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .nav-links {
        display: none; /* Add mobile menu later if needed */
    }
}
@media (max-width: 768px) {
    .hero-text h2 {
        font-size: 2.5rem;
    }
    .footer-content {
        flex-direction: column;
    }
}
