/* =========================================
   ABOUT.CSS (Our Mission Page Specifics)
   ========================================= */

/* --- CINEMATIC HERO SECTION --- */
.about-hero {
    position: relative;
    color: white;
    padding: 160px 24px 100px;
    /* Clean, high-quality image background (No more color radial glows) */
    background-image: url('https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

/* Protective Dark Overlay for readability */
.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Dark on the left for text, more transparent on the right for the cards */
    background: linear-gradient(90deg, rgba(11, 17, 32, 0.95) 0%, rgba(11, 17, 32, 0.8) 40%, rgba(11, 17, 32, 0.4) 100%);
    z-index: 1;
}

.hero-grid {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
    z-index: 2;
}

.hero-text-content {
    max-width: 600px;
}

.about-hero h1 {
    font-size: 56px;
    margin-bottom: 24px;
    color: #F8FAFC;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.about-hero p {
    font-size: 18px;
    color: #CBD5E1; /* High contrast muted text */
    line-height: 1.8;
}

.card-meta h4 { font-size: 16px; color: #F8FAFC; margin-bottom: 2px; font-weight: 700; }
.card-meta p { font-size: 12px; color: #CBD5E1; }

/* --- INFINITE INTERACTIVE CARD STACK --- */
.hero-visual-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-bottom: 60px; /* Room for the stacked cards to overflow downwards */
}

.card-stack {
    position: relative;
    width: 320px;
    height: 440px;
    perspective: 1000px; /* Gives 3D depth to the stack */
}

.stack-card {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #1E293B;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    cursor: pointer;
    /* Beautiful, spring-like transition for the cards */
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), 
                opacity 0.6s ease, 
                filter 0.6s ease;
}

.stack-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark gradient at the bottom of the card for text readability */
.card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 32px 24px 24px;
    background: linear-gradient(to top, rgba(11, 17, 32, 0.9) 0%, transparent 100%);
    color: white;
}

.card-overlay h4 { font-size: 20px; margin-bottom: 4px; font-weight: 700; }
.card-overlay p { font-size: 14px; color: #CBD5E1; }

/* --- THE 3D STACK POSITIONS --- */
.stack-card.pos-0 { transform: translateY(0) scale(1); z-index: 3; opacity: 1; filter: brightness(1); }
.stack-card.pos-1 { transform: translateY(30px) scale(0.92); z-index: 2; opacity: 0.8; filter: brightness(0.7); }
.stack-card.pos-2 { transform: translateY(60px) scale(0.84); z-index: 1; opacity: 0.5; filter: brightness(0.4); }

/* NEW: Throw Card to the RIGHT */
.stack-card.swiping-out-right {
    transform: translateX(120%) translateY(-40px) rotate(15deg) scale(1);
    opacity: 0;
    z-index: 4;
}

/* NEW: Throw Card to the LEFT */
.stack-card.swiping-out-left {
    transform: translateX(-120%) translateY(-40px) rotate(-15deg) scale(1);
    opacity: 0;
    z-index: 4;
}

/* Hint text below the stack */
.swipe-hint {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8); /* Made slightly brighter for the dark background */
    font-size: 13px;
    font-weight: 600;
}

/* --- THE STORY SECTION --- */
.our-story { padding: 120px 24px; max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.story-text h2 { font-size: 40px; margin-bottom: 24px; color: var(--text-main); }
.story-text p { color: var(--text-muted); font-size: 16px; line-height: 1.8; margin-bottom: 20px; }

.story-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15); height: 500px; }
.story-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-image-badge { position: absolute; bottom: 32px; left: -24px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); padding: 24px 32px; border-radius: var(--radius-lg); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.5); z-index: 2; }
.story-image-badge h4 { color: var(--accent-primary); font-size: 32px; margin-bottom: 4px; }
.story-image-badge p { font-size: 14px; font-weight: 600; color: var(--text-main); }

