:root {
    --primary-color: #1a5276;
    --secondary-color: #f39c12;
    --accent-color: #2e86c1;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.carousel-item {
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.carousel-item img {
    position: relative;
    z-index: 0;
}

.carousel-caption {
    padding-top: 5px !important;
    bottom: 20% !important;
    z-index: 3 !important;
}

@media (max-width: 768px) {
    .carousel-caption {
        top: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
    }

    .carousel-item {
        height: 70vh;
        min-height: 400px;
    }

    .carousel-caption h1 {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }

    .carousel-caption p {
        font-size: 0.9rem !important;
        margin-bottom: 20px !important;
    }

    .carousel-caption .btn {
        padding: 10px 20px !important;
        font-size: 0.9rem;
        margin: 5px !important;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 60vh;
        min-height: 350px;
    }

    .carousel-caption h1 {
        font-size: 1.3rem !important;
    }

    .carousel-caption p {
        font-size: 1.2rem !important;
    }

    .carousel-caption .btn {
        padding: 8px 16px !important;
        font-size: 1rem;
    }
}

#spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#spinner .spinner-border {
    width: 3rem;
    height: 3rem;
}

.display-6 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .display-6 {
        font-size: 1.6rem;
    }
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary-custom:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary-custom {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-secondary-custom:hover {
    background-color: #e67e22;
    border-color: #e67e22;
}

.logo-container {
    position: relative;
    z-index: 1030;
    display: flex;
    justify-content: start;
    pointer-events: none;
}

.logo-img {
    height: 100px;
    object-fit: contain;
    background: white;
    padding: 5px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    margin-left: 10rem;
    pointer-events: auto;
}

.navbar {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: -100px;
    z-index: 1020;
    position: relative;
}

.navbar-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}

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

.navbar-toggler {
    border: none;
    z-index: 1031;
    position: relative;
}

.navbar-toggler:focus {
    box-shadow: none;
}


@media (max-width: 768px) {
    .logo-img {
        margin-left: 0rem;
    }

    .navbar {
        text-align: end !important;
    }
}

.carousel-item {
    height: 80vh;
    min-height: 500px;
}

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

.carousel-caption {
    bottom: 30%;
}

.service-card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.project-item {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-item .position-relative {
    height: 300px;
}

@media (max-width: 768px) {
    .project-item .position-relative {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .project-item .position-relative {
        height: 200px;
    }
}

.project-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

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

.footer {
    background-color: var(--dark-color);
    color: white;
}

.footer a {
    color: #ddd;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

.footer a:hover {
    color: var(--secondary-color);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-justify {
    text-align: justify;
}