html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(-45deg, #ffffff, #f5f5f5, #c8c8c8, #ffffff);
  background-size: 300% 300%;
  animation: softGradient 20s ease-in-out infinite;
  overflow-x: hidden !important;
}

@keyframes softGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}




.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap;
  position: sticky !important;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  opacity: 0;
  width: 0;
  transition: all 1s ease-in-out;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
}


.logo-start {
  opacity: 1;
  width: 400px;
}

.logo-fly-top {
  top: 20px;
  transform: translateX(-50%);
  width: 550px;
}

.slogan {
  font-family: 'Kaushan Script', cursive;
  text-align: left;
  font-size: 2.5rem;
  margin-top: 20px;
  opacity: 0;
  transition: all 1s ease-in-out;
  transform: rotate(0deg);
  transform-origin: center;
  line-height: 0.5; /* smanjen razmak između linija */
}
.slogan-img {
  width: 300px;
  height: auto;
}
.slogan span {
  display: block;
}

.slogan .line2 {
  margin-left: 30px; /* pomak udesno da bude ispod "team" */
}

.slogan.show {
  opacity: 1;
  transform: rotate(-10deg); /* blagi nagib ulijevo */
}


.hidden {
  display: none;
}

.visible {
  display: block;
  opacity: 1;
  transition: opacity 2s ease-in-out;
}


.logo-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  transition: top 1s ease-in-out, transform 1s ease-in-out;
}

.logo-fly-top ~ .slogan {
  margin-top: 10px;
  margin-left: 91px;
}

.logo-wrapper-top {
  top: 30px;
  transform: translate(-50%, 0); /* zadržava horizontalno centriranje, ali briše vertikalno pomicanje */
}

.logo img {
  height: 70px;
  margin-right: 10px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  padding: 10px;
  display: block;
  font-size: larger;
  font-family: sans-serif;
  font-weight: bold;
}

.nav-links a.active {
  border-bottom: 2px solid #ff0000;
}

.dropdown-content {
  display: none;
  position: absolute;
  text-align: center;
  top: 100%;
  left: 0;
  background: white;
  min-width: 250px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 10;
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown:hover  .dropdown-content {
  display: block;
  
}

.dropdown.show  .dropdown-content {
  display: block;
  
}

.dropdown-content a:hover {
  background-color: #f9f9f9;
  color: #cc0000;
}

.burger {
  display: none;
  font-size: 26px;
  cursor: pointer;
}










/* header */


.highlight-title {
  position: relative;
  display: inline-block;
  font-weight: bold;
  font-size: 3rem;
}

.highlight-title span {
  position: relative;
  z-index: 1;
}

.highlight-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 15px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 20"><path fill="%23e74c3c" d="M5 15 Q150 -5 295 15" stroke-width=\"10\" stroke=\"none\"/></svg>');
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
  pointer-events: none;
}


.hero {
  background-image: url('../img/hero.webp');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 90vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.page-betonski-blokovi .hero {
  background-image: url('../img/beton.jpg');
  background-size: cover;
  background-position: center;
}

.page-reciklazno-dvoriste .hero {
  background-image: url('../img/reciklazno.jpg');
  background-size: cover;
  background-position: center;
}

.page-prometna-oprema .hero {
  background-image: url('../img/signalizacija.jpg');
  background-size: cover;
  background-position: center;
}

.page-proizvodnja-kamenih-materijala .hero {
  background-image: url('../img/kameni_materijali.webp');
  background-size: cover;
  background-position: center;
}
.page-niskogradnja .hero {
  background-image: url('../img/niskogradnja.webp');
  background-size: cover;
  background-position: center;
}
.page-iskopi-bagerom .hero {
  background-image: url('../img/iskopi.jpg');
  background-size: cover;
  background-position: center;
}

.projektiPage .hero {
  background-image: url('../img/igraliste.jpg');
  background-size: cover;
  background-position: center;
}

.odrzavanjaPage .hero {
  background-image: url('../img/odrzavanje.jpg');
  background-size: cover;
  background-position: center;
}

.onamaPage .hero {
  background-image: url('../img/onama.jpg');
  background-size: cover;
  background-position: center;
}

.kontaktPage .hero {
  background-image: url('../img/kontakt-us.jpg');
  background-size: cover;
  background-position: center;
}




.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4); 
  z-index: 1;
}

