/* ========== ملف about.css - إصدار محسن واحترافي ========== */
:root {
    --accent: #00e5ff;
    --accent-dark: #00b8d4;
    --accent-light: rgba(0, 229, 255, 0.1);
    --bg-dark: #0a0c15;
    --bg-darker: #070b11;
    --bg-card: rgba(18, 25, 40, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    --border-color: rgba(0, 229, 255, 0.15);
    --shadow-sm: 0 5px 20px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 10px 30px rgba(0, 229, 255, 0.2);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-card: 24px;
    --border-radius-btn: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 229, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 188, 212, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== شريط التقدم ========== */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark), #7b68ee, var(--accent));
    background-size: 300% 100%;
    width: 0%;
    transition: width 0.1s ease;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========== زر العودة للأعلى ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #fff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.5);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* ========== الهيرو المحسن ========== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0b0e1a, #0a0c18);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMjAgMTBMMTAgMjBMMjAgMzBMMzAgMjBMMjAgMTBaIiBzdHJva2U9IiMwMGU1ZmYiIHN0cm9rZS13aWR0aD0iMC41IiBmaWxsPSJub25lIiBvcGFjaXR5PSIwLjEiLz48L3N2Zz4=') repeat,
        radial-gradient(circle at 30% 40%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(123, 104, 238, 0.08) 0%, transparent 50%);
    opacity: 0.6;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--accent), transparent 30%);
    opacity: 0.05;
    animation: rotate 20s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, var(--accent), #7b68ee, var(--accent));
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s ease infinite;
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-tagline {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: pulseWidth 2s ease infinite;
}

@keyframes pulseWidth {
    0%, 100% { width: 100%; opacity: 0.5; }
    50% { width: 120%; opacity: 1; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-btn);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #000;
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
    }
}

/* ========== الأقسام الرئيسية ========== */
.section {
    padding: 80px 5%;
    position: relative;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 4%;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--accent);
    border-radius: 40px;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 3px;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========== قصة PIXELOOP ========== */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.story-text {
    padding: 20px;
}

.story-text h3 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.4;
}

.story-text h3 span {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.story-text h3 span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(0, 229, 255, 0.2);
    z-index: -1;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.story-stats {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.story-stat-item {
    text-align: center;
}

.story-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
    line-height: 1;
}

.story-stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.quote-box {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), rgba(123, 104, 238, 0.05));
    border-right: 4px solid var(--accent);
    padding: 30px;
    border-radius: 20px;
    margin: 30px 0;
    backdrop-filter: blur(10px);
    position: relative;
}

.quote-box::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.2;
    font-family: serif;
}

.quote-box p {
    font-size: 1.2rem;
    font-style: italic;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.quote-author {
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quote-author::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.story-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.story-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), transparent);
    z-index: 1;
    opacity: 0;
    transition: var(--transition-base);
}

.story-image:hover::before {
    opacity: 1;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.story-image:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--accent);
    text-align: center;
    z-index: 2;
    box-shadow: var(--shadow-accent);
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    display: block;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    color: #fff;
}

/* ========== Vision Tagline ========== */
.vision-tagline {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50px;
    padding: 60px 40px;
    margin: 20px 0;
    border: 1px solid rgba(0, 229, 255, 0.2);
    position: relative;
    overflow: hidden;
    text-align: center;
    backdrop-filter: blur(12px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.vision-tagline::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,229,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    z-index: 0;
}

.vision-tagline h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.vision-tagline span {
    color: var(--accent);
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.7);
}

.vision-tagline p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* ========== لماذا PIXELOOP ========== */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 576px) {
    .reasons-grid {
        grid-template-columns: 1fr;
    }
}

.reason-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    padding: 30px 25px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.reason-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: var(--transition-base);
}

.reason-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.reason-card:hover::before {
    opacity: 1;
}

.reason-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
    transition: var(--transition-base);
}

.reason-card:hover .reason-icon {
    background: var(--accent);
    color: #000;
    transform: scale(1.1) rotate(5deg);
}

.reason-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.reason-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.reason-features {
    list-style: none;
    padding: 0;
}

.reason-features li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reason-features li i {
    color: var(--accent);
    font-size: 0.9rem;
}

/* ========== الإحصائيات ========== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 10px;
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ========== CTA Section ========== */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(123, 104, 238, 0.1));
    border-radius: 40px;
    padding: 60px 40px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--accent), transparent 30%);
    opacity: 0.05;
    animation: rotate 20s linear infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== فوتر ========== */
.footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 2.5rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
    backdrop-filter: blur(5px);
}

@media (min-width: 768px) { 
    .footer { 
        padding: 3rem 5%; 
    } 
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.footer-text {
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 1rem;
    transform: translateZ(0);
}

.social-link:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-3px);
}

.copyright {
    color: var(--muted);
    font-size: 0.85rem;
}

.no-scroll { 
    overflow: hidden; 
}

/* ========== تأثيرات إضافية ========== */
.glow-text {
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

.hover-scale {
    transition: var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* تحسينات للأجهزة اللمسية */
.touch-device .reason-card:hover,
.touch-device .stat-card:hover {
    transform: none;
}

.touch-device .btn:hover {
    transform: none;
}

.touch-device .social-link:hover {
    transform: none;
}