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

:root {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --secondary: #ff1493;
    --accent: #00ffaa;
    --gold: #d4af37;
    --gold-light: #e8c547;
    --dark: #0a0e27;
    --dark-light: #1a1f3a;
    --light: #f5f7fa;
    --text: #333;
    --text-light: #666;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Texte arabe */
.arabic-text, .arabic-small, .section-subtitle-arabic, .why-subtitle, .footer-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.1rem;
    color: var(--gold);
    font-weight: 600;
}

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

/* Navbar */
.navbar {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 212, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    padding: 60px 20px;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(212, 175, 55, 0.03) 50px, rgba(212, 175, 55, 0.03) 100px),
        repeating-linear-gradient(-45deg, transparent, transparent 50px, rgba(0, 212, 255, 0.02) 50px, rgba(0, 212, 255, 0.02) 100px);
    z-index: 0;
    pointer-events: none;
}

.islamic-ornament {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--light);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero p {
    font-size: 1.8rem;
    color: var(--light);
    margin-bottom: 10px;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px !important;
    opacity: 0.8;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.gradient-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 255, 170, 0.2));
    filter: blur(80px);
    animation: blob 8s infinite ease-in-out;
}

.gradient-blob.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.2), rgba(0, 212, 255, 0.2));
    animation: blob 8s infinite ease-in-out 2s reverse;
}

@keyframes blob {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(100px, 50px);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fade-in 0.8s ease forwards;
}

/* Buttons */
.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--dark);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

/* Services Section */
.services {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.services::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-ornament-top {
    text-align: center;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 20px;
    letter-spacing: 10px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: var(--light);
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.section-subtitle-arabic {
    text-align: center;
    margin-bottom: 60px;
    font-size: 1.3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 170, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent);
    border-radius: 50%;
    transition: all 0.6s ease;
    opacity: 0;
}

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

.service-card:hover::after {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 255, 170, 0.1));
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.2);
}

.service-card:hover::before {
    transform: translate(-50%, -50%);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 20px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--accent);
    background: rgba(0, 255, 170, 0.1);
    transform: scale(1.1) rotate(10deg);
}

/* Service Images */
.service-image {
    width: 100%;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin-bottom: 25px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.7), rgba(0, 255, 170, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-overlay i {
    font-size: 3rem;
    color: white;
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

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

.service-card:hover .service-overlay i {
    transform: scale(1);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--light);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-link:hover {
    color: var(--accent);
    gap: 12px;
}

/* Why Us Section */
.why-us {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--dark-light) 0%, var(--dark) 100%);
    position: relative;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.why-subtitle {
    text-align: center;
    color: var(--gold);
    margin-bottom: 60px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.why-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
}

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

.why-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.why-card h3 {
    color: var(--light);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.why-card p {
    color: var(--text-light);
}

/* Contact Section */
.contact {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: rgba(0, 212, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
    transform: translateX(10px);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.info-card h3 {
    color: var(--light);
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-light);
}

.info-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.info-card a:hover {
    color: var(--accent);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.form-group select {
    cursor: pointer;
    color: var(--light);
}

.form-group select option {
    background: var(--dark);
    color: var(--light);
}

/* Footer */
.footer {
    background: var(--dark);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-arabic {
    margin-top: 15px;
    font-size: 1rem;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    color: var(--primary);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.arabic-small {
    display: block;
    font-size: 0.9rem;
    margin-top: 8px;
    color: var(--gold);
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer .container {
        flex-direction: column;
        gap: 30px;
    }

    .hero {
        min-height: 80vh;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .logo {
        font-size: 18px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}
