/* ==========================================================================
   ABOUT US PAGE STYLES (GSAP & GLASSY TIMELINE SUITE)
   ========================================================================== */

:root {
    --ab-primary: #0046ae;
    --ab-primary-light: #eff6ff;
    --ab-primary-border: rgba(0, 70, 174, 0.16);
    --ab-glass-bg: rgba(255, 255, 255, 0.84);
    --ab-glass-border: rgba(255, 255, 255, 0.95);
    --ab-shadow-glass: 0 12px 32px -4px rgba(0, 70, 174, 0.1), 0 0 0 1px rgba(0, 70, 174, 0.06);
    --ab-shadow-hover: 0 20px 42px -8px rgba(0, 70, 174, 0.18), 0 0 0 1px rgba(0, 70, 174, 0.15);
}

/* Optimization: prevent CSS transform conflicts when GSAP tweens */
.gsap-active .hero-text,
.gsap-active .hero-bg-image,
.gsap-active .hero-points li,
.gsap-active .hero-actions,
.gsap-active .hero-stats,
.gsap-active .mv-card,
.gsap-active .stats-banner,
.gsap-active #timelineBgParallax {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease !important;
}

/* --------------------------------------------------------------------------
   1. HERO SECTION SCROLL INDICATOR
   -------------------------------------------------------------------------- */
.hero-scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    z-index: 10;
    color: rgba(255, 255, 255, 0.88);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.hero-scroll-indicator:hover {
    color: #ffffff;
    transform: translateX(-50%) translateY(3px);
}

.hero-scroll-indicator.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(16px);
}

.hero-scroll-indicator .mouse-icon {
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-scroll-indicator .mouse-wheel {
    width: 3px;
    height: 7px;
    background: #ffffff;
    border-radius: 2px;
    animation: mouseScrollAnim 1.9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes mouseScrollAnim {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(12px);
    }
}

.hero-scroll-indicator .scroll-text {
    font-family: 'Sora', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-scroll-indicator .scroll-arrow {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    animation: bounceDownAnim 1.9s ease-in-out infinite;
}

@keyframes bounceDownAnim {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

/* --------------------------------------------------------------------------
   2. OUR JOURNEY SECTION (CLEAN VISIBLE BACKGROUND IMAGE - NO WHITE SHADE)
   -------------------------------------------------------------------------- */
#timeline {
    position: relative;
    overflow: hidden;
    background: #080c16 !important; /* No white background */
    padding: 105px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

/* Atmospheric Background Image Media Wrap */
.timeline-bg-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Clearly VISIBLE industrial background image — NO white wash, sharp & rich */
.timeline-bg-img {
    width: 100%;
    height: 135%;
    top: -18%;
    left: 0;
    position: absolute;
    object-fit: cover;
    object-position: center;
    opacity: 0.90; /* Clearly visible */
    filter: brightness(0.88) contrast(1.12) saturate(1.1);
    will-change: transform;
}

/* Subtle dark transparent glass vignette — NO WHITE SHADE */
.timeline-bg-glass-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(8, 12, 22, 0.65) 0%, 
        rgba(8, 12, 22, 0.30) 50%, 
        rgba(8, 12, 22, 0.70) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none;
}

/* Removed milky white radial sheen spotlight */
.timeline-bg-sheen {
    display: none;
}

#timeline .container {
    position: relative;
    z-index: 1;
}

/* Section Header on Unshaded Background */
#timeline .tag {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

#timeline .h-sec {
    color: #ffffff !important;
    margin-top: 14px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

#timeline .h-sec .grad {
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 60%, #60a5fa 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Central Conduit Baseline */
#timeline .timeline-tree::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(180deg, #38bdf8 0%, #2563eb 60%, rgba(37, 99, 235, 0.2) 100%) !important;
    z-index: 0;
}

/* Active Glowing Timeline Conduit Line */
#timeline .timeline-progress-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 0%;
    background: linear-gradient(180deg, #38bdf8 0%, #2563eb 50%, #60a5fa 100%) !important;
    border-radius: 3px;
    z-index: 1;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.7), 0 0 20px rgba(37, 99, 235, 0.4) !important;
    pointer-events: none;
}

/* Timeline Dot */
#timeline .timeline-dot {
    position: absolute;
    left: 50%;
    top: 24px;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff !important;
    border: 3px solid #0046ae !important;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.18), 0 6px 18px rgba(0, 0, 0, 0.4) !important;
    display: grid;
    place-items: center;
    color: #0046ae !important;
    font-size: 1.1rem;
    z-index: 2;
    transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease !important;
}

#timeline .timeline-node:hover .timeline-dot,
#timeline .timeline-node.active-milestone .timeline-dot {
    background: #0046ae !important;
    color: #ffffff !important;
    transform: translate(-50%, -50%) scale(1.15) !important;
    box-shadow: 0 0 0 8px rgba(56, 189, 248, 0.35), 0 8px 24px rgba(0, 70, 174, 0.5) !important;
}

/* ==========================================================================
   OLD TIMELINE CARDS (Clean White, Beautiful Shadow, High Contrast)
   ========================================================================== */
