/* about.css */

/*about section*/

.qao-about-wrapper {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto !important;
    width: 100%;
    height: auto !important;
    min-height: 100vh;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(141, 220, 250, 0.2),
        inset 0 1px 1px rgba(141, 220, 250, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(141, 220, 250, 0.3);
    background: rgba(0, 40, 90, 0.4);
}

/* ✅ Skeleton Loading */
.qao-about-skeleton {
    background: linear-gradient(135deg, 
        rgba(12, 35, 80, 0.6) 0%,
        rgba(20, 55, 120, 0.4) 100%
    );
    border-radius: inherit;
    position: relative;
    overflow: hidden;
}

.qao-about-skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(141, 220, 250, 0.1) 50%,
        transparent 100%
    );
    animation: qao-skeleton-shimmer 2s infinite;
}

@keyframes qao-skeleton-shimmer {
    0% { left: -150%; }
    100% { left: 150%; }
}

.qao-about-skeleton-text {
    height: 20px;
    background: rgba(141, 220, 250, 0.1);
    border-radius: 10px;
    margin: 10px 0;
}

.qao-about-skeleton-title {
    height: 30px;
    background: rgba(141, 220, 250, 0.15);
    border-radius: 15px;
    margin-bottom: 20px;
    width: 70%;
    z-index: 3;
}

/* Hide content until loaded */
.qao-about-loading .qao-about-stat-number,
.qao-about-loading .qao-about-stat-label,
.qao-about-loading .qao-about-team-name,
.qao-about-loading .qao-about-team-role {
    opacity: 0;
}

/* Background Effects */
.qao-about-bg-layer {
    position: fixed;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(141, 220, 250, 0.1) 0%,
        rgba(20, 55, 120, 0.08) 50%,
        rgba(202, 240, 250, 0.05) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.qao-about-glass-grid {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(141, 220, 250, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(141, 220, 250, 0.05) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.3;
    z-index: 2;
    pointer-events: none;
}

/* Content Container */
.qao-about-content {
    position: relative;
    z-index: 10;
    padding: 80px 0;
}

.qao-about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Animation Classes */
.qao-about-animate {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.qao-about-animate.qao-about-animated {
    opacity: 1;
}

.qao-about-fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease;
}

.qao-about-fade-in-up.qao-about-animated {
    opacity: 1;
    transform: translateY(0);
}

.qao-about-fade-in-down {
    opacity: 0;
    transform: translateY(-60px);
    transition: all 0.8s ease;
}

.qao-about-fade-in-down.qao-about-animated {
    opacity: 1;
    transform: translateY(0);
}

.qao-about-fade-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s ease;
}

.qao-about-fade-in-left.qao-about-animated {
    opacity: 1;
    transform: translateX(0);
}

.qao-about-fade-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s ease;
}

.qao-about-fade-in-right.qao-about-animated {
    opacity: 1;
    transform: translateX(0);
}

.qao-about-scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qao-about-scale-in.qao-about-animated {
    opacity: 1;
    transform: scale(1);
}

.qao-about-rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qao-about-rotate-in.qao-about-animated {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.qao-about-stagger-1 { transition-delay: 0.1s; }
.qao-about-stagger-2 { transition-delay: 0.2s; }
.qao-about-stagger-3 { transition-delay: 0.3s; }
.qao-about-stagger-4 { transition-delay: 0.4s; }
.qao-about-stagger-5 { transition-delay: 0.5s; }
.qao-about-stagger-6 { transition-delay: 0.6s; }

/* Section Header */
.qao-about-section-header {
    text-align: center;
    margin-bottom: 80px;
}

.qao-about-badge {
    display: inline-block;
    padding: 12px 30px;
    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%
    );
    border: 1px solid rgba(141, 220, 250, 0.3);
    border-radius: 50px;
    color: #8ddcfa;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(141, 220, 250, 0.3);
    z-index: 3;
}

.qao-about-section-title {
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, 
        #8ddcfa 0%,
        #ccf2fb 25%,
        #caf0fa 50%,
        #8ddcfa 75%,
        #ccf2fb 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.qao-about-section-subtitle {
    font-size: 1.4rem;
    color: rgba(204, 242, 251, 0.9);
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    line-height: 1.8;
}
/* ✅ Hero About */
.qao-about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
    margin-bottom: 120px;
}

