/*
==============================================
TIMETRACKERAI ABOUT US PAGE - OPTIMIZED
==============================================
This stylesheet defines the layout, structure, and visual appearance of the About Us page for TimeTrackerAI. It includes color variables, performance optimizations, responsive design, accessibility, and print/export support. Each section and class is documented for clarity and maintainability.
*/

/*
COLOR OPTIONS
--color-primary, --color-accent, --color-standout, --color-success, --color-warning, --color-error, --color-info, --color-bg-light, --color-bg-lighter, --color-shadow-sm, --color-overlay
These CSS variables are used throughout the About Us page for consistent theming and easy customization.
*/

/* ================================
   PERFORMANCE OPTIMIZATIONS
   - Uses content-visibility and contain-intrinsic-size to optimize rendering and speed up initial paint, especially for large or offscreen sections.
   - Hardware acceleration is enabled for key animated elements to ensure smooth transitions and effects.
================================ */
.about-container {
    content-visibility: auto;
    contain-intrinsic-size: 1px 1000px;
}

.about-container section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

/*
Hardware acceleration for critical animations
- Applies will-change and transform to key elements that animate or transition, such as hero, mission, timeline, and feature cards.
- Ensures smoother animations and reduces paint/repaint jank on modern browsers.
*/
.about-hero, 
.mission-wrapper, 
.visual-placeholder,
.pulse-dot::before,
.value-item,
.timeline-content,
.feature-card,
#btn-github {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ================================
   SIDEBAR OFFSET FIX - CORRECTED
================================ */

/* Desktop - account for sidebar */
@media (min-width: 992px) {
    /* Override the full-width container for about page when sidebar is present */
    body:has(.about-container) .main-content.with-sidebar {
        margin-left: var(--sidebar-width) !important; /* Use the CSS variable */
        width: calc(100% - var(--sidebar-width)) !important;
        padding: 0 !important;
        max-width: none !important;
    }

    .about-container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
}

/* Mobile - no sidebar */
@media (max-width: 991.98px) {
    body:has(.about-container) .main-content {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }

    .about-container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
}

/* ================================
   FULL WIDTH WITHOUT HORIZONTAL SCROLL
================================ */

/* Override main content constraints for about page */
body:has(.about-container) .main-content .container-fluid {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* ================================
   HERO SECTION - MATCHING PRIVACY
================================ */
.about-hero {
    position: relative;
    width: 100%;
    min-height: 250px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color-text-white);
    margin: 0;
    padding-top: 60px;
    box-sizing: border-box;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.hero-content {
    z-index: 1;
    padding: 0 2rem 2rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 3.5rem);
        font-weight: 800;
        margin-bottom: 1rem;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        line-height: 1.1;
        color: var(--color-text-white);
        text-rendering: optimizeLegibility;
    }

    .hero-content .lead {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
        opacity: 0.95;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        font-weight: 400;
        color: var(--color-text-white);
    }

    .hero-content .badge {
        font-weight: 500;
        font-size: 0.875rem;
        background: rgba(255, 255, 255, 0.2);
        color: var(--color-text-white);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

.hero-logo {
    z-index: 1;
    flex-shrink: 0;
    text-align: center;
}

    .hero-logo img {
        max-width: 200px;
        height: auto;
        display: block;
        filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
    }

/* ================================
   MISSION SECTION - ENHANCED DESIGN (WIDER & COMPACT)
================================ */
.mission-section {
    width: 100%;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--color-bg-lighter) 0%, var(--color-bg-light) 100%);
    position: relative;
    box-sizing: border-box;
}

    .mission-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(30, 64, 175, 0.03) 0%, transparent 50%);
        z-index: 1;
    }

    .mission-section .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
        position: relative;
        z-index: 2;
    }

