
/*front page*/
/* Hero sadržaj */
.hero-banner {
    position: relative;
    height: 80vh;
    max-height: 650px;
   /* background: linear-gradient(135deg, rgba(180, 2, 2, 0.7) 0%, rgba(255, 0, 0, 0.8) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="construction" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><rect fill="%23f8f9fa" width="100" height="100"/><path d="M10 10h80v80h-80z" fill="none" stroke="%23dee2e6" stroke-width="2"/></pattern></defs><rect width="1000" height="1000" fill="url(%23construction)"/></svg>') center/cover;
    */
    background:
            url('images/hero.jpg') center/cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    margin-bottom: 30px;
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.35); 
}
.about{
    max-height: 450px;
    background:
            url('images/o-nama.webp') center/cover no-repeat;
}
.usluge{
    max-height: 450px;
    background:
            url('images/struktura.webp') center/cover no-repeat;
}
@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 80%;
    padding: 3rem;
    background-color: transparent;
    background: rgba(0, 0, 0, 0.3);
    
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideInUp 1s ease-out;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.3s both;
    color: #fff;
}
/* Modern Button Styles */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
  border-radius: var(--radius, 8px);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  margin-top: 15px;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.button:hover::before {
  left: 100%;
}

.button-primary {
  background: var(--osnovna-boja, #df0024);
  box-shadow: 0 4px 15px rgba(252, 58, 58, 0.4);
  color: #fff;
  margin: 15px auto 0 auto;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(211, 1, 1, 0.6);
  background: linear-gradient(135deg, var(--dopunska-boja, #000), var(--osnovna-boja, #df0024));
  color: var(--light, #ffffff);
}

.button-primary:active {
  transform: translateY(0);
  transition: transform 0.1s;
}

/* About Section - Enhanced */
.about-us, .services, .projects, .advantages {
  padding: 80px 20px;
  text-align: center;
  background: #f9f9f9;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.about-us h2, .services h2, .projects h2, .advantages h2 {
  margin-bottom: 20px;
  font-weight: 700;
  color: #222;
}

.about-us p {
  max-width: 700px;
  margin: 0 auto 40px;
  color: #555;
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1rem, 4vw, 2rem);
  margin: 2rem 0;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--light, #ffffff);
  border-radius: var(--radius, 8px);
box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.stat strong {
  font-size: 3.2rem;
  font-weight: 700;
  display: block;
  background: var(--osnovna-boja, #fd0000);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}
.stat span {
  font-size: 1.5rem;
  color: #666;
  letter-spacing: 0.5px;
}
/* Animacija pojavljivanja */
.stat:hover {
   transform: translateY(-10px)
}
/* Services - Modern Grid */
 
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  padding: 1rem 0;
}

.service {
  padding: 2rem;
  border-radius: calc(var(--radius, 8px) * 1.5);
  text-align: center !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
   background: var(--light, #ffffff);
box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}

.service::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--osnovna-boja, #3b82f6), var(--dopunska-boja, #1d4ed8));
  transition: left 0.3s ease;
}

.service:hover::before {
  left: 0;
}

.service:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service i {
  font-size: 3rem;
  background: var(--osnovna-boja, #fd0000);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.service:hover i {
  transform: scale(1.1);
}
/* /* Modern Dashicons Styling for Construction Services */
.service i.dashicons {
    font-family: "Dashicons" !important;
    font-style: normal;
    display: inline !important;
}
/* Base icon container styling */
.service i.dashicons, .service i.dashicons:before, .dashicons, .dashicons-before:before{
  font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
  margin-bottom: 1.5rem;
  display: inline-block;
  position: relative;
  transition: all 0.4s ease;
  background: var(--osnovna-boja, #fd0000);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
}
/* Glow background circle */
.service i.dashicons::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: -1;
}

.service:hover i.dashicons {
  transform: scale(1.1) rotateY(10deg);
}
/* Detaljne usluge sa slikama */
.usluga-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.usluga-image {
    background: #f5f5f5;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.usluga-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.usluga-detail:hover .usluga-image img {
    transform: scale(1.05);
}

.usluga-content h3 {
    color: var(--osnovna-boja);
    margin-bottom: 1rem;
}

.usluga-detail.reverse h3 {
    color: var(--dopunska-boja);
}

.usluga-content ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.usluga-content ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.usluga-content ul li:last-child {
    border-bottom: none;
}

.usluga-content ul li i {
    color: var(--osnovna-boja);
    margin-right: 0.5rem;
}

.usluga-detail.reverse ul li i {
    color: var(--dopunska-boja);
}
.cta{
    padding: 2rem;
    text-align: center; 
    max-width: 700px; 
    margin: 2rem auto 2rem auto;
}
/* Reverse layout za desktope */
.usluga-detail.reverse {
    direction: rtl;
}

.usluga-detail.reverse > * {
    direction: ltr;
}

/* Responsive - Tablet (do 768px) */
@media (max-width: 768px) {
    .usluga-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .usluga-detail.reverse {
        direction: ltr;
    }
    
    .usluga-image {
        height: 250px;
    }
}

/* Responsive - Mobile (do 480px) */
@media (max-width: 480px) {
    .usluga-detail {
        gap: 1.5rem;
    }
    
    .usluga-image {
        height: 200px;
    }
    
    .usluga-content ul li {
        font-size: 0.9rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .service i.dashicons {
    font-size: 2.5rem !important;
    margin-bottom: 1rem;
  }
  .service i.dashicons::after {
    width: 60px;
    height: 60px;
  }
}

/* Projects */
.projects {
  background: var(--dopunska-boja);  
  margin-bottom: 30px;
}
.projects h2{
  color: #fff;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
  max-width: calc(5 * 280px + 4 * 20px);
  margin-left: auto;
  margin-right: auto;
}

.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-link {
  display: block;
  position: relative;
  height: 100%;
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0;
  text-align: center;
}

.project-overlay h3 {
  position: relative;
  display: inline-block;
  padding: 10px 15px;
  color: #fff;
  z-index: 1;
}

.project-overlay h3::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.7),
    rgba(0,0,0,0.3)
  );
  z-index: -1;
  border-radius: 4px;
}

.project-item:hover img {
  transform: scale(1.1);
}

.project-item:hover {
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.85));
}
.dashicons{
  width: auto !important;
    height: auto !important;
}

/* Advantages - Modern Cards */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}

.advantage {
  background: var(--light, #ffffff);
  padding: 2rem;
  border-radius: calc(var(--radius, 8px) * 1.5);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.advantage::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--dopunska-boja, #1d4ed8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

.advantage:hover::before {
  opacity: 0.1;
}

.advantage:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.advantage i {
  font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
  background: var(--osnovna-boja, #fd0000);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}
.advantage img {
  width: 100%; 
  height: 100%; 
  object-fit: cover;
}
.advantage ul {
 list-style: none; 
 padding: 0; 
 margin: 1.5rem 0;
}
.advantage ul li{
 padding: 0.5rem 0; 
 border-bottom: 1px solid #e0e0e0; 
 display: flex; 
 align-items: center; 
 gap: 0.5rem;
}
/* Contact - Enhanced Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.contact-form {
  background: var(--light, #ffffff);
  padding: clamp(2rem, 4vw, 2.5rem);
  border-radius: calc(var(--radius, 8px) * 1.5);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--osnovna-boja, #3b82f6), var(--dopunska-boja, #1d4ed8));
  border-radius: var(--radius, 8px) var(--radius, 8px) 0 0;
}

.contact-map {
  position: relative;
  border-radius: calc(var(--radius, 8px) * 1.5);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: calc(var(--radius, 8px) * 1.5);
  transition: filter 0.3s ease;
}

.contact-map:hover iframe {
  filter: saturate(1.1) contrast(1.05);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat strong {
    font-size: 1.8rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .projects-filter {
    padding: 0 1rem;
  }
  
  .projects-filter button {
    font-size: 0.875rem;
    padding: 0.6rem 1.2rem;
  }
}

@media (max-width: 480px) {
   .hero-banner {
    height: auto;
    min-height: 300px;
    padding: 1rem;
  }

  .hero-content {
    max-width: 95%;
    padding: 1.5rem;
    border-radius: 12px;
  }

  .hero-content h1 {
    margin-bottom: 1rem;
  }

  .hero-content p {
    margin-bottom: 1.5rem;
  }

  .button {
    width: 100%;              /* dugme full width */
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
  
  .services-grid,
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  
  .projects, .services, .advantages {
    padding: 20px 10px;
  }

  .projects h2 {
    text-align: center;
  }
.stats-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr; 
    gap: 15px;
  }

  .project-overlay {
    padding: 15px;
  }

  .dashicons {
    width: 40px;
    height: 40px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .service,
  .advantage,
  .contact-form {
    background: var(--dark-card, #1f2937);
    color: var(--light, #ffffff);
  }
  
  .stat {
    background: var(--dark-card, #1f2937);
    color: var(--light, #ffffff);
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
.button:focus-visible,
.projects-filter button:focus-visible {
  outline: 2px solid var(--dopunska-boja, #1d4ed8);
  outline-offset: 2px;
}
/*kraj*/
.service img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

