﻿/* sr */
html{
    scroll-behavior: smooth;
}
h1, h2, h3, h4, h5, h6 {
    color: #222222;
    font-family: "Montserrat", serif;
}
a {
    text-decoration: none !important;
}
p{
    font-size: 18px;
    color: #363636;
}
.h-description {
    font-size: 15px;
}
.text-red {
    color: #ed1f24;
}
.colored-btn {
    background-color: #ed1f24;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.colored-btn:hover {
    background-color: #f34246;
}
/* HEADER */
.header .nav-info p{
    font-size: 14px;
}
.header .info {
    background-color: #ed1f24;
}
.main-menu a{
    color: #000;
    transition: .3s;
}
.main-menu a:hover{
    color: #ed1f24;
}
.main-nav-header {
    font-size: 19px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    background-color: #F0F1F2;
}
.navbar .navbar-nav {
    display: flex;
    justify-content: center;
    width: 100%; 
}
.nav-item {
    margin-right: 20px;
}
.space-between {
    justify-content: space-between;
}
.navbar-toggler {
    display: none; 
}
.navbar-nav {
    display: flex;
    justify-content: flex-start;
    width: 100%; 
}
.main-nav-header .nav li {
    margin-right: 50px;
}
@media(max-width: 1199px){
    .main-nav-header .nav li{
        margin-right: 30px;
    }
}
@media (max-width: 991px) {
    .navbar-toggler {
        display: block; 
    }
    .navbar-collapse {
        display: flex;
        justify-content: center;
    }
}
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }
    .navbar-toggler {
        border-color: #ddd;
        background-color: #FFF;
    }
    .navbar-toggler-icon {
        background-color: #000;
    }
}
#sticky-nav .nav-item a{
    color: #000;
}
#sticky-nav .nav-item a:hover {
    color: #ed1f24;
}
/* language btn */
.language-switch{
    margin: auto;
}
.language-switch button {
    background-color: #ed1f24;
    color: white;
    border: none;
    padding: 6px 8px;
    font-size: 16px;
    cursor: pointer; 
    transition: background-color 0.3s;
}
.language-switch button:hover {
    background-color: #f34246;
}
/* HOME */
.home{
    margin-top: -40px;
}
.home h1{
    font-size: 55px;
    font-weight: 700;
}
home p{
    font-size: 18px;
}
.home .carousel .carousel-item img{
    background-color: #000;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    background-size: cover;
    background-position: center;
    height: 650px;
    width: 100%;
}
.carousel-item img {
    width: 100%; 
    height: auto;
}
.carousel-item::before {
    content: ''; 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, .4));
}
.carousel-item .carousel-caption {
     z-index: 2; 
     right: 0;
     bottom: 30%;
     left:0;
}
.carousel-caption a{
    letter-spacing: 2px;
    font-weight: 500;
}
.home .colored-btn {
    height: 100%;
    background-color: #ed1f24;
}
@media(max-width: 991px){
    .carousel-item img{
        height: 500px;
    }
    .home .carousel .carousel-item img{
        width: auto;
    }
}
@media (max-width: 767px) {
    .carousel-caption h1 {
        font-size: 3.5rem;
    }
    .carousel-caption p {
        font-size: 1rem;
    }
    .carousel-item .carousel-caption {
        bottom: 15%;
    }
}
@media (max-width: 575px) {
    .carousel-caption p {
        font-size: 0.9rem;
    }
}
/* OUR SERVICES */
.services{
    margin-top: -100px;
    z-index: 3;
}
.services img{
    border-radius: 5px;
}
.servicesBox:hover i {
    color: #ed1f24; 
}
.service-item {
    opacity: 0; 
    transform: translateY(50px); 
    transition: opacity 1s ease, transform 1s ease;
}
.service-item.in-view {
    opacity: 1; 
    transform: translateY(0);
}
.servicesBox {
    transition: box-shadow 0.5s ease;
}
@media(max-width: 991px){
    .services{
        margin-top: -30px;
    }
}
/* PROJECT */
.line {
    border-top: 2px solid #000;
    width: 23%;
}
/* ABOUT */
.about .btn{
    color: #000;
    padding: 10px 35px;
    transition: background-color .3s ease-in-out;
}
.about .btn:hover{
    background-color:#ed1f24;
    color: #fff;
    border: 1px solid #ed1f24;
}
.about .carousel-item {
    min-width: 100%;
}
.carousel-item img {
    height: auto;
}
.about .carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}
.about .carousel-item.active .carousel-caption {
    transform: translateY(0); 
}
.about .carousel-indicators{
    z-index: 5;
}
.about .carousel-item::before {
    background: linear-gradient(to right, rgba(0, 0, 0, .3), rgba(0, 0, 0, .3));
}
@media(max-width: 991px){
    .about .row {
        display: block;
    }
}
/* COUNTER AREA */
.count {
     padding: 50px 0;
     overflow: hidden;
}
.count img {
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: -1; 
}
.count::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9));
    z-index: 0; 
}
.count .container {
    z-index: 1;
}
.countBox {
    border: 3px solid #ed1f24;
}
.countBox h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}
.countBox p {
  font-size: 1.2rem;
}
.countBox i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #ed1f24; 
}
.contact-info i {
    color: #ed1f24;
    font-size: 20px;
}
/* CERTIFICATE AREA */
.certificateBox .icon {
    margin: auto;
    display: inline-block;
    border: 1px solid #dee2e6;
    transform: rotate(45deg);
}
.certificateBox:hover .icon {
    background-color: #222222;
    transition: .5s ease-in-out;
}
.certificateBox .line {
    width: 100%;
    border: 1px;
}
.certificateBox .icon i {
    color: #ed1f24;
    transform: rotate(45deg);
    padding: 10px;
    font-size: 20px;
}
.certificateContent {
    margin: auto 0 auto 20px;
}
.certificateContent h4{
    font-size: 21px;
}
.certificate .btn {
    background-color: #222222;
    transition: background-color .3s ease-in-out;
}
.certificate .btn:hover{
    background-color: #ed1f24;
}
.certificate .moreText {
    display: none;
}
.certificate .toggleBtn {
    color: #ed1f24;
    cursor: pointer;
    font-weight: bold;
    border: none;
    background: none;
    padding-left: 5px;
}

