/* ==========================================================================
   1) VARIABLES & BASE STYLES
   ========================================================================== */
   :root {
    --black: #252524;
    --orange: #FF8000;
    --cream: #EBDFD3;
    --container: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    /* دمج اللون الأسود مع صورة الباترن وتكرارها بشكل انسيابي */
    background: linear-gradient(rgba(37, 37, 36, 0.95), rgba(37, 37, 36, 0.95)), 
                url('assets/images/Pattern.png') repeat;
    background-size: 360px; /* حجم مثالي للنقشة عشان تطلع ناعمة */
    color: var(--cream);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    padding: 120px 7%;
}

.container {
    max-width: var(--container);
    margin: auto;
}

.section-header {
    max-width: 700px;
    margin-bottom: 80px;
}

.section-header span {
    color: var(--orange);
    font-size: .85rem;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 4rem);
    margin-top: 12px;
    line-height: 1.1;
}

.section-header p {
    margin-top: 20px;
    line-height: 1.8;
    opacity: .8;
}

/* Buttons */
.primary-btn {
    background: var(--orange);
    padding: 18px 34px;
    border-radius: 100px;
    font-weight: 600;
    transition: .3s;
    display: inline-block;
    text-align: center;
    border: none;
    color: white;
    cursor: pointer;
}

.primary-btn:hover {
    transform: translateY(-3px);
}

.secondary-btn {
    padding: 18px 34px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, .15);
    transition: .3s;
    display: inline-block;
}

.secondary-btn:hover {
    border-color: var(--orange);
}

/* ==========================================================================
   2) NAVBAR & BRAND LOGO STYLES
   ========================================================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: .3s;
}

.nav-scrolled {
    background: #252524;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nav-container {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ضبط اللوجو الرئيسي في الهيدر */
.brand-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-logo-img:hover {
    transform: scale(1.02);
}

.desktop-nav {
    display: flex;
    gap: 35px;
}

.desktop-nav a {
    font-size: .95rem;
    opacity: .8;
    transition: .25s;
}

.desktop-nav a:hover {
    opacity: 1;
    color: var(--orange);
}

.active-link {
    color: var(--orange) !important;
    opacity: 1 !important;
}

.nav-btn {
    background: var(--orange);
    padding: 14px 26px;
    border-radius: 100px;
    font-size: .9rem;
    font-weight: 600;
    transition: .25s;
}

.nav-btn:hover {
    transform: translateY(-2px);
}

.mobile-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.menu-open .desktop-nav {
    display: flex !important;
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    height: calc(100vh - 90px);
    overflow-y: auto;
    background: #252524;
    flex-direction: column;
    padding: 40px;
    gap: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
}

/* ==========================================================================
   3) HERO SECTION (MINIMALIST CUSTOM GLOW STYLE)
   ========================================================================== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    font-size: .85rem;
    margin-bottom: 25px;
}

.hero-text h1 {
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    line-height: 1;
    max-width: 700px;
}

.hero-text p {
    margin-top: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 550px;
    opacity: .8;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* حاوية اللوجو مع تأثير هالة النيون البرتقالية الخافتة وراه */
.hero-logo-container {
    position: relative;
    width: 100%;
    max-width: 460px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* تأثير التوهج الخلفي (Glow Effect) */
.hero-logo-container::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--orange);
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
}

/* اللوجو المستقر النظيف وحركة العوم الانسيابية */
.hero-minimal-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================================================
   4) ABOUT & STATS SECTION
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, .08);
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--orange);
    margin-bottom: 10px;
}

/* ==========================================================================
   5) SERVICES SECTION
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, .08);
    transition: .3s;
}

.service-card:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.service-card p {
    line-height: 1.8;
    opacity: .8;
}

/* ==========================================================================
   6) PORTFOLIO SECTION
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    overflow: hidden;
    cursor: pointer;
}

.project-image {
    height: 340px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: .4s;
}

.project-image::after {
    content: "View Project";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    transition: .3s;
}

.project-card:hover .project-image {
    transform: scale(1.03);
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-info {
    padding: 20px 0;
}

.project-info span {
    font-size: .8rem;
    color: var(--orange);
    text-transform: uppercase;
}

.project-info h3 {
    margin-top: 10px;
}

/* ==========================================================================
   7) SHOWREEL / FEATURED VIDEOS
   ========================================================================== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.video-item h4 {
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

.showreel-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .08);
}

.showreel-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* فيديو يشتغل بالضغط عليه فقط (من غير تشغيل تلقائي) */
.showreel-wrapper.click-to-play {
    cursor: pointer;
}

.video-thumb {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .4s;
}

.showreel-wrapper.click-to-play:hover .video-thumb {
    transform: scale(1.04);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 107, 0, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    padding-left: 5px;
    transition: .3s;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
}

