/********** OPTIMIZED TEMPLATE CSS **********/

/* ===== ROOT VARIABLES ===== */
:root {
    --bs-primary: #0d6efd;
    --bs-dark: #212529;
}

/* ===== GLOBAL ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

body {
    overflow-x: hidden;
}

/* ===== SPINNER ===== */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 1000;
}

#spinner.show {
    visibility: visible;
    opacity: 1;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    right: 15px;
    bottom: 15px;
    z-index: 99;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-to-top.show {
    display: block;
    opacity: 1;
}

/* ===== BUTTONS ===== */
.btn {
    transition: all 0.3s ease;
    min-height: 44px;
}

.btn:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.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 {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== NAVBAR ===== */
.navbar {
    padding: 10px 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
}

.navbar .navbar-nav .nav-link {
    padding: 10px 0;
    margin-left: 0;
    color: var(--bs-dark);
    transition: color 0.3s ease;
}

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

/* ===== LOGOS ===== */
.logo-style,
.logo-style1,
.logo-footer {
    max-width: 100%;
}

.logo-style { max-width: 150px; }

.logo-style1 {
    max-width: 500px;
    padding-bottom: 60px;
}

.logo-footer {
    max-width: 250px;
    padding-bottom: 60px;
}

/* ===== HERO ===== */
.hero-header {
    margin-top: 0;
    padding: 100px 0 60px;
    background: url("/img/bg-1.jpg") center center / cover no-repeat;
    text-align: center;
}

.header-carousel {
    padding: 20px 0;
}

.header-carousel::before {
    display: none;
}

/* ===== ABOUT ===== */
.about-img {
    position: relative;
    overflow: hidden;
}

/* ===== PROJECT ===== */
.project-item {
    overflow: hidden;
}

.project-item img {
    transition: transform 0.3s ease;
    will-change: transform;
}

.project-item:hover img {
    transform: scale(1.05);
}

/* ===== SERVICES ===== */
.service-item {
    padding: 24px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.service-item:hover {
    transform: translateY(-5px);
}

/* ===== TEAM ===== */
.team-item img {
    transition: transform 0.3s ease;
    will-change: transform;
}

.team-item:hover img {
    transform: scale(1.05);
}

/* ===== TESTIMONIAL ===== */
.testimonial-img {
    padding: 20px 0;
}

.testimonial-img::before {
    display: none;
}

/* ===== NEWSLETTER ===== */
.newsletter {
    background: url("../img/hero-bg.jpg") center center / cover no-repeat;
}

/* ===== FOOTER ===== */
.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer .btn.btn-link:hover {
    color: #fff;
}

.footer .copyright {
    padding: 20px 0;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== CONTAINER SAFETY ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== MEDIA QUERIES ===== */
@media (min-width: 768px) {

    .navbar {
        padding: 15px 0;
        font-size: 18px;
    }

    .navbar .navbar-nav .nav-link {
        margin-left: 24px;
        padding: 0;
    }

    .hero-header {
        padding: 140px 0 80px;
        text-align: left;
    }

    .header-carousel {
        padding: 40px 60px 40px 0;
    }

    .header-carousel::before {
        display: block;
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 50%;
        height: 100%;
        background: var(--bs-primary);
        z-index: -1;
    }

    .testimonial-img {
        padding: 45px 0 45px 90px;
    }

    .testimonial-img::before {
        display: block;
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        height: 100%;
        background: var(--bs-primary);
        z-index: -1;
    }
}