/* iso */
.iso-section {
    margin: 50px 0;
}
.iso-section .certificateBox {
    text-align: center;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}
.iso-section .certificateBox:hover {
    transform: translateY(-5px);
}
.iso-section .certificateBox > img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}
.iso-section .d-flex img {
    height: auto;
}
.iso-section .certificateContent h4 {
    font-size: 1rem;
    margin: 0;
}

/* GALLERY */
.gallery {
    padding: 40px 0;
}
.line {
  border-top: 2px solid #000;
  width: 23%;
  margin: 0 15px;
}
.project-logo {
  max-height: 50px;
}
.h-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}
.swiper {
  width: 100%;
  padding: 20px 0;
}
.swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#lightbox img {
  max-width: 90%;
  max-height: 90%;
  width: 700px;
}
/* CAREER*/
#career {
    overflow: hidden;
}
.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px);  
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1;
}
#career .container {
    position: relative;
    z-index: 2;
}
#career .text-shadow{
    text-shadow: 1px 3px 7px rgba(0, 0, 0, .7);
}
.toggle {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.toggle-title {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.toggle-title:hover {
    background: #f4f4f4;
}
.toggle-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .7s ease, opacity .7s ease, padding .7s ease;
    padding: 0 2rem;
}
.toggle.active .toggle-content {
    max-height: 1000px;
    opacity: 1;
    padding: 1rem 2rem;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.toggle.active .fa-arrow-down {
    transform: rotate(180deg);
    transition: transform 0.3s;
}
/*  contact form */
.contact-form {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.contact-form h3 {
    color: #333;
    font-weight: 600;
}
.contact-form .form-label {
    font-weight: 500;
    color: #555;
}
.contact-form .form-control {
    border: 1px solid #ccc;
    transition: border-color 0.3s ease;
    padding: 0.675rem .75rem;
}
.contact-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}
.contact-form .btn-primary {
    background: #ed1f24;
    font-weight: 500;
    transition: background 0.3s ease;
}
.contact-form .btn-primary:hover {
    background: #f34246;
}
/* REFERENCE */
.references .rfr-box img{
    width:100%;
}
.references .rfr-box span {
    font-size: 14px;
}
.references .rfr-box p{
    font-size: 14px;
}
.rfr-box {
    display: none;
}

@media (min-width: 992px) {
    .rfr-box {
        display: block !important;
    }

    #loadMoreBtn,
    #showLessBtn {
        display: none !important;
    }
}
/* NOVOSTI */
.novosti__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.novost-kartica {
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.novost-kartica:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
.novost-kartica-slika {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-position: center;
  background-size: cover;
  border-bottom: 3px solid #ed1f24;
}
.novost-kartica-sadrzaj {
  padding: 18px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.novost-kartica-naslov {
  font-size: 1.25rem;
  margin: 0 0 12px 0;
  color:#000;
  flex-shrink: 0;
}
.novost-kartica-opis {
  flex-grow: 1;
  font-size: 1rem;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}
.novosti-vise-dugme {
  display: block;
  margin: 30px auto 0 auto;
  width: max-content;
  padding: 12px 30px;
  background-color: #ed1f24;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(237, 31, 36, 0.5);
  transition: background-color 0.3s ease;
}
.novosti-vise-dugme:hover {
  background-color: #f04b49;
  color: #fff;
}

@media (max-width: 480px) {
  .novosti-naslov {
    font-size: 1.8rem;
  }
  .novost-kartica-naslov {
    font-size: 1.1rem;
  }
  .novost-kartica-opis {
    font-size: 0.9rem;
  }
}
.sakriveno {
    opacity: 0;
    transform: translateY(20px);
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease, max-height 0.5s ease;
}
.novost-kartica.prikazano {
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px; 
    overflow: visible;
}

/* CONTACT US */
.contact {
    overflow: hidden;
    height: 100px;
}
.contact img{
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; 
}
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7));
    z-index: 0;
}
.contact .container{
    z-index: 1;
}
.map-responsive {
    padding-bottom: 65%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: transparent;
}
.map-responsive iframe {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* GOALS */
.goals {
    background-color: #F0F1F2;
}
.goals .btn{
    background-color: #363636;
    transition: .3s ease-in-out;
}
.goals .btn:hover{
    background-color: #ed1f24;
}
/* FOOTER */
.footer p{
    font-size: 15px;
    color: #777;
}
.footer a{
    font-size: 15px;
    color: #757575;
    transition: .3s ease;
}
.footer a:hover{
    color: #ed1f24;
}
.footer .line {
    border: 2px solid #ed1f24;
    opacity: 1;
}
.footer .btn:hover{
    color: #fff;
}
.social li{
    margin-right: 10px;
}
.footer .fa-facebook {
    background-color: #1877F2;
    transition: .3s ease-in-out;
}
.footer .fa-linkedin {
    background-color: #0077B5;
    transition: .3s ease-in-out;
}
.footer .fa-instagram {
    background-color: #E1306C;
    transition: .3s ease-in-out;
}
.social i:hover {
    background-color: #ed1f24;
}
/* BACK TO TOP */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 1000;
    border-radius: 100%;
    padding: 15px 20px;
    font-size: 16px;
    transition: opacity 0.3s ease;
}