/* =========================================
   1. VARIABLES & BASE STYLES
   ========================================= */
:root {
    --cream: #EDEBDE;
    --cream2: #E6E4D8;
    --red: #AA1916;
    --black: #1B1716;
    --dark: #111;
    --muted: #a8a392;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--cream);
    font-family: 'Cairo', Arial, sans-serif;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

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

.cursor {
    position: fixed;
    width: 18px;
    height: 18px;
    border: 1px solid var(--cream);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}

/* =========================================
   2. TYPOGRAPHY & BUTTONS
   ========================================= */
h1 {
    font-family: 'Baloo Bhaijaan 2', Cairo, sans-serif;
    font-size: clamp(28px, 8vw, 118px);
    line-height: 1.3;
    margin: 0;
}

h1 span {
    color: var(--cream2);
}

.eyebrow, 
.section-label {
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 800;
    font-size: 13px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 800;
    transition: .25s;
    border: 1px solid rgba(237, 235, 222, .25);
}

.btn.primary {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

.btn.ghost {
    background: rgba(237, 235, 222, .08);
}

.btn:hover {
    transform: translateY(-3px);
}

/* =========================================
   3. NAVIGATION
   ========================================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 6%;
    background: rgba(27, 23, 22, .72);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(237, 235, 222, .08);
}

.brand img {
    width: 118px;
}

.nav-links {
    display: flex;
    gap: 28px;
    font-size: 14px;
    color: var(--cream2);
}

.nav-links a {
    opacity: .8;
    transition: .25s;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--red);
}

.nav-cta {
    background: var(--red);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
}

/* =========================================
   4. HERO SECTION & VIDEO BACKGROUND
   ========================================= */
header.hero, 
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 25, 47, 0.6);
    background: radial-gradient(circle at center, rgba(27, 23, 22, .35), rgba(27, 23, 22, .92) 72%), 
                linear-gradient(to bottom, rgba(27, 23, 22, .45), var(--black));
    z-index: 2;
}

.hero-content, 
.scroll-note {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 980px;
    padding: 0 20px;
}

.hero-logo {
    width: min(360px, 70vw);
    margin: 0 auto 28px;
}

.hero-copy {
    font-size: 20px;
    max-width: 720px;
    margin: 28px auto;
    color: #ddd6c6;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-note {
    position: absolute;
    bottom: 30px;
    right: 6%; /* Adjust this or change to left: 50% depending on alignment preference */
    font-size: 12px;
    letter-spacing: .2em;
    color: var(--muted);
}

/* Optional Video Container Classes */
.video-container {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.video-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

/* =========================================
   5. SECTIONS & GRIDS
   ========================================= */
.section {
    padding: 110px 6%;
}

.section-head {
    max-width: 760px;
    margin-bottom: 48px;
}

.about h2, 
.section-head h2, 
.case-copy h2, 
.academy h2, 
.contact h2 {
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1;
    margin: 12px 0 24px;
    font-family: 'Baloo Bhaijaan 2';
}

.service-grid, 
.project-grid, 
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* --- About Section --- */
.about {
    background: var(--cream);
    color: var(--black);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 60px;
    align-items: start;
}

.about p {
    font-size: 22px;
    line-height: 1.8;
}

/* --- Services Section --- */
.services {
    background: #151211;
}

.service-card {
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(237, 235, 222, .09), rgba(237, 235, 222, .03));
    border: 1px solid rgba(237, 235, 222, .1);
    min-height: 240px;
}

.service-card span, 
.step span {
    color: var(--red);
    font-weight: 900;
}

.service-card h3, 
.step h3 {
    font-size: 28px;
    margin: 18px 0 10px;
}

.service-card p, 
.step p, 
.case-copy p, 
.academy p, 
.contact p {
    color: #cfc8b8;
    line-height: 1.7;
}

/* --- Work & Projects Section --- */
.work {
    background: var(--black);
}

.project {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 1000px;
    background: #000;
    grid-column: span 1;
}

.project.big {
    grid-row: span 2;
    min-height: 880px;
}

.project.wide {
    grid-column: span 2;
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: .6s;
}

.project:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .88), transparent 58%);
}

.project div {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 24px;
}

.project p {
    color: var(--red);
    font-weight: 900;
    margin: 0;
}

