/********** Mgo Build Invest Group - Main Stylesheet **********/
html {
    scroll-behavior: smooth;
}

:root {
    --primary: #002b16;
    --primary-hover: #004423;
    --primary-light: rgba(0, 43, 22, 0.08);
    --secondary: #d4af37;
    --light: #F4F6F8;
    --dark: #001f10;
    --body-color: #555555;
}

body {
    color: var(--body-color);
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    background: #ffffff;
    overflow-x: hidden;
}

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

a {
    color: var(--primary);
    transition: all .3s ease;
    text-decoration: none;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

::selection {
    background: var(--primary);
    color: #ffffff;
}

/* Spacing and Bootstrap 4/5 compatibility helpers */
.mr-1, .me-1 { margin-right: 0.25rem !important; }
.mr-2, .me-2 { margin-right: 0.5rem !important; }
.mr-3, .me-3 { margin-right: 1rem !important; }
.mr-4, .me-4 { margin-right: 1.5rem !important; }
.mr-5, .me-5 { margin-right: 3rem !important; }

.ml-1, .ms-1 { margin-left: 0.25rem !important; }
.ml-2, .ms-2 { margin-left: 0.5rem !important; }
.ml-3, .ms-3 { margin-left: 1rem !important; }
.ml-4, .ms-4 { margin-left: 1.5rem !important; }
.ml-5, .ms-5 { margin-left: 3rem !important; }

.mr-auto, .me-auto { margin-right: auto !important; }
.ml-auto, .ms-auto { margin-left: auto !important; }

/* Utilities */
.pt-6 { padding-top: 90px; }
.pb-6 { padding-bottom: 90px; }
.py-6 { padding-top: 90px; padding-bottom: 90px; }

/* Buttons */
.btn {
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 24px;
    border-radius: 4px;
    transition: all .3s ease;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 15px rgba(0, 43, 22, 0.35);
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
}

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

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

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

/* Top Bar */
.top-bar {
    position: relative;
    height: 96px;
    background: #ffffff;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 43, 22, 0.08);
}

.top-bar .logo {
    display: flex;
    align-items: center;
}

.navbar-brand-logo {
    height: 58px;
    max-height: 64px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.top-bar-item {
    display: flex;
    align-items: center;
    padding: 4px 16px;
    gap: 12px;
}

.top-bar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    margin-right: 12px;
}

.top-bar-icon i {
    color: var(--primary) !important;
}

.top-bar-text h6 {
    font-size: 15px;
    margin-bottom: 2px;
    color: var(--dark);
    font-weight: 700;
}

.top-bar-text p, .top-bar-text a {
    font-size: 13px;
    color: #6c757d;
}

.top-bar-text a:hover {
    color: var(--primary) !important;
}

/* Language Selector */
.lang-selector-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn {
    border: 1px solid rgba(0, 43, 22, 0.2);
    background: transparent;
    color: var(--dark);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    outline: none;
}

.lang-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.lang-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 43, 22, 0.25);
}

/* Nav Bar */
.nav-bar {
    position: relative;
    background: var(--primary);
    transition: .5s;
}

.nav-bar .navbar {
    padding: 0 15px;
    background: var(--primary) !important;
}

.navbar-dark .navbar-nav .nav-link {
    position: relative;
    padding: 22px 18px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    outline: none;
    transition: .3s;
}

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

.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 6px 10px;
}

.navbar-dark .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

@media (max-width: 991.98px) {
    .top-bar {
        display: none !important;
    }

    .nav-bar .navbar {
        padding: 12px 15px;
    }
    
    .navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .navbar-dark .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .lang-btn {
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.4);
    }
    
    .lang-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #ffffff;
    }
    
    .lang-btn.active {
        background: var(--secondary);
        color: var(--dark);
        border-color: var(--secondary);
    }
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
}

.carousel-item {
    position: relative;
    min-height: 550px;
    background: var(--dark);
}

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

.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 31, 16, 0.75), rgba(0, 43, 22, 0.82));
    z-index: 1;
    padding: 30px;
    text-align: center;
}

.carousel-btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.carousel-caption .btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    margin: 6px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carousel-caption p {
    color: var(--secondary);
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.carousel-caption h1 {
    color: #ffffff;
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 30px;
    max-width: 850px;
    line-height: 1.25;
}

.carousel-indicators [data-bs-target],
.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators .active {
    background-color: var(--secondary) !important;
    width: 28px;
    border-radius: 6px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    border-radius: 50%;
    background-size: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all .3s;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

@media (max-width: 768px) {
    .carousel-item {
        min-height: 420px;
    }
    
    .carousel-caption p {
        font-size: 15px;
    }
    
    .carousel-caption h1 {
        font-size: 26px;
        margin-bottom: 20px;
    }
}

/* Page Header */
.page-header {
    position: relative;
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 31, 16, 0.78), rgba(0, 43, 22, 0.85)), url(../img/carousel-1.png) center center no-repeat;
    background-size: cover;
    margin-bottom: 50px;
    text-align: center;
}

