/* =====================================================
   BLACK IRIS - WHY US PAGE STYLING (FIXED VERSION)
   Fixes: Image Centering, Text Alignment, Box Sizing
   ===================================================== */

/* ========== 1. GLOBAL FIX (الأهم) ========== */
/* هذا السطر يحل مشكلة تغيير الأحجام والمحاذاة */
* {
    box-sizing: border-box;
}

/* ========== 2. HERO SECTION ========== */
.why-hero {
    position: relative;
    height: 85vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.why-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.why-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* تصحيح: إجبار الصورة في المنتصف */
    animation: slowZoom 20s ease-in-out infinite;
}

.why-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

.why-hero-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
    padding: 0 20px;
}

/* تنسيق العنوان لمنع الاختلاف في الأحجام */
.why-hero-content h1 {
    font-size: 4.5rem;
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 20px;
}

.why-hero-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 50px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding-top: 30px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    display: block;
    font-size: 2rem; /* تثبيت الحجم */
    font-weight: 700;
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.hero-stat .stat-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
}

.why-hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
    animation: bounce 2s infinite;
}

.why-hero-scroll span {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.6);
    display: block;
    margin-bottom: 5px;
}

.why-hero-scroll i {
    color: var(--gold);
    display: block;
}

/* ========== 3. MISSION SECTION ========== */
.mission-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #0A0A0A 0%, #111 100%);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-content h2 {
    font-size: 2.5rem;
    margin: 20px 0 30px;
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.2;
}

.mission-content p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.mission-quote {
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid var(--gold);
    padding: 30px;
    border-radius: 16px;
    position: relative;
}

.mission-quote i {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: block;
}

.mission-quote p {
    margin: 0;
    font-style: italic;
    font-size: 1rem;
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
}

.mission-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.5);
    display: block; /* منع المسافة الزرقاء أسفل الصورة */
}

/* ========== 4. OFFER CARDS (GLASSMORPHISM) ========== */
.offer-section {
    padding: 100px 20px;
    background: var(--black);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.offer-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 24px;
    padding: 45px 30px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    
    /* Fix: محاذاة المحتوى داخل البطاقة */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.offer-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.offer-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.02));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.4s ease;
    flex-shrink: 0; /* منع تغيير الحجم */
}

.offer-card:hover .offer-icon {
    background: var(--gold);
    transform: rotate(10deg);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.offer-icon i {
    font-size: 2rem;
    color: var(--gold);
    transition: color 0.3s ease;
}

.offer-card:hover .offer-icon i {
    color: #000;
}

.offer-card h3 {
    font-size: 1.3rem;
    margin: 0 0 15px 0; /* تثبيت الهوامش العلوي */
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    line-height: 1.3; /* تثبيت ارتفاع السطر */
}

.offer-card p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ========== CREW SECTION & 3D CAROUSEL - MODIFIED (SMALLER & BALANCED) ========== */
.crew-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #0A0A0A 0%, #111 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.team-carousel {
    position: relative;
    z-index: 1;
    margin-top: 30px;
}

.carousel-container {
    width: 100%;
    max-width: 1200px;
    height: 320px;  /* Reduced from 450px */
    position: relative;
    margin: 0 auto;
    perspective: 1500px;
}

