:root {
    --primary-color: #2563eb;
    --secondary-color: #60a5fa;
    --text-color: #1e293b;
    --bg-color: #ffffff;
    --btn-bg: rgba(255, 255, 255, 0.2);
    --font-primary: 'Tajawal', sans-serif;
}

[data-theme="dark"] {
    --primary-color: #60a5fa;
    --secondary-color: #93c5fd;
    --text-color: #f8fafc;
    --bg-color: #0f172a;
    --btn-bg: rgba(255, 255, 255, 0.1);
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--bg-color), var(--bg-color) 60%, rgba(37, 99, 235, 0.05));
    color: var(--text-color);
    transition: all 0.3s ease;
    overflow-x: hidden;
}

/* Controls */
.controls-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    padding: 10px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.control-btn {
    border: none;
    background: var(--btn-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 40px 0;
    overflow: hidden;
}

.hero-content {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.hero-titles {
    position: relative;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    opacity: 0.9;
}

.title-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    margin-top: 15px;
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-color);
    opacity: 0.9;
}

/* Logo Styles */
.logo-container {
    position: relative;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-wrapper {
    position: relative;
    z-index: 2;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 100%;
    height: auto;
    transition: all 0.5s ease;
    filter: drop-shadow(0 10px 20px rgba(37, 99, 235, 0.2));
}

.logo-img:hover {
    transform: scale(1.05);
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 70%);
    filter: blur(20px);
    z-index: 1;
}

/* CTA Button */
.cta-button {
    position: relative;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.button-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.cta-button:hover .button-effect {
    opacity: 1;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

/* Decoration Elements */
.decoration-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background: var(--primary-color);
    z-index: 0;
}

.element-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    filter: blur(40px);
}

.element-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    filter: blur(30px);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.preloader.fade-out {
    opacity: 0;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .logo-wrapper {
        width: 200px;
        height: 200px;
        margin: 20px auto;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .title-line {
        margin: 15px auto;
    }
    
    .controls-container {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
    }
}

/* Animation Styles */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* قسم من نحن */
.about-section {
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
    padding: 6rem 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.title-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin-bottom: 2rem;
    border-radius: 2px;
    position: relative;
}

.title-line::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background: var(--primary-color);
    right: -50px;
    border-radius: 2px;
}

.title-line::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background: var(--secondary-color);
    left: -50px;
    border-radius: 2px;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.vision-mission-card {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.vision-mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.vision-mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    transition: transform 0.3s ease;
}

.vision-mission-card:hover .card-icon {
    transform: scale(1.1);
}

.card-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    opacity: 0.5;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    70% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.card-icon svg {
    stroke: var(--primary-color);
    width: 35px;
    height: 35px;
}

.vision-mission-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
}

.vision-mission-card p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* العناصر الزخرفية */
.element-3 {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(60px);
}

.element-4 {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(40px);
}

/* Language Support */
html[lang="en"] .ar {
    display: none;
}

html[lang="ar"] .en {
    display: none;
}

@media (max-width: 768px) {
    .about-section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.2rem;
    }
    
    .vision-mission-card {
        padding: 2rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .vision-mission-card h3 {
        font-size: 1.5rem;
    }

    .about-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .title-line::before,
    .title-line::after {
        width: 30px;
    }
}

html {
    scroll-behavior: smooth;
}

/* قسم الخدمات */
.services-section {
    position: relative;
    background: var(--bg-primary);
    padding: 6rem 0;
}

