@font-face {
    font-family: 'AlJazeera';
    src: url("fonts/Aljazeera.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AlJazeera';
    src: url("fonts/Al-Jazeera-Arabic-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'ProximaNova';
    src: url("fonts/ProximaNova-Bold.OTF") format("opentype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'ProximaNova';
    src: url("fonts/ProximaNova-SemiBold.OTF") format("opentype");
    font-weight: 600;
    font-style: normal;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'AlJazeera', 'ProximaNova', sans-serif !important;
    overflow-x: hidden;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

/* Re-enable pointer events for links/buttons inside images if any, 
   but usually images are just visuals. If an image is inside an anchor, 
   the anchor handles the click, but pointer-events:none on img makes it click-through 
   to the parent, which is actually good for protecting the image itself from right-click context 
   specifically on the image element, but we handle context menu globally. 
   Actually, pointer-events: none on IMG prevents right-clicking the image directly to "Save Image As",
   but allows clicking the parent link. */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #111; 
}
::-webkit-scrollbar-thumb {
    background: #c62026; 
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9e191e; 
}

/* Pulse Animation for Buttons */
@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(198, 32, 38, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(198, 32, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(198, 32, 38, 0); }
}
.btn-pulse {
    animation: pulse-blue 2s infinite;
}

.glass-effect {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid #c62026;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    transition: all 0.3s ease;
}
.nav-link:hover {
    border-color: #c62026;
    background: rgba(198, 32, 38, 0.12);
    color: #c62026;
    box-shadow: 0 0 14px rgba(198, 32, 38, 0.427);
}
.nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px #c62026;
}
.nav-link:active {
    transform: translateY(1px);
}

.nav-elevated {
    background: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #c62026;
}

/* Modern Floating Navbar */
.navbar-floating-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding: 0 20px;
}

.navbar-modern {
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(198, 32, 38, 0.3);
    border-radius: 9999px;
    padding: 8px 30px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 
                0 0 15px -5px rgba(198, 32, 38, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    max-width: 1200px;
    pointer-events: auto;
    transition: all 0.3s ease;
    gap: 2rem;
}

.navbar-modern:hover {
    background: rgba(10, 10, 10, 0.85);
    border-color: rgba(198, 32, 38, 0.5);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6), 
                0 0 20px -5px rgba(198, 32, 38, 0.3);
}

.nav-link-modern {
    color: #e5e5e5;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.nav-link-modern:hover {
    color: #ffffff;
    background: rgba(198, 32, 38, 0.15);
    text-shadow: 0 0 8px rgba(198, 32, 38, 0.6);
}

.nav-link-modern.active {
    color: #c62026;
    background: rgba(198, 32, 38, 0.1);
    font-weight: 600;
}

.nav-link-elite {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
}
.nav-link-elite:hover {
    color: #c62026;
    text-shadow: 0 0 10px rgba(198, 32, 38, 0.5);
    transform: translateY(-2px);
}
.nav-link-elite::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #c62026;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 8px #c62026;
}
.nav-link-elite:hover::after { 
    width: 80%; 
}

.mobile-panel { 
    transition: transform 0.25s ease, opacity 0.25s ease; 
    transform: translateY(-8px); 
    opacity: 0; 
}
.mobile-panel.open { transform: translateY(0); opacity: 1; }

.gallery-card {
    position: relative;
    border: 1px solid #c62026;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #0a0a0a;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.gallery-card:hover {
    transform: translateY(-4px);
    border-color: #c62026;
    box-shadow: 0 0 22px rgba(198, 32, 38, 0.35);
}
.gallery-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    filter: brightness(0.95) saturate(1.1);
    transition: filter 0.35s ease, transform 0.35s ease;
    user-select: none;
}
.gallery-card:hover .gallery-image {
    filter: brightness(1.08) saturate(1.15);
    transform: scale(1.03);
}
.logo-watermark {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    height: 3rem;
    width: auto;
    opacity: 0.95;
    filter: drop-shadow(0 0 12px rgba(198, 32, 38, 0.35));
    pointer-events: none;
    user-select: none;
}
.video-frame {
    border: 1px solid #c62026;
    border-radius: 1rem;
    box-shadow: 0 0 18px rgba(198, 32, 38, 0.2);
    background: #000000;
    aspect-ratio: 16 / 9;
}

