/* ========================================
   About Page — قياس أونلاين
   ======================================== */

/* ========== Hero Section ========== */
.about-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 20px 60px;
}

.about-hero::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.06);
    backdrop-filter: blur(40px);
    top: 15%;
    right: -80px;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.about-hero::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.06);
    backdrop-filter: blur(40px);
    bottom: 15%;
    left: -60px;
    animation: float 10s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 30%, #6366F1 70%, #7C3AED 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.08;
}

.about-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(99,102,241,0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(99,102,241,0.1) 0%, transparent 50%);
}

.about-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
    max-width: 700px;
}

.about-hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.about-hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* ========== Vision Section ========== */
.about-vision {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 48px 32px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.about-vision::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(99,102,241,0.4), rgba(99,102,241,0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

.vision-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #6366F1, #6366F1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.25);
}

.vision-icon svg {
    width: 36px;
    height: 36px;
    color: white;
}

.about-vision h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-vision p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-vision p:last-child {
    margin-bottom: 0;
}

.about-vision strong {
    color: var(--green-400);
    -webkit-text-fill-color: var(--green-400);
}

/* ========== Features Grid ========== */
.about-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-feature-card {
    text-align: center;
    padding: 36px 24px;
    position: relative;
}

.about-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.about-feature-card:hover .about-feature-icon {
    background: linear-gradient(135deg, #6366F1, #6366F1);
    border-color: transparent;
    transform: scale(1.05);
}

.about-feature-icon svg {
    width: 30px;
    height: 30px;
    color: var(--green-400);
    transition: color 0.3s ease;
}

.about-feature-icon svg [stroke="cColor"] {
    stroke: currentColor;
}

.about-feature-icon svg [fill="cColor"] {
    fill: currentColor;
}

.about-feature-card:hover .about-feature-icon svg {
    color: white;
}

.about-feature-number {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.2;
}

.about-feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.about-feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========== Why Free Section ========== */
.why-free-card {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 48px 36px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.why-free-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #EF4444, #F59E0B, #6366F1, #818CF8, #7C3AED);
    border-radius: 24px 24px 0 0;
}

.why-free-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: pulse 3s ease-in-out infinite;
}

.why-free-icon svg {
    width: 32px;
    height: 32px;
    color: #EF4444;
}

.why-free-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.why-free-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 16px;
}

.why-free-text strong {
    color: var(--green-400);
}

.why-free-sub {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-style: italic;
}

/* ========== Exams Overview ========== */
.about-exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-exam-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

.about-exam-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1.5px;
    background: var(--gradient-card-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-exam-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.about-exam-card:hover::before {
    opacity: 1;
}

.about-exam-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.about-exam-icon.qudurat {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.about-exam-icon.tahsili {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.about-exam-icon.step {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.about-exam-icon svg {
    width: 30px;
    height: 30px;
}

.about-exam-icon.qudurat svg {
    color: var(--blue-400);
}

.about-exam-icon.tahsili svg {
    color: var(--green-400);
}

.about-exam-icon.step svg {
    color: #A78BFA;
}

.about-exam-card:hover .about-exam-icon {
    transform: scale(1.1);
}

.about-exam-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.about-exam-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.about-exam-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--green-400);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ========== Contact Section ========== */
.contact-card {
    text-align: center;
    max-width: 550px;
    margin: 0 auto;
    padding: 48px 36px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.contact-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.contact-icon svg {
    width: 34px;
    height: 34px;
    stroke: var(--blue-400);
}

.contact-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.contact-card > p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366F1, #6366F1);
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    direction: ltr;
}

.contact-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.4);
}

.contact-email svg {
    stroke: white;
    flex-shrink: 0;
}

.contact-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 16px;
}

/* ========== Sitemap Section ========== */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.sitemap-group {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    border: 1px solid var(--border-color);
    padding: 28px 24px;
}

.sitemap-group h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--green-400);
}

.sitemap-group a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.sitemap-group a:hover {
    background: var(--bg-glass-light);
    color: var(--text-primary);
    padding-right: 16px;
}

.sitemap-group a svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.sitemap-group a:hover svg {
    opacity: 1;
    stroke: var(--green-400);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .about-hero {
        padding: 100px 20px 40px;
        min-height: 40vh;
    }

    .about-vision {
        padding: 32px 20px;
    }

    .about-vision h2 {
        font-size: 1.5rem;
    }

    .about-vision p {
        font-size: 1rem;
    }

    .about-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .about-feature-card {
        padding: 24px 16px;
    }

    .about-feature-number {
        font-size: 1.6rem;
    }

    .why-free-card {
        padding: 32px 20px;
    }

    .why-free-card h2 {
        font-size: 1.5rem;
    }

    .why-free-text {
        font-size: 1rem;
    }

    .about-exams-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 32px 20px;
    }

    .contact-email {
        font-size: 0.95rem;
        padding: 12px 22px;
    }

    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 90px 16px 30px;
    }

    .about-features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
