/* === GLOBAL === */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #121212;
  color: #e0e0e0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 80px 0;
}

/* === HEADER === */
.main-header {
  background: #1e1e1e;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  color: #4dabf7;
  font-weight: 600;
  font-size: 22px;
}
nav a {
  color: #ccc;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  transition: color .2s, border-color .2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 5px;
}
nav a:hover {
  color: #4dabf7;
}
nav a.active {
  color: #4dabf7;
  border-color: #4dabf7;
}

/* === HERO === */
.hero-modern {
  background: linear-gradient(180deg, #0d47a1, #121212);
  position: relative;
  text-align: center;
  color: #fff;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  padding: 100px 20px;
}
.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 600;
}
.hero-content .highlight {
  color: #4dabf7;
}
.hero-content p {
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
  color: #cfcfcf;
}
.btn-primary {
  background: #4dabf7;
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.btn-primary:hover {
  background: #64b5f6;
  transform: translateY(-2px);
}

/* === SECTIONS === */
.about-ntc {
  background: #1e1e1e;
  text-align: center;
}
.about-ntc p {
  max-width: 800px;
  margin: 0 auto 15px;
  color: #ccc;
  line-height: 1.7;
}

/* === PRODUCTS === */
.featured-products {
  background: #181818;
  text-align: center;
}
/* === FIXED PRODUCT CARD ALIGNMENT === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  align-items: stretch; /* sve kartice iste visine */
}

.product-card {
  background: #1f1f1f;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* poravnava tekst i cijenu */
  align-items: center;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  min-height: 360px; /* osigurava stabilnu visinu */
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.6);
}

.product-card a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  width: 100%;
}

.product-card img {
  width: 100%;
  height: 200px;               /* sve slike iste visine */
  object-fit: contain;         /* prikaži cijelu sliku */
  background: #141414;         /* neutralna pozadina */
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 8px;                /* malo prostora oko slike */
}


.product-card h4 {
  margin: 10px 0 6px;
  font-weight: 500;
  font-size: 1rem;
  color: #fff;
  min-height: 48px; /* sprječava skakanje ako je naziv kraći */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.product-card .price {
  color: #4dabf7;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: auto;
  padding-top: 10px;
}
.short-desc {
  font-size: 0.9rem;
  color: #bbb;
  margin: 6px 0 10px;
  line-height: 1.5;
  min-height: 48px; /* sprječava skakanje visine */
}

/* === BENEFITS === */
.alt-bg {
  background: #1e1e1e;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 15px;
  margin-top: 30px;
}
.benefit-item {
  background: #2a2a2a;
  border-radius: 8px;
  padding: 15px 20px;
  text-align: center;
  transition: background .2s;
}
.benefit-item:hover {
  background: #333;
}

/* === CTA === */
.contact-cta {
  background: #181818;
  text-align: center;
}
.btn-secondary {
  background: #388e3c;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn-secondary:hover {
  background: #4caf50;
  transform: translateY(-2px);
}

/* === FOOTER === */
.main-footer {
  background: #0f0f0f;
  color: #aaa;
  text-align: center;
  padding: 30px 0;
  font-size: 14px;
}
.footer-links a {
  color: #777;
  margin: 0 10px;
  text-decoration: none;
}
.footer-links a:hover {
  color: #4dabf7;
}
.ntc-radionice {
  background: #1e1e1e;
  text-align: center;
}

.ntc-radionice h3 {
  color: #4dabf7;
  font-size: 1.9rem;
  margin-bottom: 20px;
}

.ntc-radionice p {
  max-width: 850px;
  margin: 0 auto 20px;
  color: #ccc;
  line-height: 1.7;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.workshop-card {
  background: #2a2a2a;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workshop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.6);
}

.workshop-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #141414;
  border-radius: 8px;
  margin-bottom: 12px;
}

.workshop-card h4 {
  color: #fff;
  margin-bottom: 8px;
}

.workshop-card p {
  color: #bbb;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ntc-radionice .btn-primary {
  margin-top: 20px;
  padding: 12px 28px;
  font-size: 1rem;
}


/* === MOBILE === */
@media (max-width: 768px) {
  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero-content h2 {
    font-size: 1.8rem;
  }
  .section {
    padding: 60px 20px;
  }
}
/* === HERO CAROUSEL === */
.hero-carousel {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.slide.active {
  opacity: 1;
  z-index: 2;
}

.overlay {
  background: rgba(0, 0, 0, 0.55);
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text {
  text-align: center;
  color: #fff;
  max-width: 700px;
  padding: 20px;
  animation: fadeIn 1s ease;
}
.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #4dabf7;
}
.hero-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ddd;
  margin-bottom: 25px;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* === MOBILE MENU === */
.menu-toggle {
  background: none;
  border: none;
  color: #4dabf7;
  font-size: 28px;
  cursor: pointer;
  display: none;
  transition: transform 0.3s ease;
}
.menu-toggle.active {
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #1e1e1e;
    flex-direction: column;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  nav.open {
    max-height: 300px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.5);
  }
  nav a {
    padding: 12px;
    display: block;
    margin: 0;
    border-bottom: 1px solid #2a2a2a;
  }
}
