/* ===================================
   ABOUT US PAGE - SPECIFIC STYLES
   =================================== */

/* Import main styles if needed */
/* This file should be loaded AFTER styles.css */

/* ===================================
   ABOUT HERO SECTION
   =================================== */
.about-hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    overflow: hidden;
}

.about-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.about-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-img-mobile {
    display: none;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(26, 31, 54, 0.7) 0%, rgba(26, 31, 54, 0.5) 100%);
}

.about-hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
}

.about-hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 56px;
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-hero-subtitle {
    font-family: var(--font-body);
    font-size: 24px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .about-hero {
        height: 400px;
        margin-top: 60px;
    }
    
    .hero-img-desktop {
        display: none;
    }
    
    .hero-img-mobile {
        display: block;
    }
    
    .about-hero-title {
        font-size: 36px;
    }
    
    .about-hero-subtitle {
        font-size: 18px;
    }
}

/* ===================================
   QUICK NAVIGATION
   =================================== */
.quick-nav {
    background: var(--white);
    border-bottom: 1px solid #E0E0E0;
    /* Not sticky: keep this section in normal page flow */
    position: relative;
    top: auto;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quick-nav-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
}

.quick-nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition-fast);
    position: relative;
}

.quick-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-pink);
    transition: width 0.3s ease;
}

.quick-nav-link:hover {
    color: var(--primary-pink);
    background: var(--light-pink-bg);
}

.quick-nav-link:hover::after {
    width: 80%;
}

.quick-nav-link.active {
    color: var(--primary-pink);
    background: var(--light-pink-bg);
}

@media (max-width: 768px) {
    .quick-nav {
        top: 60px;
    }
    
    .quick-nav-links {
        gap: 12px;
        padding: 16px 0;
        flex-wrap: wrap;
    }
    
    .quick-nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* ===================================
   MISSION & VISION SECTION
   =================================== */
.mission-vision {
    background: var(--white);
    padding: 80px 0;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    border-top: 3px solid var(--primary-pink);
}

.mission-box,
.vision-box {
    padding: 48px 48px 48px 0;
}

.vision-box {
    padding: 48px 0 48px 48px;
    border-left: 1px solid #e8e8e8;
}

.mv-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 28px;
    color: var(--primary-pink);
    margin-bottom: 16px;
}

.mv-text {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--text-dark);
    line-height: 1.75;
}

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

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .mission-box {
        padding: 32px 0;
        border-bottom: 1px solid #e8e8e8;
    }

    .vision-box {
        padding: 32px 0;
        border-left: none;
    }

    .mv-title {
        font-size: 22px;
    }

    .mv-text {
        font-size: 16px;
    }
}

/* ===================================
   OUR STORY SECTION (Timeline)
   =================================== */
.our-story {
    background: var(--light-gray);
    padding: 100px 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Timeline vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-pink), var(--primary-purple));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

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

/* Alternate layout */
.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: relative;
    flex-shrink: 0;
    z-index: 2;
}

.timeline-year {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.3);
    position: relative;
}

.timeline-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-yellow) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.3);
}

.timeline-content {
    flex: 1;
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}

.timeline-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 28px;
    color: var(--navy-dark);
    margin-bottom: 20px;
}

.timeline-text {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.timeline-text strong {
    font-weight: 700;
    color: var(--primary-pink);
}

.timeline-text em {
    font-style: italic;
    color: var(--text-secondary);
}

/* Highlight box for special timeline items */
.timeline-highlight .timeline-content {
    background: var(--light-pink-bg);
    border: 2px solid var(--primary-pink);
}

.timeline-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin: 24px 0;
}

.timeline-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Timeline */
@media (max-width: 768px) {
    .our-story {
        padding: 70px 0;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        margin-bottom: 50px;
        padding-left: 80px;
    }
    
    .timeline-marker {
        position: absolute;
        left: 0;
    }
    
    .timeline-year,
    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 14px;
    }
    
    .timeline-icon {
        font-size: 32px;
    }
    
    .timeline-content {
        padding: 24px;
    }
    
    .timeline-title {
        font-size: 22px;
    }
    
    .timeline-text {
        font-size: 16px;
    }
}

/* ===================================
   WHAT WE DO SECTION
   =================================== */
.what-we-do {
    background: var(--white);
    padding: 100px 0;
}

.what-we-do-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.wwd-card {
    padding: 32px;
    border-left: 4px solid var(--primary-pink);
    background: var(--very-light-gray);
}

.wwd-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    color: var(--navy-dark);
    margin-bottom: 12px;
}

.wwd-description {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .what-we-do {
        padding: 70px 0;
    }

    .what-we-do-grid {
        gap: 20px;
    }

    .wwd-card {
        padding: 24px 20px;
    }

    .wwd-title {
        font-size: 19px;
    }
}

/* ===================================
   CTA BANNER
   =================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 42px;
    color: var(--white);
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-text {
    font-family: var(--font-body);
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 36px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.btn-secondary-white {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid var(--white);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    padding: 18px 44px;
    height: 56px;
    border-radius: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-secondary-white:hover {
    background: var(--white);
    color: var(--primary-pink);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .cta-banner {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 30px;
    }
    
    .cta-text {
        font-size: 17px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 16px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 400px;
    }
}

/* ===================================
   MEET THE TEAM SECTION
   =================================== */
