/* --- Global Styles --- */
@font-face {
    font-family: 'FF Shamel';
    src: url('assets/fonts/FFShamel-Bold.woff2') format('woff2'),
        url('assets/fonts/FFShamel-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

:root {
    --primary-red: #E60023;
    --dark-bg: #0C0C0C;
    --dark-bg-secondary: #121212;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --text-light: #f5f5f5;
    --text-dark: #a0a0a0;
    --font-stack: 'Tajawal', 'FF Shamel', sans-serif;
    --font-english: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    cursor: auto;
}

body {
    margin: 0;
    font-family: var(--font-stack);
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0c0c0c;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

/* --- Effects --- */
@keyframes noiseMove {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-10%, 5%);
    }
}

body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 50;
    animation: noiseMove 0.4s steps(6) infinite;
}

.ambient-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(230, 0, 35, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    transform: translate(-50%, -50%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0C0C0C;
    z-index: 9000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--primary-red);
    border-radius: 50%;
    animation: rotation 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

body.content-loaded #preloader {
    opacity: 0;
    visibility: hidden;
}

/* --- Header --- */
header {
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(12, 12, 12, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--glass-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo {
    width: 50px;
    transition: transform 0.3s;
}

.logo-container:hover .logo {
    transform: rotate(-5deg);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.5px;
    transition: color 0.3s;
}

.logo-container:hover .brand-name {
    color: var(--primary-red);
}

.nav-contact-button {
    background-color: var(--primary-red);
    color: white !important;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(230, 0, 35, 0.3);
    transition: all 0.3s ease;
}

.nav-contact-button:hover {
    background-color: #ff1f40;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 35, 0.5);
}

/* --- Hero --- */
/* --- Hero (تعديل لرفع المحتوى) --- */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    bottom: 8vh;
    /* رفعنا المحتوى لفوق أكتر */
    z-index: 2;
    width: 100%;
    padding-top: 0;
    /* لغينا المساحة الفاضية اللي فوق */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
}

.video-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent 0%, var(--dark-bg) 100%);
    pointer-events: none;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.4) 0%, rgba(12, 12, 12, 0.6) 80%, rgba(12, 12, 12, 1) 100%);
    z-index: -1;
}

.hero-identity-title {
    margin-bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.arabic-title-image {
    width: 55vw;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.hero-main-title {
    font-family: 'Poppins', sans-serif;
    direction: ltr;
    font-weight: 900;
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    letter-spacing: -1.5px;
    margin: 0 0 15px 0;
    /* قللنا المسافة تحت العنوان */
    line-height: 1.1;
    color: var(--text-light);
    background: linear-gradient(90deg, #ffffff 0%, #e0e0e0 45%, #E60023 60%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4.5s linear infinite;
    text-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    direction: ltr;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #cccccc;
    font-weight: 400;
    max-width: 650px;
    margin: 0 auto 30px auto;
    /* قللنا المسافة اللي فوق الزرار */
    line-height: 1.7;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 16px 45px;
    background: var(--primary-red);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(230, 0, 35, 0.4);
    transition: all 0.3s;
}

.cta-button:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 0, 35, 0.6);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    z-index: 10;
    opacity: 0.7;
}

.scroll-down::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scrolldrop 2s infinite;
}

@keyframes scrolldrop {
    0% {
        top: 8px;
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        top: 24px;
        opacity: 0;
    }
}

/* --- Sections & Grid --- */
section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 20px;
    font-family: 'Tajawal', sans-serif;
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.section-subtitle {
    text-align: center;
    /* عشان الكلام ييجي في النص */
    margin: -10px auto 60px auto;
    /* ظبطنا المسافات والـ auto عشان السنترة */
    color: var(--text-dark);
    font-family: 'Tajawal', sans-serif;
    font-size: 1.2rem;
    max-width: 800px;
    display: block;
    /* تأكيد إنه ياخد سطر لوحده */
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 9 / 16;
    background-color: var(--dark-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 30px rgba(230, 0, 35, 0.25), 0 0 0 1px rgba(230, 0, 35, 0.5);
    z-index: 5;
}

/* ✅ هنا الحل القاطع: إلغاء تفاعل الفيديو نفسه عشان الضغطة تروح للكونتينر */
.grid-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    /* دي اهم حاجة عشان الفيديو ميشتغلش في مكانه */
}

.overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    transition: opacity 0.4s ease;
}

.gallery-item:hover .overlay {
    opacity: 0;
}

#vlogs {
    background: radial-gradient(circle at center, #161616 0%, #0c0c0c 100%);
}

.vlogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.vlog-item {
    aspect-ratio: 16 / 9;
}


/* --- Voice Over Section --- */
#voiceover {
    background: linear-gradient(180deg, #0c0c0c 0%, #111 100%);
    padding: 100px 0;
    text-align: center;
}

.voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    padding: 0 10px;
}