.mission-wrapper {
    background: var(--color-text-white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(30, 64, 175, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

    .mission-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: var(--gradient-primary);
        z-index: 1;
    }

    .mission-wrapper::after {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
        border-radius: 50%;
        z-index: 0;
    }

    .mission-wrapper:hover {
        transform: translateY(-8px);
        box-shadow: 0 30px 80px rgba(30, 64, 175, 0.18);
    }

    .mission-wrapper > * {
        position: relative;
        z-index: 2;
    }

.mission-content {
    padding: 0;
}

    .mission-content h2 {
        color: var(--color-text);
        font-weight: 800;
        margin-bottom: 1.5rem;
        position: relative;
        padding-bottom: 1rem;
        font-size: clamp(1.8rem, 4vw, 2.2rem);
        text-rendering: optimizeLegibility;
    }

        .mission-content h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 4px;
            background: var(--gradient-primary);
            border-radius: 4px;
        }

    .mission-content .lead {
        color: var(--color-text);
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        line-height: 1.6;
        margin-bottom: 2rem;
        font-weight: 400;
    }

.mission-values {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.value-item {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--color-bg-lighter) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .value-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--gradient-primary);
        transform: scaleY(0);
        transform-origin: bottom;
        transition: transform 0.3s ease;
    }

    .value-item:hover::before {
        transform: scaleY(1);
    }

    .value-item:hover {
        transform: translateX(6px);
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(30, 64, 175, 0.03) 100%);
    }

    .value-item i {
        font-size: 1.25rem;
        flex-shrink: 0;
        color: var(--color-primary);
        background: rgba(59, 130, 246, 0.1);
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    }

    .value-item:hover i {
        transform: scale(1.1);
        background: var(--color-primary);
        color: var(--color-text-white);
        box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
    }

.value-item-content {
    flex: 1;
}

.value-item h5 {
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.value-item p {
    color: var(--color-text-muted);
    margin-bottom: 0;
    line-height: 1.4;
    font-size: 0.9rem;
}

.mission-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.visual-placeholder {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .visual-placeholder::before {
        content: '';
        position: absolute;
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
        background: conic-gradient(from 0deg, var(--color-primary), var(--color-accent), var(--color-success), var(--color-primary));
        border-radius: 50%;
        z-index: -1;
        animation: rotate 12s linear infinite;
    }

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.visual-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.3);
}

.visual-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.visual-placeholder:hover img {
    transform: scale(1.08);
}

/* ================================
   MVP SECTION - WIDER DESIGN
================================ */
.mvp-section {
    width: 100%;
    padding: 2rem 0;
    background: var(--color-bg-light);
    box-sizing: border-box;
}

    .mvp-section .container {
        max-width: 1600px; /* Increased from 1400px */
        margin: 0 auto;
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }

.mvp-content {
    background: var(--color-text-white);
    padding: 3rem 4rem; /* Increased horizontal padding */
    border-radius: 16px;
    box-shadow: var(--color-shadow-sm);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 1400px; /* Increased from none to allow wider content */
    margin: 0 auto;
}

    .mvp-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    }

    .mvp-content:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(30, 64, 175, 0.15);
    }

    .mvp-content h2 {
        color: var(--color-text);
        font-size: clamp(1.8rem, 4vw, 2.2rem); /* Keep original typography */
        text-rendering: optimizeLegibility;
    }

    .mvp-content p {
        color: var(--color-text);
        font-size: clamp(1rem, 2vw, 1.1rem); /* Keep original typography */
    }

    .mvp-content .lead {
        font-size: clamp(1.1rem, 2.5vw, 1.25rem); /* Keep original typography */
    }

.pulse-dot {
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

    .pulse-dot::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        background: inherit;
        border-radius: 50%;
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.5);
    }
}

.lead {
    color: var(--color-text);
    font-weight: 400;
}

#btn-github {
    background: linear-gradient(135deg, var(--color-accent) 0%, #8b5cf6 100%);
    color: var(--color-text-white);
    border: none;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

    #btn-github::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    #btn-github:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(139, 92, 246, 0.6);
        color: var(--color-text-white);
    }

        #btn-github:hover::before {
            left: 100%;
        }

/* ================================
   STORY SECTION - MATCHING PRIVACY CONTENT
================================ */
.story-section {
    width: 100%;
    padding: 2rem 0;
    background: var(--color-bg-lighter);
    box-sizing: border-box;
}

    .story-section .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }

.story-content h2 {
    color: var(--color-text);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    text-rendering: optimizeLegibility;
}

    .story-content h2::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
        border-radius: 2px;
    }

.timeline {
    position: relative;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 30px;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
        border-radius: 2px;
    }

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

    .timeline-item:last-child {
        margin-bottom: 0;
    }

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--color-text-white);
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

    .timeline-marker i {
        font-size: 1.5rem;
    }

.timeline-content {
    background: var(--color-text-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--color-shadow-sm);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .timeline-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    }

    .timeline-content:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(30, 64, 175, 0.15);
    }

    .timeline-content h4 {
        color: var(--color-text);
        margin-bottom: 1rem;
    }

    .timeline-content p {
        color: var(--color-text);
        margin-bottom: 0;
    }

