/**
 * Main Stylesheet — Nova Drift
 * Cosmos profond, aurore violet × cyan, surfaces vitrées
 */

:root {
    --primary-color: #a78bfa;
    --primary-dark: #7c3aed;
    --secondary-color: #22d3ee;
    --accent-color: #f472b6;
    --dark-bg: #030712;
    --dark-bg-secondary: #0f172a;
    --dark-bg-tertiary: #1e293b;
    --light-color: #f8fafc;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --text-secondary: #cbd5e1;
    --border-color: rgba(167, 139, 250, 0.22);
    --glow-primary: 0 0 32px rgba(167, 139, 250, 0.35);
    --glow-accent: 0 0 28px rgba(34, 211, 238, 0.28);
    --border-radius: 24px;
    --border-radius-sm: 12px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 2px 16px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);
    --shadow-xl: 0 28px 80px rgba(15, 23, 42, 0.65);
    --glass-bg: rgba(15, 23, 42, 0.55);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Outfit', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.65;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(124, 58, 237, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.12) 0%, transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(244, 114, 182, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 70% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, .section-title, .navbar-brand, .program-title, .website-title,
.program-hero-title, .contact-form-header h3 {
    font-family: 'Outfit', 'Cairo', sans-serif;
    font-weight: 600;
    letter-spacing: -0.03em;
}

/* Selection */
::selection {
    background: rgba(167, 139, 250, 0.45);
    color: #f8fafc;
}

/* Navigation */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 1.2rem 0;
    transition: var(--transition);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 50%, 
        transparent 100%);
    opacity: 0.5;
}

.navbar.scrolled {
    background: rgba(3, 7, 18, 0.92);
    backdrop-filter: blur(30px);
    padding: 0.7rem 0;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    transition: var(--transition);
    text-shadow: var(--glow-primary);
    margin-right: 0;
    flex-shrink: 0;
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--primary-color));
    transition: var(--transition);
}

.logo:hover {
    filter: drop-shadow(0 0 15px var(--primary-color));
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 1rem;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    margin: 0;
    padding: 0.6rem 1.2rem !important;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.2;
    transition: var(--transition);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(167, 139, 250, 0.12);
    color: var(--primary-color) !important;
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.2);
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(167, 139, 250, 0.14);
    color: var(--primary-color) !important;
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.25);
}

.navbar-toggler {
    border-color: var(--primary-color);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23a78bfa' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.7rem 1.5rem;
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
    color: var(--text-color);
}

.dropdown-item:hover {
    background: rgba(167, 139, 250, 0.1);
    color: var(--primary-color);
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.15);
}

/* Hero Section - Enhanced with Code Animation */
.hero-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 999;
}

/* Background Image at right */
.hero-section .hero-bg-image {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50%;
    background-image: url('../back.png');
    background-size: contain;
    background-position: right top;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.6;
}

/* Transparent overlay on the image */
.hero-section .hero-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--dark-bg) 0%, transparent 50%, rgba(3, 7, 18, 0.75) 100%);
    z-index: 2;
}

/* Animated Grid Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(167, 139, 250, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 139, 250, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 4;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Code Rain Effect Background */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(180deg, transparent 0%, var(--dark-bg) 90%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(167, 139, 250, 0.025) 2px,
            rgba(167, 139, 250, 0.025) 4px
        );
    pointer-events: none;
    z-index: 5;
}

/* Floating Code Elements */
.code-particle {
    position: absolute;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    opacity: 0.22;
    font-size: 14px;
    pointer-events: none;
    animation: floatCode 15s linear infinite;
    z-index: 6;
}

@keyframes floatCode {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(3, 7, 18, 0.55) 100%);
    z-index: 3;
}