.timeline-card {
    position: relative;
    width: calc(50% - 40px);
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 18px !important;
    padding: 28px 26px !important;
    box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.35), 
                0 4px 14px -2px rgba(0, 0, 0, 0.15) !important;
    opacity: 1; /* Default fully visible so cards are NEVER missing */
    transform: none;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease !important;
}

.timeline-card:hover {
    transform: translateY(-5px) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 24px 48px -8px rgba(0, 0, 0, 0.45), 
                0 8px 20px -2px rgba(56, 189, 248, 0.25) !important;
}

/* Card Content & Typography */
.timeline-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.timeline-year {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0046ae !important;
}

.timeline-tag {
    font-family: 'Sora', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0046ae !important;
    background: rgba(0, 70, 174, 0.08) !important;
    border: 1px solid rgba(0, 70, 174, 0.16) !important;
    padding: 3px 11px;
    border-radius: 999px;
}

.timeline-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.22rem;
    font-weight: 700;
    color: #0f172a !important;
    margin: 0 0 12px;
    line-height: 1.35;
}

.timeline-points {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-points li {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #334155 !important;
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.timeline-points li i {
    color: #0046ae !important;
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.timeline-highlights {
    border-top: 1px dashed rgba(0, 70, 174, 0.18) !important;
    padding-top: 14px;
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline-highlights li {
    font-size: 0.86rem;
    color: #0f172a !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-highlights li i {
    color: #0046ae !important;
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   SCROLL-TRIGGERED SIDE ENTRANCE ANIMATIONS (Active via JS)
   -------------------------------------------------------------------------- */
/* Left-side cards: slide in from left (-100px), fade in from opacity 0 */
.timeline-tree.timeline-has-animation .timeline-node[data-direction="left"]:not(.is-visible) .timeline-card {
    transform: translateX(-100px);
    opacity: 0;
}

/* Right-side cards: slide in from right (+100px), fade in from opacity 0 */
.timeline-tree.timeline-has-animation .timeline-node[data-direction="right"]:not(.is-visible) .timeline-card {
    transform: translateX(100px);
    opacity: 0;
}

/* When animation is active, apply fluid cubic-bezier transition */
.timeline-tree.timeline-has-animation .timeline-node .timeline-card {
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), 
                opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), 
                box-shadow 0.35s ease, 
                border-color 0.35s ease !important;
    will-change: transform, opacity;
}

/* In-viewport visible state: smoothly animate to final position */
.timeline-tree.timeline-has-animation .timeline-node.is-visible .timeline-card {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

.timeline-tree.timeline-has-animation .timeline-node.is-visible .timeline-card:hover {
    transform: translateY(-5px) !important;
}

/* --------------------------------------------------------------------------
   3. MISSION, VISION & VALUES 3-CARD CAROUSEL (CLEAN NATURAL BACKGROUND)
   -------------------------------------------------------------------------- */
.mv-carousel-container {
    position: relative;
    max-width: 1100px;
    margin: 15px auto 0;
    padding: 10px 48px 30px;
    user-select: none;
    -webkit-user-select: none;
}

.mv-carousel-stage {
    position: relative;
    width: 100%;
    min-height: 440px;
    height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1100px;
    perspective-origin: 50% 50%;
    margin: 10px 0 20px;
}

.mv-slide {
    position: absolute;
    width: min(440px, 86vw);
    max-width: 460px;
    height: 430px;
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.6s ease,
                box-shadow 0.6s ease;
    will-change: transform, opacity;
    cursor: pointer;
}

/* Center Active Slide */
.mv-slide.is-active {
    transform: translateX(0) scale(1) translateZ(0);
    opacity: 1 !important;
    z-index: 10;
    cursor: default;
}

.mv-slide.is-active .mv-card {
    border-color: rgba(0, 70, 174, 0.35);
    box-shadow: 0 20px 45px -10px rgba(0, 70, 174, 0.22),
                0 0 0 1px rgba(0, 70, 174, 0.16),
                0 28px 60px -20px rgba(0, 0, 0, 0.08);
}

/* Side Slides */
.mv-slide.is-prev {
    transform: translateX(-330px) scale(0.86) translateZ(-60px);
    opacity: 0.60;
    z-index: 5;
}

.mv-slide.is-next {
    transform: translateX(330px) scale(0.86) translateZ(-60px);
    opacity: 0.60;
    z-index: 5;
}

.mv-slide:hover:not(.is-active) {
    opacity: 0.85;
}

/* Card Body */
.mv-card {
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: #ffffff;
    border: 1px solid rgba(0, 70, 174, 0.14);
    border-radius: 20px;
    padding: 34px 30px;
    box-shadow: 0 10px 30px -10px rgba(0, 70, 174, 0.1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.mv-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.mv-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(0, 70, 174, 0.08);
    border: 1px solid rgba(0, 70, 174, 0.16);
    color: var(--ab-primary);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    margin-bottom: 0;
    transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.mv-slide.is-active .mv-icon,
.mv-card:hover .mv-icon {
    background: var(--ab-primary);
    color: #ffffff;
    transform: scale(1.06);
}

.mv-card-pill {
    font-family: 'Sora', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ab-primary);
    background: rgba(0, 70, 174, 0.08);
    border: 1px solid rgba(0, 70, 174, 0.16);
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mv-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.38rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
    line-height: 1.3;
}

.mv-points,
.spec-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
}

.mv-points li,
.spec-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #334155;
}

.mv-points li i,
.spec-points li i {
    color: var(--ab-primary);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Arrow Navigation Buttons */
.mv-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0, 70, 174, 0.18);
    color: var(--ab-primary);
    font-size: 1.25rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 70, 174, 0.12);
    transition: all 0.25s ease;
}

.mv-arrow-btn.mv-prev {
    left: 0;
}

.mv-arrow-btn.mv-next {
    right: 0;
}

.mv-arrow-btn:hover {
    background: var(--ab-primary);
    color: #ffffff;
    border-color: var(--ab-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 24px -4px rgba(0, 70, 174, 0.4);
}

.mv-arrow-btn:active {
    transform: translateY(-50%) scale(0.96);
}

/* Indicator Dots */
.mv-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.mv-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 70, 174, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mv-dot:hover {
    background: rgba(0, 70, 174, 0.5);
}

.mv-dot.active {
    width: 28px;
    background: var(--ab-primary);
    box-shadow: 0 0 12px rgba(0, 70, 174, 0.35);
}

@media (max-width: 991.98px) {
    .mv-carousel-stage {
        height: 450px;
    }
    .mv-slide {
        width: min(390px, 86vw);
        height: 420px;
    }
    .mv-slide.is-prev {
        transform: translateX(-260px) scale(0.86) translateZ(-60px);
    }
    .mv-slide.is-next {
        transform: translateX(260px) scale(0.86) translateZ(-60px);
    }
}

@media (max-width: 767.98px) {
    .mv-carousel-container {
        padding: 10px 0 20px;
    }
    .mv-carousel-stage {
        height: 440px;
    }
    .mv-slide {
        width: min(330px, 88vw);
        height: 410px;
    }
    .mv-slide.is-prev {
        transform: translateX(-160px) scale(0.82) translateZ(-40px);
        opacity: 0.30;
    }
    .mv-slide.is-next {
        transform: translateX(160px) scale(0.82) translateZ(-40px);
        opacity: 0.30;
    }
    .mv-card {
        padding: 24px 20px;
    }
    .mv-arrow-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .mv-arrow-btn.mv-prev {
        left: 2px;
    }
    .mv-arrow-btn.mv-next {
        right: 2px;
    }
}

/* --------------------------------------------------------------------------
   4. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    #timeline {
        padding: 70px 0;
    }

    #timeline .timeline-tree::before {
        left: 24px !important;
    }

    #timeline .timeline-progress-line {
        left: 24px !important;
        transform: none !important;
    }

    #timeline .timeline-node {
        justify-content: flex-start !important;
        padding-left: 56px !important;
        margin-bottom: 32px !important;
    }

    #timeline .timeline-dot {
        left: 24px !important;
        top: 22px !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 0.95rem !important;
    }

    .timeline-card {
        width: 100% !important;
        padding: 22px 18px !important;
        border-radius: 16px !important;
    }

    /* On mobile, enter with vertical slide to prevent horizontal scrollbars */
    .timeline-tree.timeline-has-animation .timeline-node[data-direction="left"]:not(.is-visible) .timeline-card,
    .timeline-tree.timeline-has-animation .timeline-node[data-direction="right"]:not(.is-visible) .timeline-card {
        transform: translateY(30px) !important;
        opacity: 0 !important;
    }

    .timeline-tree.timeline-has-animation .timeline-node.is-visible .timeline-card {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }

    #timeline .timeline-node.active-milestone .timeline-dot {
        transform: scale(1.1) !important;
    }

    .hero-scroll-indicator {
        bottom: 18px;
    }
}

