/* hero.css */

/* ============================================
   Hero Header Section
============================================ */


.qao-hero-header {
    text-align: center;
    padding: 10px 20px 10px;
    flex-shrink: 0;
}

.tagline-header-badge {
    display: inline-block;
    color: #ccf2fb;
    font-size: clamp(0.6rem, 0.6vw, 0.6rem);
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: capitalize;
    text-shadow: 
        0 0 10px rgba(141, 220, 250, 1),
        0 0 20px rgba(141, 220, 250, 0.8),
        0 0 30px rgba(202, 240, 250, 0.6),
        0 2px 5px rgba(0, 0, 0, 1);
    -webkit-text-stroke: 0.5px rgba(141, 220, 250, 0.3);
    filter: brightness(1.3) contrast(1.4) saturate(1.2);
    margin-top: 15vh;
    position: relative;
    animation: 
        qao-badge-glow 3s ease-in-out infinite,
        qao-badge-bg-shift 6s ease infinite;
    transition: all 0.4s ease;
}

@keyframes qao-badge-glow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(141, 220, 250, 1),
            0 0 20px rgba(141, 220, 250, 0.8);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(141, 220, 250, 1),
            0 0 40px rgba(202, 240, 250, 1);
    }
}

.qao-main-heading {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, 
        #8ddcfa 0%,
        #ccf2fb 25%,
        #caf0fa 50%,
        #8ddcfa 75%,
        #ccf2fb 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin: 0 auto 15px;
    opacity: 0;
    animation: 
        qao-title-epic-3d 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s forwards,
        qao-gradient-shift 4s ease infinite;
    position: relative;
    text-shadow: 
        1px 1px 0px rgba(70, 170, 220, 0.9),
        2px 2px 0px rgba(60, 150, 210, 0.8),
        3px 3px 0px rgba(50, 130, 190, 0.6),
        4px 4px 0px rgba(40, 110, 170, 0.5),
        5px 5px 0px rgba(30, 90, 150, 0.4),
        8px 8px 15px rgba(0, 0, 0, 0.4),
        10px 10px 25px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(60, 160, 220, 0.5);
    transform-style: preserve-3d;
    perspective: 1000px;
    filter: brightness(1.1) contrast(1.2);
}

.qao-welcome-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 15px 0 10px;
    opacity: 0;
    animation: qao-divider-entrance 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
    direction: ltr !important; /* ✅ دائماً في الوسط */
}

.qao-welcome-line {
    height: 3px;
    flex: 1;
    max-width: 100px;
    min-width: 80px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(141, 220, 250, 0.3) 10%,
        rgba(141, 220, 250, 1) 30%,
        rgba(202, 240, 250, 1) 50%,
        rgba(141, 220, 250, 1) 70%,
        rgba(141, 220, 250, 0.3) 90%,
        transparent 100%
    );
    background-size: 200% 100%;
    box-shadow: 
        0 0 15px rgba(141, 220, 250, 0.9),
        0 0 30px rgba(141, 220, 250, 0.6),
        0 2px 10px rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    position: relative;
    opacity: 0;
    transform: scaleX(0);
    animation: 
        qao-line-expand-new 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.2s forwards,
        qao-line-glow 3s ease-in-out 2.7s infinite;
}

.qao-welcome-line::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 7px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(141, 220, 250, 0.4),
        rgba(202, 240, 250, 0.4),
        transparent
    );
    filter: blur(8px);
    border-radius: 10px;
    opacity: 0.8;
}

