﻿/* ═══════════════════════════════════════════════
   OUR STORY PAGE STYLES
   ═══════════════════════════════════════════════ */

/* === HERO === */
.story-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(124, 77, 255, .18), transparent 50%), radial-gradient(circle at 80% 30%, rgba(0, 229, 255, .15), transparent 50%), radial-gradient(circle at 50% 80%, rgba(255, 77, 210, .12), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.story-hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.story-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 1.5rem 0 1.75rem;
    color: var(--text);
}

    .story-hero-title .line {
        display: block;
    }

.story-hero-desc {
    font-size: 1.15rem;
    line-height: 1.95;
    color: var(--text-soft);
    margin-bottom: 3rem;
    max-width: 640px;
    margin-inline: auto;
}

.hero-scroll-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--neon-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    animation: scrollBounce 2s ease-in-out infinite;
}

    .hero-scroll-indicator i {
        font-size: 1.2rem;
    }

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════
   STORY CHAPTER (Common)
   ═══════════════════════════════════════════════ */
.story-chapter {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.chapter-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

    .chapter-layout.chapter-reverse {
        /* محتوى يميناً، صورة يساراً (مع RTL) */
    }

.chapter-text {
    min-width: 0;
}

/* === Chapter Meta === */
.chapter-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

    .chapter-meta.center {
        justify-content: center;
        width: 100%;
    }

.chapter-number {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1;
    background: var(--grad-cta);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.04em;
}

.chapter-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-violet), transparent);
    border-radius: 100px;
}

.chapter-label {
    color: var(--neon-cyan);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.chapter-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    margin: 0 0 1.5rem;
}

.chapter-paragraph {
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.95;
    margin-bottom: 1.25rem;
}

    .chapter-paragraph strong {
        color: var(--text);
        font-weight: 700;
    }

.highlight {
    color: var(--neon-cyan);
    font-weight: 600;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 212, 255, 0.15) 60%);
    padding: 0 0.25rem;
}

/* === Chapter Quote === */
.chapter-quote {
    position: relative;
    padding: 1.5rem 1.75rem 1.5rem 2.5rem;
    margin: 1.5rem 0;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.08), rgba(0, 212, 255, 0.04));
    border-right: 4px solid var(--neon-violet);
    border-radius: 0 16px 16px 0;
}

    .chapter-quote i {
        position: absolute;
        top: 0.75rem;
        left: 1.25rem;
        font-size: 1.5rem;
        color: var(--neon-violet);
        opacity: 0.5;
    }

    .chapter-quote p {
        margin: 0;
        color: var(--text);
        font-size: 1.1rem;
        line-height: 1.8;
        font-style: italic;
        font-weight: 500;
    }

/* === Chapter List === */
.chapter-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

    .chapter-list li {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        color: var(--text-soft);
        font-size: 0.98rem;
        line-height: 1.7;
    }

        .chapter-list li i {
            color: var(--neon-green);
            font-size: 0.95rem;
            margin-top: 0.3rem;
            flex-shrink: 0;
        }

/* ═══════════════════════════════════════════════
   VISUAL CARDS
   ═══════════════════════════════════════════════ */
.chapter-visual {
    position: relative;
}

.visual-card {
    position: relative;
    padding: 3rem 2.5rem;
    background: linear-gradient(145deg, rgba(13, 15, 36, 0.85), rgba(20, 21, 48, 0.7));
    border: 1px solid var(--border-glow);
    border-radius: 28px;
    backdrop-filter: blur(12px);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.visual-bg-glow {
    position: absolute;
    top: -30%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.25), transparent 60%);
    pointer-events: none;
    animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }
}

/* === Visual Idea (Chapter 1) === */
.visual-idea {
    text-align: center;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.visual-icon-stack {
    position: relative;
    width: 280px;
    height: 280px;
    margin-bottom: 1.5rem;
}

.icon-orbit {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 12px 28px rgba(124, 77, 255, 0.4);
    animation: orbitFloat 4s ease-in-out infinite;
}

.orbit-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #7c4dff, #00d4ff);
    animation-delay: 0s;
}

