/* ===================================
   PAGE HEADER SECTION - FIXED HORIZONTAL SCROLL
   =================================== */
   .page-header-section {
    position: relative;
    height: 50vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    overflow: hidden !important;
    background: var(--gray-900);
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

.page-header-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    margin-top: -60px;
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.page-header-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: var(--fw-extrabold);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white);
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    white-space: normal !important;
    text-overflow: clip !important;
}

.page-header-subtitle {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    white-space: normal !important;
    text-overflow: clip !important;
}

/* ... rest of the about.css file remains the same ... */
/* All other sections from company-overview-section onwards remain unchanged */

/* ===================================
   COMPANY OVERVIEW SECTION
   =================================== */
.company-overview-section {
    padding: 60px 0 100px 0;
    background: var(--white);
}

/* Center the Our Story badge above everything */
.company-overview-section .row .col-12 {
    margin-bottom: 2rem;
}

.company-overview-section .section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 auto;
}

.section-badge {
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    margin: 0 auto var(--spacing-xl);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    width: fit-content;
}

.company-overview-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-overview-image {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: 620px;
    width: 100%;
}

.company-overview-image .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-slow);
    display: block;
}

.company-overview-image:hover .main-image {
    transform: scale(1.05);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--fw-bold);
    color: var(--gray-800);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.section-description {
    font-size: var(--fs-lg);
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.company-highlights {
    margin-top: var(--spacing-xl);
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    transition: transform 0.3s ease;
}
.highlight-item:hover {
    transform: translateX(5px);
}
.highlight-item:last-child {
    margin-bottom: 0;
}
.highlight-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.highlight-icon i {
    font-size: var(--fs-lg);
    color: var(--white);
}
.highlight-content h4 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--gray-800);
    margin-bottom: var(--spacing-sm);
}
.highlight-content p {
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
    font-size: var(--fs-sm);
}

.floating-stats {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.stat-number {
    display: block;
    font-size: var(--fs-3xl);
    font-weight: var(--fw-extrabold);
    color: var(--primary-color);
    line-height: 1;
}
.stat-label {
    font-size: var(--fs-sm);
    color: var(--gray-600);
    margin: 0;
    font-weight: var(--fw-medium);
}

/* ===================================
   STATS SECTION
   =================================== */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}
.stat-card {
    background: var(--white);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
    height: 100%;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}
.stat-card .stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    transition: var(--transition-normal);
}
.stat-card:hover .stat-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    transform: scale(1.1);
}
.stat-card .stat-icon i {
    font-size: var(--fs-2xl);
    color: var(--white);
}
.stat-card .stat-number {
    font-size: var(--fs-5xl);
    font-weight: var(--fw-extrabold);
    color: var(--gray-800);
    display: block;
    margin-bottom: var(--spacing-sm);
}
.stat-card .stat-label {
    font-size: var(--fs-lg);
    color: var(--gray-600);
    font-weight: var(--fw-medium);
    margin: 0;
}

/* ===================================
   MISSION VISION VALUES SECTION
   =================================== */
.mvv-section {
    padding: 100px 0;
    background: var(--white);
}
.section-header {
    margin-bottom: var(--spacing-3xl);
}
.section-subtitle {
    font-size: var(--fs-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
.mvv-card {
    background: var(--white);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
    height: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px; /* Added for mobile spacing */
}
.mvv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition-normal);
}
.mvv-card:hover::before {
    transform: scaleX(1);
}
.mvv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}
.mvv-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    transition: var(--transition-normal);
}
.mvv-card:hover .mvv-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    transform: scale(1.1) rotate(5deg);
}
.mvv-icon i {
    font-size: var(--fs-2xl);
    color: var(--white);
}
.mvv-title {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--gray-800);
    margin-bottom: var(--spacing-lg);
}
.mvv-description {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: var(--fs-base);
}
.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.values-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    color: var(--gray-600);
    font-weight: var(--fw-medium);
}
.values-list li i {
    color: var(--secondary-color);
    font-size: var(--fs-sm);
}

/* ===================================
   TEAM SECTION
   =================================== */
.team-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}
.team-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
    margin-bottom: 30px; /* Added for mobile spacing */
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}
.team-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}
.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition-slow);
}
.team-card:hover .team-image img {
    transform: scale(1.1);
}
.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(245, 158, 11, 0.9) 0%,
        rgba(5, 150, 105, 0.9) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}
