/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    --primary-gold: #af8839;
    --primary-gold-light: #d4a94d;
    --primary-gold-dark: #8b6a2c;
    --dark-blue: #26525d;
    --dark-blue-light: #356a78;
    --dark-blue-dark: #1a3840;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray-100: #f1f3f4;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

body[dir="ltr"] {
    font-family: var(--font-en);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-gold);
    color: var(--white);
    border-color: var(--primary-gold);
}

.btn-primary:hover {
    background: var(--primary-gold-dark);
    border-color: var(--primary-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark-blue);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--dark-blue);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--primary-gold);
    color: var(--white);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    padding: 15px 0;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo-img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-base);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.footer-logo .logo-img {
    max-height: 50px;
}

.footer-logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-blue);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: var(--transition-base);
}

body[dir="ltr"] .nav-link::after {
    right: auto;
    left: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-toggle {
    padding: 10px 20px;
    background: var(--light-gray);
    border: 1px solid var(--gray-300);
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-blue);
    transition: var(--transition-base);
    font-family: var(--font-ar);
}

.lang-toggle:hover {
    background: var(--gray-200);
    border-color: var(--primary-gold);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark-blue);
    transition: var(--transition-base);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-blue-dark) 100%);
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920') center/cover;
    opacity: 0.15;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(175, 136, 57, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(175, 136, 57, 0.08) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    margin-bottom: 30px;
    color: var(--white);
}

.title-ar {
    display: block;
    line-height: 1.4;
}

.hero-description {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--white);
    opacity: 0.9;
}

.stat-divider {
    width: 2px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
}

/* ===================================
   Scroll Indicator
   =================================== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-gold);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 1; top: 8px; }
    50% { opacity: 0; top: 20px; }
}

/* ===================================
   Section Styling
   =================================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 25px;
    background: rgba(175, 136, 57, 0.1);
    color: var(--primary-gold);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 25px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    max-width: 800px;
    margin: 0 auto;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    margin: 20px auto 0;
}

/* ===================================
   About Section
   =================================== */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.image-wrapper:hover .about-img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(38, 82, 93, 0.3), transparent);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--white);
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

body[dir="ltr"] .experience-badge {
    right: auto;
    left: 30px;
}

.badge-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1;
}

.badge-text {
    font-size: 0.875rem;
    color: var(--dark-blue);
    font-weight: 600;
}

.about-text {
    padding: 20px 0;
}

.about-intro p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 30px;
}

.about-points {
    display: grid;
    gap: 25px;
}

.point-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.point-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.point-text h4 {
    font-size: 1.125rem;
    margin-bottom: 5px;
}

.point-text p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

/* ===================================
   Vision Section
   =================================== */
.vision {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    position: relative;
}

.vision-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?w=1920') center/cover;
    opacity: 0.03;
}

.vision-content {
    position: relative;
    z-index: 1;
}

.vision-text {
    text-align: center;
    font-size: 1.25rem;
    max-width: 900px;
    margin: 0 auto 60px;
    color: var(--gray-600);
}

.vision-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.vision-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-base);
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.vision-card .card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    margin: 0 auto 25px;
}

.vision-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.vision-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

/* ===================================
   Services Section
   =================================== */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-light));
    transform: scaleX(0);
    transition: var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.service-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(175, 136, 57, 0.15);
    line-height: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--dark-blue), var(--dark-blue-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
}

.service-title {
    font-size: 1.375rem;
    margin-bottom: 15px;
}

.service-description {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 25px;
}

.service-list {
    display: grid;
    gap: 12px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.service-list li::before {
    content: '✓';
    color: var(--primary-gold);
    font-weight: 700;
}

/* ===================================
   CTA Section
   =================================== */
.cta {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-blue-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920') center/cover;
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.cta-title {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    background: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.info-text p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-blue);
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-ar);
    transition: var(--transition-base);
    background: var(--white);
    outline: none;
}

body[dir="ltr"] .form-group input,
body[dir="ltr"] .form-group textarea,
body[dir="ltr"] .form-group select {
    font-family: var(--font-en);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-gold);
}

.form-group label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    color: var(--gray-500);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition-base);
    background: var(--white);
    padding: 0 5px;
}

body[dir="ltr"] .form-group label {
    right: auto;
    left: 20px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:valid + label {
    top: 0;
    font-size: 0.8125rem;
    color: var(--primary-gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand .logo {
    justify-content: flex-start;
}

.footer-logo {
    text-decoration: none;
    display: inline-block;
}

.footer-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 20px;
}

.footer-links ul,
.footer-services ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    transition: var(--transition-base);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--primary-gold);
    padding-right: 5px;
}

body[dir="ltr"] .footer-links a:hover,
body[dir="ltr"] .footer-services a:hover {
    padding-right: 0;
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--primary-gold);
    font-size: 1.125rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    box-shadow: none;
}

.footer-social .social-link:hover {
    background: var(--primary-gold);
    transform: translateY(-2px);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-base);
        box-shadow: var(--shadow-lg);
    }
    
    body[dir="ltr"] .nav-menu {
        right: auto;
        left: -100%;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    body[dir="ltr"] .nav-menu.active {
        right: auto;
        left: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .about-img {
        height: 400px;
    }
    
    .experience-badge {
        right: 15px;
        bottom: 15px;
        padding: 20px 25px;
    }
    
    body[dir="ltr"] .experience-badge {
        right: auto;
        left: 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-form-wrapper {
        padding: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .point-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .vision-cards {
        grid-template-columns: 1fr;
    }
}