body {
    font-family: 'Tajawal', sans-serif;
    background-color: #0a0a12;
    overflow-x: hidden;
}

/* ===== HERO VIDEO BACKGROUND - FIXED FOR WORDPRESS ===== */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 1080px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fix for WordPress - prevent parent container overflow */
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.hero-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    /* Prevent zoom out issue */
    min-width: unset;
    min-height: unset;
    transform: none;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10,10,18,0.4) 0%, rgba(10,10,18,0.7) 50%, rgba(10,10,18,0.95) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}
/* WordPress specific fixes */
.hero-video-container * {
    box-sizing: border-box;
}
/* Prevent WordPress theme from adding margins */
.hero-video-container::before,
.hero-video-container::after {
    display: none;
}

/* ===== MARQUEE ANIMATIONS ===== */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scroll-left 30s linear infinite;
}
.marquee-track-reverse {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scroll-right 25s linear infinite;
}
.marquee-container {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-container:hover .marquee-track,
.marquee-container:hover .marquee-track-reverse {
    animation-play-state: paused;
}

/* ===== PARTNERS MARQUEE ===== */
@keyframes partners-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.partners-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: partners-scroll 20s linear infinite;
}
.partners-container:hover .partners-track {
    animation-play-state: paused;
}

/* ===== PROJECTS CAROUSEL ===== */
.projects-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 1rem;
}
.projects-carousel::-webkit-scrollbar {
    display: none;
}
.project-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 85vw;
    max-width: 700px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.project-card:hover {
    transform: scale(1.02);
}

/* ===== TESTIMONIALS CAROUSEL ===== */
.testimonials-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1rem 0;
}
.testimonials-carousel::-webkit-scrollbar {
    display: none;
}
.testimonial-slide {
    scroll-snap-align: center;
    flex-shrink: 0;
    width: 90vw;
    max-width: 400px;
    transition: transform 0.3s ease;
}

/* ===== GENERAL STYLES ===== */
.service-card {
    background: linear-gradient(180deg, rgba(30,30,50,0.9) 0%, rgba(15,15,25,0.95) 100%);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover {
    border-color: rgba(245,200,66,0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(245,200,66,0.1);
}
.gold-btn {
    background: linear-gradient(135deg, #F5C842 0%, #D4A017 100%);
    transition: all 0.3s ease;
}
.gold-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245,200,66,0.4);
}
.outline-gold-btn {
    border: 1px solid #F5C842;
    color: #F5C842;
    background: transparent;
    transition: all 0.3s ease;
}
.outline-gold-btn:hover {
    background: #F5C842;
    color: #0a0a12;
    transform: translateY(-2px);
}
.section-badge {
    background: rgba(245,200,66,0.12);
    border: 1px solid rgba(245,200,66,0.25);
    color: #F5C842;
    backdrop-filter: blur(10px);
}
.testimonial-card {
    background: linear-gradient(180deg, rgba(25,25,40,0.9) 0%, rgba(15,15,25,0.95) 100%);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    border-color: rgba(245,200,66,0.2);
    transform: translateY(-4px);
}
.partner-logo {
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.6;
    transition: all 0.4s ease;
}
.partner-logo:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: #F5C842;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* ===== FLOATING PARTICLES ===== */
@keyframes float-particle {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 0.8; }
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #F5C842;
    border-radius: 50%;
    animation: float-particle 6s ease-in-out infinite;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== GLOW EFFECTS ===== */
.glow-gold {
    box-shadow: 0 0 60px rgba(245,200,66,0.15);
}

/* ===== VIDEO FALLBACK IMAGE ===== */
.video-fallback {
    background: url('https://images.unsplash.com/photo-1548013146-72479768bada?w=1920&q=80') center/cover;
}

/* ===== WORDPRESS SPECIFIC FIXES ===== */
/* Prevent theme from adding unwanted margins/padding */
.hero-video-container,
.hero-video-container * {
    max-width: none !important;
}
/* Fix for Elementor and other page builders */
.elementor .hero-video-container,
.wpb_wrapper .hero-video-container,
.entry-content .hero-video-container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}
/* Mobile fixes */
@media (max-width: 768px) {
    .hero-video-container {
        min-height: 500px;
        height: auto;
        aspect-ratio: 9/16;
        max-height: 100vh;
    }
}