.qao-welcome-text {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    font-weight: 700;
    background: linear-gradient(135deg, 
        #ccf2fb 0%,
        #8ddcfa 30%,
        #caf0fa 70%,
        #ccf2fb 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    flex-shrink: 0;
    transform: scale(0);
    animation: 
        qao-text-pop 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.5s forwards,
        qao-welcome-shimmer 4s ease-in-out infinite,
        qao-gradient-shift 6s ease infinite;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    filter: brightness(1.4) contrast(1.5) saturate(1.3);
    text-shadow: 
        0 0 20px rgba(141, 220, 250, 1),
        0 0 40px rgba(141, 220, 250, 0.8),
        0 3px 10px rgba(0, 0, 0, 0.9);
    -webkit-text-stroke: 0.8px rgba(204, 242, 251, 0.3);
}

@keyframes qao-line-expand-new {
    0% { 
        opacity: 0;
        transform: scaleX(0);
    }
    60% {
        transform: scaleX(1.1);
    }
    100% { 
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes qao-line-glow {
    0%, 100% {
        box-shadow: 
            0 0 15px rgba(141, 220, 250, 0.9),
            0 0 30px rgba(141, 220, 250, 0.6);
        background-position: 0% 50%;
    }
    50% {
        box-shadow: 
            0 0 25px rgba(141, 220, 250, 1),
            0 0 50px rgba(202, 240, 250, 1);
        background-position: 100% 50%;
    }
}

@keyframes qao-welcome-shimmer {
    0%, 100% {
        filter: brightness(1.4) contrast(1.5) saturate(1.3);
    }
    50% {
        filter: brightness(1.7) contrast(1.7) saturate(1.5);
    }
}

/* ============================================
   ✅ Three Columns Layout - CLOSER GAP + FIXED DIRECTION
============================================ */
.qao-three-columns-container {
    display: flex;
    flex: 1;
    min-width: 100vw;
    width: 100%;
    margin-top: -10vh;
    gap: 10vw;
    align-items: center;
    justify-content: center;
    padding: 20px 1.5%;
    perspective: 2500px;
    min-height: 60vh;
    direction: ltr !important;
}

/* ============================================
   ✅ Left Card - Features (22%)
============================================ */
.qao-left-card-wrapper {
    flex: 0 0 25%;
    max-width: 25%;
    max-height: 60%;
    opacity: 0;
    animation: qao-slide-in-left 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
    transform-style: preserve-3d;
}

.qao-features-side-card {
    background: linear-gradient(135deg, 
        rgba(0, 5, 37, 0.7) 0%,
        rgba(1, 40, 145, 0.6) 50%,
        rgba(0, 5, 37, 0.7) 100%
    );
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 
        0 35px 90px rgba(0, 0, 0, 0.7),
        0 0 70px rgba(141, 220, 250, 0.35),
        inset 0 0 60px rgba(141, 220, 250, 0.1);
    padding: 35px 28px;
    position: relative;
    overflow: hidden;
    min-height: 55vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: rotateY(40deg);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.qao-features-side-card:hover {
    transform: rotateY(20deg) translateX(25px);
    box-shadow: 
        0 45px 110px rgba(0, 0, 0, 0.9),
        0 0 90px rgba(141, 220, 250, 0.6);
}

.qao-features-side-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    padding: 4px;
    background: linear-gradient(135deg, 
        rgba(141, 220, 250, 0.7), 
        rgba(202, 240, 250, 0.7),
        rgba(141, 220, 250, 0.7)
    );
    background-size: 200% 200%;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: qao-border-flow 4s ease infinite;
}

.qao-side-card-title {
    font-size: clamp(1.1rem, 1.4vw, 1.45rem);
    font-weight: 900;
    background: linear-gradient(135deg, #8ddcfa 0%, #ccf2fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 28px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.qao-features-grid-side {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.qao-feature-card-compact {
    position: relative;
    padding: 1vh;
    background: linear-gradient(135deg, 
        rgba(15, 45, 95, 0.72) 0%,
        rgba(25, 60, 130, 0.65) 100%
    );
    backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5), 
        0 0 25px rgba(141, 220, 250, 0.2);
    opacity: 0;
    animation: qao-card-pop-in 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.4vh;
}

.qao-feature-card-compact:nth-child(1) { animation-delay: 1.3s; }
.qao-feature-card-compact:nth-child(2) { animation-delay: 1.5s; }
.qao-feature-card-compact:nth-child(3) { animation-delay: 1.7s; }
.qao-feature-card-compact:nth-child(4) { animation-delay: 1.9s; }

.qao-feature-card-compact:hover {
    transform: translateX(10px) scale(1.04);
    box-shadow: 
        0 18px 45px rgba(0, 0, 0, 0.7),
        0 0 45px rgba(202, 240, 250, 0.4);
}

.qao-feature-icon-compact {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    background: linear-gradient(135deg, 
        rgba(141, 220, 250, 0.35), 
        rgba(202, 240, 250, 0.35)
    );
    border-radius: 50%;
    box-shadow: 
        0 0 28px rgba(141, 220, 250, 0.5),
        inset 0 0 18px rgba(202, 240, 250, 0.4);
}

.qao-feature-title-compact {
    font-size: clamp(0.75rem, 0.9vw, 0.88rem);
    font-weight: 700;
    color: #caf0fa;
    line-height: 1.45;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ============================================
   ✅ Center - 3D Gallery
============================================ */
.qao-center-gallery-wrapper {
    flex: 0 0 clamp(24%, 28%, 32%);
    max-width: clamp(24%, 28%, 32%);
    display: flex;
    margin-top: 5vh;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
    opacity: 0;
    animation: qao-fade-in 1.2s ease-out 0.8s forwards;
    z-index: 10;
}

.qao-gallery {
    position: relative;
    width: clamp(160px, 10vw, 240px);
    height: clamp(220px, 16vw, 400px);
    transform-style: preserve-3d;
    animation: qao-gallery-rotate 40s infinite linear;
}

.qao-gallery:hover {
    animation-play-state: paused;
}

.qao-gallery-item {
    position: absolute;
    width: clamp(160px, 10vw, 240px);
    height: clamp(220px, 16vw, 400px);
    transform-origin: center;
    transform-style: preserve-3d;
    border-radius: 20px;
    overflow: visible;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qao-gallery-item-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-origin: center;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, 
        #8ddcfa 0%, 
        #ccf2fb 25%,
        #caf0fa 50%,
        #8ddcfa 75%,
        #ccf2fb 100%
    );
    background-size: 200% 200%;
    animation: qao-gold-shimmer 3s ease infinite;
    -webkit-box-reflect: below 12px linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.25));
    transition: all 0.4s ease;
    /* ✅ توسيط الصورة داخل الكارت */
    display: flex;
    justify-content: center;
    align-items: center;
}

.qao-gallery-item:hover .qao-gallery-item-inner {
    animation: qao-gold-shimmer 1.2s ease infinite;
}

.qao-gallery-item:hover {
    z-index: 100;
}

.qao-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    border-radius: 15px;
    transition: all 0.4s ease;
    display: block;
}

