/********** Template CSS **********/
:root {
    --primary: #0d8937;
    --secondary: #0B2154;
    --light: #F2F2F2;
    --dark: #111111;
}

.fw-medium {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    transition: all 0.3s ease;
}

/*** 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;
    text-transform: uppercase;
    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;
    border-radius: 2px;
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
    font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

/*** Carousel ***/
.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    border-radius: 0;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
}

.carousel-item img {
    height: 100vh;
    min-height: 600px;
    object-fit: cover;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: transparent;
    margin: 0 8px;
}

.carousel-indicators button.active {
    background-color: var(--primary);
    border-color: var(--primary);
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary);
    border-color: white;
}

/*** Page Header ***/
.page-header {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(0, 0, 0, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}

/*** Welcome Section ***/
.welcome-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
}

/*** Service Cards ***/
.service-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-image-square {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image-square img {
    transition: transform 0.3s ease;
}

.service-card:hover .service-image-square img {
    transform: scale(1.05);
}

/*** Contact Section ***/
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.contact-info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/*** Footer ***/
.footer {
    background: linear-gradient(rgba(0, 0, 0, .9), rgba(0, 0, 0, .9)), url(../img/carousel-bg-1.jpg) center center no-repeat;
    background-size: cover;
}

.footer-section {
    height: 100%;
}

.footer .btn.btn-social {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    background-color: white;
    transform: translateY(-2px);
}

.footer .btn.btn-link {
    display: block;
    padding: 0;
    text-align: left;
    color: #CCCCCC;
    font-size: 14px;
    font-weight: normal;
    text-transform: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    text-decoration: none;
    padding-left: 5px;
}

.contact-item {
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item h6 {
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-item p {
    font-size: 0.85rem;
    color: #CCCCCC;
}

.footer .copyright {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 2rem;
}

.footer .copyright a {
    color: var(--primary);
    text-decoration: none;
}

.footer-menu a {
    color: #CCCCCC;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--primary);
}

/*** RESPONSIVE DESIGN ***/

/* Navbar Mobile */
@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }
    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }
    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/* Tablet Styles */
@media (max-width: 992px) {
    .carousel-item img {
        height: 70vh;
        min-height: 500px;
    }
    
    .display-3 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .carousel-caption p {
        font-size: 1rem !important;
        margin-bottom: 2rem;
    }
    
    .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    .welcome-section h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Back to Top Button */
    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* Carousel */
    .carousel-item img {
        height: 60vh;
        min-height: 400px;
    }
    
    .display-3 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1rem !important;
    }
    
    .carousel-caption {
        padding: 1rem;
        bottom: 0;
        top: 0;
    }
    
    .carousel-caption .container {
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .carousel-caption p {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.4;
    }
    
    .carousel-caption h6 {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .d-flex.flex-column.flex-sm-row .btn {
        font-size: 0.9rem;
        padding: 0.75rem 2rem !important;
        margin-bottom: 0.75rem;
    }
    
    /* Carousel Controls Mobile */
    .carousel-control-prev,
    .carousel-control-next {
        width: 12%;
        opacity: 0.8;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
        background-size: 1.5rem;
    }
    
    /* Carousel Indicators Mobile */
    .carousel-indicators {
        bottom: 20px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .carousel-indicators button {
        width: 12px;
        height: 12px;
        margin: 0 6px;
        border: 2px solid rgba(255, 255, 255, 0.8);
        background-color: rgba(255, 255, 255, 0.3);
    }
    
    .carousel-indicators button.active {
        background-color: var(--primary);
        border-color: var(--primary);
        transform: scale(1.2);
    }
    
    /* Welcome Section */
    .container-xxl.py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .welcome-section h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    .welcome-section h6 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .welcome-section p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .bg-light.rounded.p-4 {
        padding: 1.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    .bg-light h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    /* Fix "Why Choose Us" section for mobile */
    .d-flex.align-items-start {
        margin-bottom: 1rem;
        align-items: flex-start !important;
    }
    
    .d-flex.align-items-start .rounded-circle {
        width: 35px !important;
        height: 35px !important;
        margin-right: 1rem !important;
        flex-shrink: 0;
    }
    
    .d-flex.align-items-start h6 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .d-flex.align-items-start p {
        font-size: 0.9rem;
        margin-bottom: 0;
        line-height: 1.4;
    }
    
    /* Fix contact section layout for mobile */
    .welcome-section .d-flex.align-items-center {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .welcome-section .btn.btn-primary {
        width: 100%;
        margin-bottom: 0;
        text-align: center;
        padding: 1rem 2rem;
    }
    
    .welcome-section .d-flex.align-items-center:last-child {
        flex-direction: row;
        align-items: center !important;
        justify-content: center;
        padding: 1rem;
        background: rgba(13, 137, 55, 0.1);
        border-radius: 8px;
        border: 1px solid var(--primary);
    }
    
    .welcome-section .d-flex.align-items-center:last-child .rounded-circle {
        width: 45px !important;
        height: 45px !important;
        margin-right: 1rem !important;
    }
    
    /* Image grid adjustments */
    .row.g-3 .col-6 {
        margin-bottom: 1rem;
    }
    
    .row.g-3 img {
        height: 150px !important;
    }
    
    /* Call to action section */
    .bg-primary.rounded.p-5 {
        padding: 2rem !important;
        margin-top: 2rem !important;
    }
    
    .bg-primary h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .bg-primary p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    /* Service Cards */
    .col-lg-3 {
        margin-bottom: 1.5rem;
    }
    
    /* Contact Cards */
    .col-md-3.col-sm-6 {
        margin-bottom: 1rem;
    }
    
    /* Footer Mobile */
    .footer .container.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .footer-section {
        margin-bottom: 2rem;
    }
    
    .footer-section h2,
    .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .footer-section p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    /* Contact Info Mobile Styling */
    .contact-item {
        margin-bottom: 1.5rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        text-align: center;
    }
    
    .contact-item i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    .contact-item h6 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
        color: white;
    }
    
    .contact-item p {
        font-size: 0.85rem;
        color: #CCCCCC;
        margin-bottom: 0;
        text-align: center;
    }
    
    .btn.btn-social {
        width: 35px;
        height: 35px;
        margin: 0 5px 10px 0;
    }
    
    .d-flex.pt-2 {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer .copyright {
        text-align: center;
        padding: 15px 0;
        margin-top: 1rem;
    }
    
    .footer-menu {
        margin-top: 1rem;
    }
    
    .footer-menu a {
        display: inline-block;
        margin: 0 10px 10px 0;
    }
}

/* Small Mobile Styles */
@media (max-width: 576px) {
    /* Back to Top Button */
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Carousel */
    .carousel-item img {
        height: 50vh;
        min-height: 350px;
    }
    
    .display-3 {
        font-size: 1.8rem;
        margin-bottom: 0.75rem !important;
    }
    
    .carousel-caption {
        padding: 0.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
        display: block;
    }
    
    .carousel-caption h6 {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .d-flex.flex-column.flex-sm-row {
        flex-direction: column;
        align-items: center;
    }
    
    .d-flex.flex-column.flex-sm-row .btn {
        width: 100%;
        max-width: 280px;
        font-size: 0.85rem;
        padding: 0.7rem 1.5rem !important;
        margin: 0.5rem 0;
    }
    
    /* Carousel Controls Small Mobile */
    .carousel-control-prev,
    .carousel-control-next {
        width: 15%;
        opacity: 0.9;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 5px;
        margin: 10px;
        height: 60px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1.5rem;
        height: 1.5rem;
        background-size: 1rem;
    }
    
    /* Carousel Indicators Small Mobile */
    .carousel-indicators {
        bottom: 15px;
        margin-bottom: 0;
    }
    
    .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 4px;
        border: 1px solid rgba(255, 255, 255, 0.9);
        background-color: rgba(255, 255, 255, 0.4);
        opacity: 0.8;
    }
    
    .carousel-indicators button.active {
        background-color: var(--primary);
        border-color: var(--primary);
        opacity: 1;
        transform: scale(1.3);
    }
    
    /* Welcome Section */
    .container-xxl.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .welcome-section h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .welcome-section h6 {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .welcome-section p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .bg-light.rounded.p-4 {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .bg-light h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        text-align: center;
    }
    
    /* Improved "Why Choose Us" for small mobile */
    .d-flex.align-items-start {
        margin-bottom: 1rem;
        padding: 0.75rem;
        background: rgba(13, 137, 55, 0.05);
        border-radius: 6px;
        border-left: 3px solid var(--primary);
    }
    
    .d-flex.align-items-start .rounded-circle {
        width: 30px !important;
        height: 30px !important;
        margin-right: 0.75rem !important;
        flex-shrink: 0;
    }
    
    .d-flex.align-items-start h6 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
        font-weight: 600;
    }
    
    .d-flex.align-items-start p {
        font-size: 0.8rem;
        margin-bottom: 0;
        line-height: 1.3;
    }
    
    /* Contact section for small mobile */
    .welcome-section .d-flex.align-items-center {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .welcome-section .btn.btn-primary {
        width: 100%;
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
    
    .welcome-section .d-flex.align-items-center:last-child {
        padding: 1rem;
        background: rgba(13, 137, 55, 0.1);
        border-radius: 8px;
        border: 2px solid var(--primary);
        width: 100%;
        justify-content: center;
    }
    
    .welcome-section .d-flex.align-items-center:last-child .rounded-circle {
        width: 40px !important;
        height: 40px !important;
        margin-right: 0.75rem !important;
    }
    
    .welcome-section .d-flex.align-items-center:last-child h6 {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    .welcome-section .d-flex.align-items-center:last-child small {
        font-size: 0.75rem;
    }
    
    /* Image grid for small screens */
    .row.g-3 .col-6 {
        margin-bottom: 0.75rem;
    }
    
    .row.g-3 img {
        height: 120px !important;
    }
    
    /* Call to action section */
    .bg-primary.rounded.p-5 {
        padding: 1.5rem !important;
        margin-top: 1.5rem !important;
    }
    
    .bg-primary h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .bg-primary p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .btn.btn-secondary {
        font-size: 0.85rem;
        padding: 0.7rem 1.5rem;
    }
    
    /* Footer Small Mobile */
    .footer-section h2 {
        font-size: 1.1rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section p {
        font-size: 0.85rem;
    }
    
    /* Simplified Contact Layout for Small Mobile */
    .contact-item {
        padding: 0.75rem;
        margin-bottom: 1rem;
        background: rgba(255, 255, 255, 0.08);
        border-left: 3px solid var(--primary);
    }
    
    .contact-item i {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
        color: var(--primary);
    }
    
    .contact-item h6 {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .contact-item p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .btn.btn-social {
        width: 40px;
        height: 40px;
        margin: 5px;
    }
    
    .row .col-6 {
        margin-bottom: 1rem;
    }
    
    /* Services columns stack on small mobile */
    .col-lg-4:last-child .row .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
    .carousel-item img {
        height: 45vh;
        min-height: 300px;
    }
    
    .display-3 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.8rem !important;
    }
    
    .d-flex.flex-column.flex-sm-row .btn {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem !important;
    }
    
    .welcome-section h1 {
        font-size: 1.6rem;
    }
    
    .row.g-3 img {
        height: 100px !important;
    }
    
    .bg-light.rounded.p-4 {
        padding: 0.75rem !important;
    }
    
    .d-flex.align-items-start .rounded-circle {
        width: 25px !important;
        height: 25px !important;
    }
}