.orbit-2 {
    bottom: 30px;
    right: 0;
    background: linear-gradient(135deg, #ff4dd2, #7c4dff);
    animation-delay: 1.3s;
}

.orbit-3 {
    bottom: 30px;
    left: 0;
    background: linear-gradient(135deg, #00e676, #00d4ff);
    animation-delay: 2.6s;
}

@keyframes orbitFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.orbit-1 {
    animation-name: orbit1Float;
}

@keyframes orbit1Float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-12px);
    }
}

.visual-center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4d6d, #ff4dd2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    box-shadow: 0 16px 40px rgba(255, 77, 210, 0.5);
    animation: centerPulse 2s ease-in-out infinite;
}

@keyframes centerPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.08);
    }
}

.visual-label {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--grad-cta);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
}

/* === Visual Challenges (Chapter 2) === */
.visual-challenges {
    background: linear-gradient(145deg, rgba(255, 181, 71, 0.05), rgba(255, 77, 109, 0.03));
    border-color: rgba(255, 181, 71, 0.25);
}

.challenges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.challenge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: all 0.5s var(--ease);
}

    .challenge-item:hover {
        background: rgba(255, 181, 71, 0.08);
        border-color: rgba(255, 181, 71, 0.3);
        transform: translateY(-4px);
    }

.challenge-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffb547, #ff4d6d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 10px 24px rgba(255, 181, 71, 0.3);
}

.challenge-item span {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
}

/* ═══════════════════════════════════════════════
   GROWTH (Chapter 3)
   ═══════════════════════════════════════════════ */
.growth-quote-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    margin-top: 1.75rem;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.06), rgba(0, 212, 255, 0.03));
    border: 1px dashed rgba(0, 230, 118, 0.3);
    border-radius: 16px;
}

.growth-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(0, 230, 118, 0.3);
}

.growth-quote-card p {
    margin: 0;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.85;
    font-style: italic;
    font-weight: 500;
}

/* === Growth Stats Card === */
.growth-stats-card {
    position: relative;
    padding: 2.5rem 2rem;
    background: linear-gradient(145deg, rgba(13, 15, 36, 0.9), rgba(20, 21, 48, 0.75));
    border: 1px solid var(--border-glow);
    border-radius: 28px;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.growth-glow {
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.18), transparent 60%);
    pointer-events: none;
    animation: glowPulse 5s ease-in-out infinite;
}

.growth-stat {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.5s var(--ease);
}

    .growth-stat:hover {
        background: rgba(124, 77, 255, 0.08);
        border-color: var(--border-glow);
        transform: translateX(-4px);
    }

.growth-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--grad-cta);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(124, 77, 255, 0.35);
}

.growth-stat-info {
    flex: 1;
    min-width: 0;
}

    .growth-stat-info h4 {
        margin: 0 0 0.25rem;
        color: var(--text);
        font-size: 1rem;
        font-weight: 700;
    }

    .growth-stat-info p {
        margin: 0;
        color: var(--text-muted);
        font-size: 0.85rem;
        line-height: 1.5;
    }

/* ═══════════════════════════════════════════════
   VALUES (Chapter 4)
   ═══════════════════════════════════════════════ */
.section-subtitle {
    text-align: center;
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-top: 1rem;
    max-width: 600px;
    margin-inline: auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.value-card {
    position: relative;
    padding: 2rem 1.75rem;
    background: linear-gradient(145deg, rgba(13, 15, 36, 0.85), rgba(20, 21, 48, 0.7));
    border: 1px solid var(--border);
    border-radius: 22px;
    backdrop-filter: blur(12px);
    text-align: center;
    transition: all 0.6s var(--ease);
    overflow: hidden;
}

    .value-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 3px;
        background: var(--grad-cta);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.5s var(--ease);
    }

    .value-card:hover {
        transform: translateY(-8px);
        border-color: var(--border-glow);
        box-shadow: 0 20px 50px rgba(124, 77, 255, 0.18);
    }

        .value-card:hover::before {
            transform: scaleX(1);
        }

