/* --- Premium Enterprise About Page Styles --- */

/* 1. Hero Section (Card Overlay Style) */
.about-hero {
    position: relative;
    height: 60vh;
    /* Match Solutions Page Height */
    min-height: 450px;
    background-image: url('/images/about/about-hero-bg.png');
    background-size: cover;
    background-position: center;
    /* background-attachment: fixed; Removed to match Solutions simplicity/performance */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    margin-bottom: 0;
}

/* Dark Overlay on BG Image */
/* Dark Overlay (Matches Solutions) */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.5));
    backdrop-filter: blur(2px);
    z-index: 1;
}

/* Hero Content Wrapper */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeUp 1s ease-out;
}

/* Typography (Matches Solutions) */
.about-hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 16px;
    /* Added spacing for subtitle */
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.about-hero-subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    /* Slightly brighter than before to match clean look */
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    margin-top: 0;
}

/* 2. Tagline Strip (Refined) */
.tagline-strip {
    background-color: #F8FAFC;
    /* Very Light Gray/Blue */
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid #E2E8F0;
}

.tagline-text {
    font-size: 32px;
    font-weight: 600;
    color: var(--navy);
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* 3. Who We Are (50/50 Premium) */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img-col img {
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-text-col h2 {
    font-size: 42px;
    color: var(--navy);
    margin-bottom: 32px;
    font-weight: 700;
}

.about-text-col p {
    font-size: 18px;
    line-height: 1.7;
    color: #475569;
    /* Slate 600 */
    margin-bottom: 24px;
}

/* 4. Vision & Mission (Split - Clean) */
.vision-mission-split {
    display: flex;
    flex-wrap: wrap;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    max-width: 100vw;
}

.vm-col {
    flex: 1;
    min-width: 400px;
    padding: 100px 40px;
    display: flex;
    justify-content: center;
}

.vm-inner {
    max-width: 550px;
    width: 100%;
}

/* Vision: White */
.vm-col.vision {
    background-color: #FFFFFF;
    color: var(--navy);
}

/* Mission: Deep Navy */
.vm-col.mission {
    background-color: #0F172A;
    /* Slate 900 */
    color: #FFFFFF;
}

.vm-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 32px;
    display: block;
    position: relative;
    padding-bottom: 20px;
}

.vm-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #3b82f6;
    /* Tech Blue Accent */
    border-radius: 2px;
}

.vm-col.mission .vm-title {
    color: #FFFFFF;
}

.vm-list li {
    padding-left: 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    font-size: 18px;
}

.vm-list li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #3b82f6;
    /* Tech Blue Dot */
    border-radius: 50%;
    margin-right: 16px;
}

.vm-col.mission .vm-list li::before {
    background-color: #60A5FA;
    /* Lighter Blue on Dark */
}

/* 5. History / Long Content */
.history-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px;
}

.history-text h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 48px;
    color: #ffffff;
}

.history-text p {
    font-size: 20px;
    /* Larger body text for readability */
    line-height: 1.8;
    color: #cbd5e1;
    /* Slate 700 */
    margin-bottom: 32px;
}

/* 6. CTA Section */
.trusted-cta {
    background: linear-gradient(135deg, #0F172A 0%, #1e293b 100%);
    padding: 100px 0;
    text-align: center;
    color: #FFFFFF;
}

.trusted-cta h2 {
    font-size: 48px;
    margin-bottom: 24px;
    font-weight: 700;
}

.trusted-cta p {
    font-size: 22px;
    color: #CBD5E1;
    /* Slate 300 */
    margin-bottom: 40px;
}

.btn-cta {
    background-color: #3b82f6;
    color: #FFFFFF;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 99px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover {
    background-color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    color: white;
}

/* Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .about-hero-title {
        font-size: 40px;
    }

    .about-hero-subtitle {
        font-size: 18px;
    }

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

    .vision-mission-split {
        flex-direction: column;
    }

    .vm-col {
        padding: 60px 24px;
        min-width: 100%;
    }
}

/* --- New Section: Principles --- */
.about-principles {
    background: linear-gradient(135deg, #061a33 0%, #052041 100%);
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

/* Subtle Vignette Overlay */
.about-principles::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.about-principles .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
}

.about-principles h2 {
    font-size: 48px;
    text-align: center;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 60px;
}

.about-principles h2 .highlight {
    color: var(--brand, #ff6a00);
    /* Fallback if var not defined */
}

/* Grid Layout */
.principles-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

/* Last Row Centering helper if needed, but flex wrap center handles it */
.principles-grid.last-row {
    margin-bottom: 0;
}

/* Pill Card Styles */
.principle-card {
    background: #ffffff;
    border-radius: 999px;
    /* Pill shape */
    padding: 12px 32px 12px 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    min-width: 320px;
    position: relative;
    overflow: hidden;
    /* For the wedge shape */
}

.principle-card:hover {
    transform: translateY(-5px);
}

/* Orange Icon Container with Angled Wedge */
.principle-icon {
    width: 56px;
    height: 56px;
    background-color: var(--brand, #ff6a00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    position: relative;
    z-index: 2;
}

/* The Angled Wedge Effect */
.principle-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    /* Adjust based on angle desire */
    background: #f1f5f9;
    display: none;
}

.principle-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    /* Navy text */
    margin: 0;
    line-height: 1.2;
}

.principle-text p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .principles-grid {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .about-principles {
        padding: 60px 0;
    }

    .about-principles h2 {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .principles-grid {
        flex-direction: column;
        align-items: center;
    }

    .principle-card {
        width: 100%;
        max-width: 400px;
        justify-content: flex-start;
    }
}

/* ============================================
   SCROLL ANIMATIONS v2 (About Page Only)
   Animates inner text/image blocks, not containers
   ============================================ */

/* Base hidden state for animated inner elements */
.anim-hidden {
    opacity: 0;
    will-change: transform, opacity;
}

/* Direction-specific initial states */
.anim-from-left {
    transform: translateX(-60px) scale(0.95);
}

.anim-from-right {
    transform: translateX(60px) scale(0.95);
}

/* Visible state - animate in */
.anim-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Exited state - subtle fade when scrolling away (no large translate) */
.anim-exited {
    opacity: 0.85;
    transform: scale(0.98);
    transition: opacity 0.5s ease-out,
        transform 0.5s ease-out;
}

/* Reduced motion support */
.reduced-motion .anim-hidden,
.reduced-motion .anim-from-left,
.reduced-motion .anim-from-right {
    opacity: 1;
    transform: none;
}

.reduced-motion .anim-visible,
.reduced-motion .anim-exited {
    opacity: 1;
    transform: none;
    transition: none;
}