/********** Template CSS **********/
:root {
    --primary: #d0ad69;
    --light: #F5F5F5;
    --dark: #001e2a;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}
/*** Combined Header Styles ***/
.logo-img {
    height: 150px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    padding: 2px;
}

.logo-img-mobile {
    height: 90px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

/* Navigation Styles - UPDATED */
.navbar-light .navbar-nav .nav-link {
    margin-left: 20px;
    padding: 0;
    color: var(--dark);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Center the entire navbar nav */
.navbar-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Add space between Contact and Get Quote button */
.navbar-nav .nav-item:last-child {
    margin-right: 15px;
}

/* Dropdown Styles - OPTIMIZED */
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    transition: .5s;
}

.navbar .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(-180deg);
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 100%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }
    
    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }

    /* Ensure navbar has proper height for centering */
    .navbar {
        min-height: 80px;
        display: flex;
        align-items: center;
    }
}

/* Mobile Responsive - FIXED */
@media (max-width: 991.98px) {
    .logo-img-mobile {
        height: 90px;
        max-width: 160px;
    }
    
    .navbar-light .navbar-brand {
        height: auto !important;
        padding: 8px 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Changed to left align */
    }
    
    .navbar {
        padding: 8px 0 !important;
        min-height: 80px;
        position: relative;
    }
    
    .navbar-light .navbar-nav .nav-link {
        margin-left: 10px;
        margin-right: 0;
        padding: 8px 0;
        display: block;
        height: auto;
    }
    
    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
        margin-top: 8px;
        display: block;
    }
    
    .navbar-toggler {
        padding: 6px 10px;
        margin: 8px 15px 8px 0;
        border: none;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Mobile logo to left side */
    .navbar-brand.d-block.d-lg-none {
        margin: 0; /* Remove auto margin */
        padding: 5px 0;
        width: auto; /* Remove full width */
        text-align: left; /* Left align */
        margin-left: 15px; /* Add some left spacing */
    }
    
    /* Fix navbar collapse to prevent page movement */
    .navbar-collapse {
        position: fixed;
        top: 110px; /* Adjust based on your header height */
        left: 0;
        right: 0;
        background: white;
        z-index: 1020;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* When navbar is collapsed, show the menu fixed */
    .navbar-collapse.collapse:not(.show) {
        display: none;
    }
    
    .navbar-collapse.collapse.show {
        display: block;
    }
}

/* Top Bar Adjustments */
.bg-light {
    border-bottom: 1px solid #e9ecef;
    padding: 2px 0;
}

.bg-light .d-inline-flex {
    padding: 2px 0;
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: auto;
}

/* Make header fixed */
.container-fluid.bg-white.px-0 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Add padding to body to compensate for fixed header */
body {
    padding-top: 160px;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

/* Additional spacing reduction for desktop */
@media (min-width: 992px) {
    .navbar {
        padding: 5px 0;
    }
    
    body {
        padding-top: 150px;
    }
    
    .col-lg-3.bg-white.d-none.d-lg-block {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 150px;
    }
}

/* Mobile body padding adjustment */
@media (max-width: 991.98px) {
    body {
        padding-top: 100px;
    }
}
/*** Header ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: transparent;
    border: 1px solid #FFFFFF;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title h1 {
    position: relative;
    display: inline-block;
    padding: 0 60px;
}

.section-title.text-start h1 {
    padding-left: 0;
}

.section-title h1::before,
.section-title h1::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 5px;
    bottom: 0;
    background: var(--dark);
}

.section-title h1::before {
    left: 0;
}

.section-title h1::after {
    right: 0;
}

.section-title.text-start h1::before {
    display: none;
}

/*** About ***/
/* Mobile First - Base Styles */
.about-text {
    padding: 2rem 1rem;
}

.about-text .bg-white {
    width: 50px !important;
    height: 50px !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.about-text .fa-2x {
    font-size: 1.3rem;
}

.about-text h2.text-primary {
    font-size: 1.8rem;
    font-weight: 700;
}

.about-text .fw-medium {
    font-size: 0.9rem;
    font-weight: 600;
}

.about-text .text-muted {
    font-size: 0.75rem;
}

/* Small mobile devices */
@media (max-width: 575.98px) {
    .about-text {
        padding: 1.5rem 0.75rem;
    }
    
    .about-text .display-5 {
        font-size: 1.8rem;
        margin-bottom: 1rem !important;
    }
    
    .about-text > p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem !important;
        line-height: 1.5;
    }
    
    .about-text .bg-white {
        width: 40px !important;
        height: 40px !important;
    }
    
    .about-text .fa-2x {
        font-size: 1rem;
    }
    
    .about-text h2.text-primary {
        font-size: 1.5rem;
    }
    
    .about-text .fw-medium {
        font-size: 0.8rem;
    }
    
    .about-text .text-muted {
        font-size: 0.7rem;
    }
    
    .about-text .ms-3 {
        margin-left: 0.75rem !important;
    }
    
    .about-text .row.g-4 {
        --bs-gutter-y: 1rem;
        --bs-gutter-x: 0.5rem;
    }
    
    /* Adjust mission section */
    .about-text h6.text-primary {
        font-size: 0.9rem;
    }
    
    .about-text .mb-4.pb-2 p {
        font-size: 0.85rem;
    }
}

/* Medium mobile devices */
@media (min-width: 576px) and (max-width: 767.98px) {
    .about-text {
        padding: 1.75rem 1rem;
    }
    
    .about-text .display-5 {
        font-size: 2rem;
    }
    
    .about-text .bg-white {
        width: 45px !important;
        height: 45px !important;
    }
    
    .about-text .fa-2x {
        font-size: 1.1rem;
    }
    
    .about-text h2.text-primary {
        font-size: 1.6rem;
    }
    
    .about-text .row.g-4 {
        --bs-gutter-y: 1.25rem;
    }
}

/* Tablet devices */
@media (min-width: 768px) and (max-width: 991.98px) {
    .about-text {
        padding: 2rem 1.5rem;
    }
    
    .about-text .bg-white {
        width: 50px !important;
        height: 50px !important;
    }
    
    .about-text .fa-2x {
        font-size: 1.2rem;
    }
    
    .about-text h2.text-primary {
        font-size: 1.7rem;
    }
    
    .about-text .row.g-4 {
        --bs-gutter-y: 1.5rem;
    }
}

/* Desktop styles */
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
        padding-left: 1rem;
    }
    
    .about-text .bg-white {
        width: 60px !important;
        height: 60px !important;
    }
    
    .about-text .fa-2x {
        font-size: 1.5rem;
    }
    
    .about-text h2.text-primary {
        font-size: 2rem;
    }
    
    .about-text .fw-medium {
        font-size: 1rem;
    }
    
    .about-text .text-muted {
        font-size: 0.8rem;
    }
}