.page-header h2 {
    color: #ffffff;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-header a {
    color: var(--secondary);
    font-weight: 600;
    font-size: 16px;
}

.page-header a:hover {
    color: #ffffff;
}

.page-header span {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 8px;
}

/* Section Header */
.section-header {
    position: relative;
    margin-bottom: 45px;
}

.section-header p {
    display: inline-block;
    margin-bottom: 8px;
    padding-bottom: 5px;
    position: relative;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 26px;
    }
}

/* Features */
.feature {
    position: relative;
    padding: 60px 0 30px 0;
    background: var(--light);
}

.feature .row {
    align-items: stretch;
}

.feature [class*="col-"] {
    display: flex;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 30px 25px;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 43, 22, 0.06);
    border-bottom: 3px solid transparent;
    transition: all .3s ease;
    width: 100%;
    height: calc(100% - 30px);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 43, 22, 0.12);
    border-bottom-color: var(--primary);
}

.feature-icon {
    flex-shrink: 0;
    margin-right: 20px;
}

.feature-icon i {
    color: var(--primary) !important;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* About */
.about {
    position: relative;
    padding: 60px 0;
}

.about-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 43, 22, 0.12);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.about-text .fa-circle {
    font-size: 9px;
    vertical-align: middle;
}

/* Services */
.service {
    position: relative;
    padding: 60px 0 30px 0;
    background: #ffffff;
}

.service-item {
    position: relative;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 43, 22, 0.08);
    transition: all .3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 43, 22, 0.16);
}

.service-img {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.service-item:hover .service-img img {
    transform: scale(1.08);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 43, 22, 0.88);
    padding: 25px;
    opacity: 0;
    transition: opacity .4s ease;
}

.service-item:hover .service-overlay {
    opacity: 1;
}

.service-overlay p {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

.service-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #ffffff;
}

.service-text h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.service-text .btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    background: var(--primary) !important;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    border: none;
}

.service-text .btn:hover {
    background: var(--primary-hover) !important;
    transform: rotate(90deg);
}

/* Portfolio / Projects */
.portfolio {
    position: relative;
    padding: 60px 0 30px 0;
    background: var(--light);
}

.portfolio-warp {
    position: relative;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 43, 22, 0.08);
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
}

.portfolio-warp:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 43, 22, 0.16);
}

.portfolio-img {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.portfolio-warp:hover .portfolio-img img {
    transform: scale(1.08);
}

.portfolio-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 43, 22, 0.85);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 43, 22, 0.88);
    padding: 20px;
    opacity: 0;
    transition: opacity .4s ease;
    z-index: 3;
}

.portfolio-warp:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay p {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
}

.portfolio-overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--primary) !important;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all .3s ease;
}

.portfolio-overlay-btn:hover {
    background: var(--secondary);
    color: var(--primary) !important;
    transform: scale(1.05);
}

/* Gallery Thumbnails row */
.portfolio-gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 16px 6px 16px;
    background: #ffffff;
}

.portfolio-gallery-thumbs .thumb-item {
    flex: 1;
    height: 62px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    transition: all .2s ease;
    display: block;
}

.portfolio-gallery-thumbs .thumb-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 43, 22, 0.15);
}

.portfolio-gallery-thumbs .thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-gallery-thumbs .thumb-item.thumb-more::after {
    content: attr(data-count);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 43, 22, 0.7);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 18px 16px;
    background: #ffffff;
    margin-top: auto;
}

.portfolio-info h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 3px 0;
}

.portfolio-text .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: var(--primary) !important;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    border: none;
    transition: all .3s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.portfolio-text .btn:hover {
    background: var(--primary-hover) !important;
    transform: scale(1.1);
}

/* Footer */
.footer {
    position: relative;
    background: #00170c;
    color: #9cb5a8;
    padding-top: 60px;
}

.footer h2 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.footer h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.footer p {
    color: #9cb5a8;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-link a {
    display: block;
    color: #9cb5a8;
    padding: 6px 0;
    font-size: 14px;
    transition: all .3s ease;
}

.footer-link a::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    color: var(--secondary);
}

.footer-link a:hover {
    color: #ffffff;
    padding-left: 6px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    transition: all .3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-3px);
}

.footer-menu {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    margin-top: 40px;
}

.footer-menu .f-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-menu .f-menu a {
    color: #9cb5a8;
    font-size: 14px;
    font-weight: 500;
}

.footer-menu .f-menu a:hover {
    color: #ffffff;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    font-size: 13px;
    color: #6e8c7e;
}

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

.copyright a:hover {
    color: #ffffff;
}

/* Back to top */
.back-to-top {
    position: fixed;
    display: none;
    right: 25px;
    bottom: 25px;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    z-index: 99;
    transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(0, 43, 22, 0.35);
}

.back-to-top:hover {
    background: var(--primary-hover);
    color: var(--secondary);
    transform: translateY(-3px);
}