.hero-title {
    animation: fadeInUp 1s ease-out, glowPulse 3s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(167, 139, 250, 0.22);
    background: linear-gradient(135deg, #e0e7ff 0%, var(--primary-color) 40%, var(--secondary-color) 75%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    font-size: 3rem !important;
    line-height: 1.2;
}

.hero-title::before,
.hero-title::after {
    display: none;
}

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 18px rgba(167, 139, 250, 0.25));
    }
    50% {
        filter: drop-shadow(0 0 32px rgba(167, 139, 250, 0.4));
    }
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.2s backwards;
    color: var(--text-muted);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-size: 1.1rem !important;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s backwards;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 180px;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), #6366f1, var(--secondary-color));
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.35);
    color: #f8fafc;
    border: 2px solid transparent;
    position: relative;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary-color), 
        var(--accent-color), 
        var(--primary-color));
    background-size: 400%;
    border-radius: 50px;
    opacity: 0;
    z-index: -1;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 44px rgba(124, 58, 237, 0.45), var(--glow-primary);
    color: #ffffff;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-outline-light {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    box-shadow: inset 0 0 20px rgba(167, 139, 250, 0.1);
}

.btn-outline-light:hover {
    background: rgba(167, 139, 250, 0.2);
    color: #f8fafc;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.2);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 20;
}

.scroll-down a {
    color: var(--primary-color);
    font-size: 2rem;
    opacity: 0.7;
    transition: var(--transition);
    text-shadow: var(--glow-primary);
    position: relative;
    display: inline-block;
}

.scroll-down a::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, transparent, var(--primary-color));
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.scroll-down a:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1000;
}

/* Page Header Section */
.page-header-section {
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.page-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(167, 139, 250, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 139, 250, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* Les sections commencent APRÈS le hero fixe */
#programs {
    margin-top: 100vh;
    background: var(--dark-bg);
}

section:not(#home) {
    background: var(--dark-bg);
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    text-shadow: none;
}

.section-title::before {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin: 0 auto 1rem;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 1;
}

.section-subtitle {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
}

.title-divider {
    width: 72px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 1.5rem auto;
    border-radius: 2px;
    box-shadow: none;
    animation: none;
}

/* Program Cards - Enhanced with Tech Effects */
.program-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(167, 139, 250, 0.3), 
        transparent);
    transition: var(--transition);
}

.program-card:hover::before {
    left: 100%;
}

.program-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--primary-color), 
        var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.program-card:hover::after {
    transform: scaleX(1);
}

.program-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(167, 139, 250, 0.4), 
                var(--glow-primary),
                inset 0 0 50px rgba(167, 139, 250, 0.1);
    border-color: var(--primary-color);
}

.program-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-bg-secondary) 0%, var(--dark-bg-tertiary) 100%);
}

.program-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(3, 7, 18, 0.8) 100%);
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(0.8);
}

.program-card:hover .program-image img {
    transform: scale(1.15);
    filter: brightness(1);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
}

.program-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(167, 139, 250, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
}

.program-card:hover .program-overlay {
    opacity: 1;
}

.program-overlay .btn {
    background: var(--dark-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.program-overlay .btn:hover {
    background: var(--primary-color);
    color: #f8fafc;
}

.program-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.program-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.program-description {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.program-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
    background: rgba(0, 0, 0, 0.2);
    margin: 0 -1.5rem -1.5rem;
    padding: 1rem 1.5rem;
}

/* View More Button */
.btn-view-more {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(129, 140, 248, 0.2));
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-view-more::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-view-more:hover::before {
    width: 400px;
    height: 400px;
}

.btn-view-more:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.5);
}

.btn-view-more:hover i {
    color: #ffffff;
}

.btn-view-more i,
.btn-view-more span {
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.program-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.9rem;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--glow-primary);
    direction: ltr !important;
    unicode-bidi: plaintext !important;
    display: inline-block !important;
}

.price-value span,
.price-value * {
    direction: ltr !important;
    unicode-bidi: plaintext !important;
}

/* Programs Section Subtitle - White color */
#programs .section-subtitle {
    color: #ffffff !important;
    font-weight: 600;
}

