* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  background-image: url('images/ozadje.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ffffff;
  line-height: 1.6;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style-type: none;
}

/* NAVBAR & LOGO */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  padding: 5px 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 1001;
  height: 60px;
}

.navbar img {
  height: 50px;
  width: auto;
  margin-right: 15px;
}

.hamburger {
  font-size: 28px;
  cursor: pointer;
  color: white;
  margin-right: 15px;
}

/* Sidebar */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #1e2a38;
  overflow-x: hidden;
  transition: width 0.4s ease;
  z-index: 1100;
}

.sidebar.open {
  width: 250px;
}

.sidebar a {
  display: block;
  padding: 15px 30px;
  color: white;
  font-weight: 500;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
}

.sidebar a:hover {
  background: #2c3e50;
  border-left: 4px solid #00bcd4;
}

.closebtn {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 22px;   /* Smaller size */
  color: white;
  cursor: pointer;
  z-index: 1200;
  padding: 0;
  margin: 0;
  line-height: 1;    /* Prevent extra height */
}

/* HEADER */
header {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}

header h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.1rem;
}

/* CONTENT */
.content {
  max-width: 1200px;
  margin: auto;
  flex: 1 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* ABOUT */
.about-section {
  text-align: center;
  margin-bottom: 60px;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.about-section p {
  max-width: 700px;
  margin: auto;
  font-size: 1.1rem;
  color: #dddddd;
}

.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
  gap: 15px;
}

.features li {
  background: white;
  color: #333;
  padding: 10px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-weight: 500;
}

/* SERVICES */
.services-section {
  text-align: center;
  margin-bottom: 60px;
}

.services-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  background-size: cover;
  background-position: center;
  height: 300px;
  border-radius: 15px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  position: relative;
  color: white;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.service-overlay {
  background: rgba(0,0,0,0.6);
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  color: #ffffff;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

/* FOOTER - STICKY */
footer {
  background: #1e1e1e;
  color: white;
  padding: 10px 0;
  text-align: center;
  font-size: 0.9rem;
  margin-top: auto;
  flex-shrink: 0;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  .main-overlay {
    padding: 30px;
  }

  .main-overlay h1 {
    font-size: 2rem;
  }

  .hamburger {
    font-size: 32px;
  }

  .features {
    flex-direction: column;
    gap: 10px;
  }

  .navbar img {
    height: 40px;
  }

  .navbar {
    height: 50px;
  }
}

/* === Slider section === */
.slider {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 40px auto;
  padding: 10px 0;
  background: rgba(0,0,0,0.5);
  border-radius: 10px;
}

.slider-track {
  display: flex;
  width: calc(250px * 10); /* prilagodi glede na št. slik */
  animation: scrollSlider 25s linear infinite;
}

.slider-track img {
  width: 250px;
  height: auto;
  margin-right: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

/* Animacija */
@keyframes scrollSlider {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* === Neskončen slikovni slider === */
.slider {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.slider-track {
  display: flex;
  width: calc(250px * 3); /* 6 slik po 250px */
  animation: scrollSlider 12s linear infinite;
}

.slider-track img {
  width: 250px;
  height: auto;
  margin-right: 20px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes scrollSlider {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* === Fade Slider === */
.fade-slider {
  position: relative;
  max-width: 400px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 10px;
}

.fade-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.fade-slide img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.fade-slide.active {
  opacity: 1;
  position: relative;
}

.site-footer {
  background-color: #222;
  color: #fff;
  padding: 40px 20px 20px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1;
  min-width: 220px;
}

.footer-column h3 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #fff;
}

.footer-column p,
.footer-column a {
  margin: 5px 0;
  color: #ddd;
  text-decoration: none;
}

.footer-column a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 13px;
  color: #aaa;
}

.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 1rem;
}

.contact-form, .contact-details {
  flex: 1 1 300px;
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.contact-form h2, .contact-details h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #222;
}

.contact-form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

/* === POPRAVLJENI VNOSNI KVADRATKI === */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: 2px solid #000; /* črna obroba */
  border-radius: 8px;
  font-size: 1rem;
  background-color: #fff; /* bela podlaga */
  color: #000; /* črno besedilo */
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #555; /* temnejši placeholder */
  opacity: 1;
}

.contact-form button {
  margin-top: 1.5rem;
  background-color: #003366;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #0055aa;
}

.contact-details p, .contact-details a {
  margin: 0.5rem 0;
  color: #444;
  text-decoration: none;
}

.contact-details iframe {
  border-radius: 8px;
  margin-top: 1rem;
}


/* === MODERN TEXT BUBBLE === */
.main-overlay {
  background: rgba(0, 0, 0, 0.6); /* semi-transparent dark overlay */
  padding: 30px 20px;
  border-radius: 15px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px); /* glassy effect */
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh; /* less empty top space */
  text-align: center;
}

/* Make text slightly larger and brighter */
header h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: #fff;
}

header h2, header p {
  color: #f1f1f1;
  margin-bottom: 10px;
}

/* === SECTIONS WITH BUBBLES === */
.about-section,
.services-section {
  background: rgba(0, 0, 0, 0.6);
  padding: 40px 20px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  margin-bottom: 50px;
}

/* Update features cards to be cleaner */
.features li {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: #222;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Services cards hover */
.service-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}


/* --- Header & Main Overlay --- */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh; /* reduce top spacing */
  padding: 25px 10px;  /* less top/bottom padding */
}

.main-overlay {
  padding: 20px 15px; /* smaller padding inside the overlay */
  max-width: 650px;
  margin: 0 auto;
}

header h1 {
  font-size: 2.4rem;
  margin-bottom: 5px; /* reduce space below title */
}

header p {
  font-size: 1rem;
  margin-bottom: 10px; /* reduce space between subtitle and text */
}

/* --- About / Main Text Section --- */
.about-section {
  padding: 30px 15px;  /* less padding */
  margin-bottom: 30px; /* less space below section */
}

.about-section h2 {
  font-size: 1.8rem;
  margin-bottom: 10px; /* reduce space between heading and first paragraph */
}

.about-section p {
  max-width: 700px;
  margin: 10px auto; /* less vertical spacing */
  font-size: 1.05rem;
}

/* --- Fade Slider --- */
.fade-slider {
  margin: 20px auto; /* less space between text and slider */
  max-width: 400px;
}

/* --- Footer --- */
.site-footer {
  padding: 20px 15px; /* slightly tighter */
}

/* Optional: reduce spacing in services/features sections if present */
.services-section, .features {
  margin-bottom: 30px;
  padding: 25px 15px;
}

.modern-footer {
  background: #222;
  color: #f5f5f5;
  padding: 40px 0 10px 0;
  font-size: 1rem;
  margin-top: 100px;
}

.modern-footer .footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 32px;
}

.modern-footer .footer-column {
  flex: 1 1 220px;
  min-width: 220px;
}

.modern-footer h3 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 1.1em;
  letter-spacing: 1px;
}

.modern-footer a {
  color: #f5f5f5;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modern-footer a:hover {
  color: #009688;
}

.footer-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  filter: invert(1);
}

.modern-footer a {
  color: #f5f5f5;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center; /* Center icon and text horizontally */
  gap: 8px;
}