.value-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    border-radius: 22px;
    background: var(--grad-cta);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 14px 32px rgba(124, 77, 255, 0.4);
    transition: transform 0.5s var(--ease);
}

.value-card:hover .value-icon-wrap {
    transform: scale(1.08) rotate(-5deg);
}

.value-icon-glow {
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    background: var(--grad-cta);
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.5s ease;
    z-index: -1;
}

.value-card:hover .value-icon-glow {
    opacity: 0.6;
}

.value-card h3 {
    margin: 0 0 0.75rem;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 700;
}

.value-card p {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.85;
    margin: 0;
}

/* ═══════════════════════════════════════════════
   FUTURE CARD (Chapter 5)
   ═══════════════════════════════════════════════ */
.future-card {
    position: relative;
    padding: 4rem 3rem;
    background: linear-gradient(145deg, rgba(13, 15, 36, 0.95), rgba(20, 21, 48, 0.85));
    border: 1px solid var(--border-glow);
    border-radius: 32px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.future-bg-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(124, 77, 255, 0.18), transparent 50%), radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.15), transparent 50%);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}

.future-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.future-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    margin: 1.25rem 0 2.5rem;
}

.future-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin: 2.5rem 0;
}

.future-side {
    padding: 2rem 1.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 18px;
    text-align: right;
}

.future-side-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

    .future-side-header i {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: var(--grad-cta);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1.15rem;
        box-shadow: 0 8px 18px rgba(124, 77, 255, 0.35);
    }

    .future-side-header h3 {
        margin: 0;
        color: var(--text);
        font-size: 1.25rem;
        font-weight: 700;
    }

.future-side p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.85;
}

.future-arrow {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4dd2, #7c4dff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 16px 36px rgba(255, 77, 210, 0.45);
    animation: arrowPulse 2.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.future-vision {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2.5rem 0 2rem;
    line-height: 1.65;
}

.future-actions {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ═══════════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════════ */
.story-final-cta {
    padding: 6rem 0;
    text-align: center;
}

.final-cta-content {
    max-width: 720px;
    margin: 0 auto;
}

.final-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.75rem;
    border-radius: 24px;
    background: var(--grad-cta);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 16px 40px rgba(124, 77, 255, 0.45);
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

.final-cta-content h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--text);
    margin: 0 0 1rem;
    line-height: 1.3;
}

.final-cta-content p {
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.85;
    margin: 0 0 2rem;
}

.cta-actions {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ═══════════════════════════════════════════════
   AOS Optimizations
   ═══════════════════════════════════════════════ */
[data-aos] {
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .chapter-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

        /* في mobile، الصورة دايماً تحت النص */
        .chapter-layout.chapter-reverse .chapter-text {
            order: 1;
        }

        .chapter-layout.chapter-reverse .chapter-visual {
            order: 2;
        }

        .chapter-layout .chapter-text {
            order: 1;
        }

        .chapter-layout .chapter-visual {
            order: 2;
        }

    .future-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .future-arrow {
        margin: 0 auto;
        transform: rotate(90deg);
    }

    .future-side {
        text-align: center;
    }

    .future-side-header {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .story-hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }

    .story-chapter {
        padding: 4rem 0;
    }

    .visual-card {
        padding: 2rem 1.5rem;
    }

    .visual-icon-stack {
        width: 220px;
        height: 220px;
    }

    .icon-orbit {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .visual-center-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .challenges-grid {
        gap: 0.85rem;
    }

    .challenge-item {
        padding: 1rem 0.75rem;
    }

    .challenge-icon {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }

    .growth-stats-card {
        padding: 1.75rem 1.25rem;
    }

    .growth-quote-card {
        flex-direction: column;
        text-align: center;
    }

        .growth-quote-card .growth-icon {
            margin: 0 auto;
        }

    .future-card {
        padding: 2.5rem 1.5rem;
    }

    .future-side {
        padding: 1.5rem 1.25rem;
    }

    .chapter-meta {
        flex-wrap: wrap;
    }

    .chapter-number {
        font-size: 2rem;
    }

    .chapter-divider {
        width: 40px;
    }
}