.project h3 {
    font-size: 34px;
    margin: 6px 0 0;
    font-family: 'Baloo Bhaijaan 2';
}

.project:hover img {
    transform: scale(1.07);
}

/* --- Process Section --- */
.process {
    background: var(--cream);
    color: var(--black);
}

.process-line {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.step {
    padding: 28px;
    border: 1px solid rgba(27, 23, 22, .14);
    border-radius: 24px;
    background: rgba(255, 255, 255, .38);
}

.step p {
    color: #4b4740;
}

/* --- Case Study Section --- */
.case-study {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 50px;
    align-items: center;
    background: #151211;
}

.case-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.case-gallery img:first-child {
    grid-column: span 2;
}

.case-gallery img {
    height: 270px;
    width: 100%;
    object-fit: cover;
    border-radius: 22px;
}

/* --- Team Section --- */
.team {
    background: var(--cream);
    color: var(--black);
}

.member {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .09);
}

.member img {
    height: 500px;
    width: 100%;
    object-fit: cover;
    object-position: center top;
}

.member div {
    padding: 28px;
}

.member h3 {
    font-size: 28px;
    margin: 0;
    color: var(--red);
}

.member p {
    margin: 8px 0 0;
    color: #48443e;
}

/* --- Stats & Marquee --- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--red);
    color: white;
    text-align: center;
}

.stats div {
    padding: 54px 18px;
    border-right: 1px solid rgba(255, 255, 255, .18);
}

.stats strong {
    font-size: 56px;
    display: block;
    font-family: 'Baloo Bhaijaan 2';
}

.stats span {
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 13px;
}

.marquee {
    background: var(--red);
    overflow: hidden;
    white-space: nowrap;
    padding: 16px 0;
    color: white;
    font-family: 'Baloo Bhaijaan 2';
    font-weight: 800;
    font-size: 26px;
}

.marquee div {
    display: inline-flex;
    gap: 50px;
    animation: marquee 28s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =========================================
   6. CONTACT & FOOTER
   ========================================= */
.academy {
    background: #151211;
}

.academy-card, 
.contact-card {
    border-radius: 34px;
    padding: 60px;
    background: linear-gradient(145deg, rgba(237, 235, 222, .10), rgba(237, 235, 222, .03));
    border: 1px solid rgba(237, 235, 222, .12);
    max-width: 980px;
}

.contact {
    background: var(--black);
}

.contact-card {
    margin: auto;
    text-align: center;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 28px 0;
}

.contact-links a {
    background: rgba(237, 235, 222, .08);
    padding: 12px 18px;
    border-radius: 999px;
}

footer {
    padding: 52px 6%;
    background: #0c0a09;
    text-align: center;
    color: var(--muted);
}

footer img {
    width: 140px;
    margin: 0 auto 18px;
}

/* =========================================
   7. ANIMATIONS
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: 1s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* =========================================
   8. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hero {
        min-height: 680px;
    }

    .about-grid, 
    .case-study {
        grid-template-columns: 1fr;
    }

    .service-grid, 
    .project-grid, 
    .team-grid, 
    .process-line, 
    .stats {
        grid-template-columns: 1fr;
    }

    .project, 
    .project.big, 
    .project.wide {
        grid-column: auto;
        grid-row: auto;
        min-height: 430px;
    }

    .member img {
        height: 440px;
    }

    h1 {
        font-size: 54px;
    }

    .section {
        padding: 80px 5%;
    }
}

.client-logo {
    height: 120px; 
    max-width: 160px; 
    object-fit: contain; 
    filter: grayscale(100%) opacity(50%); 
    transition: all 0.4s ease; 
    cursor: pointer;
}

.client-logo:hover {
    filter: grayscale(0%) opacity(100%); 
    transform: translateY(-3px); 
}

@media (max-width: 900px) {
    .logo-grid { gap: 40px; }
    .client-logo { height: 35px; }
}

/* تكبير حجم اللوجوهات على شاشات الكمبيوتر */
.client-logo {
    width: 150px !important;
    height: auto !important;
}

/* تعديلات خاصة بشاشات التلفون لتكبير الصور وتقليل الفراغات */
@media (max-width: 768px) {
    .logo-grid {
        gap: 20px !important; /* تقليل الفراغ الكبير بين الصور */
    }
    .client-logo {
        width: 180px !important; /* تكبير حجم اللوجو على الجوال */
    }
}