.showreel-wrapper.click-to-play:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ==========================================================================
   8) TESTIMONIALS SECTION
   ========================================================================== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.testimonial-card {
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, .08);
}

.testimonial-card p {
    line-height: 1.8;
    opacity: .85;
    margin-bottom: 25px;
}

.testimonial-card h4 {
    margin-bottom: 6px;
}

.testimonial-card span {
    font-size: .85rem;
    color: var(--orange);
}

/* ==========================================================================
   9) CLIENTS INFINITE SLIDER
   ========================================================================== */
#clients {
    padding: 70px 0;
    background: #121212;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#clients .section-header {
    text-align: center;
    margin-bottom: 45px;
}

.logo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
}

/* شريط لانهائي سلس:
   المحتوى مكرر 4 مرات في HTML ونتحرك بـ translateX(-25%)
   أي بمقدار نسخة واحدة بالضبط، فبعد آخر لوجو يظهر أول لوجو
   بجانبه مباشرة بدون أي قفزة أو فصل
   المسافة بين الصور تكون بـ padding متناظر (وليس gap) حتى
   ينطبق نهاية النسخة على بداية النسخة التالية تماماً */
.logo-track {
    display: flex;
    align-items: center;
    animation: scrollLogos 35s linear infinite;
    width: max-content;
    will-change: transform;
}

.logo-track img {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    padding: 0 25px;
    opacity: 0.65;
    transition: all 0.3s ease;
}

.logo-track img:hover {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-25%);
    }
}

/* ==========================================================================
   TESTIMONIALS & CONTACT SECTIONS (تصحيح التوزيع)
   ========================================================================== */
#testimonials {
    padding: 80px 0;
    background: #0f0f0f;
}

#contact {
    padding: 90px 0;
    background: #121212;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   FOOTER & BRAND SOCIAL ICONS
   ========================================================================== */
#footer {
    padding: 80px 7% 30px;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.footer-brand p {
    max-width: 320px;
    line-height: 1.8;
    color: #aaa;
}

.footer-container h4 {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--orange, #ff6b00);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-container div a,
.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: inherit;
    text-decoration: none;
    opacity: .7;
    transition: 0.25s;
}

.footer-container div a:hover {
    opacity: 1;
    color: var(--orange, #ff6b00);
}

.custom-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.custom-icon-link img {
    width: 24px;
    height: 24px;
    transition: 0.3s;
}

.custom-icon-link:hover img {
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #777;
    font-size: 0.9rem;
}

/* ==========================================================================
   11) REVEAL SCROLL ANIMATION & SELECTION
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all .8s ease;
}

.reveal.active {
    opacity: 1;
    transform: none;
}

::selection {
    background: var(--orange);
    color: #252524;
}

/* ==========================================================================
   12) RESPONSIVE - شاشات متوسطة (تابلت) وصغيرة (موبايل)
   ========================================================================== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-grid,
    .videos-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .hero-visual {
        display: flex;
    }
    .hero-logo-container {
        max-width: 340px;
        margin-top: 30px;
    }
    .hero-logo-container::before {
        width: 180px;
        height: 180px;
        filter: blur(100px);
    }
    .desktop-nav,
    .nav-btn {
        display: none;
    }
    .mobile-btn {
        display: block;
    }
    .hero-text h1 {
        font-size: clamp(2.6rem, 11vw, 3.4rem);
    }
    .services-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .brand-logo-img {
        height: 38px;
    }
    .hero-logo-container {
        max-width: 280px;
    }
    .custom-icon-link {
        width: 38px;
        height: 38px;
    }
    .custom-social-icons {
        gap: 10px;
    }
}

@media (max-width: 640px) {
    section {
        padding: 80px 5%;
    }
    .section-header {
        margin-bottom: 50px;
    }
    .section-header h2 {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }
    .portfolio-grid,
    .videos-grid,
    .testimonial-grid,
    .footer-container {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .stat-card {
        padding: 24px;
    }
    .hero-text h1 {
        font-size: clamp(2.2rem, 11vw, 2.8rem);
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-actions .primary-btn,
    .hero-actions .secondary-btn {
        width: 100%;
        text-align: center;
    }
    .project-image {
        height: 260px;
    }
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    .footer-container {
        gap: 30px;
    }
}
/* تنسيق أيقونات الاتصال الجديدة بالصور */
.contact-icon-img {
    width: 24px;         /* مقاس متناسق جداً مع الفونج */
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;      /* يمنع انضغاط الصورة */
}

/* ضبط المحاذاة في الفوتر لترتيب الصور مع النصوص */
.footer-contact-link {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}
/* توسيط قسم الـ Clients بالكامل بالمنتصف (العنوان + الكلمات + السلايدر) */
#clients {
    text-align: center !important;
}

#clients .section-header,
#clients .container {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}