#contact {
    background: #f1f5f9 !important;
}

#contact .section-title {
    color: #000000 !important;
}

#contact .section-subtitle {
    color: #475569 !important;
}

/* Website Cards */
.website-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.website-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(34, 211, 238, 0.2), 
        transparent);
    transition: var(--transition);
}

.website-card:hover::before {
    left: 100%;
}

.website-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(34, 211, 238, 0.3), 
                var(--glow-accent);
    border-color: var(--accent-color);
}

.website-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-bg-secondary) 0%, var(--dark-bg-tertiary) 100%);
}

.website-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(3, 7, 18, 0.8) 100%);
}

.website-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(0.8);
}

.website-card:hover .website-image img {
    transform: scale(1.15);
    filter: brightness(1);
}

.website-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(34, 211, 238, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
}

.website-card:hover .website-overlay {
    opacity: 1;
}

.website-overlay .btn {
    background: var(--dark-bg);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.website-overlay .btn:hover {
    background: var(--accent-color);
    color: #030712;
}

.website-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.website-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(244, 114, 182, 0.2));
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.website-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.website-description {
    color: #d1d5db;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.website-client {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* Contact Cards */
.contact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.contact-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.2), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover::after {
    width: 300px;
    height: 300px;
}

.contact-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(167, 139, 250, 0.3), var(--glow-primary);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #f8fafc;
    box-shadow: var(--glow-primary);
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.8);
}

.contact-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.contact-value {
    color: #d1d5db;
    font-size: 1rem;
    margin: 0;
}

.contact-value a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-value a:hover {
    color: var(--accent-color);
    text-shadow: var(--glow-accent);
}

/* Clients Section */
.bg-gradient {
    background: linear-gradient(180deg, 
        var(--dark-bg) 0%, 
        var(--dark-bg-secondary) 50%, 
        var(--dark-bg) 100%);
    position: relative;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.bg-gradient .container {
    max-width: 100% !important;
    padding: 0 !important;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(167, 139, 250, 0.03) 2px,
        rgba(167, 139, 250, 0.03) 4px
    );
    pointer-events: none;
}

.bg-light {
    background: var(--dark-bg-secondary);
}

/* Professional Client Slider - Modern Fade Effect */
.clients-marquee-wrapper {
    position: relative;
    width: 100%;
    padding: 5rem 0;
    margin: 3rem 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(167, 139, 250, 0.02) 50%,
        transparent 100%
    );
    overflow: hidden;
}

/* Glowing background effect */
.clients-marquee-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(167, 139, 250, 0.1) 0%,
        rgba(129, 140, 248, 0.05) 40%,
        transparent 70%
    );
    border-radius: 50%;
    animation: pulseGlow 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.clients-marquee {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 350px;
    margin: 0 auto;
    z-index: 1;
}

.client-item {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(22, 22, 28, 0.8) 100%
    );
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 50px;
    border: 2px solid rgba(167, 139, 250, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(167, 139, 250, 0.2),
        0 0 80px rgba(167, 139, 250, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%) scale(0.9) translateY(20px);
    pointer-events: none;
}

/* Active slide */
.client-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1) translateY(0);
    pointer-events: auto;
    z-index: 10;
}

/* Animated border glow for active item */
.client-item.active::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color),
        var(--accent-color),
        var(--primary-color)
    );
    background-size: 300% 300%;
    opacity: 0.6;
    z-index: -1;
    animation: borderGlow 3s ease infinite;
    filter: blur(8px);
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Inner glow effect */
.client-item.active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(
        circle at center,
        rgba(167, 139, 250, 0.15) 0%,
        transparent 70%
    );
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.client-item a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.client-logo {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    min-width: 200px;
    min-height: 120px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.client-item.active .client-logo {
    filter: drop-shadow(0 8px 30px rgba(167, 139, 250, 0.5));
    transform: scale(1);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

.client-item:hover .client-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 40px rgba(167, 139, 250, 0.6));
}