/* ✅ Hero Image Container */
.qao-about-hero-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    min-height: 400px;
    height: 100%;
}

/* ✅ حل شامل - يغطي كل الحالات */
/* عادي img */
.qao-about-hero-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    object-position: center center !important;
    display: block !important;
    transition: transform 0.8s ease;
}

/* ✅ لو Next.js Image - بيضيف span أو div wrapper */
.qao-about-hero-image > span,
.qao-about-hero-image > div {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.qao-about-hero-image > span > img,
.qao-about-hero-image > div > img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* ✅ Hero Text */
.qao-about-hero-text {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.qao-about-hero-text h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.2;
}

.qao-about-hero-text p {
    font-size: 1.15rem;
    color: rgba(204, 242, 251, 0.9);
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 20px;
}

.qao-about-highlight {
    color: #caf0fa;
    font-weight: 600;
}

/* Stats Section */
.qao-about-stats-section {
    margin-bottom: 120px;
}

.qao-about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.qao-about-stat-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(25px);
    border: 2px solid rgba(141, 220, 250, 0.2);
    border-radius: 30px;
    padding: 50px 30px;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
}

.qao-about-stat-card:hover {
    transform: translateY(-15px) scale(1.05);
    background: linear-gradient(135deg, 
        rgba(12, 35, 80, 0.95) 0%,
        rgba(20, 55, 120, 0.9) 50%,
        rgba(12, 35, 80, 0.85) 100%
    );
    border-color: rgba(141, 220, 250, 0.5);
    box-shadow: 0 30px 80px rgba(141, 220, 250, 0.4);
}

.qao-about-stat-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(141, 220, 250, 0.6));
}

.qao-about-stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #8ddcfa, #caf0fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qao-about-stat-label {
    font-size: 1.1rem;
    color: rgba(204, 242, 251, 0.8);
    font-weight: 600;
}

/* Vision & Mission */
.qao-about-vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 120px;
}

.qao-about-vm-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(25px);
    border: 2px solid rgba(141, 220, 250, 0.2);
    border-radius: 30px;
    padding: 60px 50px;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.qao-about-vm-card:hover {
    transform: translateY(-15px) rotate(1deg);
    background: linear-gradient(135deg, 
        rgba(12, 35, 80, 0.95) 0%,
        rgba(20, 55, 120, 0.9) 50%,
        rgba(12, 35, 80, 0.85) 100%
    );
    border-color: rgba(141, 220, 250, 0.5);
    box-shadow: 0 30px 80px rgba(141, 220, 250, 0.4);
}

.qao-about-vm-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    filter: drop-shadow(0 5px 15px rgba(141, 220, 250, 0.6));
}

.qao-about-vm-card h3 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8ddcfa, #caf0fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}

.qao-about-vm-card p {
    font-size: 1.1rem;
    color: rgba(204, 242, 251, 0.8);
    line-height: 1.9;
}

/* Values Section */
.qao-about-values-section {
    margin-bottom: 120px;
}

.qao-about-values-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8ddcfa, #caf0fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 60px;
}

.qao-about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.qao-about-value-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: 2px solid rgba(141, 220, 250, 0.2);
    border-radius: 25px;
    padding: 45px 35px;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.qao-about-value-card:hover {
    transform: translateY(-15px) scale(1.05);
    background: linear-gradient(135deg, 
        rgba(12, 35, 80, 0.95) 0%,
        rgba(20, 55, 120, 0.9) 50%,
        rgba(12, 35, 80, 0.85) 100%
    );
    border-color: rgba(141, 220, 250, 0.5);
    box-shadow: 0 25px 60px rgba(141, 220, 250, 0.4);
}

.qao-about-value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(141, 220, 250, 0.6));
}

.qao-about-value-card h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.qao-about-value-card p {
    font-size: 1rem;
    color: rgba(204, 242, 251, 0.7);
    line-height: 1.7;
}

