* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-y: scroll;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #6612FE, #4B90EB);
  font-family: 'Inter', sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

header nav a {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  position: relative;
  text-decoration: none;
}

header nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #6612FE;
  left: 0;
  bottom: -4px;
  transition: width 0.3s;
}

header nav a:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  font-weight: 700;
  color: #6612FE;
}

header nav a.login {
  background: #6612FE;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

header img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.price-box {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 3rem 2rem;
  max-width: 650px;
  margin: 4rem auto;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-box:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

h1 {
  color: #6612FE;
  margin-bottom: 1.5rem;
}

input[type=range] {
  width: 100%;
  margin: 1.5rem 0;
}

.highlight {
  font-size: 2rem;
  font-weight: 700;
  color: #6612FE;
}

.billing-toggle {
  display: flex;
  justify-content: center;
  background: #e0e0f2;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  padding: 0.25rem;
  max-width: 320px;
  margin: 0 auto 1.5rem;
}

.billing-toggle button {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
}

.billing-toggle button.active {
  background-color: #6612FE;
  color: white;
}

label {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
}

.cta button {
  background-color: #4B90EB;
  border: none;
  padding: 1rem 2rem;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.cta button:hover {
  background-color: #3a6edc;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

section {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}


/* Language Dropdown - Compact Styles */
.lang-dropdown {
  position: relative;
}

.lang-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(2px);
  transition: all 0.15s ease-out;
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
}

.lang-dropdown:hover .lang-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Hover bridge to prevent gap */
.lang-dropdown::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 6px;
  display: none;
}

.lang-dropdown:hover::after {
  display: block;
}


/* Accordion styles */
.accordion {
  max-width: 800px;
  margin: 2rem auto;
}

.accordion-item {
  background-color: white;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.accordion-button {
  background-color: white;
  color: #333;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 1rem;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.3s;
}

.accordion-button:hover {
  background-color: #f3f3f3;
}

.accordion-content {
  padding: 0 1rem 1rem;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 2rem;
  background: white;
  gap: 2rem;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.text-block {
  max-width: 600px;
  flex: 1 1 300px;
}

.image-block {
  flex: 1 1 300px;
}

.hero-section img,
.features-section img,
.gallery img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Funkcionalnosti sekcija */
.features-section {
  padding: 4rem 2rem;
  background-color: #f8f8ff;
  text-align: center;
}

.features-section h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 2rem;
}

.features-section .image-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.features-section .image-row div {
  max-width: 250px;
}

/* Galerija */
.gallery {
  background: #f0f4ff;
  padding: 3rem 2rem;
  text-align: center;
}

.gallery .image-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.gallery .image-row img {
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Premium Mobile Menu Styles */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

#mobile-menu.open {
  max-height: 100vh;
}

/* Language selector animation */
.lang-menu {
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.2s ease-out;
  pointer-events: none;
}

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

/* Mobile menu item animations */
#mobile-menu a {
  transition: all 0.2s ease;
  transform: translateX(-10px);
  opacity: 0;
}

#mobile-menu.open a {
  transform: translateX(0);
  opacity: 1;
}

#mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open a:nth-child(5) { transition-delay: 0.3s; }

/* Mobile menu button transition */
#mobile-menu-button {
  transition: transform 0.3s ease;
}

/* Productive.io style language selector */
#mobile-menu .flex.justify-center.space-x-2 button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  background-color: white;
  transition: all 0.2s ease;
  min-width: 70px;
}

#mobile-menu .flex.justify-center.space-x-2 button:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
}

#mobile-menu .flex.justify-center.space-x-2 button.active {
  background-color: #f3f4f6;
  border-color: #9ca3af;
}

#mobile-menu .flex.justify-center.space-x-2 button span {
  font-size: 1rem;
  margin-right: 0.25rem;
}

/* Mobile button fixes */
@media (max-width: 640px) {
  .hero-section .flex-wrap a {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
  }
  
  .hero-section .flex-wrap {
    gap: 1rem;
    padding: 0 1rem;
  }
}

/* Carousel Styles */
.carousel-container {
  width: 100%;
  position: relative;
  cursor: grab;
  user-select: none;
  overflow: hidden;
  margin: 0 auto;
  max-width: 1200px;
  touch-action: pan-y;
}

.carousel-container:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  width: 100%;
  will-change: transform;
  transition: transform 0.3s ease;
  user-select: none;
}

.carousel-item {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
  flex-shrink: 0;
}

.carousel-item img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  margin: 0 auto;
  display: block;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  z-index: 10;
  border: none;
  visibility: visible;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.carousel-arrow:hover {
  background: #f3f4f6;
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-arrow svg {
  stroke: #6612FE;
}

/* Carousel dots */
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: #6612FE;
  transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .carousel-item img {
    max-height: 60vh;
  }
}

@media (max-width: 768px) {
  .carousel-item img {
    max-height: 50vh;
  }
}

@media (max-width: 640px) {
  .carousel-item {
	padding: 0;
  }
  
  .carousel-item img {
    max-height: 40vh;
	padding: 0;
  }
	
  .carousel-arrow {
    width: 32px;
    height: 32px;
	display: none;
	top: 40%;
  }
  
  .carousel-arrow svg {
    width: 16px;
    height: 16px;
  }
}