/* ==========================================
   ABOUT PAGE — PREMIUM REDESIGN
   ========================================== */

/* ==========================================
   1. ABOUT INTRO SECTION (Redesigned)
   ========================================== */
.about-intro-aligned {
    background: #ffffff;
    overflow: hidden;
    position: relative;
    padding: 30px 0 0px;
    z-index: 1;
}

/* Subtle dot pattern background with glow */
.about-intro-aligned::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: radial-gradient(#3ec4e1 0.5px, transparent 0.5px);
    background-size: 25px 25px;
    mask-image: radial-gradient(circle at 30% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at 30% 50%, black 20%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Floating Architectural Ions (SVG icons) */
.about-bg-ion {
    position: absolute;
    color: rgba(62, 196, 225, 0.05);
    pointer-events: none;
    user-select: none;
    z-index: 1;
    transition: transform 0.1s linear;
}

.about-bg-ion-1 {
    top: 10%;
    left: 4%;
    width: 200px;
    height: 200px;
    animation: floatSlow 25s infinite linear;
}

.about-bg-ion-2 {
    bottom: -5%;
    right: 8%;
    width: 320px;
    height: 320px;
    animation: floatSlowInverse 30s infinite linear;
}

@keyframes floatSlow {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -40px) rotate(8deg);
    }

    66% {
        transform: translate(-20px, 30px) rotate(-8deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes floatSlowInverse {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-40px, 50px) rotate(-12deg);
    }

    66% {
        transform: translate(30px, -30px) rotate(12deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.about-bg-shield {
    position: absolute;
    top: 55%;
    left: 48%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
}

/* --- Premium Grid Pattern Design --- */
.about-premium-grid {
    display: grid;
    grid-template-columns: 5fr 5fr;
    gap: 70px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* --- Left Panel (Image) --- */
.premium-grid-image {
    position: relative;
    opacity: 0;
    transform: translateX(-40px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s;
}

.premium-grid-image.active {
    opacity: 1;
    transform: translateX(0);
}

.image-decorative-frame {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(62, 196, 225, 0.3);
    border-radius: 24px;
    z-index: 0;
    transition: all 0.5s ease;
}

.premium-grid-image:hover .image-decorative-frame {
    transform: translate(-5px, -5px);
    border-color: rgba(62, 196, 225, 0.8);
}

.premium-grid-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/3.7;
    border-radius: 24px;
    position: relative;
    z-index: 1;
    transition: transform 0.8s ease;
}

.premium-grid-image:hover img {
    transform: scale(1.02);
}

/* Floating Badge */
.experience-badge {
    position: absolute;
    bottom: 40px;
    right: -30px;
    background: linear-gradient(135deg, #3ec4e1 0%, #24b1a5 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(62, 196, 225, 0.3), inset 0 2px 5px rgba(255, 255, 255, 0.3);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.6s;
    animation: floatingBadge 6s infinite ease-in-out alternate;
}

.premium-grid-image.active .experience-badge {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floatingBadge {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

.exp-number {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.exp-text {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    opacity: 0.95;
    line-height: 1.2;
}

/* --- Right Panel (Content) --- */
.premium-grid-content {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s;
    display: flex;
    flex-direction: column;
    gap: 25px;
    justify-content: center;
    text-align: justify;
}

.premium-grid-content.active {
    opacity: 1;
    transform: translateY(0);
}

.premium-lead {
    font-size: 1.8rem;
    color: #0c1a35;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    position: relative;
    padding-bottom: 20px;
}

.premium-lead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #3ec4e1;
    border-radius: 2px;
}

.premium-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

/* Bento Grid */
.premium-bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 0;
}

.bento-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    cursor: default;
}

.bento-card:hover {
    background: #ffffff;
    border-color: #3ec4e1;
    box-shadow: 0 10px 25px rgba(62, 196, 225, 0.1);
    transform: translateY(-3px);
}

.bento-card span {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

.premium-tagline-box {
    margin-top: 15px;
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(90deg, #f1f5f9 0%, rgba(248, 250, 252, 0) 100%);
    border-radius: 0 16px 16px 0;
    border-left: 4px solid #3ec4e1;
}

.premium-tagline-box p {
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}


/* ==========================================
   2. TIMELINE SECTION — PREMIUM REDESIGN
   ========================================== */
.about-timeline-section {
    background: #fff;
    position: relative;
    z-index: 3;
    padding: 80px 0 60px;
    overflow: hidden;
}

/* Premium background depth */
.about-timeline-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(62, 196, 225, 0.04) 0%, transparent 80%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.timeline-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.timeline-header .timeline-label {
    color: #3ec4e1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 12px;
    display: block;
}

.timeline-header h2 {
    font-size: 2.6rem;
    font-weight: 900;
    color: #0c1a35;
    line-height: 1.1;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.timeline-subtitle {
    font-size: 1.05rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.timeline-header-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #3ec4e1, transparent);
    margin: 0 auto;
}

/* --- Timeline Header Animation Keyframes --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slideInX {
    from {
        opacity: 0;
        transform: scaleX(0);
    }

    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* --- The Timeline Container --- */
.alt-timeline {
    position: relative;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 40px;
    z-index: 2;
}

/* Central track line */
.alt-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #f1f5f9;
    transform: translateX(-50%);
    z-index: 1;
    border-radius: 10px;
}

/* Animated progress line with glow */
.alt-timeline-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 0%;
    background: linear-gradient(180deg, #3ec4e1, #24b1a5, rgba(62, 196, 225, 0));
    transform: translateX(-50%);
    z-index: 2;
    transition: height 0.1s linear;
    box-shadow: 0 0 15px rgba(62, 196, 225, 0.5);
    border-radius: 10px;
}

/* --- Individual Timeline Items --- */
.alt-timeline-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 80px;
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.alt-timeline-item:last-child {
    margin-bottom: 0;
}

/* Left/Right alignments with staggered entrance */
.alt-timeline-item.timeline-left {
    flex-direction: row;
    transform: translateX(-100px);
}

.alt-timeline-item.timeline-right {
    flex-direction: row-reverse;
    transform: translateX(100px);
}

.alt-timeline-item.visible {
    opacity: 1;
    transform: translateX(0) !important;
}

/* --- The Content Card (Premium Material) --- */
.alt-timeline-content {
    width: calc(50% - 50px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 35px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 1);
    position: relative;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-style: preserve-3d;
    cursor: default;
}

.alt-timeline-content:hover {
    transform: translateY(-10px) perspective(1000px);
    box-shadow: 0 30px 80px rgba(62, 196, 225, 0.18);
    border-color: rgba(62, 196, 225, 0.4);
    background: #ffffff;
}

/* Card pointers */
.timeline-left .alt-timeline-content::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 35px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-right: 1px solid rgba(62, 196, 225, 0.1);
    border-bottom: 1px solid rgba(62, 196, 225, 0.1);
    transform: rotate(-45deg);
    z-index: -1;
    transition: all 0.4s ease;
}

.timeline-right .alt-timeline-content::after {
    content: '';
    position: absolute;
    left: -12px;
    top: 35px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-left: 1px solid rgba(62, 196, 225, 0.1);
    border-top: 1px solid rgba(62, 196, 225, 0.1);
    transform: rotate(-45deg);
    z-index: -1;
    transition: all 0.4s ease;
}

/* --- Interactive Center Node --- */
.alt-timeline-node {
    position: absolute;
    left: 50%;
    top: 38px;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 4px solid #e2e8f0;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 3;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.alt-timeline-item.visible .alt-timeline-node {
    background: #3ec4e1;
    border-color: #ffffff;
    box-shadow: 0 0 0 8px rgba(62, 196, 225, 0.15), 0 0 30px rgba(62, 196, 225, 0.4);
    transform: translateX(-50%) scale(1.1);
}

/* Node ripple effect */
.alt-timeline-item.visible .alt-timeline-node::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(62, 196, 225, 0.4);
    animation: premiumRipple 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes premiumRipple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* --- Year Badges & Typography --- */
.alt-timeline-year {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: linear-gradient(135deg, #3ec4e1, #24b1a5);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(62, 196, 225, 0.3);
}

.alt-timeline-content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0c1a35;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.alt-timeline-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
    text-align: justify;
}

/* --- Timeline Image Grid Enhancement --- */
.timeline-img-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.timeline-img-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: #f8f9fa;
    height: 140px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-img-item:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 20px 40px rgba(62, 196, 225, 0.25);
    border-color: #3ec4e1;
}

.timeline-img-item:hover img {
    transform: scale(1.2);
}

/* --- Footer CTA (Consistency) --- */
.about-cta {
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

/* ==========================================
   TABLET & MOBILE RESPONSIVENESS (Refined)
   ========================================== */
@media (max-width: 991px) {
    .about-premium-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .premium-grid-content {
        padding: 0 10px;
        text-align: center;
    }

    .premium-lead::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .premium-desc {
        text-align: center;
    }

    .premium-tagline-box {
        text-align: left;
    }

    .alt-timeline::before {
        left: 40px;
    }

    .alt-timeline-progress {
        left: 40px;
    }

    .alt-timeline-node {
        left: 40px;
    }

    .alt-timeline-item {
        flex-direction: row !important;
        transform: translateX(50px) !important;
    }

    .alt-timeline-item.visible {
        transform: translateX(0) !important;
    }

    .alt-timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
    }

    .timeline-left .alt-timeline-content::after,
    .timeline-right .alt-timeline-content::after {
        left: -12px;
        right: auto;
        border-left: 1px solid rgba(62, 196, 225, 0.1);
        border-top: 1px solid rgba(62, 196, 225, 0.1);
        border-right: none;
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .timeline-header h2 {
        font-size: 2.4rem;
    }

    .alt-timeline-content {
        padding: 35px 25px;
    }

    .alt-timeline {
        padding: 0 20px;
    }

    .alt-timeline::before,
    .alt-timeline-progress,
    .alt-timeline-node {
        left: 20px;
    }

    .alt-timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px;
    }

    .timeline-img-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}