/* ==================================================
   GLOBAL
================================================== */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

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

#spinner.show {
    visibility: visible;
    opacity: 1;
    transition: opacity .5s ease-out;
}

/* ==================================================
   BACK TO TOP
================================================== */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    transition: .5s;
    z-index: 99;
}

/* ==================================================
   BUTTONS
================================================== */
.btn {
    font-weight: 600;
    transition: all .3s ease;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square,
.btn-xl-square {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-square { width: 32px; height: 32px; }
.btn-sm-square { width: 34px; height: 34px; }
.btn-md-square { width: 40px; height: 40px; }
.btn-lg-square { width: 46px; height: 46px; }
.btn-xl-square { width: 56px; height: 56px; }

/* ==================================================
   HEADER HERO FIX
================================================== */
.gpm-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* ==================================================
   HERO / CAROUSEL FULLSCREEN
================================================== */
.header-carousel,
.header-carousel .owl-stage-outer,
.header-carousel .owl-stage,
.header-carousel .owl-item,
.header-carousel-item,
.hero-section {
    height: 100vh;
    min-height: 760px;
}

.header-carousel-item,
.hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Background images */
.hero-bg-half-1,
.hero-bg-half-2 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    z-index: 1;
}

.hero-bg-half-1 {
    background-image: url("../img/carousel-1.jpg");
}

.hero-bg-half-2 {
    background-image: url("../img/carousel-2.jpg");
}

/* Dark overlay */
.header-carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.48);
    z-index: 2;
}

/* Hero shapes peste imagine, sub text */
.hero-shape-1,
.hero-shape-2 {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

/* Hero text */
.header-carousel .carousel-caption {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    text-align: left;
    padding-top: 130px;
}

.header-carousel .carousel-caption .container {
    position: relative;
    z-index: 5;
}

.header-carousel h1,
.header-carousel h4,
.header-carousel p {
    color: #ffffff;
}

/* Owl dots/nav safety */
.header-carousel .owl-nav,
.header-carousel .owl-dots {
    position: relative;
    z-index: 10;
}

/* ==================================================
   BANNER FIX
================================================== */
.banner {
    position: relative;
    overflow: hidden;
    background: url("../img/carousel-2.jpg") center center / cover no-repeat;
}

.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.80);
    z-index: 1;
}

.banner .container,
.banner .banner-design-1,
.banner .banner-design-2 {
    position: relative;
    z-index: 2;
}

.banner h4,
.banner h1,
.banner p,
.banner a {
    color: #ffffff !important;
}

/* ==================================================
   OLD NAVBAR SAFETY
   Nu afectăm header-ul custom .gpm-navbar
================================================== */
.nav-bar .navbar {
    z-index: 9;
}

.navbar-light .navbar-nav .nav-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

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

/* Dropdown animation doar pentru navbar vechi, nu GPM */
@media (min-width: 992px) {
    .nav-bar .navbar {
        padding: 20px 0;
    }

    .nav-bar .navbar .navbar-nav {
        background: var(--bs-light);
        border-radius: 10px;
        justify-content: center;
        align-items: center;
    }

    .nav-bar .navbar .nav-item .dropdown-menu {
        visibility: hidden;
        opacity: 0;
        transform: rotateX(-75deg);
        transition: .4s ease;
        border: none;
    }

    .nav-bar .navbar .nav-item:hover .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: rotateX(0deg);
        margin-top: 18px;
    }
}

/* ==================================================
   MOBILE
================================================== */
@media (max-width: 991px) {
    .gpm-header {
        position: relative;
    }

    .header-carousel,
    .header-carousel .owl-stage-outer,
    .header-carousel .owl-stage,
    .header-carousel .owl-item,
    .header-carousel-item,
    .hero-section {
        height: 760px;
        min-height: 760px;
    }

    .header-carousel .carousel-caption {
        padding-top: 40px;
        text-align: center;
    }

    .header-carousel h1 {
        font-size: 42px;
    }

    .banner {
        text-align: center;
    }
}

@media (max-width: 575px) {
    .header-carousel,
    .header-carousel .owl-stage-outer,
    .header-carousel .owl-stage,
    .header-carousel .owl-item,
    .header-carousel-item,
    .hero-section {
        height: 680px;
        min-height: 680px;
    }

    .header-carousel h1 {
        font-size: 34px;
    }

    .header-carousel p {
        font-size: 16px !important;
    }

    .banner h1 {
        font-size: 30px;
    }
}

/* ==================================================
   SECTIONS
================================================== */
.blog .blog-item,
.projects-item .projects-content {
    box-shadow: 0 0 30px rgba(0,0,0,.1);
    background: var(--bs-light);
}

.blog .blog-img {
    overflow: hidden;
}

.blog .blog-item img {
    transition: .5s;
}

.blog .blog-item:hover img {
    transform: scale(1.15);
}

/* ==================================================
   TESTIMONIAL
================================================== */
.testimonial {
    background: var(--bs-dark);
}

.testimonial .testimonial-item {
    margin-top: 35px;
    position: relative;
}

/* ==================================================
   ABOUT
================================================== */
.about-visual-wrap {
    min-height: 520px;
    border-radius: 24px;
    overflow: hidden;
}

.about-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    display: block;
}

.experience-badge {
    position: absolute;
    left: 24px;
    bottom: 24px;
    background: linear-gradient(135deg, #0d6efd, #1d4ed8);
    padding: 24px 28px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(13,110,253,.25);
    z-index: 2;
    max-width: 240px;
}

.about-small-card {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 42%;
    background: #ffffff;
    padding: 10px;
    border-radius: 24px;
    box-shadow: 0 18px 35px rgba(15,23,42,.16);
    z-index: 3;
}

.about-small-card img {
    width: 100%;
    display: block;
}

/* ==================================================
   FOOTER
================================================== */
.footer {
    background: var(--bs-dark);
}

.footer a {
    color: var(--bs-white);
    transition: .3s;
}

.footer a:hover {
    color: var(--bs-primary);
    letter-spacing: 1px;
}

.copyright {
    background: var(--bs-dark);
    border-top: 1px solid rgba(255,255,255,.08);
}