.lightbox-media {
    width: min(90vw, 1000px);
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
}

#lightbox-image.lightbox-media {
    object-fit: cover;
    object-position: center;
}

#lightbox-video.lightbox-media {
    object-fit: contain;
    background: #000;
}

/* Seamless Marquee Animation */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.animate-scroll-left {
    animation: scroll-left 30s linear infinite;
}

.animate-scroll-right {
    animation: scroll-right 30s linear infinite;
}

.marquee-container:hover .animate-scroll-left,
.marquee-container:hover .animate-scroll-right {
    animation-play-state: paused;
}

/* Partner Card Styles */
.partner-card {
    position: relative;
    width: 180px;
    height: 100px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.partner-card:hover {
    background: #f8f9fa;
    border-color: #c62026;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), 0 0 15px rgba(198, 32, 38, 0.2);
}

.partner-icon {
    font-size: 2.5rem;
    color: #6b7280; /* gray-500 */
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.partner-card:hover .partner-icon {
    color: #c62026;
    transform: scale(1.1);
}

.partner-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563; /* gray-600 */
    transition: all 0.3s ease;
}

.partner-card:hover .partner-name {
    color: #000000;
}

/* Utility Classes */
/* .hidden removed to avoid conflict with Tailwind responsive classes */


/* Typing Effect (Legacy) */
.typing-effect {
    overflow: hidden;
    border-left: 3px solid #c62026;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
    max-width: fit-content;
}
@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: #c62026; } }

/* Fade In Up Staggered */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 1.5s; }
.delay-3 { animation-delay: 3s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Rotating Text Animation */
.rotating-text-container {
    position: relative;
    height: 80px; /* Adjust based on font size */
    overflow: hidden;
}

.rotating-text {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: rotateText 16s infinite;
}

.rotating-text:nth-child(1) { animation-delay: 0s; }
.rotating-text:nth-child(2) { animation-delay: 4s; }
.rotating-text:nth-child(3) { animation-delay: 8s; }
.rotating-text:nth-child(4) { animation-delay: 12s; }

@keyframes rotateText {
    0% { opacity: 0; transform: translateY(20px); }
    5% { opacity: 1; transform: translateY(0); }
    20% { opacity: 1; transform: translateY(0); }
    25% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* Royal Luxury Animation */
.royal-title {
    background: linear-gradient(
        -45deg, 
        #ffffff 20%, 
        #e0e0e0 40%, 
        #c62026 50%, 
        #e0e0e0 60%, 
        #ffffff 80%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: royalFlow 3s linear infinite;
    /* Using drop-shadow filter instead of text-shadow for better clip support */
    filter: drop-shadow(0 0 10px rgba(198, 32, 38, 0.3));
    padding-bottom: 10px; /* Essential for Arabic dots */
    display: inline-block; /* Helps with box model rendering */
}

@keyframes royalFlow {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

/* Legacy Glitch (Commented out or removed if you prefer) */
/* .glitch-title { ... } */

/* Values/How We Work Cards */
.value-card {
    background-color: #c1c1c1;
    color: #000000;
    padding: 2rem;
    border-radius: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: scale(1.05);
}

.value-card-watermark {
    position: absolute;
    right: -2.5rem;
    top: -2.5rem;
    width: 8rem;
    height: 8rem;
    background-color: #e5e7eb; /* gray-200 */
    border-radius: 9999px;
    opacity: 0.5;
    pointer-events: none;
}

.value-card-icon {
    margin-bottom: 1.5rem;
    font-size: 2.25rem; /* text-4xl */
    color: #634b4b; /* gray-600 */
    position: relative;
    z-index: 10;
}

.value-card-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
    position: relative;
    z-index: 10;
}

.value-card-text {
    color: #634b4b; /* gray-600 */
    font-size: 0.875rem; /* text-sm */
    line-height: 1.625;
    position: relative;
    z-index: 10;
}

/* Before/After Slider Helpers */
.slider-after-container {
    width: 50%;
    border-right: 2px solid #c62026;
    overflow: hidden;
}

.slider-after-image {
    object-fit: cover;
}
/* Service Cards */
.service-card {
    position: relative;
    height: 300px;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #c62026;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #c62026;
    box-shadow: 0 0 20px rgba(198, 32, 38, 0.3);
}

.service-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
}

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

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4));
    transition: background 0.3s ease;
}

