/**
 * Main Stylesheet — Agency Light
 * Drays Platform — clair, technique, niveau agence
 */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #0284c7;
    --accent-color: #0ea5e9;
    --dark-bg: #f4f7fb;
    --dark-bg-secondary: #ffffff;
    --dark-bg-tertiary: #e8eef6;
    --light-color: #ffffff;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --text-secondary: #334155;
    --border-color: rgba(37, 99, 235, 0.14);
    --glow-primary: 0 8px 28px rgba(37, 99, 235, 0.18);
    --glow-accent: 0 8px 24px rgba(14, 165, 233, 0.14);
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 28px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.1);
    --shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(15, 23, 42, 0.08);
}

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

body {
    font-family: 'Plus Jakarta Sans', '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 90% 50% at 50% -20%, rgba(37, 99, 235, 0.1) 0%, transparent 55%),
        radial-gradient(circle at 100% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 0% 90%, rgba(2, 132, 199, 0.06) 0%, transparent 42%);
    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: 'Plus Jakarta Sans', 'Cairo', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

::selection {
    background: rgba(37, 99, 235, 0.2);
    color: #0f172a;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    padding: 1rem 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: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    opacity: 0.35;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    padding: 0.65rem 0;
    box-shadow: var(--shadow-sm);
}

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

.navbar-brand:hover {
    transform: translateY(-1px);
}

.logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover {
    filter: drop-shadow(0 4px 14px rgba(37, 99, 235, 0.2));
}

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

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 550;
    margin: 0;
    padding: 0.55rem 1.1rem !important;
    border-radius: 999px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-link::before {
    display: none;
}

.nav-link:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color) !important;
    transform: none;
}

.nav-link.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border-color: var(--border-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='%232563eb' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-dark .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link {
    color: var(--text-secondary) !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-sm);
    margin-top: 0.5rem;
    padding: 0.5rem;
}

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

.dropdown-item:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
}

/* Hero — light airy composition */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    background:
        linear-gradient(165deg, #f7fafc 0%, #eef6ff 42%, #f4fbf8 78%, #ffffff 100%);
    padding: 7.5rem 0 5rem;
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(52%, 720px);
    background-image: url('../back.png');
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
    opacity: 0.28;
    pointer-events: none;
    z-index: 1;
}

.hero-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #f7fafc 0%,
        rgba(247, 250, 252, 0.75) 28%,
        transparent 58%
    );
}

.hero-grid {
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 15%, transparent 72%);
    animation: heroGridDrift 28s linear infinite;
}

@keyframes heroGridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(64px, 64px); }
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
    will-change: transform;
}

.hero-orb--a {
    width: min(52vw, 520px);
    height: min(52vw, 520px);
    top: -12%;
    right: -8%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(37, 99, 235, 0) 68%);
    animation: heroOrbFloat 14s ease-in-out infinite;
}

.hero-orb--b {
    width: min(44vw, 420px);
    height: min(44vw, 420px);
    bottom: -8%;
    left: -10%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0) 70%);
    animation: heroOrbFloat 18s ease-in-out infinite reverse;
}

.hero-orb--c {
    width: min(28vw, 280px);
    height: min(28vw, 280px);
    top: 38%;
    left: 42%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, rgba(16, 185, 129, 0) 70%);
    animation: heroOrbFloat 12s ease-in-out infinite 1.5s;
}

@keyframes heroOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-18px, 22px) scale(1.06); }
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 46rem;
    margin: 0 auto;
    text-align: center;
}

.hero-brand {
    margin: 0 0 1.1rem;
    font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif;
    font-size: clamp(1.85rem, 4.2vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #0f172a;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    margin: 0 0 1.15rem;
    font-size: clamp(1.35rem, 2.8vw, 2rem) !important;
    font-weight: 700;
    line-height: 1.35;
    color: #1e3a5f;
    background: none;
    -webkit-text-fill-color: unset;
    animation: fadeInUp 0.85s ease-out 0.08s backwards;
}

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

.hero-subtitle {
    margin: 0 auto 2rem;
    max-width: 34rem;
    font-size: clamp(1rem, 1.6vw, 1.15rem) !important;
    line-height: 1.8;
    color: var(--text-muted);
    animation: fadeInUp 0.9s ease-out 0.16s backwards;
}

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

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

.hero-section .scroll-down {
    z-index: 3;
}

/* Legacy unused hero bits kept inert */
.hero-overlay,
.code-particle {
    display: none;
}

@media (max-width: 768px) {
    .hero-bg-image {
        width: 100%;
        opacity: 0.16;
        background-position: center bottom;
    }

    .hero-bg-image::after {
        background: linear-gradient(
            180deg,
            #f7fafc 0%,
            rgba(247, 250, 252, 0.55) 40%,
            transparent 75%
        );
    }
}

/* Buttons */
.btn {
    border-radius: 999px;
    padding: 0.8rem 1.85rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: -0.01em;
    font-size: 0.95rem;
}

.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.5s, height 0.5s;
}

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

.btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #2563eb, #0284c7);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
    color: #ffffff;
    border: 2px solid transparent;
}

.btn-primary::after {
    display: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.35);
    color: #ffffff;
}

.btn-outline-light {
    border: 1.5px solid rgba(37, 99, 235, 0.35);
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

.btn-outline-light:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-dark);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

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

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

.scroll-down a {
    color: var(--primary-color);
    font-size: 1.6rem;
    opacity: 0.7;
    transition: var(--transition);
    display: inline-block;
}

.scroll-down a::before {
    display: none;
}

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

@keyframes scrollLine {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.page-header-section {
    background: linear-gradient(180deg, #eef4ff 0%, var(--dark-bg) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 140px;
}

.page-header-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

#programs {
    margin-top: 0;
    background: var(--dark-bg);
}

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

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

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

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

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 500;
}

.title-divider {
    width: 72px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--accent-color), transparent);
    margin: 1.25rem auto;
    border-radius: 2px;
}

/* Program Cards */
.program-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.program-card::before,
.program-card::after {
    display: none;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.25);
}

.program-image {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: var(--dark-bg-tertiary);
}

.program-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(15, 23, 42, 0.35) 100%);
}

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

.program-card:hover .program-image img {
    transform: scale(1.06);
}

.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;
    inset: 0;
    background: rgba(37, 99, 235, 0.88);
    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: #ffffff;
    color: var(--primary-color);
    border: none;
}

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

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

.program-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.program-description {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    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);
    background: #f8fafc;
    margin: 0 -1.5rem -1.5rem;
    padding: 1rem 1.5rem;
}

.btn-view-more {
    background: rgba(37, 99, 235, 0.08);
    border: 1.5px solid rgba(37, 99, 235, 0.25);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    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 {
    display: none;
}

.btn-view-more:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

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

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

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

.price-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.price-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    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 {
    color: var(--text-muted) !important;
    font-weight: 500;
}

#contact {
    background: #ffffff !important;
}

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

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

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

.website-card::before {
    display: none;
}

.website-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(2, 132, 199, 0.3);
}

.website-image {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: var(--dark-bg-tertiary);
}

.website-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(15, 23, 42, 0.35) 100%);
}

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

.website-card:hover .website-image img {
    transform: scale(1.06);
}

.website-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 132, 199, 0.88);
    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: #ffffff;
    color: var(--secondary-color);
    border: none;
}

.website-overlay .btn:hover {
    background: #f8fafc;
    color: #0369a1;
}

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

.website-category {
    display: inline-block;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.25);
    color: var(--secondary-color);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.website-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.website-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.website-client {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.website-footer {
    border-top: 1px solid var(--glass-border);
    background: #f8fafc;
    margin: 0 -1.5rem -1.5rem;
    padding: 1rem 1.5rem;
    margin-top: auto;
}

/* Contact Cards */
.contact-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 2.25rem 1.75rem;
    text-align: center;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    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 {
    display: none;
}

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

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.25);
}

.contact-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.35rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #ffffff;
    box-shadow: var(--glow-primary);
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    transform: scale(1.06);
}

.contact-label {
    font-size: 1.15rem;
    font-weight: 650;
    color: var(--text-color);
    margin-bottom: 0.6rem;
}

.contact-value {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

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

.contact-value a:hover {
    color: var(--primary-dark);
}

/* Clients */
.bg-gradient {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #eef4ff 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 {
    display: none;
}

.bg-light {
    background: #ffffff;
}

.clients-marquee-wrapper {
    position: relative;
    width: 100%;
    padding: 4rem 0;
    margin: 2rem 0;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
}

.clients-marquee-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    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.05); }
}

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