@media (min-width: 1200px) {
    .about-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

/* Image responsiveness for mobile */
@media (max-width: 991.98px) {
    .ps-lg-0 .position-relative {
        min-height: 300px !important;
    }
    
    .container-fluid.bg-light.overflow-hidden.my-5.px-lg-0 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
}

/* Ensure text doesn't overflow on small devices */
.about-text .d-flex.align-items-center {
    min-height: 70px;
}

@media (max-width: 575.98px) {
    .about-text .d-flex.align-items-center {
        min-height: 60px;
    }
}

/* Button responsiveness */
.about-text .btn {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
}

@media (max-width: 575.98px) {
    .about-text .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.25rem;
        width: 100%;
        text-align: center;
    }
}

/*** Service ***/
.service-item img {
    transition: .5s;
}

.service-item:hover img {
    transform: scale(1.1);
}

/*** Feature ***/
/* Mobile First - Base Styles */
.feature-text {
    padding: 2rem 1rem;
}

.feature-text .bg-white {
    width: 50px !important;
    height: 50px !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feature-text .fa-2x {
    font-size: 1.3rem;
}

.feature-text h5 {
    font-size: 1rem;
    font-weight: 600;
}

.feature-text p.mb-2 {
    font-size: 0.8rem;
    margin-bottom: 0.25rem !important;
}

/* Small mobile devices */
@media (max-width: 575.98px) {
    .feature-text {
        padding: 1.5rem 0.75rem;
    }
    
    .feature-text .display-5 {
        font-size: 1.8rem;
        margin-bottom: 1rem !important;
    }
    
    .feature-text > p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem !important;
        line-height: 1.5;
    }
    
    .feature-text .bg-white {
        width: 40px !important;
        height: 40px !important;
    }
    
    .feature-text .fa-2x {
        font-size: 1rem;
    }
    
    .feature-text h5 {
        font-size: 0.9rem;
    }
    
    .feature-text p.mb-2 {
        font-size: 0.75rem;
    }
    
    .feature-text .ms-4 {
        margin-left: 0.75rem !important;
    }
    
    .feature-text .row.g-4 {
        --bs-gutter-y: 1rem;
        --bs-gutter-x: 0.5rem;
    }
}

