/* About Us Page Styles */

/* Hero Section */
.about-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    padding: 8rem 0 4rem;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.about-hero .container {
    position: relative;
    z-index: 2;
}



.about-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.about-hero .hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Milestones Section */
.milestones-section {
    background: #fff;
    position: relative;
    z-index: 2;
    margin-top: -4rem;
}

.milestone-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.milestone-card:hover {
    transform: translateY(-5px);
}

.milestone-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.milestone-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.milestone-label {
    color: #666;
    font-size: 1rem;
}

/* Welcome Section */
.welcome-section {
    background: #fff;
    position: relative;
}

.about-image-container {
    position: relative;
    margin-bottom: 2rem;
}

.about-image-container img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease, opacity 0.5s ease;
    opacity: 1 !important;
    display: block !important;
    max-width: 100%;
}

.about-image-container:hover img {
    transform: scale(1.02);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #000000;
    color: white;
    padding: 1rem;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.experience-badge .years {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.section-heading {
    margin-bottom: 2rem;
}

.section-heading h6 {
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.heading-divider {
    width: 60px;
    height: 3px;
    background: var(--bs-primary);
    margin: 1rem 0;
}

.welcome-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.welcome-content .lead {
    font-size: 1.1rem;
    color: var(--bs-gray-700);
}

/* Key Highlights */
.key-highlights .card {
    border: none;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.key-highlights .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.key-highlights .card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.key-highlights .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

/* What We Do Section */
.what-we-do-section {
    background: #f8f9fa;
}

.what-we-do-section .card {
    border: none;
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.what-we-do-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.what-we-do-section .card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.what-we-do-section .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.what-we-do-section .card-text {
    color: #666;
    line-height: 1.8;
}

/* Company Info Section */
.company-info-section {
    background: #fff;
}

.company-info-section .lead {
    font-size: 1.25rem;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Quality Section */
.quality-section {
    background: #f8f9fa;
}

.quality-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.quality-card:hover {
    transform: translateY(-5px);
}

.quality-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
}

.quality-card h4 {
    margin-bottom: 1rem;
    color: #333;
}

/* Leadership Section */
.leadership-section {
    background: #fff;
}

.team-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
}

.team-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-content {
    padding: 1.5rem;
    text-align: center;
}

.team-content h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

/* Timeline Section */
.timeline-section {
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding-right: 2rem;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 2rem;
}

.timeline-dot {
    position: absolute;
    right: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 4px var(--primary);
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -6px;
}

.timeline-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.timeline-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background: #f8f9fa;
}

.cta-card {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #1B4332 100%);
    border-radius: 15px;
    padding: 3rem 2rem;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.cta-card:hover::before {
    opacity: 1;
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-card h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.cta-card p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-card .btn {
    background-color: white;
    color: #000000 !important;
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    text-shadow: none;
}

.cta-card .btn:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: #1B4332 !important;
}

.cta-card .btn i {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.cta-card .btn:hover i {
    transform: translateX(3px);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .about-hero {
        min-height: 50vh;
        padding: 6rem 0 3rem;
    }

    .about-hero .hero-title {
        font-size: 2.5rem;
    }

    .about-hero .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .experience-badge {
        width: 100px;
        height: 100px;
        bottom: -15px;
        right: -15px;
    }

    .experience-badge .years {
        font-size: 1.5rem;
    }

    .experience-badge .text {
        font-size: 0.7rem;
    }

    .cta-card {
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .about-hero {
        min-height: 40vh;
        padding: 5rem 0 2rem;
    }

    .about-hero .hero-title {
        font-size: 2rem;
    }

    .about-hero .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }

    .welcome-content .lead {
        font-size: 1rem;
    }

    .key-highlights .card {
        margin-bottom: 1rem;
    }

    .what-we-do-section .card {
        margin-bottom: 1.5rem;
    }

    .highlight-card {
        margin-bottom: 1rem;
    }

    .icon-box {
        width: 60px;
        height: 60px;
    }

    .icon-box i {
        font-size: 1.5rem;
    }
}

/* Animation Classes */
.animate__animated {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.animate__fadeInDown {
    animation-name: fadeInDown;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Accessibility Improvements */
.cta-card:focus-within {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Print Styles */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .about-image-container img,
    .key-highlights .card,
    .what-we-do-section .card,
    .highlight-card,
    .highlight-icon,
    .company-info-list .info-item,
    .info-icon,
    .cta-card,
    .cta-card .btn {
        transition: none !important;
    }
}

/* Focus Styles */

.key-highlights .card:focus-within,
.what-we-do-section .card:focus-within,
.highlight-card:focus-within,
.info-item:focus-within {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Loading State */
.about-image-container img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-image-container img.loaded {
    opacity: 1 !important;
}

/* Fallback Image Styles */
.fallback-image {
    border: 1px solid rgba(0, 0, 0, 0.1);
    object-fit: cover;
    background-color: #f5f5f5;
    min-height: 300px;
    opacity: 1 !important;
    display: block !important;
}

.about-image-container .fallback-image {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

.card-header.bg-primary.text-white h3.h5.mb-0 {
    color: #ffffff !important;
}