/* Global */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: #222;
  background: #f8f9fb;
}

h1,
h2,
h3 {
  font-weight: 700;
  margin-bottom: 15px;
}

p {
  line-height: 1.6;
}

* {
  scroll-behavior: smooth;
}

/* Hero */
.hero-section {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-section img {
  position: absolute;
  top: 0;
  height: 60vh;
  width: 100%;
  object-fit: cover;
  filter: blur(3px) brightness(0.5);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.card h3,
.card p {
  color: black;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn {
  background: #007bff;
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #0056b3;
}

/* About */
.about {
  padding: 60px 10%;
  text-align: center;
  background: linear-gradient(135deg, #0054ad, #004691);
}

.about h2 {
  font-family: "stubi", arial;
  color: transparent;
  font-size: 40px;
  -webkit-text-stroke: 1px #3c97ff;
  background-image: url("../img/line1.png");
  background-clip: text;
  animation: stubi 10s linear infinite;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  margin-top: 40px;
}

.features .card {
  flex: 0 1 260px;
  max-width: 300px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-10px);
}

.card i {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #007bff;
}

/* Gallery */

#glide,
#glide2 {
  width: 45%; /* uži slider */
  max-width: 700px; /* da ne ide previše široko */
  margin: auto;
  height: 85vh; /* visina veća od širine */
  overflow: hidden;
}

#glide3 {
  width: 45%; /* uži slider */
  max-width: 600px;
  margin: auto;
  height: auto;
  transform: scale(0.7);
}

.glide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* popunjava visinu i širinu bez razvlačenja */
  display: block;
  border-radius: 16px;
  transition: transform 0.5s ease;
}

.glide__slide img:hover {
  transform: scale(1.05);
}

/* Responsive */
@media screen and (max-width: 1000px) {
  #glide,
  #glide2 {
    width: 55%;
    height: 45vh;
  }
  #glide3 {
    width: 75%; /* uži slider */
    margin: auto;
    height: auto; /* visina veća od širine */
    transform: scale(1);
  }
}

@media screen and (max-width: 600px) {
  #glide,
  #glide2 {
    width: 90%; /* skoro cela širina na telefonu */
    height: 50vh; /* i dalje dosta visine */
  }
}

.glide__slide:hover img {
  transform: scale(1.05); /* blagi zoom na hover */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
}
.slide-content {
  position: relative;
  overflow: hidden;
}

/* Sections */

.section-divider {
  overflow: hidden;
  line-height: 0;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: 80px; /* visina talasa */
}

.installation-section {
  padding: 60px 10%;
  background: #f8f9fb;
  text-align: center;
  margin-top: 40px;
}

.installation-section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #007bff;
}

.installation-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.installation-section .features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  justify-content: center;
}

#glide,
#glide2 {
  margin-top: 50px;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, #007bff, #0056b3);
  text-align: center;
  padding: 60px 20px;
  color: white;
}

.cta-section h2 {
  color: white;
  margin-bottom: 20px;
}

/* Footer adjustments */
.footer-bottom {
  margin-top: 30px;
  text-align: center;
  color: #ccc;
}

.mini-nav {
  display: flex;
  flex-direction: column; /* horizontalno */
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 12px 20px;
  background: #ffffff;
  border-radius: 50px; /* za lep “pill” izgled */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
  margin: -40px auto 40px; /* lebdi između sekcija */
  width: fit-content;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 50px;
}

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

.mini-nav .nav-link {
  text-decoration: none;
  color: #007bff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 30px;
  transition: all 0.3s ease;
  background: #f1f3f6;
  position: relative;
  overflow: hidden;
}

.mini-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: rgba(0, 123, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: -1;
}

.mini-nav .nav-link:hover::after {
  width: 200%;
  height: 500%;
}

.mini-nav .nav-link:hover {
  color: white;
  background: #007bff;
  transform: translateY(-3px);
}

/* --- Specs List --- */
.specs-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.specs-section h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.specs-section p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
}

.specs-wrapper {
  position: relative;
}

.specs-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  max-height: 300px; /* inicijalna visina sa skrivenim delom */
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.specs-list li {
  background: #fff;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.specs-list li::before {
  content: "✓";
  display: inline-block;
  margin-right: 10px;
  color: #007bff;
  font-weight: bold;
  font-size: 1.2rem;
}

.specs-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.toggle-specs-btn {
  margin-top: 20px;
  padding: 10px 25px;
  font-size: 1rem;
  border: none;
  border-radius: 30px;
  background: #007bff;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.toggle-specs-btn:hover {
  background: #0056b3;
  transform: scale(1.05);
}