/* ================================
   WHY SECTION - MATCHING PRIVACY CARDS
================================ */
.why-section {
    width: 100%;
    padding: 2rem 0;
    background: var(--color-bg-light);
    box-sizing: border-box;
}

    .why-section .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .why-section h2 {
        color: var(--color-text);
        position: relative;
        padding-bottom: 1rem;
        margin-bottom: 2rem;
        text-rendering: optimizeLegibility;
    }

        .why-section h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
            border-radius: 2px;
        }

    .why-section .lead {
        color: var(--color-text);
    }

.feature-card {
    background: var(--color-text-white);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    box-shadow: var(--color-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    }

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(30, 64, 175, 0.15);
    }

    .feature-card h4 {
        color: var(--color-text);
    }

    .feature-card p {
        color: var(--color-text);
    }

.icon-wrapper {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

    .icon-wrapper i {
        font-size: 2rem;
    }

.bg-primary .fa-brain {
    color: var(--color-primary);
}

.bg-success .fa-chart-line {
    color: var(--color-success);
}

.bg-info .fa-balance-scale {
    color: var(--color-info);
}

/* ================================
   TEAM SECTION
================================ */
.team-section {
    width: 100%;
    padding: 2rem 0;
    background: var(--color-bg-lighter);
    box-sizing: border-box;
}

    .team-section .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .team-section h2 {
        color: var(--color-text);
        position: relative;
        padding-bottom: 1rem;
        margin-bottom: 2rem;
        text-rendering: optimizeLegibility;
    }

        .team-section h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
            border-radius: 2px;
        }

.team-grid {
    display: flex;
    justify-content: center;
}

.team-member-card {
    max-width: 400px;
    text-align: center;
    padding: 2rem;
    background: var(--color-text-white);
    border-radius: 16px;
    box-shadow: var(--color-shadow-sm);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .team-member-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, var(--color-accent), var(--color-primary));
    }

    .team-member-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(30, 64, 175, 0.15);
    }

.member-image {
    margin-bottom: 1.5rem;
}

    .member-image img {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid var(--color-primary);
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    }

.member-info h4 {
    color: var(--color-text);
}

.member-info p {
    color: var(--color-text);
}

/* ================================
   CTA SECTION - MATCHING PRIVACY CTA
================================ */
.cta-section {
    width: 100%;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-text-white);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
        z-index: 1;
    }

    .cta-section > * {
        position: relative;
        z-index: 2;
    }

    .cta-section .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }

.cta-content h2 {
    color: var(--color-text-white);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-rendering: optimizeLegibility;
}

.cta-content .lead {
    color: var(--color-text-white);
}

.cta-section .btn-light {
    background: linear-gradient(135deg, var(--color-standout) 0%, #ff6b35 100%);
    border: none;
    color: var(--color-text-white);
    font-weight: 600;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .cta-section .btn-light::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .cta-section .btn-light:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(249, 115, 22, 0.6);
        color: var(--color-text-white);
    }

        .cta-section .btn-light:hover::before {
            left: 100%;
        }

.cta-section .small {
    color: var(--color-text-white);
    opacity: 0.8;
}

/* ================================
   ENSURE NO HORIZONTAL OVERFLOW
================================ */
* {
    box-sizing: border-box;
}

.about-container * {
    max-width: 100%;
}

/* Smooth Scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 80px; /* Account for fixed navbar */
    }
}

