/* ==========================================================================
   CSS Variables & Theme
   ========================================================================== */
   :root {
    /* Color Palette */
    --clr-navy: #0B162C;
    --clr-navy-light: #1A2C54;
    --clr-gold: #B48C36;
    --clr-gold-light: #CBA553;
    --clr-gold-dark: #8F6D25;
    --clr-white: #FFFFFF;
    --clr-gray-100: #F8F9FA;
    --clr-gray-200: #E9ECEF;
    --clr-gray-300: #DEE2E6;
    --clr-gray-800: #343A40;
    
    /* Backgrounds */
    --bg-main: var(--clr-navy);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.1);
    
    /* Borders & Shadows */
    --border-glass: 1px solid rgba(255, 255, 255, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-gold: 0 4px 20px 0 rgba(212, 175, 55, 0.3);
    
    /* Typography */
    --font-primary: 'Cairo', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--clr-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

.section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-4 {
    margin-top: 1.5rem;
}

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

.title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--clr-gold);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--clr-gray-300);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--clr-white);
}

.section-title .line {
    width: 80px;
    height: 4px;
    background: var(--clr-gold);
    margin-top: 10px;
    border-radius: 2px;
}

/* ==========================================================================
   Glassmorphism Utilities
   ========================================================================== */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--border-glass);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-glass);
    transition: var(--transition-slow);
}

.glass-panel:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-5px);
}

/* Background Abstract Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.5;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--clr-navy-light);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(212, 175, 55, 0.15);
    bottom: 10%;
    left: -50px;
}

.shape-3 {
    width: 600px;
    height: 600px;
    background: rgba(11, 22, 44, 0.8);
    top: 40%;
    right: 20%;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--clr-gold);
    color: var(--clr-navy);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background: var(--clr-gold-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--clr-white);
    border: 2px solid var(--clr-white);
}

.btn-secondary:hover {
    background: var(--clr-white);
    color: var(--clr-navy);
}

.btn-outline {
    background: transparent;
    color: var(--clr-gold);
    border: 1px solid var(--clr-gold);
    padding: 8px 20px;
}

.btn-outline:hover {
    background: var(--clr-gold);
    color: var(--clr-navy);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-fast);
    padding: 20px 0;
}

.header.scrolled {
    background: rgba(11, 22, 44, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--clr-gold);
    line-height: 1;
}

.logo-text h1 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--clr-white);
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--clr-gold);
    letter-spacing: 1px;
    margin: 0;
}

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

.nav-links a {
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--clr-gold);
    transition: var(--transition-fast);
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--clr-gold);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--clr-white);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text {
    max-width: 1200px;
    padding: 50px 30px;
    border-left: 4px solid var(--clr-gold);
    border-radius: 0 16px 16px 0;
}

.hero-text-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-logo-img {
    height: 350px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0;
    flex-shrink: 0;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.5));
}

.hero-text .company-desc {
    font-size: 1.5rem;
    color: var(--clr-white);
    font-weight: 400;
    margin-bottom: 10px;
}

.hero-text .en-desc {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--clr-gray-300);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--clr-gold);
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* ==========================================================================
   Grid Layouts
   ========================================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-text h3 {
    font-size: 1.8rem;
    color: var(--clr-gold);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--clr-gray-200);
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.features-list i {
    color: var(--clr-gold);
    font-size: 1.2rem;
}

.about-image .image-wrapper {
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.abstract-graphic {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    font-size: 4rem;
    color: var(--clr-gold);
    opacity: 0.8;
}

.abstract-graphic i {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
    transition: var(--transition-slow);
}

.abstract-graphic i:hover {
    transform: scale(1.1);
    background: rgba(212, 175, 55, 0.1);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--clr-gold);
    transform: scaleX(0);
    transition: var(--transition-slow);
    transform-origin: right;
}

.service-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--clr-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    background: var(--clr-gold);
    color: var(--clr-navy);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--clr-gray-300);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.read-more {
    color: var(--clr-gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more:hover {
    gap: 12px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 5px;
    color: var(--clr-gold);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-white);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--clr-gold);
    color: var(--clr-navy);
    border-color: var(--clr-gold);
}

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

input, textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--clr-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--clr-gold);
    background: rgba(255,255,255,0.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 2;
}

.footer p {
    color: var(--clr-gray-300);
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s ease; }

.appear {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .hero-text {
        padding: 40px;
    }
    
    .hero-text-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--clr-navy);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition-slow);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1000;
    }

    .lang-switch {
        display: none; /* Hide on mobile for simplicity, or move to mobile menu */
    }

    .title {
        font-size: 2.5rem;
    }

    .hero-logo-img {
        height: 180px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .glass-panel {
        padding: 25px;
    }
}

/* ==========================================================================
   Image & New Element Styles
   ========================================================================== */
.logo-glass-box {
    height: 80px;
    width: 80px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-img {
    height: 140px;
    width: 140px;
    object-fit: contain;
    flex-shrink: 0;
    transform: scale(1.5);
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 22, 44, 0.95), rgba(11, 22, 44, 0.7));
}

.p-0 {
    padding: 0 !important;
}

.rounded-img {
    border-radius: 16px;
}

.full-width {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-img-wrapper {
    position: relative;
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.service-icon-floating {
    position: absolute;
    bottom: -25px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--clr-gold);
    color: var(--clr-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-gold);
    z-index: 2;
}

.service-content {
    padding: 40px 30px 30px;
    text-align: right;
}

.ltr-text {
    direction: ltr;
    display: inline-block;
}

[dir="ltr"] .service-content {
    text-align: left;
}

[dir="ltr"] .service-icon-floating {
    right: auto;
    left: 30px;
}

[dir="ltr"] .hero-overlay {
    background: linear-gradient(to left, rgba(11, 22, 44, 0.95), rgba(11, 22, 44, 0.7));
}

[dir="ltr"] .hero-text {
    border-left: none;
    border-right: 4px solid var(--clr-gold);
    border-radius: 16px 0 0 16px;
}

[dir="ltr"] .nav-links a::after {
    right: auto;
    left: 0;
}

[dir="ltr"] .nav-links a:hover::after,
[dir="ltr"] .nav-links a.active::after {
    left: 0;
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    height: 250px;
    padding: 0 !important;
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 22, 44, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    color: var(--clr-gold);
    font-size: 3rem;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

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

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

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border: 3px solid var(--clr-gold);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    animation: zoom 0.6s;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-size: 1.2rem;
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--clr-gold);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--clr-white);
    text-decoration: none;
    cursor: pointer;
}

/* ==========================================================================
   Language Switcher LTR Overrides
   ========================================================================== */
html[dir="ltr"] body,
html[dir="ltr"] h1, html[dir="ltr"] h2, html[dir="ltr"] h3, 
html[dir="ltr"] h4, html[dir="ltr"] h5, html[dir="ltr"] h6,
html[dir="ltr"] .btn, html[dir="ltr"] .logo-text h1, html[dir="ltr"] .logo-text p {
    font-family: 'Inter', sans-serif;
}

html[dir="ltr"] .fa-arrow-left::before {
    content: "\f061"; /* Changes arrow to point right in English */
}

html[dir="ltr"] .features-list li i {
    margin-left: 0;
    margin-right: 15px;
}

