/********** Template CSS **********/
:root {
    --primary: #FD5D14;
    --secondary: #FDBE33;
    --light: #F4F6F8;
    --dark: #040F28;
}

.pt-6 {
    padding-top: 90px;
}

.pb-6 {
    padding-bottom: 90px;
}

.py-6 {
    padding-top: 90px;
    padding-bottom: 90px;
}

.btn {
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    transition: .5s;
}

.btn::after {
    position: absolute;
    content: "";
    width: 0;
    height: 5px;
    bottom: -1px;
    left: 50%;
    background: var(--primary);
    transition: .5s;
}

.btn.btn-primary::after {
    background: var(--dark);
}

.btn:hover::after,
.btn.active::after {
    width: 50%;
    left: 25%;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    left: 50%;
    bottom: 0;
    margin-left: -22px;
    border-radius: 0;
    z-index: 99;
}

.bg-dark-radial {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

.bg-light-radial {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

.navbar-dark .navbar-nav .nav-link {
    position: relative;
    padding: 35px 15px;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--light);
    outline: none;
    transition: .5s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

/* Header Carousel Section - Full Width & Centered Styling */
#header-carousel,
.carousel,
.carousel-inner,
.carousel-item {
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Desktop styling */
.carousel-item {
    min-height: 500px;
    height: auto;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(4, 15, 40, 0.7);
    z-index: 1;
    text-align: center;
    margin: 0;
    padding: 0;
}

.carousel-caption .p-3 {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.carousel-caption i {
    margin-bottom: 20px;
}

.carousel-caption h4 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.carousel-caption h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.carousel-caption p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Responsive - Full width and reduced height */
@media (max-width: 768px) {
    /* Make carousel full width with 80% of viewport height (20% reduction) */
    #header-carousel,
    .carousel,
    .carousel-inner,
    .carousel-item {
        height: 80vh !important;
        min-height: 80vh !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }
    
    .carousel-item {
        position: relative;
    }
    
    .carousel-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        position: absolute;
        top: 0;
        left: 0;
        display: block;
    }
    
    /* Remove any background or spacing issues */
    .container-fluid.p-0 {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Center caption vertically and horizontally */
    .carousel-caption {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(4, 15, 40, 0.75);
        z-index: 2;
        text-align: center;
        padding: 0 20px !important;
        margin: 0 !important;
        width: 100%;
    }
    
    .carousel-caption .p-3 {
        width: 100%;
        max-width: 100%;
        padding: 0 !important;
        margin: 0 auto;
    }
    
    /* Hide icon on mobile for cleaner look */
    .carousel-caption i {
        display: none !important;
    }
    
    /* Heading styling */
    .carousel-caption h4 {
        font-size: 11px !important;
        font-weight: 600 !important;
        letter-spacing: 2px !important;
        margin-bottom: 10px !important;
        text-transform: uppercase;
    }
    
    .carousel-caption h1 {
        font-size: 26px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
        letter-spacing: -0.5px;
        padding: 0 10px;
    }
    
    .carousel-caption p {
        font-size: 12px !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
        max-width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 5px;
    }
    
    /* Button styling */
    .carousel-caption .btn {
        padding: 8px 20px !important;
        font-size: 11px !important;
        display: inline-block;
        white-space: normal;
        word-break: keep-all;
    }
    
    /* Remove any default margins or paddings that might cause white space */
    .carousel-control-prev,
    .carousel-control-next {
        z-index: 3;
    }
    
    /* Ensure no white space on sides */
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Remove any background color showing through */
    .carousel-item::before {
        display: none;
    }
    
    /* Reduce container padding on mobile */
    .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* Reduce section padding */
    .py-6 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .px-5 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* About section image fix */
    .col-lg-5 .position-relative {
        margin-left: 0 !important;
        margin-top: 20px !important;
    }
    
    .col-lg-5 img {
        position: relative !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .col-lg-5.pb-5 {
        min-height: auto !important;
    }
    
    /* Service items spacing */
    .service-item {
        margin-bottom: 30px;
    }
    
    .service-item .px-4 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .service-item .service-icon {
        width: 80px;
        height: 80px;
        margin-top: -40px;
    }
    
    .service-item .service-icon i {
        font-size: 2rem !important;
    }
    
    /* Text sizing for mobile */
    .display-5 {
        font-size: 28px !important;
    }
    
    .display-2 {
        font-size: 32px !important;
    }
    
    h1, .h1 {
        font-size: 28px !important;
    }
    
    h2, .h2 {
        font-size: 24px !important;
    }
    
    h3, .h3 {
        font-size: 20px !important;
    }
    
    h4, .h4 {
        font-size: 18px !important;
    }
    
    /* Cards and grids spacing */
    .g-4, .g-5 {
        --bs-gutter-y: 1.5rem;
        --bs-gutter-x: 1rem;
    }
    
    .row.g-5 {
        margin-left: calc(-0.5rem);
        margin-right: calc(-0.5rem);
    }
    
    .row.g-5 > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Project cards on mobile */
    .bg-dark.p-5 {
        padding: 24px !important;
    }
    
    .bg-white.p-4 {
        padding: 20px !important;
    }
    
    .bg-white.p-4 .display-6 {
        font-size: 24px !important;
    }
    
    /* Stats boxes */
    .display-4 {
        font-size: 32px !important;
    }
    
    /* Form styling */
    .contact-form .p-5 {
        padding: 24px !important;
    }
    
    .form-control, .form-select {
        font-size: 14px !important;
        height: 48px !important;
    }
    
    textarea.form-control {
        min-height: 100px !important;
    }
    
    /* Footer adjustments */
    .footer .col-lg-6 {
        text-align: center !important;
    }
    
    .footer .d-flex.justify-content-start {
        justify-content: center !important;
    }
    
    .footer-shape::before {
        display: none;
    }
    
    /* CEO section image */
    .col-10.mx-auto {
        width: 80% !important;
    }
    
    /* Expertise hub cards */
    .bg-light.p-4 {
        padding: 20px !important;
    }
    
    .bg-light.p-4 i.fa-3x {
        font-size: 2rem !important;
    }
    
    .bg-light.p-4 h5 {
        font-size: 16px !important;
    }
    
    .bg-light.p-4 p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
    
    /* Why Depmax section */
    .d-flex.align-items-start {
        gap: 12px;
    }
    
    .d-flex.align-items-start i.fa-2x {
        font-size: 1.5rem !important;
    }
    
    .bg-light.p-5 {
        padding: 24px !important;
    }
    
    .bg-light.p-5 .row.g-3 {
        --bs-gutter-x: 0.75rem;
    }
    
    /* Steps section */
    .col-lg-3 .bg-light.p-4 {
        margin-bottom: 16px;
    }
    
    /* Proposal section */
    .bg-white.p-5 {
        padding: 24px !important;
    }
    
    /* Buttons */
    .btn {
        white-space: normal;
        word-break: break-word;
    }
    
    .btn.py-3 {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    
    /* Fix for images in service items */
    .service-item img.img-fluid {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
    
    /* Ensure proper spacing between sections */
    .container-fluid + .container-fluid {
        margin-top: 0;
    }
    
    /* Fix for checklist items */
    .row.gx-5.py-2 .col-sm-6 {
        margin-bottom: 12px;
    }
    
    /* Center icons in about section */
    .row.gx-5.py-2 .fw-bold {
        font-size: 14px;
    }
    
    /* Make sure all text is readable */
    body {
        font-size: 14px;
    }
    
    /* Adjust padding for the mandate section */
    #proposal .col-lg-4 {
        margin-bottom: 30px !important;
    }
}

/* Small devices (phones under 480px) */
@media (max-width: 480px) {
    #header-carousel,
    .carousel,
    .carousel-inner,
    .carousel-item {
        height: 80vh !important;
        min-height: 80vh !important;
    }
    
    .carousel-caption h1 {
        font-size: 22px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }
    
    .carousel-caption p {
        font-size: 11px !important;
        max-width: 95% !important;
        margin-bottom: 16px !important;
    }
    
    .carousel-caption h4 {
        font-size: 10px !important;
        margin-bottom: 8px !important;
    }
    
    .carousel-caption .btn {
        padding: 6px 16px !important;
        font-size: 10px !important;
    }
}

/* Tablet devices (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .carousel-caption h1 {
        font-size: 42px !important;
    }
    
    .carousel-caption p {
        font-size: 14px !important;
        max-width: 70% !important;
    }
    
    .carousel-item {
        min-height: 450px;
    }
    
    .container-fluid {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
    
    .py-6 {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
}

/* Ensure smooth transitions */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Ensure carousel controls are clickable and visible */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 0.5;
    transition: opacity 0.3s;
    z-index: 10;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0.9;
}

/* Remove any potential white space from parent containers */
.carousel,
.carousel-inner,
.carousel-item {
    background: transparent;
}

/* Ensure the carousel container has no padding or margin */
.container-fluid.p-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Portfolio item adjustments for mobile */
.portfolio-title {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 120px;
    padding: 0 30px;
    right: 30px;
    left: 30px;
    bottom: -60px;
    background: #FFFFFF;
    z-index: 3;
}

@media (max-width: 768px) {
    .portfolio-title {
        position: relative;
        right: auto;
        left: auto;
        bottom: auto;
        margin-top: -30px;
        margin-left: 15px;
        margin-right: 15px;
        padding: 12px;
        height: auto;
    }
    
    .portfolio-title .h4 {
        font-size: 16px !important;
    }
}

/* Page header responsive */
.page-header {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(4, 15, 40, .7), rgba(4, 15, 40, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .page-header {
        height: 250px;
    }
    
    .page-header h1 {
        font-size: 28px !important;
    }
}

/* Service icon background fix */
.service-icon {
    background: white !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Footer shape fix for mobile */
@media (max-width: 768px) {
    .footer-shape::before {
        display: none;
    }
    
    .footer .row.g-5 {
        --bs-gutter-x: 1rem;
    }
    
    .footer .col-sm-6 {
        margin-bottom: 24px;
    }
}

/* Portfolio button and box styling */
.portfolio-btn {
    position: absolute;
    display: inline-block;
    top: 50%;
    left: 50%;
    margin-top: -60px;
    margin-left: -60px;
    font-size: 120px;
    line-height: 0;
    transition: .1s;
    transition-delay: .3s;
    z-index: 2;
    opacity: 0;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
}

.portfolio-box::before,
.portfolio-box::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    transition: .5s;
    z-index: 1;
    background: rgba(4, 15, 40, .7);
}

.portfolio-box::before {
    left: 0;
}

.portfolio-box::after {
    right: 0;
}

.portfolio-item:hover .portfolio-box::before {
    left: 0;
    width: 50%;
}

.portfolio-item:hover .portfolio-box::after {
    right: 0;
    width: 50%;
}

.portfolio-item {
    margin-bottom: 60px;
}

@media (min-width: 992px) {
    .testimonial,
    .contact-form {
        margin-left: -90px;
    }
}

@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        background: var(--primary)
    }
}

.footer-shape::before {
    position: absolute;
    content: "";
    width: 80px;
    height: 100%;
    top: 0;
    left: -40px;
    background: var(--primary);
    transform: skew(40deg);
}