@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700|Poppins:300,400,500,600,700');

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* da footer ide na dno */
}

main {
  flex: 1; /* prostor između headera i footera */
}

footer {
  background: #181010;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  width: 100%;
  position: relative; /* umjesto absolute */
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Montserrat', sans-serif;
	margin: 0px;
}

p, .form-title {
	font-family: 'Poppins', sans-serif;
}

.form-control, label {
	font-size: 14px;
	font-family: 'Poppins', sans-serif;
}

.logo {
	width: 350px;
}

.nav-item {
	color: #E42C28;
    margin: 10px 0px;
}

.navbar-light .navbar-nav .nav-link {
    font-weight: 600;
    font-size: 14px;
    text-transform: capitalize;
    color: #E42C28;
    letter-spacing: 1px;
    padding: 0 0.5em;
    font-family: 'Montserrat', sans-serif;
	text-transform: uppercase;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .show>.nav-link,
.navbar-light .navbar-nav .active>.nav-link,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .nav-link.active {
	color: #EB2E2F;
	background: transparent;
}

.text-blue {
	color: #E42C28;
}

.header-top {
	background-color: #E42C28;
	padding: 15px 0px;
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	color: white;
}

.header-top ul, .header-top ul li {
	float: left;
}

.header-information li {
    margin-right: 30px;
    font-size: 12px;
    font-weight: 400;
}

.header-top .social-icon {
	color: #fff;
	padding-left: 15px;
}

.header-top a.social-icon:hover {
	color: #EB2E2F;
}

.video-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

#myVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* tamniji video radi bolje čitljivosti teksta */
}

.overlay-desc {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  text-align: center;
  padding: 0 20px;
  animation: fadeIn 1.5s ease-in-out;
}

.overlay-desc h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 15px;
}

.overlay-desc p {
  font-size: 18px;
  margin-bottom: 15px;
}

.overlay-desc .btn {
  background-color: #E42C28;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 30px;
  border-radius: 50px;
  transition: 0.3s;
}

