:root {
    --primary-gold: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #aa8620;
    --primary-silver: #C0C0C0;
    --silver-light: #E8E8E8;
    --dark-bg: #09090b;
    --dark-surface: #18181b;
    --dark-border: #27272a;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo-ar {
    font-family: 'Cairo', sans-serif;
}

.logo-en {
    font-family: 'Playfair Display', serif;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

/* Animations added per user request */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typography */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.section-title .line {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(45deg, var(--gold-dark), var(--primary-gold));
    color: var(--dark-bg);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.logo-ar {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-en {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--primary-silver);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--dark-bg);
    background-image: url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(9, 9, 11, 0.6) 0%, rgba(9, 9, 11, 0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--primary-gold);
    font-family: 'Playfair Display', 'Cairo', serif;
    font-style: italic;
    background: linear-gradient(to right, var(--primary-gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* About */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.features {
    margin-top: 30px;
}

.features li {
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.features li i {
    color: var(--primary-gold);
    font-size: 1.5rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.abstract-gold-shape {
    width: 300px;
    height: 400px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(192, 192, 192, 0.1));
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 50% 30% 60% 40% / 40% 50% 30% 60%;
    animation: shapeAnim 10s infinite alternate linear;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
}

@keyframes shapeAnim {
    0% {
        border-radius: 50% 30% 60% 40% / 40% 50% 30% 60%;
    }

    50% {
        border-radius: 30% 60% 40% 50% / 50% 30% 60% 40%;
    }

    100% {
        border-radius: 60% 40% 50% 30% / 30% 60% 40% 50%;
    }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
    display: flex;
    align-items: flex-end;
    transition: var(--transition);
    border: 1px solid var(--dark-border);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) saturate(0.8);
    transition: var(--transition);
    z-index: 1;
}

.custom-bg {
    background: linear-gradient(135deg, #111, #222);
}

.service-card:hover .card-bg {
    filter: brightness(0.6) saturate(1.2);
    transform: scale(1.05);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    background: linear-gradient(to top, rgba(9, 9, 11, 1) 0%, rgba(9, 9, 11, 0.5) 70%, transparent 100%);
    width: 100%;
}

.icon-gold {
    color: var(--primary-gold);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.icon-silver {
    color: var(--primary-silver);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact */
.contact-wrapper {
/* تعديل لتوسيط المحتوى بالكامل */

    display: flex;
    flex-direction: column; /* جعل العناصر تحت بعضها */
    align-items: center;    /* توسيط أفقي */
    justify-content: center; /* توسيط عمودي */
    text-align: center;      /* توسيط النصوص */
    gap: 30px;
    background: var(--dark-surface);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--dark-border);

}

.contact-info {
    width: 100%;
    max-width: 600px; /* تحديد عرض أقصى ليبقى شكل النص أنيق */
}



.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-gold);
}

.contact-info p {
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-item i {
    color: var(--primary-gold);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
}

/* Footer */
footer {
    background: #000;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--dark-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo .logo-en {
    color: var(--text-secondary);
    margin-top: 5px;
    display: block;
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 1px solid var(--dark-border);
}

.socials a:hover {
    background: var(--primary-gold);
    color: #000;
    border-color: var(--primary-gold);
}

/* Responsive */
@media (max-width: 991px) {

    .about-content,
    .contact-wrapper {
        flex-direction: column;
        
    }

    .hero-title {
        font-size: 3rem;
    }

    .about-image {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(9, 9, 11, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }
}