.team-card:hover .team-overlay {
    opacity: 1;
}
.team-social {
    display: flex;
    gap: var(--spacing-md);
}
.team-social .social-link {
    width: 45px;
    height: 45px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-fast);
    transform: translateY(20px);
    opacity: 0;
    animation: teamSocialSlideUp 0.3s ease-out forwards;
}
.team-card:hover .team-social .social-link {
    transform: translateY(0);
    opacity: 1;
}
.team-social .social-link:nth-child(1) { animation-delay: 0.1s; }
.team-social .social-link:nth-child(2) { animation-delay: 0.2s; }
.team-social .social-link:nth-child(3) { animation-delay: 0.3s; }
@keyframes teamSocialSlideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.team-social .social-link:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}
.team-content {
    padding: var(--spacing-xl);
    text-align: center;
}
.team-name {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--gray-800);
    margin-bottom: var(--spacing-sm);
}
.team-position {
    font-size: var(--fs-base);
    color: var(--primary-color);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.team-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   WHY CHOOSE US SECTION
   =================================== */
.why-choose-section {
    padding: 100px 0;
    background: var(--white);
}

/* Center the section badge above everything */
.why-choose-section .row .col-12 {
    margin-bottom: 2rem;
}

.why-choose-section .section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 auto;
}

.why-choose-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.why-choose-image {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height:690px;
    width: 100%;
    margin-bottom: 30px; /* Added for mobile spacing */
}
.why-choose-image .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}
.why-choose-image:hover .main-image {
    transform: scale(1.05);
}
.experience-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.badge-number {
    display: block;
    font-size: var(--fs-3xl);
    font-weight: var(--fw-extrabold);
    line-height: 1;
}
.badge-text {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.why-choose-features {
    margin-top: var(--spacing-xl);
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding: 0;
    background: transparent;
    border-radius: 0;
    transition: transform 0.3s ease;
}
.feature-item:hover {
    background: transparent;
    box-shadow: none;
    transform: translateX(5px);
}
.feature-item:last-child {
    margin-bottom: 0;
}
.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-normal);
}
.feature-item:hover .feature-icon {
    transform: scale(1.1);
}
.feature-icon i {
    font-size: var(--fs-lg);
    color: var(--white);
}
.feature-content h4 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--gray-800);
    margin-bottom: var(--spacing-sm);
}
.feature-content p {
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
    font-size: var(--fs-sm);
}

/* ===================================
   CERTIFICATIONS SECTION
   =================================== */
.certifications-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}
.certification-card {
    background: var(--white);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
    height: 100%;
    margin-bottom: 20px; /* Added for mobile spacing */
}
.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}
.certification-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    transition: var(--transition-normal);
}
.certification-card:hover .certification-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    transform: scale(1.1) rotate(5deg);
}
.certification-icon i {
    font-size: var(--fs-2xl);
    color: var(--white);
}
.certification-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--gray-800);
    margin-bottom: var(--spacing-md);
}
.certification-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   RESPONSIVE DESIGN - IMPROVED
   =================================== */