.client-item {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 560px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateX(-50%) scale(0.94) translateY(16px);
    pointer-events: none;
}

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

.client-item.active::before,
.client-item.active::after {
    display: none;
}

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

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

.client-logo {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    min-width: 180px;
    min-height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.08));
    transition: all 0.6s ease;
}

.client-item.active .client-logo {
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.client-item:hover .client-logo {
    transform: scale(1.04);
}

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

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

/* Footer */
.footer,
.site-footer {
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(37, 99, 235, 0.18), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 100%, rgba(14, 165, 233, 0.12), transparent 50%),
        #0f172a;
    color: #94a3b8;
    border-top: none;
    position: relative;
    padding: 3.5rem 0 1.5rem;
}

.footer::before,
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--accent-color), transparent);
    opacity: 0.7;
}

.site-footer__brand--solo {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.site-footer__brand--solo .site-footer__logo {
    justify-content: center;
    margin-bottom: 0.85rem;
}

.site-footer__brand--solo .site-footer__tagline {
    max-width: none;
    margin: 0 auto;
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #f8fafc;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
}

.site-footer__logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px;
}

.site-footer__tagline {
    margin: 0;
    max-width: 28rem;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #94a3b8;
}

.site-footer__bottom {
    padding-top: 0;
    text-align: center;
}

.site-footer__copy {
    font-size: 0.88rem;
    color: #64748b;
}

.footer .row {
    text-align: center;
}

.footer p,
.footer a,
.site-footer a {
    transition: var(--transition);
}

@media (max-width: 575.98px) {
    .site-footer {
        padding: 2.75rem 0 1.25rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    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); }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #e8eef6;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.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;
}

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

[dir="rtl"] span[dir="ltr"],
span[dir="ltr"],
*[dir="ltr"] {
    direction: ltr !important;
    unicode-bidi: plaintext !important;
    display: inline-block !important;
}

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

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

@media (max-width: 1200px) {
    section:not(.hero-section) { padding: 80px 0; }
}

@media (max-width: 992px) {
    .hero-section { min-height: auto; padding: 7rem 0 4.5rem; }
    .section-title { font-size: 2rem !important; }
}

@media (max-width: 768px) {
    :root { --border-radius: 16px; }

    section { padding: 60px 0; }

    .hero-section { padding: 6.5rem 0 4rem; }

    .hero-brand { font-size: clamp(1.55rem, 7vw, 2.1rem); }
    .section-title { font-size: 1.7rem !important; }

    .program-card { margin-bottom: 1.5rem; }
    .program-image { height: 200px; }

    .btn {
        padding: 0.65rem 1.4rem;
        font-size: 0.88rem;
    }

    .contact-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .clients-marquee-wrapper {
        padding: 2.5rem 0;
        min-height: 280px;
    }

    .clients-marquee {
        max-width: 560px;
        height: 260px;
    }

    .client-item {
        max-width: 480px;
        height: 260px;
        padding: 32px;
    }

    .navbar { padding: 0.7rem 0; }
    .navbar .container { gap: 1rem; }
    .navbar-nav { margin-left: 0; gap: 0.35rem; }

    .navbar-collapse {
        background: #ffffff;
        margin-top: 0.75rem;
        border-radius: var(--border-radius);
        padding: 1rem;
        border: 1px solid var(--glass-border);
        box-shadow: var(--shadow-md);
    }

    .nav-link {
        padding: 0.7rem 1rem !important;
        text-align: right;
    }
}

@media (max-width: 576px) {
    .hero-buttons .btn { min-width: 100%; }
    .section-title { font-size: 1.45rem !important; }
    .program-title { font-size: 1.15rem; }
    .price-value { font-size: 1.2rem; }

    .clients-marquee-wrapper {
        padding: 2rem 0;
        min-height: 240px;
    }

    .clients-marquee {
        max-width: 92%;
        height: 230px;
    }

    .client-item {
        max-width: 100%;
        height: 230px;
        padding: 24px;
    }
}

@media print {
    .navbar,
    .scroll-down,
    .program-overlay {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-grid,
    .hero-orb,
    .scroll-down {
        animation: none !important;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