/* Medium mobile devices */
@media (min-width: 576px) and (max-width: 767.98px) {
    .feature-text {
        padding: 1.75rem 1rem;
    }
    
    .feature-text .display-5 {
        font-size: 2rem;
    }
    
    .feature-text .bg-white {
        width: 45px !important;
        height: 45px !important;
    }
    
    .feature-text .fa-2x {
        font-size: 1.1rem;
    }
    
    .feature-text .row.g-4 {
        --bs-gutter-y: 1.25rem;
    }
}

/* Tablet devices */
@media (min-width: 768px) and (max-width: 991.98px) {
    .feature-text {
        padding: 2rem 1.5rem;
    }
    
    .feature-text .bg-white {
        width: 50px !important;
        height: 50px !important;
    }
    
    .feature-text .fa-2x {
        font-size: 1.2rem;
    }
    
    .feature-text .row.g-4 {
        --bs-gutter-y: 1.5rem;
    }
}

/* Desktop styles */
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
        padding-right: 1rem;
    }
    
    .feature-text .bg-white {
        width: 60px !important;
        height: 60px !important;
    }
    
    .feature-text .fa-2x {
        font-size: 1.5rem;
    }
    
    .feature-text h5 {
        font-size: 1.1rem;
    }
    
    .feature-text p.mb-2 {
        font-size: 0.85rem;
    }
}

@media (min-width: 1200px) {
    .feature-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}

/* Image responsiveness for mobile */
@media (max-width: 991.98px) {
    .pe-lg-0 .position-relative {
        min-height: 300px !important;
    }
    
    .container-fluid.bg-light.overflow-hidden.my-5.px-lg-0 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
}

/* Ensure text doesn't overflow on small devices */
.feature-text .d-flex.align-items-center {
    min-height: 60px;
}

@media (max-width: 575.98px) {
    .feature-text .d-flex.align-items-center {
        min-height: 50px;
    }
}


/*** Sidebar Menu ***/
.sidebar-menu {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary);
}