/* CTA Section */
.qao-about-cta-section {
    text-align: center;
    padding: 80px 60px;
    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(30px);
    border: 2px solid rgba(141, 220, 250, 0.3);
    border-radius: 40px;
    margin-bottom: 80px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.qao-about-cta-title {
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8ddcfa, #caf0fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}

.qao-about-cta-text {
    font-size: 1.3rem;
    color: rgba(204, 242, 251, 0.9);
    margin-bottom: 45px;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.qao-about-cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.qao-about-btn {
    padding: 20px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.5s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.qao-about-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.qao-about-btn:hover::before {
    left: 100%;
}

.qao-about-btn-primary {
    background: linear-gradient(135deg, #8ddcfa 0%, #012891 100%);
    color: #ffffff;
    box-shadow: 0 15px 40px rgba(141, 220, 250, 0.5);
}

.qao-about-btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 60px rgba(141, 220, 250, 0.7);
}

.qao-about-btn-secondary {
    background: rgba(204, 242, 251, 0.05);
    color: #ffffff;
    border: 2px solid rgba(141, 220, 250, 0.5);
    backdrop-filter: blur(10px);
}

.qao-about-btn-secondary:hover {
    background: rgba(141, 220, 250, 0.1);
    border-color: #8ddcfa;
    transform: translateY(-5px) scale(1.05);
}

/* ✅ Responsive */
@media (max-width: 1200px) {
    .qao-about-stats-grid,
    .qao-about-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .qao-about-values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .qao-about-section-title {
        font-size: 3.5rem;
    }

    .qao-about-hero-image {
        min-height: 420px;          /* ✅ تم التعديل */
    }
}

@media (max-width: 768px) {
    .qao-about-lang-toggle {
        top: 15px;
        right: 15px;
        padding: 12px 20px;
    }

    .qao-about-wrapper {
        position: relative;
        overflow-x: hidden;
        overflow-y: auto !important;
        width: 100%;
        height: auto !important;
        min-height: 100vh;
        z-index: 5;   
    }
    
    .qao-about-section-title {
        font-size: 2.5rem;
    }

    .qao-about-section-subtitle {
        font-size: 1.1rem;
    }

    .qao-about-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .qao-about-hero-image {
        min-height: 320px;          /* ✅ تم التعديل */
        height: auto;               /* ✅ تمت الإضافة */
    }

    .qao-about-hero-text {
        padding: 20px;
    }

    .qao-about-hero-text h2 {
        font-size: 2.2rem;
    }

    .qao-about-hero-text p {
        font-size: 1rem;
    }

    .qao-about-stats-grid,
    .qao-about-values-grid,
    .qao-about-team-grid {
        grid-template-columns: 1fr;
    }

    .qao-about-vision-mission {
        grid-template-columns: 1fr;
    }

    .qao-about-vm-card,
    .qao-about-cta-section {
        padding: 40px 30px;
    }

    .qao-about-values-title,
    .qao-about-team-title {
        font-size: 2.2rem;
    }

    .qao-about-cta-title {
        font-size: 2.2rem;
    }

    .qao-about-cta-text {
        font-size: 1.1rem;
    }

    .qao-about-cta-buttons {
        flex-direction: column;
    }

    .qao-about-btn {
        width: 100%;
    }

    .qao-about-container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .qao-about-wrapper {
        position: relative;
        overflow-x: hidden;
        overflow-y: auto !important;
        width: 100%;
        height: auto !important;
        min-height: 100vh;
        z-index: 5; 
    }
    
    .qao-about-section-title {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .qao-about-hero-image {
        min-height: 250px;          /* ✅ تم التعديل */
        height: auto;               /* ✅ تمت الإضافة */
    }

    .qao-about-badge {
        font-size: 0.75rem;
        padding: 10px 20px;
    }

    .qao-about-hero-text h2 {
        font-size: 1.8rem;
    }

    .qao-about-stat-number {
        font-size: 2.5rem;
    }

    .qao-about-vm-card h3 {
        font-size: 1.8rem;
    }

    .qao-about-value-card h4 {
        font-size: 1.3rem;
    }

    .qao-about-cta-title {
        font-size: 1.8rem;
    }

    .qao-about-btn {
        padding: 15px 35px;
        font-size: 1rem;
    }
}