.qao-gallery-item:hover img {
    filter: brightness(1.25) contrast(1.2);
}

.qao-gallery-item::before {
    content: '🔗';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(22px, 2.2vw, 32px);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(12, 35, 80, 0.95);
    padding: clamp(12px, 1.3vw, 20px);
    border-radius: 50%;
    backdrop-filter: blur(12px);
    pointer-events: none;
}

.qao-gallery-item:hover::before {
    opacity: 1;
}

.qao-gallery-item::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, 
        rgba(141, 220, 250, 0.35), 
        rgba(202, 240, 250, 0.35)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 18px;
    pointer-events: none;
}

.qao-gallery-item:hover::after {
    opacity: 1;
}

.qao-image-tooltip {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, 
        rgba(141, 220, 250, 0.98), 
        rgba(202, 240, 250, 0.98)
    );
    color: #0c2350;
    padding: 11px 18px;
    border-radius: 25px;
    font-size: clamp(10px, 0.95vw, 13px);
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 15;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

.qao-gallery-item:hover .qao-image-tooltip {
    opacity: 1;
}

/* ============================================
   ✅ Right Card - CTA (22%)
============================================ */
.qao-right-card-wrapper {
    flex: 0 0 25%;
    max-width: 25%;
    max-height: 60%;
    opacity: 0;
    animation: qao-slide-in-right 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
    transform-style: preserve-3d;
}

.qao-cta-side-card {
     background: linear-gradient(135deg, 
        rgba(0, 5, 37, 0.7) 0%,
        rgba(1, 40, 145, 0.6) 50%,
        rgba(0, 5, 37, 0.7) 100%
    );
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 
        0 35px 90px rgba(0, 0, 0, 0.7),
        0 0 70px rgba(202, 240, 250, 0.35),
        inset 0 0 60px rgba(202, 240, 250, 0.1);
    padding: 35px 28px;
    position: relative;
    overflow: hidden;
    min-height: 55vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    transform: rotateY(-40deg);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.qao-cta-side-card:hover {
    transform: rotateY(-20deg) translateX(-25px);
    box-shadow: 
        0 45px 110px rgba(0, 0, 0, 0.9),
        0 0 90px rgba(202, 240, 250, 0.6);
}

.qao-cta-side-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    padding: 4px;
    background: linear-gradient(135deg, 
        rgba(202, 240, 250, 0.7), 
        rgba(141, 220, 250, 0.7),
        rgba(202, 240, 250, 0.7)
    );
    background-size: 200% 200%;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: qao-border-flow 4s ease infinite;
}