.sidebar-menu .nav-link {
    padding: 0.75rem 1rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar-menu .nav-link:hover {
    background-color: var(--primary);
    color: white !important;
    transform: translateX(5px);
}

.sidebar-menu .nav-link.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.sidebar-menu .nav-link .fa-caret-right {
    transition: transform 0.3s ease;
}

.sidebar-menu .nav-link:hover .fa-caret-right {
    transform: translateX(3px);
}

.quick-contact {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* Mobile Responsive Sidebar */
@media (max-width: 991.98px) {
    .sidebar-menu {
        margin-bottom: 2rem;
    }
    
    .sidebar-menu .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .quick-contact {
        font-size: 0.9rem;
    }
}

/* Desktop specific */
@media (min-width: 992px) {
    .sidebar-menu {
        position: sticky;
        top: 120px;
    }
}

/*** Applications Section ***/
.applications .icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.applications .icon-box i {
    font-size: 2rem;
    color: white;
}

.applications .service-item {
    background: white;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f8f9fa;
    height: 100%;
}

.applications .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.applications .service-item:hover .icon-box {
    transform: scale(1.1);
    background: var(--dark);
}

.applications h5 {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.applications p {
    color: #6c757d;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    .applications .icon-box {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .applications .icon-box .fa-2x {
        font-size: 1.75rem;
    }
    
    .applications .service-item {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .applications h5 {
        font-size: 1.1rem;
    }
    
    .applications p {
        font-size: 0.9rem;
    }
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 991.98px) {
    .applications .icon-box {
        width: 75px;
        height: 75px;
    }
    
    .applications .icon-box .fa-2x {
        font-size: 1.8rem;
    }
    
    .applications .service-item {
        padding: 1.75rem 1.25rem;
    }
}

/*** Specialty Yarns Section ***/
.specialty-yarns .icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.specialty-yarns .icon-box i {
    font-size: 2rem;
    color: white;
}

.specialty-yarns .service-item {
    background: white;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f8f9fa;
    height: 100%;
}

.specialty-yarns .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.specialty-yarns .service-item:hover .icon-box {
    transform: scale(1.1);
    background: var(--dark);
}

.specialty-yarns h4 {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.specialty-yarns p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.specialty-yarns ul.list-unstyled li {
    padding: 0.3rem 0;
    color: #495057;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    .specialty-yarns .icon-box {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .specialty-yarns .icon-box i {
        font-size: 1.75rem;
    }
    
    .specialty-yarns .service-item {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .specialty-yarns h4 {
        font-size: 1.2rem;
    }
    
    .specialty-yarns p {
        font-size: 0.9rem;
    }
    
    .specialty-yarns ul.list-unstyled li {
        font-size: 0.85rem;
    }
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 991.98px) {
    .specialty-yarns .icon-box {
        width: 75px;
        height: 75px;
    }
    
    .specialty-yarns .icon-box i {
        font-size: 1.8rem;
    }
    
    .specialty-yarns .service-item {
        padding: 1.75rem 1.25rem;
    }
}

/*** Industries Served Section ***/
.industries-served .icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.industries-served .icon-box i {
    font-size: 2rem;
    color: white;
}

.industries-served .industry-item {
    background: white;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f8f9fa;
    height: 100%;
}

.industries-served .industry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.industries-served .industry-item:hover .icon-box {
    transform: scale(1.1);
    background: var(--dark);
}

.industries-served h4 {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.industries-served p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.industries-served ul.list-unstyled li {
    padding: 0.3rem 0;
    color: #495057;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    .industries-served .icon-box {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .industries-served .icon-box i {
        font-size: 1.75rem;
    }
    
    .industries-served .industry-item {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .industries-served h4 {
        font-size: 1.2rem;
    }
    
    .industries-served p {
        font-size: 0.9rem;
    }
    
    .industries-served ul.list-unstyled li {
        font-size: 0.85rem;
    }
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 991.98px) {
    .industries-served .icon-box {
        width: 75px;
        height: 75px;
    }
    
    .industries-served .icon-box i {
        font-size: 1.8rem;
    }
    
    .industries-served .industry-item {
        padding: 1.75rem 1.25rem;
    }
}

/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

/* Gallery grid spacing */
.portfolio-container {
    row-gap: 2rem;
}

.portfolio-item {
    padding: 0 0.75rem;
}

.portfolio-img {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.portfolio-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px; /* Fixed height for consistency */
    overflow: hidden;
}

.portfolio-item img {
    transition: .5s;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures 1920x1080 images fit properly */
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Remove overlay styles since text is removed */
.portfolio-overlay {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .portfolio-image-wrapper {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .portfolio-image-wrapper {
        height: 200px;
    }
    
    .portfolio-item {
        padding: 0 0.5rem;
    }
}

@media (max-width: 576px) {
    .portfolio-image-wrapper {
        height: 180px;
    }
    
    .portfolio-container {
        row-gap: 1rem;
    }
}

/* Additional utility classes */
.object-fit-cover {
    object-fit: cover;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}


/*** Quote Section ***/
.container.quote {
    padding: 0 !important;
}

/* Form styling - SIMPLIFIED VERSION */
.quote form .form-control,
.quote form .form-select {
    height: 55px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    font-size: 1rem;
    line-height: 1.5;
    width: 100%;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Textarea specific */
.quote form textarea.form-control {
    height: auto;
    min-height: 120px;
    resize: vertical;
    padding: 0.75rem 1rem;
}

/* Remove form-floating specific styles since we're not using them */
.quote .form-floating {
    position: relative;
    height: auto;
}

/* Style for regular form controls (non-floating) */
.quote .form-floating > .form-control,
.quote .form-floating > .form-select {
    height: 55px;
    padding: 0.75rem 1rem;
}

.quote .form-floating > label {
    display: none; /* Hide labels since they're overlapping */
}

/* Select dropdown styling */
.quote .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    cursor: pointer;
    appearance: none;
}

/* Focus states */
.quote .form-control:focus,
.quote .form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Placeholder styling */
.quote .form-control::placeholder {
    color: #6c757d;
    opacity: 1;
}

/* Button styling */
.quote .btn-primary {
    background: linear-gradient(45deg, #e08f09, #d9a043);
    border: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    height: 55px;
}

.quote .btn-primary:hover {
    background: linear-gradient(45deg, #d9a043, #c78703);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Info boxes */
.quote .bg-light.p-4.rounded {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef;
}

.quote .border-top {
    border-top: 1px solid #dee2e6 !important;
}

/* Contact info cards */
.quote .flex-shrink-0.bg-primary.text-white.rounded-circle {
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.2);
    transition: transform 0.3s ease;
}

.quote .flex-shrink-0.bg-primary.text-white.rounded-circle:hover {
    transform: scale(1.05);
}

/* Image section */
.quote .position-relative.h-100 {
    background-color: #f8f9fa;
}

.quote .position-absolute.w-100.h-100 {
    object-fit: cover;
}

/* Form spacing */
.quote .row.g-3 {
    --bs-gutter-y: 1rem;
}

.quote .row.g-3 > [class*="col-"] {
    margin-bottom: 1rem;
}

.quote .row.g-3 > [class*="col-"]:last-child {
    margin-bottom: 0;
}

/* Responsive fixes */
@media (max-width: 991.98px) {
    .quote-text {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .container.quote .row.g-0.mx-lg-0 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .col-lg-6.quote-text,
    .col-lg-6.pe-lg-0 {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .quote .p-lg-5.ps-lg-0 {
        padding: 2rem 0 !important;
    }
}

/* Mobile specific adjustments */
@media (max-width: 767.98px) {
    .container-fluid.bg-light.overflow-hidden.px-lg-0 {
        margin: 3rem 0 !important;
    }
    
    .quote-text {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Form elements on mobile */
    .quote form .form-control,
    .quote form .form-select {
        height: 50px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .quote .btn-primary {
        height: 50px;
    }
    
    /* Textarea on mobile */
    .quote form textarea.form-control {
        min-height: 100px;
    }
    
    .quote .row.g-4.mt-5.pt-4.border-top {
        margin-top: 2rem !important;
        padding-top: 2rem !important;
    }
    
    .quote .d-flex.align-items-center {
        margin-bottom: 1rem;
    }
    
    .quote .bg-light.p-4.rounded.mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Ensure image section has proper height on mobile */
    .col-lg-6.pe-lg-0 {
        min-height: 300px !important;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .quote .row.g-4.mt-5.pt-4.border-top .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .quote .d-flex.align-items-center {
        margin-bottom: 1.5rem;
    }
}
/*** Team ***/
.team-item {
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.team-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.team-item img {
    transition: .5s;
    height: 300px;
    width: 100%;
    object-fit: cover;
    object-position: top center;
}

.team-item:hover img {
    transform: scale(1.1);
}

/* Horizontal Social Icons - FIXED */
.team-item .team-social {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.team-item:hover .team-social {
    opacity: 1;
}

.team-item .team-social .btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.team-item .team-social .btn:hover {
    color: white;
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Team Info Section - FIXED */
.team-item .text-center {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem !important;
    background: white;
}

.team-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.team-item .text-primary {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--primary);
}

.team-item .mt-2 {
    margin-top: auto !important;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
}

.team-item .text-muted {
    font-size: 0.85rem;
    color: #6c757d;
}

/* For mobile responsiveness */
@media (max-width: 767.98px) {
    .team-item img {
        height: 250px;
    }
    
    .team-item .text-center {
        min-height: 150px;
        padding: 1rem !important;
    }
    
    .team-item h5 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .team-item .text-primary {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .team-item .team-social .btn {
        width: 35px;
        height: 35px;
    }
    
    .team-item .team-social {
        top: 10px;
        right: 10px;
        gap: 5px;
    }
}

/* Tablet responsiveness */
@media (min-width: 768px) and (max-width: 991.98px) {
    .team-item img {
        height: 280px;
    }
    
    .team-item .text-center {
        min-height: 170px;
    }
}
/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    border: 5px solid var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer {
    background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)), url(../img/footer.jpg) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}