.voice-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.voice-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(230, 0, 35, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.voice-visual {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-icon {
    width: 60px;
    height: 60px;
    background: rgba(230, 0, 35, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    z-index: 2;
    transition: 0.3s;
}

.voice-card.playing .voice-icon {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 0 20px rgba(230, 0, 35, 0.4);
}

.voice-icon svg {
    width: 30px;
    fill: currentColor;
}

/* Visualizer Animation */
.wave-visualizer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.voice-card.playing .wave-visualizer {
    opacity: 1;
}

.wave-visualizer span {
    display: block;
    width: 4px;
    background: var(--primary-red);
    border-radius: 4px;
    animation: wave 1s ease-in-out infinite;
    height: 10%;
}

.voice-card.playing .wave-visualizer span {
    animation-play-state: running;
}

.wave-visualizer span:nth-child(1) {
    animation-delay: 0.0s;
}

.wave-visualizer span:nth-child(2) {
    animation-delay: 0.1s;
}

.wave-visualizer span:nth-child(3) {
    animation-delay: 0.2s;
}

.wave-visualizer span:nth-child(4) {
    animation-delay: 0.3s;
}

.wave-visualizer span:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes wave {

    0%,
    100% {
        height: 10%;
        opacity: 0.5;
    }

    50% {
        height: 100%;
        opacity: 1;
    }
}

.voice-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.voice-content h3 {
    font-size: 1.1rem;
    color: #fff;
    margin: 0 0 20px 0;
    font-weight: 700;
    text-align: center;
}

.voice-play-btn {
    background: white;
    color: var(--dark-bg);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.voice-play-btn:hover {
    transform: scale(1.1);
    background: var(--primary-red);
    color: white;
}

.voice-play-btn svg {
    width: 24px;
    fill: currentColor;
}

.voice-play-btn .pause-icon {
    display: none;
}

.voice-card.playing .voice-play-btn .play-icon {
    display: none;
}

.voice-card.playing .voice-play-btn .pause-icon {
    display: block;
}

/* --- Carousel --- */
#thumbnails {
    padding: 100px 0;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 450px;
    perspective: 1200px;
}

.carousel-track-container {
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    width: 550px;
    height: 310px;
    top: 50%;
    left: 50%;
    margin-left: -275px;
    margin-top: -155px;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: opacity 0.5s;
}

.carousel-slide.active {
    box-shadow: 0 15px 50px rgba(230, 0, 35, 0.25);
    z-index: 10 !important;
    border: 2px solid rgba(230, 0, 35, 0.8);
}

.carousel-slide.active img {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    color: white;
}

.carousel-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-50%) scale(1.15);
}

.carousel-btn svg {
    width: 24px;
    fill: currentColor;
}

.prev-btn {
    left: 20px;
    right: auto;
}

.next-btn {
    right: 20px;
    left: auto;
}

/* --- Reviews & Footer --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.review-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    text-align: right;
    transition: transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.stars {
    color: #f39c12;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.review-text {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    flex-grow: 1;
    margin-bottom: 25px;
}

.english-review {
    font-family: 'Poppins', sans-serif !important;
    direction: ltr !important;
    text-align: left !important;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.client-image {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-red);
}

.client-name {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

#contact {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(0deg, #101010 0%, #0c0c0c 100%);
}

#contact h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-top: 0;
    margin-bottom: 20px;
}

#contact p {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.5rem;
    color: #d0d0d0;
    max-width: 700px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid #1a1a1a;
    background: #080808;
    font-family: 'Tajawal', sans-serif;
}

footer p {
    color: #666;
    font-size: 0.9rem;
}

#whatsapp-fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.4s;
}

#whatsapp-fab:hover {
    transform: scale(1.15) rotate(-10deg);
}

#whatsapp-fab svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.close-button {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
    line-height: 1;
}

.close-button:hover {
    color: var(--primary-red);
    opacity: 1;
}

.video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header {
        background: rgba(12, 12, 12, 0.9);
        padding: 10px 0;
    }

    /* رفع المحتوى للأعلى وتصغير العناصر في الموبايل */
    .hero-content {
        bottom: 12vh;
        /* رفعنا المحتوى أكتر للموبايل */
    }

    .arabic-title-image {
        width: 65vw;
        /* صغرنا اللوجو العربي شوية */
        max-width: 280px;
    }

    .hero-main-title {
        font-size: 1.9rem;
        /* صغرنا الخط الإنجليزي عشان مياخدش مساحة بالطول */
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
        /* تقريب الزرار من النص */
        padding: 0 10px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .nav-contact-button {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .reels-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .vlogs-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item:hover {
        transform: none;
        box-shadow: none;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .carousel-slide {
        width: 85vw;
        height: auto;
        aspect-ratio: 16/9;
        margin-left: -42.5vw;
        margin-top: -24vw;
    }

    .carousel-container {
        height: 350px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.6);
    }

    .prev-btn {
        left: 10px;
        right: auto;
    }

    .next-btn {
        right: 10px;
        left: auto;
    }

    #whatsapp-fab {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }

    /* إخفاء سهم السكرول الصغير في الموبايل لتوفير مساحة */
    .scroll-down {
        display: none;
    }
}