/* ============================================
   ABOUT PAGE - CLEAN REWRITE
   ============================================ */

/* Base Layout & Spacing */
.about-section {
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    margin-bottom: var(--space-16);
}

.about-section:last-child {
    margin-bottom: 0;
}

.mb-large {
    margin-bottom: var(--space-16);
}

.text-center {
    text-align: center;
}

/* Grid System */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

@media (max-width: 1024px) {

    /* Tablet/Mobile */
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }
}

/* Rely on components.css for .badge, .section-title, .section-description */

.text-body {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

/* HERO SECTION - Majestic Cinematic */
.about-hero,
.contact-hero {
    min-height: 70vh !important;
    padding: var(--space-32) 0 var(--space-20) !important;
    position: relative;
    overflow: hidden;
    background: #030014;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    opacity: 0.4;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: 1;
}

.hero-orb-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--color-primary);
    animation: floatOrb 15s ease-in-out infinite;
}

.hero-orb-2 {
    bottom: -10%;
    right: -10%;
    width: 450px;
    height: 450px;
    background: var(--color-secondary);
    animation: floatOrb 20s ease-in-out infinite reverse;
}

.hero-orb-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    opacity: 0.3;
    z-index: 0;
}

/* HERO SECTION - Majestic Cinematic (Shared Baseline) */
.about-hero .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 5;
    gap: 6px;
    max-width: 900px !important;
    margin: 0 auto;
    /* Ensures horizontal centering */
    /* Broadened for mighty feel */
}

.about-hero .hero-title {
    font-weight: 850 !important;
    /* Mighty Weight */
    letter-spacing: -0.02em !important;
    line-height: 1.1 !important;
    margin-bottom: 8px !important;
}

.about-hero .hero-description {
    line-height: 1.7 !important;
    max-width: 700px !important;
    font-size: 1.15rem !important;
}

@media (max-width: 768px) {
    .about-hero {
        min-height: 60vh !important;
        padding: var(--space-24) 0 var(--space-12) !important;
    }
}

.image-wrapper img {
    width: 100%;
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* PREMIUM BADGE */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-primary-light);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.badge-dot {
    width: 6.5px;
    height: 6.5px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
    animation: dotBreath 2s infinite alternate;
}

@keyframes dotBreath {
    from {
        opacity: 0.6;
        transform: scale(1);
    }

    to {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* FUN FACTS SECTION — Premium Cinematic Redesign */
.fun-facts-section {
    padding: var(--space-20) 0;
    position: relative;
    overflow: visible;
}

.fun-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    align-items: start;
}

.fact-card {
    background: rgba(15, 15, 25, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-10) var(--space-6);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(139, 92, 246, 0.2);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.fact-card:nth-child(even) {
    transform: translateY(40px);
}

.fact-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--color-primary);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.05);
}

.fact-card:nth-child(even):hover {
    transform: translateY(30px) scale(1.02);
}

.fact-icon-wrapper {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-xl);
    color: var(--color-primary-light);
    transition: all 0.4s ease;
}

.fact-card:hover .fact-icon-wrapper {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 20px var(--color-primary);
}

.fact-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    /* Reverted to 700 for consistency */
    margin-bottom: var(--space-1);
    font-family: var(--font-heading);
    color: white;
    line-height: 1.1;
}

.fact-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
    .fun-facts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-12) var(--space-6);
    }

    .fact-card:nth-child(even) {
        transform: translateY(20px);
    }
}

@media (max-width: 600px) {
    .fun-facts-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .fact-card:nth-child(even) {
        transform: translateY(0);
    }
}

/* STORY SECTION — Cinematic Depth */
.story-section {
    position: relative;
    padding: 50px 0;
    background: #030014;
}

.story-grid-layout {
    gap: var(--space-20);
    align-items: center;
}

/* Cinematic Image Wrapper */
.story-image .image-wrapper {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.story-image .image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-2xl);
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.2);
}

/* Background Depth Orb */
.story-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    filter: blur(80px);
    z-index: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.story-content {
    position: relative;
    z-index: 2;
}

.highlight-box {
    margin: var(--space-8) 0;
    padding: var(--space-8);
    background: rgba(139, 92, 246, 0.05);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    font-size: 1.4rem;
    line-height: 1.5;
    font-style: italic;
    color: #fff;
    font-family: var(--font-heading);
}

/* EXPERTISE SECTION — High-Tech Stack */
.expertise-section {
    padding: var(--space-24) 0;
    position: relative;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.expertise-card {
    background: rgba(15, 15, 25, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-10);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.expertise-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.08);
}

.expertise-card .exp-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-xl);
    transition: all 0.4s ease;
}

.expertise-card:hover .exp-icon {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 25px var(--color-primary);
}

.expertise-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: #fff;
    letter-spacing: -0.01em;
}

.expertise-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

/* CTA SECTION — Majestic Finish */
.cta-section {
    padding: var(--space-16) 0;
    /* Tightened from space-28 */
    position: relative;
}

.cta-box {
    background: linear-gradient(135deg, #050510 0%, #0a0a20 100%);
    padding: var(--space-12) var(--space-8);
    /* Tightened from space-20/12 */
    border-radius: var(--radius-3xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15), transparent 70%);
    pointer-events: none;
}

.cta-box .section-title {
    margin-bottom: var(--space-4);
    /* Tightened from space-6 */
}

.cta-box .section-description {
    margin-bottom: var(--space-6) !important;
    /* Force a tighter bottom margin */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-4);
    /* Tightened from space-8 */
}

/* Responsiveness */
@media (max-width: 900px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .timeline-wrapper::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 13px;
        right: auto;
    }

    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        left: 0;
        font-size: 2rem;
        margin-bottom: var(--space-4);
    }

    .cta-box {
        padding: var(--space-12) var(--space-6);
    }
}

@media (max-width: 500px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}