.service-card:hover .service-card-overlay {
    background: linear-gradient(to top, rgba(198, 32, 38, 0.9), rgba(0,0,0,0.6));
}

.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Start at bottom */
    align-items: center;
    padding: 2rem;
    text-align: center;
    transition: all 0.5s ease;
    z-index: 20;
}

.service-card:hover .service-card-content {
    justify-content: center; /* Move to center on hover */
}

.service-icon {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.service-desc {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    transform: translateY(20px);
}

.service-card:hover .service-desc {
    opacity: 1;
    max-height: 200px; /* Enough for text */
    transform: translateY(0);
    margin-top: 1rem;
}
.video-card {
    position: relative;
    border: 1px solid #c62026;
    border-radius: 1rem;
    overflow: hidden;
    background: #0a0a0a;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.video-card:hover {
    transform: translateY(-3px);
    border-color: #c62026;
    box-shadow: 0 0 22px rgba(198, 32, 38, 0.3);
}
.video-poster {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.55));
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    background: #c62026;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px hwb(0 0% 0% / 0.45);
}
.play-button i { font-size: 24px; }
.video-card:hover .play-button { box-shadow: 0 0 24px rgba(198, 32, 38, 0.6); }
.video-watermark {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    height: 2.5rem;
    width: auto;
    opacity: 0.95;
    filter: drop-shadow(0 0 10px rgba(198, 32, 38, 0.3));
    pointer-events: none;
    user-select: none;
    z-index: 5;
}

/* Language Toggle Styles */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    border: 1px solid #c62026;
    background: rgba(10,10,10,0.6);
    color: #c62026;
    box-shadow: 0 0 12px rgba(198, 32, 38, 0.25);
    transition: all 0.25s ease;
    cursor: pointer;
}
.lang-toggle:hover {
    color: #000000;
    background: #c62026;
    box-shadow: 0 0 18px rgba(198, 32, 38, 0.45);
}

.lang-menu {
    position: absolute;
    top: 54px;
    right: 0;
    background: rgba(12,12,12,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #c62026;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.45);
    z-index: 1000;
    display: block; /* Ensure it is block by default when not hidden */
}

.lang-menu.hidden {
    display: none !important;
}

.lang-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 36px;
    padding: 0 10px;
    margin: 4px;
    border-radius: 9999px;
    border: 1px solid #c62026;
    background: rgba(10,10,10,0.6);
    color: #fff;
    font-weight: 700;
    transition: all 0.25s ease;
    cursor: pointer;
}
.lang-option:hover {
    border-color: #c62026;
    color: #c62026;
    box-shadow: 0 0 16px rgba(198, 32, 38, 0.32);
}
.lang-option.active {
    background: #c62026;
    color: #000;
    border-color: #c62026;
    box-shadow: 0 0 18px rgba(198, 32, 38, 0.45);
}

/* Modern Gallery Styles */
.modern-filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 9999px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: fit-content;
    margin: 0 auto;
}

.modern-filter-btn {
    background: transparent;
    color: #a0a0a0;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.modern-filter-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.modern-filter-btn.active {
    background: #c62026;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(198, 32, 38, 0.4);
}

.modern-project-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-project-card:hover {
    transform: translateY(-10px);
    border-color: #c62026;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(198, 32, 38, 0.2);
}

.modern-project-header {
    padding: 1.25rem;
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.95), rgba(20, 20, 20, 0.8));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modern-media-grid {
    display: grid;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #000;
}
