/**
 * CARMELX - About Page Styles
 * Enhanced UX/UI for the About Section
 */

/* Hero Section */
.about-hero {
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4)),
                url('../images/logo.png') center/cover;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    text-align: center;
    position: relative;
    margin-top: 60px;
}

.about-hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.about-hero .lead {
    font-size: 1.3rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Main About Section */
.about-main {
    padding: 5rem 0;
}

.about-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-content .lead {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-content p {
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Highlights */
.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 8px;
    transition: var(--transition);
}

.highlight-item:hover {
    background: #f0f0f0;
    transform: translateX(10px);
}

.highlight-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: var(--secondary-color);
    border-radius: 50%;
    font-size: 1.5rem;
}

.highlight-text h5 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.highlight-text p {
    margin: 0;
    color: var(--medium-gray);
    font-size: 0.95rem;
}

/* Mission Section */
.about-mission {
    padding: 5rem 0;
}

.mission-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.mission-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.mission-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.mission-card p {
    color: var(--medium-gray);
    flex-grow: 1;
    margin-bottom: 0;
    line-height: 1.7;
}

/* Perfect For Section */
.about-perfect-for {
    padding: 5rem 0;
}

.perfect-for-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.perfect-for-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.perfect-for-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
}

.perfect-for-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.perfect-for-card p {
    color: var(--medium-gray);
    flex-grow: 1;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Why Us Section */
.about-why-us {
    padding: 5rem 0;
}

.why-us-item {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    padding-left: 100px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.why-us-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateX(5px);
}

.why-us-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #0596b8);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 12px 0 12px 0;
}

.why-us-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.why-us-item p {
    color: var(--medium-gray);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Stats Section */
.about-stats {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.05), rgba(6,173,204,0.05));
}

.stat-box {
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 500;
}

.stat-box:hover .stat-number {
    transform: scale(1.1);
}

/* CTA Section */
.about-cta {
    padding: 5rem 0;
    text-align: center;
}

.about-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-cta .lead {
    color: var(--medium-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }

    .about-hero .lead {
        font-size: 1.1rem;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .about-main {
        padding: 3rem 0;
    }

    .about-mission,
    .about-perfect-for,
    .about-why-us,
    .about-stats,
    .about-cta {
        padding: 3rem 0;
    }

    .highlight-item {
        flex-direction: column;
        text-align: center;
    }

    .highlight-icon {
        margin: 0 auto;
    }

    .why-us-item {
        padding-left: 2rem;
        min-height: auto;
    }

    .why-us-number {
        position: static;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .about-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .about-hero {
        min-height: 50vh;
        margin-top: 50px;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .about-hero .lead {
        font-size: 1rem;
    }

    .about-content h2 {
        font-size: 1.75rem;
    }

    .mission-card,
    .perfect-for-card {
        padding: 1.5rem;
    }

    .mission-icon,
    .perfect-for-icon {
        font-size: 2rem;
        height: 60px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .about-cta h2 {
        font-size: 1.75rem;
    }

    .about-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .about-cta .btn-lg {
        padding: 0.75rem 1.5rem;
    }
}

/* Animation Enhancements */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-image-wrapper {
    animation: slideInLeft 0.8s ease-out;
}

.about-content {
    animation: slideInRight 0.8s ease-out;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.mission-card:focus-within,
.perfect-for-card:focus-within,
.why-us-item:focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .about-hero,
    .about-cta {
        background: none;
        color: var(--primary-color);
    }

    .about-hero h1,
    .about-hero .lead {
        text-shadow: none;
        color: var(--primary-color);
    }

    .mission-card,
    .perfect-for-card,
    .why-us-item {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