.client-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    color: #d1d5db;
    font-size: 1rem;
    word-break: break-word;
}

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

/* Footer */
.footer {
    background: var(--dark-bg-secondary);
    color: #cbd5e1;
    border-top: 1px solid var(--glass-border);
    position: relative;
}

/* Footer centered */
.footer .row {
    text-align: center;
}

.footer p,
.footer a {
    text-align: center;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 50%, 
        transparent 100%);
    opacity: 0.5;
}

.footer a {
    color: #cbd5e1;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-color);
    text-shadow: var(--glow-primary);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    border: 2px solid var(--dark-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-color), var(--primary-color));
    box-shadow: var(--glow-primary);
}

/* Force LTR for all price and number elements */
.program-price,
.program-footer {
    direction: rtl;
}

.program-price .price-value,
.program-price .price-value > *,
.program-price .price-value span {
    direction: ltr !important;
    unicode-bidi: plaintext !important;
}

[dir="rtl"] .program-price .price-value,
[dir="rtl"] .program-price .price-value > *,
[dir="rtl"] .program-price .price-value span {
    direction: ltr !important;
    unicode-bidi: plaintext !important;
}

/* Override any RTL on price containers */
[dir="rtl"] .program-price {
    direction: rtl;
}

/* But force LTR on the actual price display */
[dir="rtl"] span[dir="ltr"],
span[dir="ltr"],
*[dir="ltr"] {
    direction: ltr !important;
    unicode-bidi: plaintext !important;
    display: inline-block !important;
}

/* Make sure program-price allows inline-block children */
.program-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

[dir="rtl"] .program-price {
    direction: rtl;
    text-align: right;
}

/* Responsive for background image */
@media (max-width: 768px) {
    .hero-section .hero-bg-image {
        width: 100%;
        opacity: 0.3;
    }
    
    .hero-section .hero-bg-image::after {
        background: linear-gradient(180deg, var(--dark-bg) 0%, transparent 30%, rgba(3, 7, 18, 0.8) 70%);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    section {
        padding: 80px 0;
    }
}

@media (max-width: 992px) {
    .hero-section {
        height: 90vh;
    }
    
    #programs {
        margin-top: 90vh;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .section-title {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 768px) {
    :root {
        --border-radius: 12px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        height: 85vh;
    }
    
    #programs {
        margin-top: 85vh;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
    
    .program-card {
        margin-bottom: 2rem;
    }
    
    .program-image {
        height: 200px;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .contact-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .clients-marquee-wrapper {
        padding: 3rem 0;
        min-height: 300px;
    }
    
    .clients-marquee {
        max-width: 600px;
        height: 280px;
    }
    
    .client-item {
        max-width: 500px;
        height: 280px;
        padding: 40px;
    }
    
    .client-logo {
        min-width: 180px;
        min-height: 100px;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar .container {
        gap: 1rem;
    }
    
    .navbar-nav {
        margin-left: 0;
        gap: 0.5rem;
    }
    
    .navbar-collapse {
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        margin-top: 1rem;
        border-radius: var(--border-radius);
        padding: 1rem;
        border: 1px solid var(--glass-border);
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .program-title {
        font-size: 1.2rem;
    }
    
    .price-value {
        font-size: 1.3rem;
    }
    
    .clients-marquee-wrapper {
        padding: 2rem 0;
        min-height: 250px;
    }
    
    .clients-marquee {
        max-width: 90%;
        height: 250px;
    }
    
    .client-item {
        max-width: 100%;
        height: 250px;
        padding: 30px;
        border-radius: 20px;
    }
    
    .client-logo {
        min-width: 150px;
        min-height: 80px;
    }
    
    .clients-marquee-wrapper::before {
        width: 400px;
        height: 400px;
    }
    
    .contact-label {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-down,
    .program-overlay {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}