:root {
    --primary-gold: #d4af37;
    --dark-gold: #b8941f;
    --light-gold: #f4e4a6;
    --rich-black: #1a1a1a;
    --deep-black: #000000;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-gray: #6c757d;
    --whatsapp-green: #25d366;
    --font-arabic: 'Cairo', sans-serif;
    --font-english: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-arabic);
    line-height: 1.6;
    color: var(--rich-black);
    overflow-x: hidden;
}

body.en {
    font-family: var(--font-english);
}

body.en h1, body.en h2, body.en h3, body.en h4, body.en h5, body.en h6 {
    font-family: var(--font-display);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gold {
    color: var(--primary-gold) !important;
}

.bg-gold {
    background-color: var(--primary-gold) !important;
}

.bg-dark {
    background-color: var(--rich-black) !important;
}

.bg-black {
    background-color: var(--deep-black) !important;
}

/* Buttons */
.btn-gold {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--deep-black);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-gold:hover {
    background-color: var(--dark-gold);
    border-color: var(--dark-gold);
    color: var(--deep-black);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-outline-gold {
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    background-color: transparent;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline-gold:hover {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--deep-black);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    border-color: var(--whatsapp-green);
    color: var(--white);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    border-color: #128c7e;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

/* Navigation */
.custom-navbar {
    background: linear-gradient(135deg, var(--rich-black) 0%, var(--deep-black) 100%);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold) !important;
    text-decoration: none;
}

.brand-text {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--light-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: 2px solid var(--primary-gold);
    object-fit: contain;
    background: var(--white);
    padding: 4px;
    transition: all 0.3s ease;
}

.company-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 8px;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-gold) !important;
    background-color: rgba(212, 175, 55, 0.1);
}

.navbar-nav .nav-link.active {
    color: var(--primary-gold) !important;
    background-color: rgba(212, 175, 55, 0.15);
}

.language-switch {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    color: var(--deep-black) !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    padding: 6px 12px !important;
    margin: 0 8px;
}

.language-switch:hover {
    color: var(--deep-black) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--rich-black) 0%, var(--deep-black) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.company-info {
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--primary-gold);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-up-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.animate-fade-up-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.animate-fade-up-delay-3 {
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--rich-black) 0%, var(--deep-black) 100%);
    padding: 120px 0 80px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rich-black);
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    border-radius: 2px;
}

body[dir="rtl"] .section-title::after {
    right: 0;
    left: auto;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h5 {
    color: var(--rich-black);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* Services Section */
.services-preview {
    padding: 80px 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--deep-black);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.service-card h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
}

/* Services Detail Page */
.services-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.service-detailed-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.service-detailed-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-gold);
}

.service-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: var(--deep-black);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.service-detailed-card h3 {
    color: var(--rich-black);
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.service-detailed-card p {
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.7;
    text-align: center;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-gray);
}

.service-features li i {
    margin-left: 12px;
    font-size: 14px;
}

body[dir="ltr"] .service-features li i {
    margin-right: 12px;
    margin-left: 0;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    font-weight: 600;
    color: var(--rich-black);
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-control:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.2);
    outline: none;
}

.contact-info {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    font-size: 1.5rem;
    color: var(--deep-black);
    flex-shrink: 0;
}

body[dir="ltr"] .contact-icon {
    margin-right: 20px;
    margin-left: 0;
}

.contact-details h5 {
    color: var(--rich-black);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-details p {
    color: var(--text-gray);
    margin-bottom: 4px;
    font-size: 14px;
}

/* Map Section */
.map-section {
    padding: 60px 0;
}

.map-placeholder {
    background: var(--white);
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px dashed #dee2e6;
}

.map-content i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.map-content h5 {
    color: var(--rich-black);
    margin-bottom: 10px;
    font-weight: 600;
}

.map-content p {
    color: var(--text-gray);
}

/* Gallery Section */
.gallery-filter {
    padding: 30px 0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-buttons .btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-buttons .btn.active {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--deep-black);
}

.gallery-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.gallery-item {
    transition: all 0.3s ease;
}

.gallery-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-image:hover .gallery-overlay {
    opacity: 1;
}

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

.gallery-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.gallery-content h5 {
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 600;
}

.gallery-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-size: 14px;
}

/* Video Gallery */
.videos-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.video-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.video-placeholder {
    background: linear-gradient(135deg, var(--rich-black) 0%, var(--deep-black) 100%);
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.video-content {
    text-align: center;
    color: var(--white);
    padding: 30px;
    position: relative;
    z-index: 2;
}

.video-content i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.video-content h5 {
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 600;
}

.video-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.video-player-placeholder {
    background: var(--light-gray);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.video-message {
    text-align: center;
    color: var(--text-gray);
}

.video-message i {
    font-size: 3rem;
    color: var(--primary-gold);
}

.video-message h5 {
    color: var(--rich-black);
    margin-bottom: 10px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

/* Footer */
.footer {
    padding: 40px 0;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    animation: pulse 2s infinite;
}

body[dir="ltr"] .whatsapp-btn {
    right: 30px;
    left: auto;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.whatsapp-btn .btn-whatsapp {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    font-size: 16px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .filter-buttons .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto 15px;
    }
    
    .company-info {
        margin: 30px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .whatsapp-btn {
        bottom: 20px;
        left: 20px;
    }
    
    body[dir="ltr"] .whatsapp-btn {
        right: 20px;
        left: auto;
    }
    
    .whatsapp-btn .btn-whatsapp {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .whatsapp-btn .btn-whatsapp span {
        display: none;
    }
}

@media (max-width: 576px) {
    .navbar-brand .brand-text {
        font-size: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .service-detailed-card,
    .contact-form-wrapper,
    .contact-info {
        padding: 25px 20px;
    }
    
    .video-placeholder {
        height: 220px;
    }
    
    .video-content {
        padding: 20px;
    }
    
    .video-content i {
        font-size: 3rem;
    }
}

/* RTL Support */
body[dir="rtl"] {
    text-align: right;
}

body[dir="rtl"] .navbar-nav {
    margin-right: auto !important;
    margin-left: 0 !important;
}

body[dir="rtl"] .navbar-nav.ms-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

body[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

body[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

body[dir="rtl"] .text-md-end {
    text-align: right !important;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gold);
}

/* Modal Customization */
.modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.modal-header {
    background: var(--rich-black);
    color: var(--white);
    border-bottom: none;
}

.modal-title {
    color: var(--primary-gold);
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-btn,
    .btn,
    .modal {
        display: none !important;
    }
    
    .page-header {
        margin-top: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .gallery-card,
    .service-detailed-card,
    .video-card {
        page-break-inside: avoid;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-gold: #ffed4e;
        --rich-black: #000000;
        --text-gray: #333333;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}