.service-card {
    position: relative;
    padding: 2rem;
    height: 100%;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(var(--primary-color-rgb), 0.15),
        rgba(var(--secondary-color-rgb), 0.15)
    );
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--primary-color-rgb), 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: rgba(var(--primary-color-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-color);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon svg {
    stroke: white;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.icon-blur {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.service-card:hover .icon-blur {
    opacity: 0.3;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    transition: all 0.4s ease;
}

.service-card:hover .service-title {
    color: var(--primary-color);
}

.service-description {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* تحسين التأثيرات على الشاشات الصغيرة */
@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-title {
        font-size: 1.25rem;
    }
}

/* العناصر الزخرفية */
.element-5 {
    position: absolute;
    top: 10%;
    left: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0.05;
    filter: blur(80px);
}

.element-6 {
    position: absolute;
    bottom: 10%;
    right: -100px;
    width: 250px;
    height: 250px;
    background: linear-gradient(-45deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    opacity: 0.05;
    filter: blur(60px);
}

@media (max-width: 768px) {
    .services-section {
        padding: 4rem 0;
    }

    .service-card {
        padding: 2rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon svg {
        width: 30px;
        height: 30px;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }
}

/* قسم مشروع الحسن ابن الهيثم */
.alhazen-section {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(var(--bg-secondary-rgb), 0.95) 100%);
    padding: 6rem 0;
    overflow: hidden;
}

.alhazen-section .subtitle {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.alhazen-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    position: relative;
}

.content-wrapper {
    position: relative;
    z-index: 2;
}

/* تأثير الزجاج */
.glass-effect {
    background: rgba(var(--bg-primary-rgb), 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* البطاقات */
.features-grid {
    display: grid;
    gap: 1.5rem;
}

.feature-card {
    border-radius: 20px;
    padding: 1.8rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-icon {
    position: relative;
    width: 60px;
    height: 60px;
    min-width: 60px;
    z-index: 2;
}

.icon-inner {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 16px;
    filter: blur(15px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.feature-card:hover .icon-glow {
    opacity: 0.3;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.feature-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.feature-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* محاكاة المحادثة */
.chat-container {
    position: relative;
    padding: 1rem;
}

.chat-simulation {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: white;
    position: relative;
}

.chat-avatar {
    position: relative;
    width: 50px;
    height: 50px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    border: 2px solid white;
}

.chat-title h3 {
    font-size: 1.2rem;
    margin: 0;
    color: white;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.chat-messages {
    padding: 2rem;
    background: var(--bg-primary);
    min-height: 350px;
    max-height: 450px;
    overflow-y: auto;
}

.message {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInMessage 0.5s ease forwards;
}

.message-content {
    position: relative;
}

.message-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 0.5rem;
    display: block;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message p {
    margin: 0;
    padding: 1.2rem 1.5rem;
    border-radius: 20px;
    max-width: 80%;
    line-height: 1.6;
    position: relative;
}

.user-message {
    display: flex;
    justify-content: flex-end;
}

.user-message p {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom-right-radius: 4px;
}

.alhazen-message p {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

/* تأثير الكتابة */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 1rem;
    margin: 0.5rem 0;
    align-items: center;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing 1s infinite;
    opacity: 0.3;
    display: inline-block;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.explore-btn {
    display: block;
    text-align: center;
    padding: 1.2rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-content {
    position: relative;
    z-index: 2;
}

.btn-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.explore-btn:hover .btn-effect {
    opacity: 1;
}

.explore-btn:hover .btn-content {
    color: white;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .alhazen-section {
        padding: 4rem 0;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .chat-simulation {
        margin-top: 2rem;
    }

    .chat-messages {
        min-height: 300px;
    }

    .message p {
        max-width: 90%;
        padding: 1rem 1.2rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
}

/* الرسم التوضيحي */
.illustration-box {
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.illustration-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.illustration-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    text-align: center;
}

/* صورة المستخدم */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.user-message {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.user-message .message-content {
    order: -1;
    margin-right: 1rem;
}

/* تأثير الكتابة التدريجي */
.typing-text {
    min-height: 20px;
    margin: 0;
    padding: 1.2rem 1.5rem;
    border-radius: 20px;
    line-height: 1.6;
    position: relative;
}

.typing-text::after {
    content: '|';
    position: relative;
    display: inline-block;
    animation: blink 1s infinite;
    margin-left: 2px;
}

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

/* تحسين مؤشر الكتابة */
.typing-indicator {
    display: none; /* سيتم إظهاره عبر JavaScript */
    gap: 4px;
    padding: 8px 12px;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 12px;
    width: fit-content;
    margin: 8px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing-dot 1.4s infinite;
    opacity: 0.4;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-dot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* تحسين مظهر الرسائل */
.message-content p {
    transition: opacity 0.3s ease;
}

.message.alhazen-message .message-content p {
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1), rgba(var(--primary-color-rgb), 0.2));
}

.typing-text {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* العناصر الزخرفية */
.element-3 {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(60px);
}

.element-4 {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(40px);
}

/* قسم رؤيتنا نحو المستقبل */
.vision-future-section {
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
}

.vision-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.future-journey {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-top: 3rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.future-journey::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--secondary-color) 100%);
}

/* العناصر الزخرفية للقسم */
.vision-future-section .decoration-element {
    opacity: 0.1;
}

.element-9 {
    top: 20%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
}

.element-10 {
    bottom: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
}

/* قسم تواصل معنا */
.contact-section {
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
}

.contact-intro {
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
    color: #666;
    line-height: 1.8;
}

.contact-card {
    background: #fff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.contact-form {
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9fafb;
    color: #1f2937;
}

.form-control:hover {
    background-color: #ffffff;
    border-color: #d1d5db;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background-color: #ffffff;
}

.form-control::placeholder {
    color: #9ca3af;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.submit-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

/* تنسيق الحقول عند وجود خطأ */
.form-control.is-invalid {
    border-color: #ef4444;
    background-color: #fff;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.invalid-feedback {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.invalid-feedback::before {
    content: '⚠';
    font-size: 1rem;
}

/* تنسيق الحقول عند النجاح */
.form-control.is-valid {
    border-color: #10b981;
    background-color: #fff;
}

.form-control.is-valid:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.valid-feedback {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.valid-feedback::before {
    content: '✓';
    font-size: 1rem;
}

/* بطاقة واتساب */
.whatsapp-card {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-align: center;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.whatsapp-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.whatsapp-icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-card:hover .whatsapp-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.whatsapp-icon i {
    font-size: 3rem;
    color: white;
}

.whatsapp-text {
    text-align: center;
}

.whatsapp-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.whatsapp-card p {
    opacity: 0.9;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.whatsapp-btn {
    background: white;
    color: #25D366;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: #f8f8f8;
    color: #128C7E;
}

.whatsapp-btn i {
    font-size: 1.4rem;
}

/* العناصر الزخرفية */
.contact-section .decoration-element {
    position: absolute;
    filter: blur(50px);
    z-index: 0;
}

.element-11 {
    top: 10%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.05;
}

.element-12 {
    bottom: 5%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    opacity: 0.05;
}

/* رسائل النجاح والخطأ */
.alert {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    color: #fff;
    z-index: 1000;
    animation: slideIn 0.3s ease forwards;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 300px;
    text-align: center;
}

.alert-success {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.alert-error {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
}

@keyframes slideIn {
    from {
        transform: translateX(100%) translateY(-50%);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%) translateY(-50%);
        opacity: 0;
    }
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .contact-card {
        padding: 2rem;
    }

    .contact-card .card-header h3 {
        font-size: 1.5rem;
    }

    .whatsapp-features li {
        font-size: 1rem;
        padding-right: 2rem;
    }

    .submit-btn,
    .whatsapp-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .alert {
        right: 20px;
        left: 20px;
        min-width: auto;
    }
}

/* قسم التواصل */
.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-right-side {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-intro {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* بطاقة واتساب */
.whatsapp-card {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    margin-top: auto;
}

.whatsapp-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.whatsapp-icon {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
}

.whatsapp-card h3 {
    font-size: 1.5rem;
    margin: 0;
    color: white;
}

.whatsapp-card p {
    opacity: 0.9;
    margin: 0;
}

.whatsapp-btn {
    background: white;
    color: #25D366;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #128C7E;
}

.whatsapp-btn i {
    font-size: 1.25rem;
}

/* زر الإرسال */
.submit-btn {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #e0e0e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* قسم الفوتر */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem 0;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/pattern-light.svg') center/cover;
    opacity: 0.08;
    pointer-events: none;
    animation: gradientMove 20s linear infinite;
}

.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-tagline {
    margin-bottom: 0.75rem;
}

.footer-tagline p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.footer-copyright p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
    font-weight: 500;
}

/* إخفاء النصوص الإنجليزية بشكل افتراضي */
.site-footer .en {
    display: none;
}

/* عند تفعيل اللغة الإنجليزية */
html[lang="en"] .site-footer .en {
    display: block;
}

html[lang="en"] .site-footer .ar {
    display: none;
}

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

    .footer-tagline p {
        font-size: 1rem;
    }

    .footer-copyright p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .site-footer {
        padding: 1rem 0;
    }

    .footer-tagline p {
        font-size: 0.95rem;
    }

    .footer-copyright p {
        font-size: 0.8rem;
    }
}