.meet-team {
    background: var(--light-gray);
    padding: 100px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
}

.team-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
    transition: var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.team-photo {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--light-gray);
    position: relative;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
}

/* Placeholder styling */
.team-photo::before {
    /* content: 'ðŸ‘¤'; */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    opacity: 0.3;
    z-index: 0;
}

.team-info {
    padding: 24px;
    text-align: center;
}

.team-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    color: var(--navy-dark);
    margin-bottom: 8px;
}

.team-role {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-email {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--primary-pink);
    text-decoration: none;
    word-break: break-word;
    display: inline-block;
}

.team-email:hover {
    text-decoration: underline;
    color: var(--primary-purple);
}

/* Tablet */
@media (max-width: 1024px) {
    /* team columns now reflow fluidly via auto-fit */
}

/* Mobile */
@media (max-width: 768px) {
    .meet-team {
        padding: 70px 0;
    }
    
    .team-grid {
        gap: 20px;
    }
    
    .team-photo {
        height: 220px;
    }
    
    .team-info {
        padding: 20px 16px;
    }
    
    .team-name {
        font-size: 18px;
    }
    
    .team-role {
        font-size: 14px;
        min-height: 36px;
    }
    
    .team-email {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    /* team grid collapses to 1 column automatically via minmax */
    
    .team-photo {
        height: 300px;
    }
}

/* ===================================
   SMOOTH SCROLL BEHAVIOR
   =================================== */
html {
    scroll-behavior: smooth;
}

/* Offset for sticky header when jumping to sections */
.our-story,
.what-we-do,
.meet-team {
    scroll-margin-top: 120px;
}

/* ===================================
   LOADING ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item {
    animation: fadeInUp 0.6s ease backwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

.wwd-card {
    animation: fadeInUp 0.6s ease backwards;
}

.wwd-card:nth-child(1) { animation-delay: 0.1s; }
.wwd-card:nth-child(2) { animation-delay: 0.2s; }
.wwd-card:nth-child(3) { animation-delay: 0.3s; }
.wwd-card:nth-child(4) { animation-delay: 0.4s; }

.team-card {
    animation: fadeInUp 0.5s ease backwards;
}

.team-card:nth-child(1) { animation-delay: 0.05s; }
.team-card:nth-child(2) { animation-delay: 0.1s; }
.team-card:nth-child(3) { animation-delay: 0.15s; }
.team-card:nth-child(4) { animation-delay: 0.2s; }
.team-card:nth-child(5) { animation-delay: 0.25s; }
.team-card:nth-child(6) { animation-delay: 0.3s; }
.team-card:nth-child(7) { animation-delay: 0.35s; }
.team-card:nth-child(8) { animation-delay: 0.4s; }

/* Disable animations on mobile for performance */
@media (max-width: 768px) {
    .timeline-item,
    .wwd-card,
    .team-card {
        animation: none;
    }
}
/* ===================================
   HORIZONTAL INTERACTIVE TIMELINE
   =================================== */
.h-timeline {
    margin-top: 60px;
}

.h-timeline-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 48px;
}

.h-timeline-line {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-pink), var(--primary-purple));
    transform: translateY(-50%);
    z-index: 0;
}

.h-timeline-node {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.h-timeline-node::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid #ccc;
    transition: all 0.3s ease;
    display: block;
}

.h-timeline-node.active::before,
.h-timeline-node:hover::before {
    background: var(--primary-pink);
    border-color: var(--primary-pink);
    transform: scale(1.4);
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.15);
}

.h-node-year {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.h-timeline-node.active .h-node-year,
.h-timeline-node:hover .h-node-year {
    color: var(--primary-pink);
}

.h-timeline-panels {
    position: relative;
    min-height: 280px;
}

.h-timeline-panel {
    display: none;
    animation: fadeIn 0.4s ease;
    background: var(--white);
    border-left: 4px solid var(--primary-pink);
    padding: 32px 36px;
    border-radius: 0 8px 8px 0;
}

.h-timeline-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.h-panel-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 16px;
}

.h-panel-text {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.75;
    margin-bottom: 12px;
}

.h-panel-text:last-child { margin-bottom: 0; }

.h-panel-image {
    border-radius: 8px;
    overflow: hidden;
    margin: 16px 0;
    max-height: 240px;
}

.h-panel-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* Mobile: stack timeline vertically */
@media (max-width: 768px) {
    .h-timeline-track {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 0 0 16px;
        gap: 0;
    }

    .h-timeline-line {
        top: 0;
        bottom: 0;
        left: 24px;
        right: auto;
        width: 3px;
        height: auto;
        transform: none;
    }

    .h-timeline-node {
        flex-direction: row;
        gap: 16px;
        padding: 12px 0;
    }

    .h-timeline-node::before {
        flex-shrink: 0;
    }

    .h-panel-title {
        font-size: 1.15rem;
    }

    .h-timeline-panel {
        padding: 24px 20px;
    }
}