.hero-content {
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.5rem;
}





/* main */
section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

h2.highlight-title span {
  text-align: center !important;
  position: relative;
  display: inline-block;
  margin: 0 auto 30px;
}


h2.highlight-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 20"><path fill=\"%23e74c3c\" d=\"M5 15 Q150 -5 295 15\" stroke-width=\"10\" stroke=\"none\"/></svg>');
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
}
.intro {
  text-align: center;
}

.intro p {
  margin: 20px auto;
  font-size: 1.2rem;
  max-width: 700px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background-color: #e74c3c;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #c0392b;
}
.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  text-align: center;
}

.stats h2 {
  font-size: 2.5rem;
  color: #e74c3c;
  margin-bottom: 10px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  justify-content: center !important;
}
@keyframes stampIn {
  0% {
    transform: scale(4);
    opacity: 0;
  }
  60% {
    transform: scale(0.95);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.stamp-effect {
  opacity: 0;
  transform: scale(4);
  transition: none;
}

.stamp-effect.active {
  animation: stampIn 0.6s ease-out forwards;
}

.service {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  transition: box-shadow 0.3s, transform 0.3s, background-color 0.3s;
  will-change: transform;
  transform: translateX(0);
  opacity: 1;
}

.service.initial-left {
  transform: translateX(-100vw);
}

.service.initial-right {
  transform: translateX(100vw);
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  background-color: #cc0000;
}

.service:hover h3 {
  color: #fff !important;
}

.service img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 15px;
}

.service h3 {
  margin: 10px 0;
  font-size: 1.8rem;
  text-align: center;
  color: #9a0000 !important;
  transition: color 0.3s;
}

.about,
.projects {
  text-align: center;
}


.projects p {
  margin: 20px auto;
  max-width: 800px;
  font-size: 1.1rem;
}

.btn-secondary {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 25px;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-secondary:hover {
  background-color: #000;
}

.about {
  opacity: 0;
  transform: translateY(150px);
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
  will-change: transform, opacity;
}

.about.visible {
  opacity: 1;
  transform: translateY(0);
}

.about h2 span {
  display: inline-block;
  transition: font-size 0.3s ease-out;
  font-size: 2px; /* početno */
}

.about h2 {
  font-size: 36px;
}






.about p {
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
  transform: translateY(100px);
  opacity: 0;
  font-size: 1.2rem; /* ili npr. 18px */
  line-height: 1.7;
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px;
  margin-top: 1000px;
}

.projects.visible p,
.about.visible p {
  transform: translateY(0);
  opacity: 1;
}



.project p {
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
  transform: translateY(100px);
  opacity: 0;
  font-size: 1.2rem; /* ili npr. 18px */
  line-height: 1.7;
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px;
  margin-bottom: 500px;
}







/* footer */

.main-footer {
  background-color: #fff;
  border-top: 1px solid #ddd;
  padding: 40px 20px 20px;
  font-size: 14px;
}



.footer-logo img {
  height: 120px;
}



.footer-info h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: bold !important;
}

.footer-info p {
  margin: 4px 0;
  font-size: 15px;
}

.footer-info a {
  color: inherit;
  text-decoration: none;
  font-size: 15px ;
}

.footer-info a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  color: #555;
}
.footer-bottom a {
  
  color: #8b0000;
}




.footer-container {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px 20px;
}



.footer-info {
  display: flex;
  justify-content: center;
  gap: 100px;
}

.footer-info div {
  min-width: 100px;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  min-height: 250px;
  border-radius: 10px;
}




/* Animacija fade-in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 2s ease forwards;
}

/* Odgode */
.delay-1s {
  animation-delay: 1s;
}

.delay-2s {
  animation-delay: 3s;
}

/* Desktop – veći fontovi */
@media (min-width: 1024px) {
  .hero-content h1 {
    font-size: 4rem;
  }

  .hero-content p {
    font-size: 2rem;
  }
}














































/* About sekcija*/

/* HERO sekcija */
.about-hero {
  
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  text-align: center;
  color: rgb(0, 0, 0);
  position: relative;
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
 
  z-index: 1;
}

