/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9fafb;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.logo img {
  height: 4rem;
  width: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link:hover {
  color: #2563eb;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  min-width: 12rem;
  z-index: 1001;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.dropdown-menu.hidden {
  display: none;
}

.dropdown-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: #374151;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f3f4f6;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  margin-left: 1rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  min-width: 10rem;
  z-index: 1001;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.lang-menu.hidden {
  display: none;
}

.lang-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-item {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  text-align: left;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lang-item:hover {
  background-color: #f3f4f6;
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: #374151;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1rem;
}

.section-subtitle-small {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 42rem;
  margin: 0 auto;
}

.section-divider {
  width: 5rem;
  height: 0.25rem;
  background-color: #2563eb;
  margin: 0 auto 1.5rem;
}

/* Make "Storitve" button look like the other nav links */
.nav-desktop .dropdown-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem; /* small space between text and arrow */

  /* force the same thickness as .nav-link */
  font-weight: 500 !important;
  color: #374151;
}

/* Optional: remove the default focus outline, or style it your way */
.nav-desktop .dropdown-btn:focus {
  outline: none;
}


/* Services Section */
.services {
  padding: 5rem 0;
  background-color: white;
}

.service-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.1);
}

.service-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-icon img {
  height: 4rem;
  width: 4rem;
  object-fit: contain;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.service-description {
  color: #6b7280;
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: #f3f4f6;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.about-text {
  flex: 1;
}

.about-paragraph {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.about-image {
  flex: 1;
}

.image-container {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 1.5rem;
  padding-top: 4rem;
}

.overlay-title {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.overlay-text {
  color: #d1d5db;
}

/* Map Section */
.footprint {
  padding: 5rem 0;
  background-color: white;
}

.map-container {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map {
  height: 520px;
  width: 100%;
}

/* Stats Section */
.stats {
  padding: 5rem 0;
  background-color: #f3f4f6;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #111827;
  margin: 0.5rem 0;
  font-variant-numeric: tabular-nums;
}

.stat-description {
  color: #6b7280;
}

/* Technologies Section */
.technologies {
  padding: 5rem 0;
  background-color: white;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.tech-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.tech-item:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.tech-item img {
  height: 3rem;
  object-fit: contain;
}

/* Projects Section */
.projects {
  padding: 5rem 0;
  background-color: #f3f4f6;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.project-card {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
}

.project-card img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0.7;
}

.project-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1.5rem;
}

.project-title {
  color: white;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.project-description {
  color: #d1d5db;
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.project-badge span {
  background-color: #2563eb;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.projects-cta {
  text-align: center;
}

/* Partners Section */
.partners {
  padding: 5rem 0;
  background-color: white;
}

.partner-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.partner-slide img {
  height: 5rem;
  object-fit: contain;
}

/* CTA Section */
.cta {
  padding: 4rem 0;
  background-color: #1f2937;
  color: white;
}

.cta-content {
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* CTA three-column layout with side logo rails */
.cta-row {
  display: grid;
  grid-template-columns: 1fr minmax(0, 3fr) 1fr; /* left logos | text | right logos */
  align-items: center;
  gap: 2rem;
}

.cta-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-rail img {
  max-width: 250px;     /* controls width */
  max-height: 90px;     /* controls height */
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.2 ease;
}

.cta-rail img:hover {
  transform: scale(1.05);
}

/* Hide side logos on smaller screens to keep the CTA clean */
@media (max-width: 1024px) {
  .cta-row { grid-template-columns: 1fr; }
  .cta-rail { display: none; }
}


/* Button Styles */
.btn-primary {
  background-color: #2563eb;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  background-color: white;
  color: #1f2937;
}

.btn-secondary {
  background-color: #f3f4f6;
  color: #1f2937;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #d1d5db;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-secondary:hover {
  background-color: #e5e7eb;
}

/* Footer */
.footer {
  background-color: #111827;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-column h3 {
  margin-bottom: 1.5rem;
}

.footer-logo {
  height: 3rem;
  margin-bottom: 1.5rem;
}

.footer-description {
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: #9ca3af;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: white;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.contact-info {
  list-style: none;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #9ca3af;
}

.contact-item i {
  color: #2563eb;
  margin-top: 0.125rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
}

.copyright {
  color: #9ca3af;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #2563eb;
  color: white;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.back-to-top:hover {
  background-color: #1d4ed8;
}

.back-to-top.show {
  display: flex;
}

/* Swiper Customization */
.swiper-button-prev,
.swiper-button-next {
  color: #2563eb;
}

.swiper-pagination-bullet-active {
  background-color: #2563eb;
}

/* Swiper layout for horizontal sliding */
.swiper {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
  align-items: center;
}

/* Each slide positioned horizontally */
.swiper-slide {
  flex-shrink: 0;
  width: auto; /* or set a specific width if you want consistent spacing */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Partner section image styling */
.partner-slide img {
  max-width: 150px;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.partner-slide img:hover {
  filter: grayscale(0%);
  opacity: 1;
}


/* Responsive Design */
@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .logo img {
    height: 5rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .about-content {
    flex-direction: row;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 90vh;
  }
  
  .tech-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: 70vh;
  }
}
@media (max-width: 640px) {
  .hero {
    position: relative;
    height: auto;        /* višina se prilagodi videu */
    min-height: auto;
    margin-top: 4.5rem;  /* da ne gre pod fiksni header */
  }

  .hero-video {
    position: static;    /* ni več "ozadje" */
    width: 100%;
    height: auto;        /* ohrani razmerje stranic videa */
    object-fit: contain; /* nič več rezanja po širini */
    display: block;
  }

  .section-title {
    font-size: 2rem;
  }

  .container {
    padding: 0 0.75rem;
  }
}



/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
}

/* ===================== */
/* MOBILE MENU FIX       */
/* ===================== */

.hidden {
  display: none !important;
}

.mobile-menu {
  position: fixed;
  top: 4.5rem;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
}

.mobile-menu .nav-link {
  width: 100%;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-menu .nav-link:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===================== */
/* HERO MOBILE FIX       */
/* ===================== */

@media (max-width: 768px) {
  .hero {
    margin-top: 4.5rem;
  }
}

@media (max-width: 640px) {
  .hero {
    height: 70vh;
    min-height: 320px;
  }
}