/* --- TIMELINE --- */
.our-journey { padding: 100px 24px; max-width: var(--max-width); margin: 0 auto; overflow: hidden; }
.timeline-container { position: relative; max-width: 800px; margin: 0 auto; }
/* The Vertical Line */
.timeline-container::before { 
    content: ''; 
    position: absolute; 
    left: 120px; /* Fixed anchor point */
    top: 0; bottom: 0; 
    width: 2px; 
    background: var(--border-light); 
}

/* The Rows */
.timeline-row { 
    display: flex; 
    align-items: flex-start; /* Keeps dots aligned at the top even if text is long */
    margin-bottom: 48px; 
    position: relative; 
}
.timeline-row:last-child { margin-bottom: 0; }

/* Date Marker */
.time-marker { 
    width: 120px; 
    padding-right: 32px; 
    text-align: right; 
    color: var(--accent-primary); 
    font-weight: 800; 
    font-size: 16px; 
    flex-shrink: 0; 
    text-transform: uppercase; 
    padding-top: 34px; /* Aligns visually with the box title */
}
/* Content Box */
.time-content { 
    background: var(--bg-surface); 
    padding: 32px; 
    border-radius: var(--radius-lg); 
    border: 1px solid var(--border-light); 
    flex: 1; 
    position: relative; 
    margin-left: 48px; /* Creates space between the line and the box */
    transition: all 0.4s ease;
}

/* The Circular Dot on the Line */
.time-content::before { 
    content: ''; 
    position: absolute; 
    width: 16px; height: 16px; 
    background: var(--bg-surface); 
    border-radius: 50%; 
    border: 4px solid var(--accent-primary); 
    left: -60px; /* Precisely centers the dot on the vertical line */
    top: 32px; 
    box-shadow: 0 0 0 8px white; 
    z-index: 2; 
    transition: all 0.4s ease;
}

/* Active State Styles */
.timeline-row.active .time-content { 
    border-color: var(--accent-primary); 
    background: white; 
    box-shadow: 0 15px 35px -10px rgba(0,0,0,0.1); 
}
.timeline-row.active .time-marker { color: var(--text-main); }
.timeline-row.active .time-content h4 { color: var(--accent-primary); }
.timeline-row.active .time-content::before { 
    background: var(--accent-primary); 
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.1); 
}
/* Typography */
.time-content h4 { font-size: 18px; margin-bottom: 8px; font-weight: 700; color: var(--text-main); }
.time-content p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* --- CORE VALUES --- */
.core-values { background: var(--bg-surface); padding: 120px 24px; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.values-header { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.values-header h2 { font-size: 40px; margin-bottom: 16px; color: var(--text-main); }
.values-header p { color: var(--text-muted); line-height: 1.6; }
.values-grid { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value-card { background: white; padding: 48px 32px; border-radius: var(--radius-lg); border: 1px solid var(--border-light); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05); transition: all 0.4s ease; }
.value-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); border-color: var(--accent-glow); }
.value-icon { width: 64px; height: 64px; background: var(--accent-glow); color: var(--accent-primary); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.value-icon i { width: 32px; height: 32px; }
.value-card h3 { font-size: 24px; margin-bottom: 12px; color: var(--text-main); }
.value-card p { color: var(--text-muted); line-height: 1.6; font-size: 15px; }

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .about-hero { padding: 150px 24px 80px; }
    .hero-grid { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .hero-text-content { max-width: 100%; }
    .about-hero h1 { font-size: 40px; }
    
    .card-meta { text-align: left; }
    .card-stack { width: 280px; height: 380px; margin: 0 auto; }
    .our-story { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .story-image-badge { left: 20px; bottom: 20px; width: auto; transform: none; }
    
    .timeline-container::before { left: 20px; } /* Move the line to the far left edge */
    
    .timeline-row { 
        flex-direction: column; 
        margin-bottom: 40px; 
    }

    .time-marker { 
        width: 100%; 
        text-align: left; 
        padding: 0 0 12px 48px; /* Creates room for the left line */
    }
    
    .time-content { 
        margin-left: 48px; 
        padding: 24px; 
    }
    /* Re-anchor the dot to the new left-aligned line */
    .time-content::before { 
        left: -40px; 
        top: 24px; 
    }

    .values-grid { grid-template-columns: 1fr; gap: 24px; }
}