.qao-cta-side-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(141, 220, 250, 0.12) 0%, 
        transparent 70%
    );
    animation: qao-light-rotate 10s linear infinite;
    pointer-events: none;
}

.qao-cta-side-title {
    font-size: clamp(1.1rem, 1.5vw, 1.55rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ccf2fb 0%, #8ddcfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.qao-cta-side-description {
    font-size: clamp(0.75rem, 0.9vw, 0.86rem);
    color: rgba(204, 242, 251, 0.94);
    margin-bottom: 28px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    text-align: justify;
}

.qao-cta-buttons-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.qao-btn {
    position: relative;
    margin-right: 30px;
    padding: 13px 26px;
    font-size: clamp(0.78rem, 0.94vw, 0.92rem);
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    z-index: 1;
    text-align: center;
}

.qao-btn-primary {
    background: linear-gradient(135deg, #8ddcfa 0%, #012891 100%);
    color: #ffffff;
    box-shadow: 
        0 12px 32px rgba(141, 220, 250, 0.55),
        0 0 28px rgba(141, 220, 250, 0.45);
}

.qao-btn-primary:hover {
    transform: translateY(-5px) scale(1.06);
    box-shadow: 
        0 20px 50px rgba(141, 220, 250, 0.75),
        0 0 50px rgba(141, 220, 250, 0.65);
}

.qao-btn-secondary {
    background: linear-gradient(135deg, #caf0fa 0%, #8ddcfa 100%);
    color: #0c2350;
    box-shadow: 
        0 12px 32px rgba(202, 240, 250, 0.55),
        0 0 28px rgba(202, 240, 250, 0.45);
}

.qao-btn-secondary:hover {
    transform: translateY(-5px) scale(1.06);
    box-shadow: 
        0 20px 50px rgba(202, 240, 250, 0.75),
        0 0 50px rgba(202, 240, 250, 0.65);
}

.qao-btn-outline {
    background: transparent;
    color: #ccf2fb;
    border: 2px solid #8ddcfa;
    box-shadow: 
        0 8px 22px rgba(141, 220, 250, 0.35),
        inset 0 0 18px rgba(141, 220, 250, 0.18);
}

.qao-btn-outline:hover {
    background: rgba(141, 220, 250, 0.25);
    transform: translateY(-5px) scale(1.06);
    box-shadow: 
        0 16px 40px rgba(141, 220, 250, 0.55),
        inset 0 0 28px rgba(141, 220, 250, 0.3);
}

.qao-parallax-gradient-top,
.qao-parallax-gradient-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 20%;
    pointer-events: none;
}

.qao-parallax-gradient-top {
    top: 0;
    background: linear-gradient(180deg, 
        rgba(5, 15, 35, 0.4) 0%, 
        transparent 100%
    );
}

.qao-parallax-gradient-bottom {
    bottom: 0;
    background: linear-gradient(0deg, 
        rgba(5, 15, 35, 0.4) 0%, 
        transparent 100%
    );
}

/* ============================================
   Advanced Animations
============================================ */
@keyframes qao-slide-down {
    0% {
        opacity: 0;
        transform: translateY(-40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes qao-title-epic-3d {
    0% {
        opacity: 0;
        transform: translateY(-30px) rotateX(-15deg) scale(0.9);
        filter: blur(10px) brightness(0.5);
    }
    60% {
        transform: translateY(5px) rotateX(5deg) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
        filter: blur(0) brightness(1.1);
    }
}

@keyframes qao-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes qao-divider-entrance {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes qao-text-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes qao-slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-160px) rotateY(50deg);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(40deg);
        filter: blur(0);
    }
}

@keyframes qao-slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(160px) rotateY(-50deg);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(-40deg);
        filter: blur(0);
    }
}

@keyframes qao-fade-in {
    0% {
        opacity: 0;
        transform: scale(0.75);
        filter: blur(12px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes qao-card-pop-in {
    0% {
        opacity: 0;
        transform: scale(0.4) rotateZ(-12deg);
        filter: blur(6px);
    }
    60% {
        transform: scale(1.12) rotateZ(6deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateZ(0deg);
        filter: blur(0);
    }
}

@keyframes qao-border-flow {
    0%, 100% { 
        background-position: 0% 50%;
    }
    50% { 
        background-position: 100% 50%;
    }
}

@keyframes qao-light-rotate {
    from { 
        transform: rotate(0deg);
    }
    to { 
        transform: rotate(360deg);
    }
}

@keyframes qao-gallery-rotate {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

@keyframes qao-gold-shimmer {
    0%, 100% { 
        background-position: 0% 50%;
    }
    50% { 
        background-position: 100% 50%;
    }
}

/* ============================================
   ✅ Responsive Design
============================================ */

@media (min-width: 1400px) {
    .qao-three-columns-container {
        gap: 4%;
    }
}

/* ✅ Responsive - Background */
@media (max-width: 1200px) {
    .qao-background-image::before {
        background-attachment: scroll;
        background-position: center center;
    }

    .qao-first-section {
        justify-content: center;
        align-items: center;
    }

    .qao-hero-header {
        margin-top: 0;
        margin-bottom: 0;
        padding: 15px 20px 10px;
        flex-shrink: 0;
    }

    .tagline-header-badge {
        margin-top: 10vh;
        margin-bottom: 10px;
    }

    .qao-main-heading {
        margin-bottom: 10px;
    }

    .qao-welcome-divider {
        margin: 10px 0 5px;
    }

    .qao-three-columns-container {
        flex-direction: column;
        padding: 0;
        gap: 0;
        min-height: auto;
        align-items: center;
    }

    .qao-center-gallery-wrapper {
        order: 1;
        flex: 1;
        max-width: 85vw !important;
        width: 85vw !important;
        min-height: calc(100vh - 180px);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        padding: 20px 10px;
    }

    .qao-gallery {
        max-width: 100%;
        width: 100%;
    }

    .qao-left-card-wrapper {
        order: 2;
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        padding: 0 20px;
        margin-top: 40px;
        animation: qao-slide-down 1.2s ease-out 0.5s forwards;
    }

    .qao-right-card-wrapper {
        order: 3;
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        padding: 0 20px;
        margin-top: 35px;
        margin-bottom: 40px;
        animation: qao-slide-down 1.2s ease-out 0.5s forwards;
    }

    .qao-features-side-card,
    .qao-cta-side-card {
        transform: none !important;
        min-height: auto;
        padding: 30px 24px;
    }

    .qao-features-side-card:hover,
    .qao-cta-side-card:hover {
        transform: translateY(-8px) scale(1.02) !important;
    }

    .qao-gallery {
        width: 220px;
        height: 330px;
    }
    
    .qao-gallery-item {
        width: 220px;
        height: 330px;
    }
}

@media (max-width: 768px) {
    .qao-three-columns-container {
        margin-top: 10vh;
    }

    .tagline-header-badge {
        margin-top: 0vh;
    }

    .qao-hero-header {
        padding: 12px 15px 8px;
    }

    .tagline-header-badge {
        margin-top: 10vh;
    }

    .qao-center-gallery-wrapper {
        min-height: calc(100vh - 40vh);
        padding: 15px 10px;
    }

    .qao-left-card-wrapper,
    .qao-right-card-wrapper {
        padding: 0 15px;
        margin-top: 30px;
    }

    .qao-right-card-wrapper {
        margin-bottom: 35px;
    }

    .qao-features-side-card,
    .qao-cta-side-card {
        padding: 28px 22px;
    }

    .qao-features-grid-side {
        gap: 14px;
    }

    .qao-feature-card-compact {
        padding: 16px;
    }

    .qao-gallery {
        width: min(190px, 80vw);
        height: min(285px, calc(80vw * 1.5));
    }
    
    .qao-gallery-item {
        width: min(190px, 80vw);
        height: min(285px, calc(80vw * 1.5));
    }

    /* تقليل عدد الـ particles على الموبايل */
    .qao-particle:nth-child(n+7) {
        display: none;
    }
}

@media (max-width: 576px) {
    .qao-background-image::before {
        background-position: center center;
        min-height: 100vh;
    }

    .tagline-header-badge {
        margin-top: 0vh;
    }

    .qao-three-columns-container {
        margin-top: 20vh;
    }
    
    .qao-hero-header {
        padding: 10px 12px 6px;
    }

    .tagline-header-badge {
        margin-top: 8vh;
        margin-bottom: 8px;
    }

    .qao-main-heading {
        margin-bottom: 8px;
    }
    
    .qao-welcome-line {
        min-width: 70px;
    }

    .qao-center-gallery-wrapper {
        min-height: calc(100vh - 20vh);
        padding: 12px 8px;
        margin-top: -7vh;
    }

    .qao-left-card-wrapper,
    .qao-right-card-wrapper {
        padding: 0 12px;
        margin-top: 0px;
    }

    .qao-right-card-wrapper {
        margin-bottom: 30px;
    }

    .qao-gallery {
        width: min(150px, 75vw);
        height: min(255px, calc(75vw * 1.7));
    }
    
    .qao-gallery-item {
        width: min(150px, 75vw);
        height: min(255px, calc(75vw * 1.7));
    }

    .qao-feature-card-compact {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .qao-cta-buttons-side {
        gap: 12px;
    }

    .qao-features-side-card,
    .qao-cta-side-card {
        padding: 24px 18px;
    }
}

@media (max-width: 480px) {
    .tagline-header-badge {
        margin-top: 10vh;
    }

    .qao-three-columns-container {
        margin-top: 0vh;
    }

    .qao-hero-header {
        padding: 8px 10px 5px;
    }

    .qao-tagline {
        margin-top: 8vh;
    }

    .qao-center-gallery-wrapper {
        min-height: calc(100vh - 15vh);
        padding: 0px 0px;
        margin-top: -8vh;
    }

    .qao-left-card-wrapper,
    .qao-right-card-wrapper {
        padding: 0 10px;
        margin-top: 0px;
    }

    .qao-right-card-wrapper {
        margin-bottom: 25px;
    }

    .qao-gallery {
        width: min(140px, 70vw);
        height: min(225px, calc(70vw * 1.6));
    }
    
    .qao-gallery-item {
        width: min(140px, 70vw);
        height: min(225px, calc(70vw * 1.6));
    }

    .qao-features-side-card,
    .qao-cta-side-card {
        padding: 22px 16px;
    }

    /* تقليل الـ particles أكثر */
    .qao-particle:nth-child(n+5) {
        display: none;
    }

    .qao-glow-orb {
        opacity: 0.08;
    }
}

@media (max-width: 400px) {
    .tagline-header-badge {
        margin-top: 12vh;
        font-size: 0.5rem;
    }

    .qao-center-gallery-wrapper {
        min-height: calc(100vh - 2vh);
    }
    
    .qao-three-columns-container {
        margin-top: 0vh;
    }

    .qao-gallery {
        width: min(100px, 80vw);
        height: min(200px, calc(80vw * 1.8));
    }
    
    .qao-gallery-item {
        width: min(100px, 80vw);
        height: min(200px, calc(80vw * 1.80));
    }
}

@media (max-width: 1200px) and (orientation: landscape) {
    .qao-background-image::before {
        background-size: cover;
        background-position: center center;
        height: 100%;
        width: 100%;
    }

    .qao-center-gallery-wrapper {
        min-height: 75vh;
        max-width: 50vw !important;
        width: 50vw !important;
    }

    .qao-gallery {
        width: min(180px, 45vw);
        height: min(270px, calc(45vw * 1.5));
    }
    
    .qao-gallery-item {
        width: min(180px, 45vw);
        height: min(270px, calc(45vw * 1.5));
    }
}

/* ============================================
   ✅ Scroll Fix - Critical
============================================ */

/* تأكد من إمكانية الـ Scroll */
html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.qao-page-bg {
    overflow: visible !important;
    height: auto !important;
    min-height: 100vh;
}

.qao-main-wrapper {
    overflow: visible !important;
    height: auto !important;
}

.qao-first-section {
    overflow: visible !important;
    /* ❌ لا تستخدم height: 100vh لأنها تسبب مشاكل */
    min-height: 100vh;
    height: auto;
}

.qao-three-columns-container {
    overflow: visible !important;
}

/* ✅ للموبايل - تأكيد إضافي */
@media (max-width: 1200px) {
    html, body {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: auto !important;
    }
    
    .qao-page-bg,
    .qao-main-wrapper,
    .qao-first-section,
    .qao-three-columns-container {
        overflow: visible !important;
        touch-action: auto !important;
    }
}

/* ✅ إصلاح للـ Gallery - لا يمنع الـ scroll */
.qao-gallery {
    touch-action: pan-y pinch-zoom; /* السماح بالـ scroll العمودي */
}

.qao-gallery-item {
    touch-action: manipulation;
}