/* ================================
   RESPONSIVE DESIGN
================================ */
@media (max-width: 991.98px) {
    .about-hero {
        min-height: 280px;
        padding-top: 60px;
    }

    .hero-inner {
        gap: 2rem;
    }

    .mission-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .mission-visual {
        order: -1;
    }

    .visual-placeholder {
        width: 250px;
        height: 250px;
    }

    .mission-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Improve value items on tablet */
    .mission-values {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Optimize information architecture for tablets */
    .story-section .container,
    .why-section .container {
        max-width: 720px;
    }
    
    .feature-card {
        height: 100%;
    }
}

@media (max-width: 768px) {
    .about-hero {
        min-height: 300px;
        padding-top: 60px;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        padding: 1rem 1rem 2rem 1rem;
        text-align: center;
    }

        .hero-content h1 {
            font-size: 2rem;
        }

    .mission-section .container,
    .mvp-section .container,
    .story-section .container,
    .why-section .container,
    .team-section .container,
    .cta-section .container {
        padding: 0 1rem;
    }
    
    /* Improve timeline visibility */
    .timeline::before {
        left: 25px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-marker {
        width: 50px;
        height: 50px;
    }

        .timeline-marker i {
            font-size: 1.25rem;
        }

    .mission-wrapper {
        padding: 2rem;
        gap: 1.5rem;
    }

    .value-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

        .value-item i {
            margin: 0 auto;
        }

    .mvp-content {
        padding: 1.5rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    /* Stack feature cards */
    .feature-card {
        margin-bottom: 1rem;
    }

    /* Improve section spacing on mobile */
    section {
        padding: 3rem 0;
    }

    /* Ensure image responsiveness */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Improve cards on mobile */
    .feature-card h4 {
        font-size: 1.2rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .about-hero {
        min-height: 280px;
        padding-top: 60px;
    }

    .hero-content {
        padding: 1rem;
    }

        .hero-content h1 {
            font-size: 1.75rem;
            margin-bottom: 0.75rem;
        }

        .hero-content .lead {
            font-size: 1rem;
        }

    .hero-logo img {
        max-width: 150px;
    }

    .mission-section .container,
    .mvp-section .container,
    .story-section .container,
    .why-section .container,
    .team-section .container,
    .cta-section .container {
        padding: 0 0.75rem;
    }

    .visual-placeholder {
        width: 220px;
        height: 220px;
    }

    .mission-wrapper {
        padding: 1.5rem;
        gap: 1rem;
    }

    .mission-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .mission-content .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .value-item {
        padding: 0.75rem;
        gap: 0.5rem;
    }

        .value-item i {
            width: 35px;
            height: 35px;
            font-size: 1rem;
        }

        .value-item h5 {
            font-size: 0.9rem;
        }

        .value-item p {
            font-size: 0.8rem;
        }

    .mvp-content {
        padding: 1rem;
    }
    
    .mvp-content h2 {
        font-size: 1.4rem;
    }
    
    .mvp-content .lead {
        font-size: 1rem;
    }

    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-content h4 {
        font-size: 1.1rem;
    }

    .team-member-card {
        padding: 1.5rem;
    }

    .member-image img {
        width: 120px;
        height: 120px;
    }

    .cta-section .btn-light {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }
    
    .cta-content .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Better spacing for very small screens */
    .why-section h2,
    .team-section h2,
    .story-section h2 {
        font-size: 1.5rem;
    }
    
    .why-section .lead {
        font-size: 0.95rem;
    }
}

/* ================================
  ACCESSIBILITY
================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .visual-placeholder::before {
        animation: none !important;
    }
    
    .pulse-dot::before {
        animation: none !important;
    }
}

@media (prefers-contrast: high) {
    .mission-wrapper,
    .mvp-content,
    .timeline-content,
    .feature-card,
    .team-member-card {
        border: 2px solid var(--color-text);
    }
    
    .about-hero {
        background: var(--color-primary);
    }
    
    .cta-section {
        background: var(--color-primary);
    }
    
    .value-item i,
    .timeline-marker i,
    .icon-wrapper i {
        color: var(--color-text) !important;
        background: transparent !important;
    }
    
    .btn-light,
    #btn-github {
        border: 2px solid var(--color-text-white) !important;
        background: var(--color-primary) !important;
    }
}

/* ================================
   FOCUS STYLES FOR ACCESSIBILITY
================================ */
.btn:focus-visible,
a:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

.cta-section .btn:focus-visible {
    outline-color: var(--color-text-white);
}

/* ================================
   PRINT STYLES
================================ */
@media print {
    .about-container {
        display: block !important;
    }
    
    .about-hero,
    .cta-section {
        background: none !important;
        color: #000 !important;
        padding: 1rem 0 !important;
    }
    
    .hero-content h1,
    .cta-content h2,
    .cta-content .lead {
        color: #000 !important;
        text-shadow: none !important;
    }
    
    .mission-wrapper,
    .mvp-content,
    .timeline-content,
    .feature-card,
    .team-member-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .pulse-dot,
    .visual-placeholder::before,
    .section::before,
    .hero-overlay {
        display: none !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
    
    .btn {
        border: 1px solid #000 !important;
        color: #000 !important;
        background: none !important;
        box-shadow: none !important;
    }
}