/* Large devices (desktops, 992px and up) */
@media (max-width: 991.98px) {
    .page-header-section {
        height: 45vh;
        min-height: 350px;
        overflow: hidden !important; /* FIXED: Prevent overflow */
    }
    .page-header-content {
        margin-top: -40px;
        padding: 0 20px !important;
        overflow: hidden !important; /* FIXED: Prevent overflow */
    }
    .page-header-title,
    .page-header-subtitle {
        overflow: hidden !important; /* FIXED: Prevent overflow */
        text-overflow: clip !important; /* FIXED: Clip overflowing text */
    }
    .company-overview-section {
        padding: 50px 0 80px 0;
    }
    .company-overview-image {
        height: 400px;
        margin-bottom: 2rem;
    }
    .company-overview-content {
        text-align: center;
    }
    .highlight-item {
        justify-content: center;
        text-align: left;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .why-choose-image {
        height: 400px;
        margin-bottom: 2rem;
    }
    .why-choose-content {
        text-align: center;
    }
    .feature-item {
        justify-content: center;
        text-align: left;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Fixed nav bar for all screen sizes */
    .main-navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
    }
    
    /* Body padding to account for fixed navbar */
    body {
        padding-top: 80px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 767.98px) {
    .page-header-section {
        height: auto; /* Auto height instead of fixed */
        min-height: 280px;
        padding: 80px 0 40px; /* Added top/bottom padding */
        overflow: hidden !important; /* FIXED: Prevent overflow */
    }
    .page-header-content {
        margin-top: 0; /* Remove negative margin */
        padding: 0 15px !important;
        overflow: hidden !important; /* FIXED: Prevent overflow */
    }
    .page-header-title {
        font-size: clamp(1.8rem, 3vw, 2.2rem); /* Smaller font size for mobile */
        word-wrap: break-word !important;
        overflow: hidden !important; /* FIXED: Prevent overflow */
        text-overflow: clip !important; /* FIXED: Clip overflowing text */
    }
    .page-header-subtitle {
        font-size: 1rem; /* Smaller subtitle for mobile */
        word-wrap: break-word !important;
        overflow: hidden !important; /* FIXED: Prevent overflow */
        text-overflow: clip !important; /* FIXED: Clip overflowing text */
    }
    .company-overview-section {
        padding: 40px 0 60px 0;
    }
    .company-overview-image {
        height: 300px;
    }
    .highlight-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
        align-items: center; /* Center items on mobile */
    }
    .experience-badge {
        position: static;
        margin-top: var(--spacing-lg);
        display: inline-block;
    }
    .floating-stats {
        position: static;
        margin-top: var(--spacing-lg);
        display: inline-block;
    }
    .why-choose-image {
        height: 300px;
    }
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
        align-items: center; /* Center items on mobile */
    }
    
    /* Fix form inputs and icons */
    .form-group {
        position: relative;
        margin-bottom: 20px;
    }
    
    .form-control {
        padding-left: 40px; /* Make space for icon */
    }
    
    .form-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--gray-400);
        z-index: 5; /* Ensure icons are above inputs */
    }
    
    /* Fix text wrapping in sections */
    .section-title, .section-subtitle {
        word-wrap: break-word !important;
    }
    
    /* Improve card layout on mobile */
    .mvv-card, .team-card, .certification-card {
        margin-bottom: 30px;
    }
    
    /* Fix section padding on mobile */
    .mvv-section, .team-section, .why-choose-section, .certifications-section {
        padding: 60px 0;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    .page-header-section {
        height: auto;
        min-height: 250px;
        padding: 60px 0 30px;
        overflow: hidden !important; /* FIXED: Prevent overflow */
    }
    .page-header-content {
        margin-top: 0;
        padding: 0 10px !important;
        overflow: hidden !important; /* FIXED: Prevent overflow */
    }
    .page-header-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
        overflow: hidden !important; /* FIXED: Prevent overflow */
        text-overflow: clip !important; /* FIXED: Clip overflowing text */
    }
    .page-header-subtitle {
        font-size: 0.9rem;
        overflow: hidden !important; /* FIXED: Prevent overflow */
        text-overflow: clip !important; /* FIXED: Clip overflowing text */
    }
    .company-overview-section {
        padding: 30px 0 40px 0;
    }
    .company-overview-image {
        height: 250px;
    }
    .why-choose-image {
        height: 250px;
    }
    
    /* Reduce padding in cards */
    .mvv-card, .stat-card, .certification-card {
        padding: var(--spacing-lg);
    }
    
    /* Smaller icons on mobile */
    .highlight-icon, .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Fix container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Smaller team image height */
    .team-image {
        height: 250px;
    }
}

/* Very small devices */
@media (max-width: 374.98px) {
    .page-header-title {
        font-size: 1.4rem;
        overflow: hidden !important; /* FIXED: Prevent overflow */
        text-overflow: clip !important; /* FIXED: Clip overflowing text */
    }
    .page-header-subtitle {
        font-size: 0.85rem;
        overflow: hidden !important; /* FIXED: Prevent overflow */
        text-overflow: clip !important; /* FIXED: Clip overflowing text */
    }
    
    /* Further reduced padding and sizes for very small screens */
    .stat-card .stat-number {
        font-size: var(--fs-3xl);
    }
    
    .mvv-title {
        font-size: var(--fs-xl);
    }
    
    /* Smaller form elements */
    .form-control {
        font-size: 14px;
        padding: 10px 10px 10px 35px;
    }
}

/* ===================================
   ANIMATIONS (from about-script.js)
   =================================== */
@keyframes badgeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-10deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) rotate(2deg);
    }
    70% {
        transform: scale(0.9) rotate(-1deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.team-social .social-link {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.stat-card, .mvv-card, .certification-card, .team-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item {
    transition: transform 0.3s ease;
}

.highlight-item {
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateX(5px);
}

