/* ==============================================================================
    ABOUT PAGE STYLESHEET - COMPLETE MOBILE OPTIMIZED
    - Professional Company Profile Design
    - Story, Mission, Values, Certifications
    - Consistent with Home & Services Styling
    - Fully Responsive Layout with Mobile Centering Fixes
    ============================================================================== */

/* ==============================================================================
    BASE MOBILE FIXES
    ============================================================================== */

/* Better box-sizing for all elements */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Prevent horizontal overflow */
.about-header, .company-story, .mission-values, .why-choose-us,
.certifications, .service-area, .about-cta {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Ensure all text wraps properly */
h1, h2, h3, h4, h5, h6, p, li {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ==============================================================================
    ABOUT HEADER SECTION
    ============================================================================== */

.about-header {
    width: 100%;
    padding: 100px 20px;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #16213e 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated electric grid background */
.about-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
            linear-gradient(90deg, rgba(255, 193, 7, 0.03) 1px, transparent 1px),
            linear-gradient(rgba(255, 193, 7, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-flow 20s linear infinite;
    pointer-events: none;
}

@keyframes grid-flow {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

.about-header-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.5em;
    text-transform: uppercase;
    font-family: 'Oswald', 'Impact', sans-serif;
    letter-spacing: 3px;
    text-shadow:
            2px 2px 0 #007bff,
            4px 4px 8px rgba(0, 0, 0, 0.5);
}

.about-header .lead {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #e0e0e0;
    line-height: 1.7;
    font-weight: 400;
}

/* ==============================================================================
    COMPANY STORY SECTION
    ============================================================================== */

.company-story {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.company-story .container {
    max-width: 900px;
    margin: 0 auto;
}

.story-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 30px;
    font-family: 'Oswald', 'Impact', sans-serif;
    position: relative;
    padding-bottom: 15px;
}

.story-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #007bff);
    border-radius: 2px;
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

.story-content p:last-child {
    margin-bottom: 0;
}

/* ==============================================================================
    MISSION & VALUES SECTION
    ============================================================================== */

.mission-values {
    padding: 80px 20px;
    background: #f8f9fa;
}

.mission-values h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 60px;
    font-family: 'Oswald', 'Impact', sans-serif;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s ease;
    border-top: 4px solid transparent;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.15);
    border-top-color: #ffc107;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.15);
    filter: grayscale(0%);
}

.value-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.value-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* ==============================================================================
    WHY CHOOSE US SECTION
    ============================================================================== */

.why-choose-us {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.why-choose-us h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 60px;
    font-family: 'Oswald', 'Impact', sans-serif;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.reason-item {
    position: relative;
    padding-left: 80px;
}

.reason-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Oswald', 'Impact', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.reason-item:hover .reason-number {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, #ffc107, #ff9800);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

.reason-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.reason-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* ==============================================================================
    CERTIFICATIONS SECTION
    ============================================================================== */

.certifications {
    padding: 80px 20px;
    background: #f8f9fa;
}

.certifications h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 60px;
    font-family: 'Oswald', 'Impact', sans-serif;
}

.cert-content {
    max-width: 900px;
    margin: 0 auto;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cert-item {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.cert-item:hover {
    transform: translateX(8px);
    border-left-color: #ffc107;
    box-shadow: 0 4px 25px rgba(0, 123, 255, 0.12);
}

.cert-badge {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.cert-item:hover .cert-badge {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    transform: scale(1.1);
}

.cert-details h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.cert-details p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* ==============================================================================
    SERVICE AREA SECTION
    ============================================================================== */

.service-area {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.service-area h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 40px;
    font-family: 'Oswald', 'Impact', sans-serif;
}

.service-area-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.service-area-content > p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.feature p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

.feature strong {
    color: #1a1a2e;
    font-size: 1.1rem;
}

/* ==============================================================================
    ABOUT CTA SECTION
    ============================================================================== */

.about-cta {
    width: 100%;
    padding: 80px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f0f 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated grid background */
.about-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
            linear-gradient(90deg, rgba(255, 193, 7, 0.03) 1px, transparent 1px),
            linear-gradient(rgba(255, 193, 7, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-flow 20s linear infinite;
    pointer-events: none;
}

.about-cta .cta-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 15px;
}

.about-cta h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.5em;
    font-family: 'Oswald', 'Impact', sans-serif;
    letter-spacing: 2px;
    text-shadow:
            2px 2px 0 #007bff,
            4px 4px 8px rgba(0, 0, 0, 0.5);
}

.about-cta p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #e0e0e0;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.about-cta .btn {
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.about-cta .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
}

.about-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 123, 255, 0.6);
    background: linear-gradient(135deg, #0056b3, #004085);
}

.about-cta .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #ffc107;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.2);
}

.about-cta .btn-secondary:hover {
    transform: translateY(-3px);
    background: #ffc107;
    color: #1a1a2e;
    box-shadow: 0 6px 30px rgba(255, 193, 7, 0.5);
}

/* ==============================================================================
    UTILITY CLASSES
    ============================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Prevent images from overflowing */
img {
    max-width: 100%;
    height: auto;
}

/* ==============================================================================
    RESPONSIVE DESIGN - ENHANCED MOBILE SUPPORT
    ============================================================================== */

@media (max-width: 768px) {
    .about-header {
        padding: 60px 15px;
    }

    .about-header h1 {
        letter-spacing: 2px;
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .company-story,
    .mission-values,
    .why-choose-us,
    .certifications,
    .service-area,
    .about-cta {
        padding: 60px 15px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .about-cta .btn {
        width: 100%;
    }

    .story-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-header {
        padding: 50px 10px;
    }

    .about-header h1 {
        letter-spacing: 1px;
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .about-header .lead {
        font-size: 1rem;
    }

    .company-story,
    .mission-values,
    .why-choose-us,
    .certifications,
    .service-area,
    .about-cta {
        padding: 50px 10px;
    }

    .reason-item {
        padding-left: 0;
        padding-top: 70px;
        text-align: center;
    }

    .reason-number {
        left: 50%;
        transform: translateX(-50%);
    }

    .cert-item {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
    }

    .cert-badge {
        margin: 0 auto 15px;
    }

    .value-card {
        padding: 30px 20px;
    }

    .value-card h3 {
        font-size: 1.3rem;
    }

    .value-card p {
        font-size: 0.95rem;
    }

    .reason-item h3 {
        font-size: 1.2rem;
    }

    .reason-item p {
        font-size: 0.95rem;
    }

    .cert-details h4 {
        font-size: 1.1rem;
    }

    .cert-details p {
        font-size: 0.9rem;
    }

    .about-cta h2 {
        letter-spacing: 1px;
    }

    .about-cta .btn {
        padding: 15px 30px;
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .story-content h2 {
        font-size: 1.8rem;
    }
}

/* iPhone SE and very small screens */
@media (max-width: 375px) {
    .about-header {
        padding: 40px 8px;
    }

    .about-header h1 {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }

    .about-header .lead {
        font-size: 0.95rem;
    }

    .company-story,
    .mission-values,
    .why-choose-us,
    .certifications,
    .service-area,
    .about-cta {
        padding: 40px 8px;
    }

    .values-grid {
        gap: 20px;
    }

    .value-card {
        padding: 25px 15px;
    }

    .value-icon {
        font-size: 2.5rem;
    }

    .reason-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .cert-item {
        padding: 20px 12px;
    }

    .about-cta .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .about-cta .cta-content {
        padding: 0 8px;
    }
}

/* ==============================================================================
    ANIMATIONS
    ============================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.value-card,
.reason-item,
.cert-item,
.feature {
    animation: fadeInUp 0.6s ease-out backwards;
}

/* Stagger animations */
.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }
.value-card:nth-child(4) { animation-delay: 0.4s; }
.value-card:nth-child(5) { animation-delay: 0.5s; }
.value-card:nth-child(6) { animation-delay: 0.6s; }

.reason-item:nth-child(1) { animation-delay: 0.1s; }
.reason-item:nth-child(2) { animation-delay: 0.2s; }
.reason-item:nth-child(3) { animation-delay: 0.3s; }
.reason-item:nth-child(4) { animation-delay: 0.4s; }
.reason-item:nth-child(5) { animation-delay: 0.5s; }
.reason-item:nth-child(6) { animation-delay: 0.6s; }