.carousel-track {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card {
    position: absolute;
    width: 220px;   /* Reduced from 280px */
    height: 280px;  /* Reduced from 380px */
    background: #1A1A1A;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 2px solid rgba(212, 175, 55, 0.2);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* 3D Logic - Adjusted distances for smaller cards */
.card.center {
    z-index: 10;
    transform: scale(1.1) translateZ(0);
    border-color: var(--gold);
    box-shadow: 0 25px 40px rgba(212, 175, 55, 0.15);
}

.card.left-1 {
    z-index: 5;
    transform: translateX(-200px) scale(0.85) translateZ(-80px);
    opacity: 0.9;
}

.card.right-1 {
    transform: translateX(200px) scale(0.85) translateZ(-80px);
}

.card.left-2 {
    z-index: 3;
    transform: translateX(-400px) scale(0.75) translateZ(-160px);
    opacity: 0.6;
}

.card.right-2 {
    transform: translateX(400px) scale(0.75) translateZ(-160px);
}

.card.left-3 {
    z-index: 2;
    transform: translateX(-600px) scale(0.65) translateZ(-240px);
    opacity: 0.3;
}

.card.right-3 {
    transform: translateX(600px) scale(0.65) translateZ(-240px);
    opacity: 0.3;
}

.card.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

/* Member Info Section - More compact and readable */
.member-info {
    text-align: center;
    margin-top: 40px;  /* Reduced from 60px */
    padding: 0 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
    min-height: 160px;  /* Reduced from 200px */
}

.member-name {
    font-size: 1.6rem;  /* Reduced from 2rem */
    color: var(--gold);
    margin-bottom: 8px;
    transition: opacity 0.3s ease;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    line-height: 1.2;
}

.member-role {
    font-size: 1rem;  /* Reduced from 1.2rem */
    color: #ccc;
    margin-bottom: 15px;
    transition: opacity 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.3;
}

.member-bio {
    margin-top: 15px;
    opacity: 1;
    transition: opacity 0.3s ease;
    text-align: center;  /* Changed from justify for better readability */
    line-height: 1.5;
    min-height: 80px;
}

.member-bio p {
    color: #ccc;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;  /* Reduced from 1rem */
    line-height: 1.5;
}

/* Navigation Controls */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;  /* Reduced from 50px */
    height: 40px; /* Reduced from 50px */
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px; /* Reduced from 32px */
    color: var(--gold);
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.nav-arrow.left { left: -20px; }  /* Adjusted */
.nav-arrow.right { right: -20px; } /* Adjusted */

/* Dots */
.dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;  /* Reduced from 40px */
    gap: 10px;
}

.dot {
    width: 10px;  /* Reduced from 12px */
    height: 10px; /* Reduced from 12px */
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--gold);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* Swipe Indicator (Mobile) */
.swipe-indicator {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(212, 175, 55, 0.6);
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { opacity: 0.4; }
}

/* ========== 6. OPERATIONAL EXCELLENCE SLIDER ========== */
.operational-section {
    padding: 72px 20px 82px;
    background:
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.12), transparent 32%),
        radial-gradient(circle at 80% 70%, rgba(166, 124, 0, 0.08), transparent 30%),
        var(--black);
    position: relative;
    overflow: hidden;
}

.operational-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
    pointer-events: none;
}

.operational-section .container {
    position: relative;
    z-index: 1;
}

.op-slider {
    position: relative;
    max-width: 900px;
    margin: 38px auto 0;
    padding: 0 62px 52px;
}

.op-viewport {
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.op-track {
    display: flex;
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.op-slide {
    min-width: 100%;
    position: relative;
    min-height: 300px;
    padding: 38px 44px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(125deg, rgba(10,10,10,0.98) 0%, rgba(17,17,17,0.96) 48%, rgba(43, 34, 11, 0.72) 100%),
        linear-gradient(90deg, rgba(212, 175, 55, 0.2), transparent);
}

.op-slide::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -70px;
    top: -78px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
}

.op-slide::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 24px;
    pointer-events: none;
}

.op-slide-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.op-kicker {
    display: inline-block;
    margin-bottom: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--gold);
    text-transform: uppercase;
}

.op-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.08);
    box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.06);
}

.op-icon i {
    color: var(--gold);
    font-size: 1.55rem;
}

.op-slide h3 {
    margin: 0 0 14px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.25rem, 5vw, 4.1rem);
    line-height: 1;
    font-weight: 600;
    color: #fff;
}

.op-slide p {
    max-width: 520px;
    margin: 0;
    color: var(--gray);
    font-size: 0.94rem;
    line-height: 1.7;
}

.op-watermark {
    position: absolute;
    right: 34px;
    bottom: 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 9vw, 6.5rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -8px;
    color: rgba(212, 175, 55, 0.07);
    pointer-events: none;
}