/* --------------------------------------------------------------------------
   4. OUR SPECIALIZATION GRAPH SHOWCASE
   -------------------------------------------------------------------------- */
#specialization {
    position: relative;
    background: #ffffff !important;
}

.spec-graph-wrapper {
    max-width: 1120px;
    margin: 0 auto;
}

.spec-graph-card {
    background: #ffffff;
    border: 1px solid rgba(0, 70, 174, 0.12);
    border-radius: 24px;
    padding: 24px 28px;
    box-shadow: 0 16px 40px -12px rgba(0, 70, 174, 0.1),
                0 0 0 1px rgba(0, 70, 174, 0.05),
                0 4px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease;
}

.spec-graph-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 70, 174, 0.25);
    box-shadow: 0 24px 50px -12px rgba(0, 70, 174, 0.16),
                0 0 0 1px rgba(0, 70, 174, 0.12);
}

.spec-graph-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .spec-graph-card {
        padding: 12px 10px;
        border-radius: 16px;
    }
}

/* --------------------------------------------------------------------------
   5. REDUCED MOTION ACCESSIBILITY
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .timeline-card,
    .timeline-dot,
    .hero-scroll-indicator,
    .timeline-bg-img,
    .timeline-progress-line {
        transform: none !important;
        animation: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
}