.overlay-desc .btn:hover {
  background-color: #EB2E2F;
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

.banner-subg1 {
   box-shadow: -3px 0px 15px 1px rgba(0, 0, 0, 0.08);
   padding: 4em 2em;
   background:#fff;
   text-align: center;
   height: 360px;
}

.banner-btmg1 h3 {
    font-size: 28px;
    color: #ffdc39;
    font-weight: 500;
}
.banner-subg1 h3, .about-bottom h5 {
    color: #222222;
    font-size: 25px;
    font-weight: 500;
}

.banner-subg1 span.fa {
    font-size: 50px;
    color: #E42C28;
}

.banner-subg1 h4 {
    color: #E42C28;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.banner-subg1 p {
	font-family: 'Poppins', sans-serif;
}

.read-btn a, .read-btn button {
	background-color: #E42C28;
	border: 1px solid #E42C28;
	color: white;
	font-family: 'Montserrat', sans-serif;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 14px;
    font-weight: 600;
}
.read-btn a:hover, .read-btn button:hover {
	background-color: #EB2E2F;
	border: 1px solid #EB2E2F;
}

.tit {
	font-family: 'Poppins', sans-serif;
	font-size: 25px;
}

.banner_bottom_left h4, .page-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 34px;
	color: #3c3c3c;
	letter-spacing: 1px;
	position: relative;
	font-weight: 500;
	margin-bottom: 1em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.page-title {
	color: black;
	font-size: 50px;
	font-weight: 600px;
}

.banner_bottom_left p {
	font-family: 'Poppins', sans-serif;
}

.testimonials .container {
	background-color: black;
	opacity: 0.7;
	font-family: 'Montserrat', sans-serif;
}

.wthree-row .card img {
	height: 300px;
}

.wthree-row .card .card-title {
	font-family: 'Montserrat', sans-serif;
	color: #E42C28;
}

.wthree-row .card .card-body {
	font-family: 'Poppins', sans-serif;
}

.distance-w3 {
	background-color: #E42C28;
	font-family: 'Montserrat', sans-serif;
	color: white;
}

.stats h3 {
	color: #E42C28;
	font-family: 'Montserrat', sans-serif;
}

.stats .tit {
	font-family: 'Poppins', sans-serif;
}

.stats .counter {
	font-family: 'Poppins', sans-serif;
	color: #EB2E2F;
}

.stats .col-sm-4 {
	font-family: 'Poppins', sans-serif;
	color: #EB2E2F;
}

footer .copy-right {
	background-color: #E42C28;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	color: white;
}

.navbar-collapse .collapse .show {
	background-color: #fff;
}

.banner-about {
	background-position: 0px -450px;
	background-image: 
		linear-gradient(
	      rgba(0, 0, 0, 0.6),
	      rgba(0, 0, 0, 0.6)
	    ), 
	    url("../img/machine.jpeg");
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    -ms-background-size: cover;
}

.banner-about .banner-title {
	padding: 50px 0;
	color: white;
	font-size: 40px;
	font-weight: 700;
    font-weight: 600 !important;
    line-height: 88px !important;
    margin: 0px !important;
    text-transform: uppercase;
}

.banner-blue {
	background-color: #E42C28;
}

.banner-blue .banner-title {
	padding: 40px 0;
	color: white;
	font-size: 64px;
    font-weight: 600 !important;
    line-height: 88px !important;
    margin: 0px !important;
}

/*@media only screen and (max-width: 1500px) {
	.video-container {
	  height: 450px;
	  max-height: 450px;
	}
	.overlay-desc h1 {
		font-size: 44px;
	}
}*/

@media only screen and (max-width: 500px) {
  .overlay-desc h1 {
  		font-size: 22px;
  }
  .logo {
   		width: 65vw;
  }
  .video-container {
	  width: 100%;
	  min-width: 100%;
	  height: 320px;
	  max-height: 320px;
	  object-fit: cover;
	  overflow: hidden;
	}
   .banner-bottom-main .banner-grid2 {
	 padding-left: 0px;
	 padding-right: 0px;
   }
   .banner-subg1 {
   	    margin: 0px;
	   	padding: 20px;
		height: auto;
    }
	.banner-subg1 span.fa {
		display: inline;
	    font-size: 17px;
	}
	.banner-subg1 h4 {
		display: inline;
	    font-size: 17px;
	}
	.banner-subg1 p {
		font-size: 13px;
	}
	.banner-subg1 .read-btn a {
		font-size: 13px;
	}
	.banner_bottom_left h4 {
		font-size: 26px;
	}
	.banner_bottom_left p {
		font-size: 13px;
	}
	.banner_bottom_left .read-btn {
		padding: 10px;
	}
	.banner_bottom_left .read-btn a {
		font-size: 13px;
	}
	.testimonials .container .tittle-w3ls, .distance-agile-left h4 {
		font-size: 22px;
	}
	.wthree-row .card img {
		height: 220px;
	}
	.wthree-row .card .card-title {
		font-size: 18px;
	}
	.wthree-row .card .card-text {
		font-size: 13px;
	}
	.stats h3 {
		font-size: 22px;
	}

	.stats .tit {
		font-size: 13px;
	}

	.stats .counter {
		font-size: 22px;
		margin-bottom: 0px;
	}

	.stats .col-sm-4 h3 {
		font-size: 13px;
		margin-bottom: 3px;
	}
	footer .copy-right {
		font-size: 12px;
	}
	.distance-agile-left {
		font-size: 14px;
	}
	.custom_background_about {
		padding: 30px;
		font-size: 24px;
	}
	.banner-bottom-left h4 {
		font-size: 26px;
	}

	.banner-about .banner-title {
		color: white;
		font-weight: 600px;
		padding: 30px;
		font-size: 24px;
	}
	.banner-blue .banner-title {
		color: white;
		font-weight: 600px;
		padding: 20px;
		font-size: 24px;
	}
	.page-title {
		font-size: 26px;
	}
	p.tit {
		font-size: 13px;
	}
	.banner-about {
		background-position: 0px -60px;
	}
}

.hero-subtitle {
  color: #fff;
  font-size: 18px;
  margin-top: 10px;
  letter-spacing: 1px;
}


.navbar-logo {
  height: 55px;
}

/* Veći ekrani (desktop, laptop) */
@media (min-width: 992px) {
  .navbar-logo {
    height: 80px;
  }
}

.contact-floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-floating a {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: 0.3s;
}

.contact-floating a:hover {
  transform: scale(1.1);
}

.contact-floating .whatsapp {
  background: #25D366;
}

.contact-floating .viber {
  background: #7360F2;
}


.video-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

#myVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* tamniji video radi bolje čitljivosti teksta */
}

.overlay-desc {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  text-align: center;
  padding: 0 20px;
  animation: fadeIn 1.5s ease-in-out;
}

.overlay-desc h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 15px;
}

.overlay-desc p {
  font-size: 18px;
  margin-bottom: 15px;
}

.overlay-desc .btn {
  background-color: #E42C28;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 30px;
  border-radius: 50px;
  transition: 0.3s;
}

.overlay-desc .btn:hover {
  background-color: #EB2E2F;
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

.service-box {
  background: #fff;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.service-box i {
  font-size: 40px;
  background-color: #E42C28;
  color: #fff;
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.1);
}

.contact-floating a {
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-floating a:hover {
  transform: scale(1.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

@media (max-width: 768px) {
  .video-container {
    height: 320px;  /* smanji visinu videa za mobitele */
  }

  .overlay-desc {
    padding: 20px;
    text-align: center;
  }

  .overlay-desc h1 {
    font-size: 28px;  /* smanjeni naslov */
    line-height: 1.2;
  }

  .overlay-desc p {
    font-size: 14px;  /* smanjeni podnaslovi */
    margin-bottom: 8px;
  }

  .overlay-desc .btn {
    font-size: 14px;
    padding: 10px 20px;
  }
}

.work-img {
  width: 100%;
  height: 250px; /* ili visina po tvom izboru */
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.work-img:hover {
  transform: scale(1.05);
}


/* Modernizacija service-boxa */
.service-box {
    background: #fff;
    padding: 30px 20px;
    border: 1px solid #eee;
    border-radius: 8px; /* Zaobljeni rubovi */
    transition: all 0.3s ease; /* Glatka animacija */
}

.service-box:hover {
    transform: translateY(-10px); /* Podigne se gore */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Dobije sjenu */
    border-color: #dc3545; /* Crveni rub na hover */
}

.service-box i {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
