/* Enhanced About Us Page Styles
-------------------------------------------------- */

/* Hero Section */
.about-hero {
    position: relative;
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

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

.hero-divider {
    width: 80px;
    height: 4px;
    background-color: #fff;
}

/* Section Headings */
.section-heading .heading-divider {
    width: 60px;
    height: 3px;
    background-color: var(--bs-primary);
    margin-top: 15px;
}

/* Welcome Section */
.about-image-container {
    position: relative;
}

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

.experience-badge .years {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 12px;
    font-weight: 500;
}

/* Fix for highlight items hover issue */
.key-highlights .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.highlight-item {
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.highlight-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.highlight-item:hover .icon-box {
    transform: scale(1.1);
}

.highlight-text {
    color: #333 !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.highlight-item:hover .highlight-text {
    color: #333 !important;
    font-weight: 600;
}

/* Service Cards */
.service-card {
    padding: 30px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.service-card .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.service-card h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

/* Company Info Card */
.company-info-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.company-details li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* Fix for vision section hover issue */
.vision-icon {
    font-size: 48px;
    display: block;
    color: var(--bs-primary);
    transition: transform 0.3s ease;
}

.vision-text {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.vision-content:hover .vision-icon {
    transform: scale(1.1);
}

.vision-content:hover .vision-text {
    color: #333 !important;
}

.vision-content:hover .vision-text strong {
    color: var(--bs-primary) !important;
}

/* Timeline Section */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: var(--bs-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: var(--bs-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: calc(50% - 40px);
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -15px;
    border-width: 8px 15px 8px 0;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -15px;
    border-width: 8px 0 8px 15px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.timeline-date {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--bs-primary);
    color: #fff;
    border-radius: 3px;
    font-size: 14px;
    margin-bottom: 10px;
}

.timeline-content h4 {
    margin-bottom: 10px;
    font-weight: 600;
}

/* CTA Section */
.cta-card {
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--bs-primary) !important;
    position: relative;
    z-index: 1;
}

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

.cta-buttons .btn {
    padding: 12px 30px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

/* Complete fix for CTA hover issue */
.cta-card:hover,
.cta-card:active,
.cta-card:focus {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background-color: var(--bs-primary) !important;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: -1;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.cta-card:hover::before,
.cta-card:active::before,
.cta-card:focus::before {
    background-color: rgba(0, 0, 0, 0.1);
}

.btn-light:hover,
.btn-light:active,
.btn-light:focus {
    background-color: #f8f9fa !important;
    color: var(--bs-primary) !important;
    transform: translateY(-2px);
}

.btn-outline-light:hover,
.btn-outline-light:active,
.btn-outline-light:focus {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: var(--bs-primary) !important;
    transform: translateY(-2px);
}

/* Button hover effect class added by JS */
.btn-hover-effect {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Ensure text remains visible during hover */
.cta-card h2,
.cta-card p,
.cta-card .lead {
    position: relative;
    z-index: 2;
    color: #fff !important;
    transition: none;
}

.cta-card:hover h2,
.cta-card:hover p,
.cta-card:hover .lead,
.cta-card:active h2,
.cta-card:active p,
.cta-card:active .lead,
.cta-card:focus h2,
.cta-card:focus p,
.cta-card:focus .lead {
    color: #fff !important;
}

/* Animation Classes */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 1s infinite;
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

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

/* Staggered Animation for Service Cards */
.service-card:nth-child(1) {
    animation-delay: 0.1s;
}
.service-card:nth-child(2) {
    animation-delay: 0.2s;
}
.service-card:nth-child(3) {
    animation-delay: 0.3s;
}
.service-card:nth-child(4) {
    animation-delay: 0.4s;
}
.service-card:nth-child(5) {
    animation-delay: 0.5s;
}
.service-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .about-hero {
        padding: 80px 0;
    }

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

    .experience-badge .years {
        font-size: 24px;
    }
}

@media (max-width: 767.98px) {
    .timeline-container::before {
        left: 30px;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -15px;
        border-width: 8px 15px 8px 0;
        border-color: transparent #fff transparent transparent;
        right: auto;
    }
}