/* ===== CSS Variables ===== */
:root {
    /* Colors - Purple & Pink theme from logo */
    --primary: 270 70% 60%;
    --primary-foreground: 0 0% 100%;
    --secondary: 330 70% 65%;
    --secondary-foreground: 0 0% 100%;
    --accent: 280 65% 55%;
    --accent-foreground: 0 0% 100%;
    
    /* Neutral colors */
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 270 70% 60%;
    
    /* Radius */
    --radius: 0.5rem;
    
    /* Fonts */
    --font-sans: 'Cairo', sans-serif;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ===== Header / Navigation ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid hsl(var(--border));
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: hsl(var(--foreground));
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: hsl(var(--primary));
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-right: 1rem;
    border-right: 1px solid hsl(var(--border));
}

.social-links a {
    color: hsl(var(--muted-foreground));
    transition: color 0.3s;
}

.social-links a:hover {
    color: hsl(var(--primary));
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: hsl(var(--foreground));
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid hsl(var(--border));
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav-link {
    color: hsl(var(--foreground));
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
}

.mobile-social {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
}

.mobile-social a {
    color: hsl(var(--muted-foreground));
}

/* ===== Hero Section ===== */
.hero {
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    width: 128px;
    height: 128px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-description {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.3);
}

.btn-outline {
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
    background: transparent;
}

.btn-outline:hover {
    background: hsl(var(--primary));
    color: white;
}

.btn-success {
    background-color: #16a34a;
    color: white;
}

.btn-success:hover {
    background-color: #15803d;
    transform: translateY(-2px);
}

/* ===== Sections ===== */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* ===== About Section ===== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: hsl(var(--muted-foreground));
    margin-bottom: 3rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background-color: hsl(var(--primary) / 0.05);
    border-radius: var(--radius);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
}

/* ===== Partners Section ===== */
.partners-section {
    background-color: hsl(var(--muted) / 0.3);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.partner-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.partner-card:hover {
    transform: translateY(-4px);
}

.partner-card img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    background-color: white;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon.purple {
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.service-icon.pink {
    background-color: hsl(var(--secondary) / 0.1);
    color: hsl(var(--secondary));
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* ===== Courses Section ===== */
.courses-section {
    background-color: hsl(var(--muted) / 0.3);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.course-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
}

.course-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.course-icon.purple {
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.course-icon.pink {
    background-color: hsl(var(--secondary) / 0.1);
    color: hsl(var(--secondary));
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.course-list {
    list-style: none;
}

.course-list li {
    padding: 0.5rem 0;
    padding-right: 1.5rem;
    position: relative;
    color: hsl(var(--muted-foreground));
}

.course-list li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: hsl(var(--primary));
    font-weight: 700;
}

.course-contact {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: var(--radius);
    border: 2px solid hsl(var(--primary) / 0.2);
    text-align: center;
}

.course-contact h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.contact-item svg {
    color: hsl(var(--primary));
}

.contact-item a {
    color: hsl(var(--foreground));
    text-decoration: none;
    font-size: 1.125rem;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: hsl(var(--primary));
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.contact-social a {
    color: hsl(var(--primary));
    transition: transform 0.3s;
}

.contact-social a:hover {
    transform: scale(1.1);
}

/* ===== Why Section ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.why-card {
    padding: 2rem;
    background-color: white;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
}

.why-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.why-icon.purple {
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.why-icon.pink {
    background-color: hsl(var(--secondary) / 0.1);
    color: hsl(var(--secondary));
}

.why-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.why-card p {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    background-color: hsl(var(--muted) / 0.3);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
}

.testimonial-text {
    color: hsl(var(--muted-foreground));
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid hsl(var(--border));
    padding-top: 1rem;
}

.author-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.author-org {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* ===== Contact Section ===== */
.contact-section {
    text-align: center;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
    background-color: hsl(var(--muted));
    padding: 2rem 0;
    text-align: center;
    color: hsl(var(--muted-foreground));
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid,
    .courses-grid,
    .why-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .desktop-nav {
        display: flex;
    }
}
