/* ========================================
   ABOUT PAGE SPECIFIC FIXES
   Hero section, content spacing, and smooth scrolling
   ======================================== */

/* ===== SMOOTH SCROLLING FIX ===== */

/* Remove any sticky positioning that causes scroll issues */
html {
    scroll-behavior: smooth !important;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Fix for scroll stickiness */
* {
    -webkit-overflow-scrolling: touch;
}

/* Ensure sections don't stick */
section {
    position: relative !important;
    transform: translateZ(0);
    will-change: auto;
}

/* ===== HERO SECTION OPTIMIZATION ===== */

/* About page hero banner */
.banner-section.inner-banner.about .overlay {
    min-height: 400px;
    display: flex;
    align-items: center;
}

.banner-section.inner-banner.about .overlay .banner-content {
    padding: 180px 0 100px !important;
    width: 100%;
}

.banner-section.inner-banner.about .main-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.banner-section.inner-banner.about .breadcrumb-area {
    margin-top: 15px;
}

.banner-section.inner-banner.about .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

/* ===== ABOUT SECTION SPACING ===== */

.about-section {
    position: relative;
    z-index: 1;
}

.about-section .overlay {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

.about-section .text-area {
    margin-bottom: 30px;
}

.about-section .text-area h5 {
    margin-bottom: 15px;
}

.about-section .text-area h2 {
    margin-bottom: 20px;
}

.about-section .text-area p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.about-section .text-area p:last-child {
    margin-bottom: 0;
}

/* Statistics counters */
.about-section .count-content {
    padding: 25px 15px;
    margin-bottom: 0;
}

.about-section .count-number {
    margin-bottom: 10px;
}

.about-section .count-content p {
    margin-top: 10px;
    margin-bottom: 0;
}

/* Image area */
.about-section .img-area {
    position: relative;
    min-height: 400px;
}

.about-section .img-area img {
    position: absolute;
    border: 6px solid var(--body-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-section .img-area .img-1 {
    left: 50px;
    bottom: 0;
    z-index: 1;
}

.about-section .img-area .img-2 {
    left: 0;
    top: 0;
    z-index: 2;
}

.about-section .img-area .img-3 {
    top: -50px;
    right: -50px;
    z-index: 3;
}

/* ===== CORE VALUES SECTION ===== */

.our-core-values {
    background: #f5faff;
    position: relative;
    z-index: 1;
}

.our-core-values .overlay {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

.our-core-values .section-header {
    margin-bottom: 50px;
}

.our-core-values .single-box {
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.our-core-values .single-box:hover {
    transform: translateY(-5px);
}

.our-core-values .single-box .icon {
    margin-bottom: 25px;
}

.our-core-values .single-box .text-area h5 {
    margin-bottom: 15px;
}

/* ===== FEATURES SECTION (MISSION) ===== */

.features-section {
    position: relative;
    z-index: 1;
}

.features-section .overlay {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

.features-section .top-section {
    padding-right: 30px;
}

.features-section .top-section .head-icon {
    margin-bottom: 20px;
}

.features-section .top-section h5 {
    margin-bottom: 15px;
}

.features-section .top-section h2 {
    margin-bottom: 20px;
}

.features-section .top-section p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.features-section .top-section .list {
    margin-top: 25px;
}

.features-section .top-section .list .list-item {
    margin-bottom: 15px;
}

/* ===== SOLUTIONS SECTION (WHY CHOOSE) ===== */

.solutions-business {
    background: #f5faff;
    position: relative;
    z-index: 1;
}

.solutions-business .overlay {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

.solutions-business .section-header {
    margin-bottom: 50px;
}

.solutions-business .single-box {
    padding: 35px 25px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.solutions-business .single-box:hover {
    transform: translateY(-5px);
    box-shadow: 0px 15px 30px rgba(47,65,129,.15) !important;
}

.solutions-business .single-box .thumb {
    margin-bottom: 25px;
}

.solutions-business .single-box .content h5 {
    margin-bottom: 15px;
}

.solutions-business .single-box .content p {
    margin-bottom: 0;
}

/* ===== CALL TO ACTION ===== */

.call-action {
    position: relative;
    z-index: 1;
}

.call-action .overlay {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

.call-action .main-content {
    padding: 60px 40px;
}

.call-action .section-header {
    margin-bottom: 35px;
}

.call-action .bottom-area {
    margin-top: 35px;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

/* Large Desktop */
@media (min-width: 1200px) {
    .banner-section.inner-banner.about .overlay .banner-content {
        padding: 200px 0 120px !important;
    }
    
    .about-section .overlay,
    .our-core-values .overlay,
    .features-section .overlay,
    .solutions-business .overlay,
    .call-action .overlay {
        padding-top: 100px !important;
        padding-bottom: 100px !important;
    }
}

/* Desktop */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .banner-section.inner-banner.about .overlay .banner-content {
        padding: 180px 0 100px !important;
    }
    
    .about-section .img-area .img-3 {
        right: -30px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
    .banner-section.inner-banner.about .overlay .banner-content {
        padding: 160px 0 80px !important;
    }
    
    .banner-section.inner-banner.about .main-content h1 {
        font-size: 40px;
    }
    
    .about-section .overlay,
    .our-core-values .overlay,
    .features-section .overlay,
    .solutions-business .overlay,
    .call-action .overlay {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
    
    .about-section .img-area {
        margin-top: 40px;
        min-height: 300px;
    }
    
    .about-section .img-area .img-1 {
        left: 30px;
    }
    
    .about-section .img-area .img-3 {
        top: -30px;
        right: -30px;
    }
    
    .features-section .top-section {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .features-section .img-area {
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .banner-section.inner-banner.about .overlay .banner-content {
        padding: 140px 0 60px !important;
    }
    
    .banner-section.inner-banner.about .main-content h1 {
        font-size: 32px;
    }
    
    .about-section .overlay,
    .our-core-values .overlay,
    .features-section .overlay,
    .solutions-business .overlay,
    .call-action .overlay {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    
    .about-section .text-area {
        margin-bottom: 40px;
    }
    
    .about-section .img-area {
        display: none; /* Hide complex image layout on mobile */
    }
    
    .about-section .cus-mar {
        margin-top: 30px !important;
    }
    
    .about-section .count-content {
        margin-bottom: 20px;
    }
    
    .our-core-values .single-box {
        margin-bottom: 25px;
    }
    
    .features-section .top-section {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .features-section .img-area {
        text-align: center;
    }
    
    .features-section .img-area img {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .solutions-business .single-box {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .call-action .main-content {
        padding: 40px 20px;
    }
    
    .call-action .bottom-area {
        flex-direction: column;
        gap: 15px;
    }
    
    .call-action .bottom-area .cmn-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Small Mobile */
@media (max-width: 575.98px) {
    .banner-section.inner-banner.about .overlay .banner-content {
        padding: 120px 0 50px !important;
    }
    
    .banner-section.inner-banner.about .main-content h1 {
        font-size: 28px;
    }
    
    .about-section .overlay,
    .our-core-values .overlay,
    .features-section .overlay,
    .solutions-business .overlay,
    .call-action .overlay {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .section-header h2 {
        font-size: 24px !important;
    }
    
    .section-header h5 {
        font-size: 14px !important;
    }
    
    .about-section .count-content {
        padding: 20px 10px;
    }
    
    .solutions-business .single-box {
        padding: 25px 15px;
    }
    
    .call-action .main-content {
        padding: 30px 15px;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* GPU acceleration for smooth scrolling */
.banner-section,
.about-section,
.our-core-values,
.features-section,
.solutions-business,
.call-action {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimize animations */
.wow {
    visibility: hidden;
}

.wow.fadeInUp {
    animation-duration: 0.6s;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Z-INDEX MANAGEMENT ===== */

/* Ensure proper stacking order */
.header-section {
    position: relative;
    z-index: 1000;
}

.banner-section {
    position: relative;
    z-index: 10;
}

.about-section,
.our-core-values,
.features-section,
.solutions-business,
.call-action {
    position: relative;
    z-index: 1;
}

.footer-section {
    position: relative;
    z-index: 10;
}

/* ===== PREVENT LAYOUT SHIFTS ===== */

/* Reserve space for images */
.about-section .img-area img {
    max-width: 100%;
    height: auto;
}

/* Prevent content jump */
.count-content {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== ACCESSIBILITY ===== */

/* Focus states */
a:focus,
button:focus {
    outline: 2px solid #1a4dbe;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1a4dbe;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}