.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.about-hero-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.about-hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #000000;
}

/* FLEX layout za sekcije */
.about-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.about-flex.reverse {
  flex-direction: row-reverse;
}









/* Dodatni stilovi */
.about-values h2 {
  text-align: center;
  margin-bottom: 40px;
}





/*Usluge*/



.service-page {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-intro .service-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.service-text {
  flex: 1 1 500px;
}

.service-text h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

.service-text p {
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 1.1rem;
}

.service-image {
  flex: 1 1 400px;
}

.service-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}


.service-image-beton img {
  width: 62%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}








/*animacija*/

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}



/*Forma*/

.contact-section {
  padding: 60px 20px;
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.contact-form button {
  background-color: #cc0000;
  color: white;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  width: fit-content;       
  margin: 0 auto;   
}

.contact-form button:hover {
  background-color: #750000;
}

.form-feedback {
  margin-top: 20px;
  font-weight: bold;
  color: green;
}



/*Galerija slika za usluge*/
.gallery-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap; /* omogućuje prijelom samo ako *mora* */
  padding: 2rem 1rem;
}

.gallery-item {
  width: 22%; /* 4 u jednom redu + gap */
  min-width: 200px; /* sprječava premale slike */
  text-align: center;
}

.gallery-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-img:hover {
  transform: scale(1.05);
}

.gallery-caption {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #333;
}

  /* Modal background */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

/* Modal content (slika centrirana i velika) */
.modal-content {
  margin: auto;
  display: block;
  max-width: 600px;
  max-height: 400px;
  width: 100%;
  height: 100%;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Close gumb */
.close-modal {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
}

/* Navigacija lijevo/desno */
.modal-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
  z-index: 1000;
  box-sizing: border-box;
}

.modal-nav span {
  font-size: 40px;
  color: white;
  
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.3s;
  box-sizing: border-box;
}

.modal-nav span:hover {
  background: rgba(0, 0, 0, 0.6);
}


/*---------Projekt---------*/
.project-card {
  max-width: 600px;
  margin: 40px auto;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.slider {
  position: relative;
  overflow: hidden;
}

.slides img {
  width: 100%;
  display: none;
  border-radius: 8px;
}

.slides img.active {
  display: block;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 20px;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }



.search-bar {
  padding: 20px;
  text-align: center;
}

#searchInput {
  width: 90%;
  max-width: 500px;
  padding: 10px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
}


@media (max-width: 1024px) {
  .modal-content {
  margin: auto;
  display: block;
  max-width: 300px;
  max-height: 200px;
  width: 100%;
  height: 100%;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}
}


/*Projekti*/

.projects-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}
.project-card {
  width: 350px;
  background: #f8f8f8;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.slider {
  position: relative;
  overflow: hidden;
}
.slides img {
  width: 100%;
  display: none;
}
.slides img.active {
  display: block;
}
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}
.prev { left: 10px; }
.next { right: 10px; }
#searchInput, #searchDate {
  margin: 10px;
  padding: 5px;
  width: 200px;
}


@media (min-width: 992px) {
  .project-card {
    width: 962px;
    height: auto;
  }
  .project-card img {
  width: 100%;
  height: 300px; 
  object-fit: cover;
  border-radius: 8px;
}
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
}