.op-arrow {
    position: absolute;
    top: calc(50% - 28px);
    z-index: 3;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 50%;
    background: rgba(5, 5, 5, 0.84);
    color: var(--gold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.op-arrow:hover,
.op-arrow:focus {
    background: var(--gold);
    color: #000;
    outline: none;
    transform: translateY(-2px);
}

.op-arrow-left {
    left: 0;
}

.op-arrow-right {
    right: 0;
}

.op-dots {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.op-dot {
    width: 36px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.op-dot.active,
.op-dot:hover,
.op-dot:focus {
    width: 54px;
    background: var(--gold);
    outline: none;
}

/* ========== 7. CTA SECTION ========== */
.why-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    text-align: center;
}

.why-cta .cta-content h2 {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 15px;
    font-family: 'Cormorant Garamond', serif;
}

.why-cta .cta-content p {
    color: rgba(0,0,0,0.7);
    margin-bottom: 30px;
}

/* ========== 8. RESPONSIVE DESIGN (MOBILE FIXES) ========== */

/* Responsive - Tablets */
@media (max-width: 992px) {
    .carousel-container { height: 280px; }
    .card { width: 200px; height: 260px; }

    .mission-grid {
        gap: 42px;
    }

    .mission-content h2 {
        font-size: 2.2rem;
    }

    .op-slider {
        padding: 0 54px 50px;
    }

    .op-slide {
        min-height: 290px;
        padding: 34px 38px;
    }

    .card.left-1, .card.right-1 { transform: translateX(-170px) scale(0.85) translateZ(-80px); }
    .card.right-1 { transform: translateX(170px) scale(0.85) translateZ(-80px); }

    .card.left-2, .card.right-2 { transform: translateX(-340px) scale(0.75) translateZ(-160px); }
    .card.right-2 { transform: translateX(340px) scale(0.75) translateZ(-160px); }

    .card.left-3, .card.right-3 { transform: translateX(-510px) scale(0.65) translateZ(-240px); }
    .card.right-3 { transform: translateX(510px) scale(0.65) translateZ(-240px); }

    .member-name { font-size: 1.4rem; }
    .member-bio p { font-size: 0.85rem; }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .carousel-container { 
        height: 380px; 
        perspective: none;
    }

    .mission-section {
        padding: 72px 20px;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .mission-content {
        text-align: center;
    }

    .mission-content h2 {
        font-size: 2rem;
        line-height: 1.15;
        margin: 16px 0 20px;
    }

    .mission-content p {
        font-size: 0.95rem;
        line-height: 1.75;
        margin-bottom: 26px;
    }

    .mission-quote {
        max-width: 520px;
        margin: 0 auto;
        padding: 24px 22px;
        text-align: left;
        border-left-width: 2px;
    }

    .mission-image {
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }

    .mission-image img {
        border-radius: 22px;
        box-shadow: 0 22px 44px rgba(0,0,0,0.42);
    }

    .operational-section {
        padding: 64px 20px 76px;
    }

    .op-slider {
        margin-top: 34px;
        padding: 0 0 48px;
    }

    .op-viewport {
        border-radius: 24px;
    }

    .op-slide {
        min-height: 350px;
        padding: 30px 26px;
        align-items: flex-start;
    }

    .op-slide::after {
        inset: 14px;
        border-radius: 18px;
    }

    .op-icon {
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }

    .op-slide p {
        font-size: 0.9rem;
    }

    .op-watermark {
        right: 22px;
        bottom: 22px;
        letter-spacing: -5px;
    }

    .op-arrow {
        top: auto;
        bottom: 0;
        width: 44px;
        height: 44px;
    }

    .op-arrow-left {
        left: 0;
    }

    .op-arrow-right {
        right: 0;
    }

    .card {
        width: 100%;
        max-width: 260px;
        height: 320px;
        position: absolute;
    }

    .nav-arrow { display: none !important; }
    .swipe-indicator { display: flex !important; }

    .card.center { transform: none; opacity: 1; z-index: 10; }
    .card:not(.center) { opacity: 0; pointer-events: none; }

    .member-info { margin-top: 30px; min-height: auto; }
    .member-name { font-size: 1.3rem; }
    .member-role { font-size: 0.9rem; }
    .member-bio p { font-size: 0.8rem; text-align: left; }
    .dots { margin-top: 20px; }
}

/* Small Mobiles */
@media (max-width: 576px) {
    .carousel-container { height: 320px; }
    .card { max-width: 220px; height: 280px; }
    .mission-section {
        padding: 58px 16px;
    }
    .mission-content h2 {
        font-size: 1.75rem;
    }
    .mission-content p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    .mission-quote {
        padding: 20px 18px;
        border-radius: 14px;
    }
    .mission-quote p {
        font-size: 0.95rem;
        line-height: 1.55;
    }
    .mission-image img {
        border-radius: 18px;
    }
    .op-slide {
        min-height: 360px;
        padding: 30px 24px;
    }
    .op-kicker {
        font-size: 0.62rem;
        letter-spacing: 3px;
    }
    .op-slide h3 {
        font-size: 2.35rem;
    }
    .op-dot {
        width: 24px;
    }
    .op-dot.active,
    .op-dot:hover,
    .op-dot:focus {
        width: 38px;
    }
    .member-name { font-size: 1.1rem; }
    .member-role { font-size: 0.8rem; }
    .member-bio p { font-size: 0.75rem; }
    .dot { width: 8px; height: 8px; }
}
