﻿
:root {
    --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark: #1a1a2e;
    --light: #eee;
    --gold: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background: #0f0f23;
}

    body.en {
        font-family: 'Inter', sans-serif;
        direction: ltr;
    }

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

    nav.scrolled {
        background: rgba(26, 26, 46, 0.98);
        padding: 0.5rem 0;
    }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

    .nav-links a {
        color: white;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
    }

        .nav-links a:hover {
            color: #4facfe;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

.lang-toggle {
    background: var(--accent);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .lang-toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(79, 172, 254, 0.3);
    }

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="g" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="rgba(79,172,254,0.1)"/><stop offset="100%" stop-color="transparent"/></radialGradient></defs><circle cx="50" cy="50" r="50" fill="url(%23g)"/></svg>') center/cover;
        animation: pulse 4s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-button {
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    animation: fadeInUp 1s ease-out 0.4s both;
}

    .cta-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(79, 172, 254, 0.4);
    }

/* Floating Elements */
.floating-element {
    position: absolute;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

    .floating-element:nth-child(1) {
        top: 20%;
        left: 10%;
        animation-delay: 0s;
    }

    .floating-element:nth-child(2) {
        top: 60%;
        right: 10%;
        animation-delay: 2s;
    }

    .floating-element:nth-child(3) {
        bottom: 20%;
        left: 20%;
        animation-delay: 4s;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

    .section-title h2 {
        font-size: 2.5rem;
        font-weight: 800;
        color: white;
        margin-bottom: 1rem;
        background: var(--accent);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .section-title p {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.7);
        max-width: 600px;
        margin: 0 auto;
    }

/* About Section */
.about {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: #4facfe;
    margin-bottom: 1rem;
}

.about-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-item {
    background: rgba(79, 172, 254, 0.1);
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid rgba(79, 172, 254, 0.2);
    transition: all 0.3s ease;
}

    .feature-item:hover {
        transform: translateY(-5px);
        background: rgba(79, 172, 254, 0.2);
    }

    .feature-item i {
        color: #4facfe;
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .feature-item h4 {
        color: white;
        margin-bottom: 0.5rem;
    }

    .feature-item p {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.9rem;
    }

.about-visual {
    position: relative;
}

.tech-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--accent);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: rotate 20s linear infinite;
}

    .tech-circle::before {
        content: '';
        position: absolute;
        width: 350px;
        height: 350px;
        border-radius: 50%;
        background: #1a1a2e;
        z-index: 1;
    }

    .tech-circle i {
        font-size: 3rem;
        color: #4facfe;
        z-index: 2;
    }

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Services Section */
.services {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--accent);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .service-card:hover::before {
        transform: scaleX(1);
    }

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        border-color: rgba(79, 172, 254, 0.3);
    }

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
}

    .service-features li {
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 0.5rem;
        padding-right: 1rem;
        position: relative;
    }

        .service-features li::before {
            content: '✓';
            color: #4facfe;
            font-weight: bold;
            position: absolute;
            right: 0;
            top: 0;
        }

/* AI Section */
.ai-section {
    background: linear-gradient(135deg, #0f3460 0%, #2d1b69 100%);
    position: relative;
    overflow: hidden;
}

    .ai-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(79,172,254,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
        opacity: 0.3;
    }

.ai-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.ai-features {
    display: grid;
    gap: 2rem;
}

.ai-feature {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

    .ai-feature:hover {
        transform: translateX(-10px);
        border-color: rgba(79, 172, 254, 0.5);
    }

    .ai-feature i {
        font-size: 2.5rem;
        color: #4facfe;
        margin-bottom: 1rem;
    }

    .ai-feature h4 {
        color: white;
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .ai-feature p {
        color: rgba(255, 255, 255, 0.8);
    }

.ai-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brain-svg {
    width: 300px;
    height: 300px;
    filter: drop-shadow(0 0 30px rgba(79, 172, 254, 0.5));
}

.neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.neural-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #4facfe;
    border-radius: 50%;
    animation: pulse-node 2s ease-in-out infinite;
}

    .neural-node:nth-child(1) {
        top: 20%;
        left: 20%;
        animation-delay: 0s;
    }

    .neural-node:nth-child(2) {
        top: 30%;
        right: 25%;
        animation-delay: 0.5s;
    }

    .neural-node:nth-child(3) {
        bottom: 25%;
        left: 30%;
        animation-delay: 1s;
    }

    .neural-node:nth-child(4) {
        bottom: 20%;
        right: 20%;
        animation-delay: 1.5s;
    }

@keyframes pulse-node {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #2d1b69 0%, #11998e 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

    .contact-item:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(-10px);
    }

    .contact-item i {
        font-size: 2rem;
        color: #4facfe;
        margin-left: 1rem;
    }

    .contact-item div h4 {
        color: white;
        margin-bottom: 0.5rem;
    }

    .contact-item div p {
        color: rgba(255, 255, 255, 0.8);
    }

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        color: white;
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-family: inherit;
        transition: all 0.3s ease;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #4facfe;
            box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(79, 172, 254, 0.3);
    }

/* Footer */
footer {
    background: #0f0f23;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

    footer p {
        color: rgba(255, 255, 255, 0.6);
    }

.social-links {
    margin-top: 1rem;
}

    .social-links a {
        color: #4facfe;
        font-size: 1.5rem;
        margin: 0 1rem;
        transition: all 0.3s ease;
    }

        .social-links a:hover {
            transform: translateY(-3px);
            color: white;
        }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-content,
    .ai-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .tech-circle {
        width: 250px;
        height: 250px;
    }

        .tech-circle::before {
            width: 200px;
            height: 200px;
        }

    .section-title h2 {
        font-size: 2rem;
    }
}

/* Language Specific Styles */
body.en .logo {
    font-family: 'Inter', sans-serif;
}

body.en .hero h1,
body.en .section-title h2 {
    font-family: 'Inter', sans-serif;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0f23;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

    .loading-animation.hidden {
        opacity: 0;
        pointer-events: none;
    }

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(79, 172, 254, 0.3);
    border-top: 3px solid #4facfe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hover Effects */
.hover-glow {
    transition: all 0.3s ease;
}

    .hover-glow:hover {
        text-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
    }

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