.slides img {
  width: 100%;
  flex-shrink: 0;
  height: 488px;
  object-fit: cover;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 2;
  border-radius: 4px;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.project-title {
  margin-top: 20px;
  font-size: 1.5rem;
}

.project-description {
  font-size: 1rem;
  color: #555;
  margin-top: 10px;
}



.project-card { border: 1px solid #ccc; margin: 10px; padding: 15px; }
    .slides img { max-width: 100%; height: auto; display: none; }
    .slider { position: relative; }
    .slider button { position: absolute; top: 50%; transform: translateY(-50%); background: #000; color: white; border: none; padding: 5px; cursor: pointer; z-index: 1; }
    .slider .prev { left: 0; }
    .slider .next { right: 0; }










/*-----------ADMIN--------*/

form {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 1rem;
}

input[type="text"],
textarea,
input[type="date"],
input[type="file"] {
  width: 100%;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.btn {
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  cursor: pointer;
  background-color: #ff0000;
  border: none;
  border-radius: 6px;
  color: white;
  margin-right: 10px;
}

.btn:hover {
  background-color: #8b0000;
}

.search-bar {
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 10px;
}

.search-bar input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  flex: 1;
}

.project-list {
  margin-top: 2rem;
}


.project-item {
  border: 1px solid #ddd;
  background-color: #fff;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.project-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin: 5px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.project-item div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}



.odrzavanje-item {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 20px auto;
  width: 90%;
  max-width: 800px;
  transition: transform 0.2s;
}

.odrzavanje-item:hover {
  transform: scale(1.01);
}

.odrzavanje-item h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #333;
}

.odrzavanje-item p {
  margin-bottom: 8px;
  color: #555;
}

.odrzavanje-item img {
  width: 100%;
  max-width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.odrzavanje-item .btn {
  margin-top: 10px;
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}

.odrzavanje-item .btn:hover {
  background-color: #c0392b;
}

.odrzavanje-item .img-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}










/*-----------about sekcija----------*/

.about {
  position: relative;
  overflow: hidden;
  min-height: 260vh; /* da imaš mjesta za scroll */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.crane-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1000;
}

/* KRAN ulazi s desne strane */
.crane {
  position: absolute;
  top: 130px;
  left: -1200px; /* ✅ početna pozicija daleko lijevo */
  width: 62%;
  opacity: 1;
  transition: none; /* onemogućimo transition jer koristimo scroll za pomicanje */
}


.hook-line {
  position: absolute;
  top: 284px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 0;
  background-color: #555;
  z-index: 1;
}

.hook-title {
  position: absolute;
  top: 246px;
  left: 50%;
  transform: translate(-50%, 0px);
  opacity: 1;
  z-index: 2;
  font-size: 2.5rem;
  font-weight: bold;
  transition: none;
}








.about-section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: auto;
}

.about-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 150px;
  overflow: hidden;
  position: relative;
}

.about-block.reverse {
  flex-direction: row-reverse;
}

.about-text,
.about-image {
  flex: 1;
  padding: 20px;
  min-width: 280px;
  will-change: transform;
}

.about-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.2rem; /* ili npr. 18px */
  line-height: 1.7;
  max-width: 800px;
  margin: 0;
  padding: 0 20px;
  margin-left: -20px;
}

.about-image img {
  max-width: 100%;
  display: block;
}



















/* Responsive */
@media (max-width: 768px) {

  .navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
  }
  .burger {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
    background: #fff;
    padding-top: 10px;
  }

  .nav-links.show {
    display: flex;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
  }

  
  .dropdown.show  .dropdown-content {
    display: block;
    
  }

  .dropdown:focus-within .dropdown-content {
    display: block;
  }
  .logo-fly-top {
  top: 20px;
  transform: translateX(-50%);
  width: 350px;
}
.slogan-img {
  width: 200px;
  height: auto;
}


  .service-row-bottom {
    flex-direction: column;
    align-items: center;
  }

  .service-row-bottom .service {
    width: 90%;
    max-width: 340px;
  }


   .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-info {
    flex-direction: column;
    align-items: center;
  }

  .about-flex,
  .about-flex.reverse {
    flex-direction: column;
    text-align: center;
  }

  .about-text, .about-image {
    max-width: 100%;
  }


  .service-intro .service-content {
    flex-direction: column;
    text-align: center;
  }

  .service-image img {
    max-width: 100%;
    margin: 0 auto;
  }

  .service-image-beton img {
    max-width: 100%;
    margin: 0 auto;
  }


   .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-info {
    flex-direction: column;
    align-items: center;
  }

  .footer-map {
    margin-top: 20px;
  }

  .hero {
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* vrlo važno za mobile */
    height: 90vh;
  }




  .about-block,
  .about-block.reverse {
    flex-direction: column;
  }


    .gallery-row {
    flex-direction: column;
    align-items: center;
  }

  .gallery-item {
    max-width: 90%;
  }


.footer-logo img {
  height: 89px;
}


.crane {
  position: absolute;
  top: 233px;
  left: -1200px;
  width: 96%;
  opacity: 1;
  transition: none;
}
}