* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  font-family: "Raleway", sans-serif;
  scroll-behavior: smooth;
  background-image: none;
}
.mySlides {
  display: none;
}
img {
  vertical-align: middle;
  transition: transform 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Animation classes */
.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.fade-in {
  animation-name: fadeIn;
}

.slide-in-left {
  animation-name: slideInLeft;
}

.slide-in-right {
  animation-name: slideInRight;
}

/* Apply animations to elements */
.hero-header {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.5s;
}

.o_nama p, .sastojci p {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.o_nama p.animated, .sastojci p.animated {
  opacity: 1;
  transform: translateY(0);
}

.sastojak {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.sastojak.animate-once {
  animation: fadeInUp 0.5s ease forwards;
}

.sastojak:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.sastojak img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.sastojak:hover img {
  transform: scale(1.1);
}

.sastojak p {
  margin: 0;
  font-size: 14px;
  color: #333;
  flex: 1;
}

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

/* Hover effects */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #000;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.sastojak img {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.sastojak img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .text {
    font-size: 11px;
  }
}

/* Style for small images */
.gallery img {
  width: 250px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.gallery img:hover {
  transform: scale(1.1);
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  background-color: rgb(242, 242, 242);
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  transition: transform 0.3s;
}

/* Close button */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.logo {
  max-width: 110px;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.05);
}

.navbar-collapse {
  max-width: 600px;
}

.navbar {
  padding: 0px !important;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid gray;
  transition: all 0.3s ease;
}
.navbar.sticky-top {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.navbar.shadow {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-item {
  padding: 0px !important;
}

ul li a {
  padding: 24px 16px !important;
}

.navbar-nav .nav-item .nav-link {
  border-top: 3px solid white;
  color: black !important;
  font-size: 15px !important;
}
.navbar-nav .nav-item .nav-link:hover {
  color: #ffc998 !important;
  border-top: 3px solid #ffc998;
}
.header {
  height: 840px;
  width: 100%;
}

.header .container {
  height: 100%;
  font-family: "Dancing Script", cursive;
}

.header .container::before {
  content: "";
  background: url("images/hero.jpg") center/cover no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  z-index: -1; /* Places background behind the text */
  background-color: black;
}

.header .hero-header {
  font-size: 65px;
  color: black;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  padding: 30px 0px;
  font-weight: 100;
}

.line {
  width: 60px;
  height: 3px;
  margin: auto;
  background-color: #ffc998;
  transition: width 0.5s ease;
  position: relative;
  overflow: hidden;
}
.line:hover {
  width: 120px;
}

.line::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #000;
  transition: width 0.6s ease;
}

.line.animated::after {
  width: 100%;
}

h2 {
  text-align: center;
  font-family: "Dancing Script", cursive;
  padding-top: 80px;
  font-size: 60px;
  color: black;
  transition: all 0.6s ease;
  transform: translateY(20px);
}
h2:hover {
  color: #000000;
}

h2.animated {
  opacity: 1;
  transform: translateY(0);
}

.image-holder-section {
  max-width: 1000px;
  margin: auto;
  padding: 30px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-holder-section p {
  max-width: 500px !important;
}

.o_nama p {
  color: gray;
  max-width: 800px;
  margin: auto;
  text-align: center;
  padding: 40px 0px;
  line-height: 24px;
  font-weight: 300;
}

.making_1, .making_2 {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.making_1:hover, .making_2:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.making_1 {
  max-width: 240px;
}
.making_2 {
  max-width: 200px;
  scale: 0.9;
}
.swiper-wrapper .swiper-slide img {
  max-width: 400px !important;
  margin: auto;
  display: block;
  height: 100% !important;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
}

.swiper {
  margin-bottom: 20px;
}

.galerija .container {
  padding-top: 40px;
  max-width: 1200px;
}

.calendar {
  max-width: 800px;
  margin: auto;
  padding: 100px 0px;
}

select {
  border-radius: 10px;
  border-color: #ffc998;
  border-width: 2px;
  transition: all 0.3s ease;
}

select:hover {
  cursor: pointer;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.order {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 0px;
  gap: 20px;
}

select:focus-visible {
  outline: 2px solid #ffc998;
}

select {
  text-align: center;
  padding: 5px 10px;
}

.order label {
  font-weight: 600;
  transition: color 0.3s ease;
}
.order label:hover {
  color: #ffc998;
}

.sastojci {
  width: 100%;
  padding: 100px 0px;
}

.sastojci img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lista {
  display: flex;
  width: 100%;
  padding: 20px 0px;
}

.lista p {
  padding: 10px;
}

.sastojak {
  height: 300px;
  transition: transform 0.5s ease;
  font-size: 14px;
}
.sastojak:hover {
  transform: translateY(-10px);
}

.sastojak p {
  font-size: 10px;
}

img{
  border-radius: 10px;
}

.porucivanje{
  padding: 100px 0px;
}

.porucivanje img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.porucivanje img:hover{
  transform: scale(1.05);
  cursor: pointer;
}

.porudzbina{
  transition: transform 0.5s ease;
  text-align: center;
  border: 2px solid #fff;
  border-radius: 10px;
  padding: 10px;
}

.porudzbina p{
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.porudzbina:hover{
  transform: scale(1.05);
}

/* Quantity Controls */
.quantity-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 5px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.quantity-btn {
  background-color: #ffc998;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  color: #333;
  font-weight: bold;
}

.quantity-btn:hover {
  background-color: #e6b588;
  transform: scale(1.1);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity {
  font-size: 18px;
  font-weight: 600;
  min-width: 30px;
  text-align: center;
  color: #333;
}

.submit-btn {
  background-color: #ffc998;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: #e6b588;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Update porudzbina styles */
.porudzbina {
  transition: transform 0.5s ease;
  text-align: center;
  border: 2px solid #fff;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.porudzbina:hover {
  transform: scale(1.05);
  border-color: #ffc998;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.porudzbina img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.porudzbina:hover img {
  transform: scale(1.03);
}

.porudzbina p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Customer Info Form Styles */
.customer-info {
  padding: 15px 0;
  max-width: 800px;
  margin: 0 auto;
}

.customer-info h3 {
  font-family: "Dancing Script", cursive;
  font-size: 35px;
  color: #000;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
  display: block;
  transition: color 0.3s ease;
  font-size: 14px;
}

.form-group label:hover {
  color: #ffc998;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ffc998;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.9);
  height: 35px;
}

.form-control:focus {
  outline: none;
  border-color: #e6b588;
  box-shadow: 0 0 0 2px rgba(255, 201, 152, 0.2);
  transform: translateY(-1px);
}

.form-control::placeholder {
  color: #999;
  font-size: 13px;
}

.form-control:focus::placeholder {
  color: #666;
}

.submit-btn{
  width: 20%;
}

/* Add responsive styles */
@media (max-width: 768px) {
  .customer-info {
    padding: 10px;
  }

  .section-heading{
    padding-top: 0px;
  }
  
  .submit-btn{
    width: 90%;
  }

  .header {
    height: 740px;
  }


  
  .form-control {
    font-size: 13px;
    height: 32px;
  }
  
  .form-group label {
    font-size: 13px;
  }
}

/* Delivery Time Section */
.delivery-time {
  padding: 15px 0;
  max-width: 800px;
  margin: 0 auto;
}

.delivery-time h3 {
  font-family: "Dancing Script", cursive;
  font-size: 35px;
  color: #000;
  margin-bottom: 20px;
}

h4{
  font-family: "Dancing Script", cursive;
}

/* Flatpickr Customization */
.delicure-calendar {
  background: #fff;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  border: 1px solid #ffc998;
  border-radius: 10px;
  padding: 15px;
}

.delicure-calendar .flatpickr-day.selected {
  background: #ffc998 !important;
  border-color: #ffc998 !important;
}

.delicure-calendar .flatpickr-day.selected:hover {
  background: #e6b588 !important;
  border-color: #e6b588 !important;
}

.delicure-calendar .flatpickr-day.today {
  border-color: #ffc998;
}

.delicure-calendar .flatpickr-time input {
  border: 1px solid #ffc998;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.delicure-calendar .flatpickr-time input:focus {
  outline: none;
  border-color: #e6b588;
  box-shadow: 0 0 0 2px rgba(255, 201, 152, 0.2);
}

.delicure-calendar .flatpickr-months .flatpickr-month {
  color: #333;
}

.delicure-calendar .flatpickr-current-month .flatpickr-monthDropdown-months {
  color: #ffc998;
}

.delicure-calendar .flatpickr-weekday {
  color: #ffc998;
}

.delicure-calendar .flatpickr-day:hover {
  background: rgba(255, 201, 152, 0.1);
}

.delicure-calendar .flatpickr-time input:hover {
  border-color: #e6b588;
}

.delicure-calendar .flatpickr-time .flatpickr-am-pm {
  color: #ffc998;
}

.delicure-calendar .flatpickr-time .flatpickr-am-pm:hover {
  color: #e6b588;
}

.delicure-calendar .flatpickr-time .flatpickr-am-pm.selected {
  color: #e6b588;
}

.delicure-calendar .flatpickr-time .flatpickr-time-separator {
  color: #ffc998;
}

.delicure-calendar .flatpickr-time .flatpickr-time-input {
  color: #333;
}

.delicure-calendar .flatpickr-time .flatpickr-time-input:hover {
  color: #e6b588;
}

.delicure-calendar .flatpickr-time .flatpickr-time-input.selected {
  color: #e6b588;
}

/* Checkout Summary Styles */
.checkout-summary {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  max-width: 800px;
}

.checkout-summary h3 {
  font-family: "Dancing Script", cursive;
  font-size: 30px;
  color: #000;
  margin-bottom: 15px;
}

.order-items {
  border-bottom: 2px solid #ffc998;
  padding-bottom: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.order-item {
  display: flex;
  flex-direction: column;
  padding: 10px 15px;
  border-bottom: 1px solid rgba(255, 201, 152, 0.3);
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.order-item:hover {
  
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.order-item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 201, 152, 0.3);
  margin-bottom: 8px;
}

.order-item-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.order-item-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  font-size: 14px;
  text-align: center;
}

.order-item-meta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 201, 152, 0.3);
}

.order-item-quantity {
  color: #666;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.order-item-quantity::before {
  content: "•";
  color: #ffc998;
  font-size: 14px;
}

.order-item-price {
  font-weight: 700;
  color: #e67e22;
  font-size: 15px;
  
  padding: 3px 8px;
  border-radius: 6px;
  min-width: 70px;
  text-align: center;
}

.order-total {
  padding-top: 15px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
  border-top: 1px dashed rgba(255, 201, 152, 0.3);
}

.order-total h4 {
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  color: #333;
  font-size: 16px;
  margin: 0;
}

.total-amount {
  color: #e67e22 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  
  padding: 5px 15px;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .order-items {
    grid-template-columns: 1fr;
  }
  
  .order-item {
    padding: 8px 12px;
  }
  
  .order-item-image {
    width: 60px;
    height: 60px;
  }
  
  .order-item-price {
    font-size: 14px;
    min-width: 60px;
  }
}

/* Product Price Styles */
.product-price {
  margin-top: 5px;
  padding: 5px 10px;
  
  border-radius: 15px;
  display: inline-block;
}

.price-amount {
  font-size: 14px;
  font-weight: 600;
  color: #e67e22;
}

/* Fixed Price Styles */
.fixed-price {
  margin: 10px 0;
  padding: 5px 10px;
  
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.price-label {
  font-size: 14px;
  color: #666;
}

.price-value {
  font-size: 18px;
  font-weight: 700;
  color: #e67e22;
}

/* Animations for O nama and Sastojci sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.o_nama h1, .sastojci h1 {
  animation: fadeInUp 1s ease forwards;
}

.o_nama p {
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}

.image-holder-section img:nth-child(1) {
  animation: fadeInLeft 1s ease 0.5s forwards;
  opacity: 0;
}

.image-holder-section img:nth-child(2) {
  animation: fadeInRight 1s ease 0.7s forwards;
  opacity: 0;
}

.sastojak {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.sastojak:nth-child(1) { animation-delay: 0.2s; }
.sastojak:nth-child(2) { animation-delay: 0.4s; }
.sastojak:nth-child(3) { animation-delay: 0.6s; }
.sastojak:nth-child(4) { animation-delay: 0.8s; }
.sastojak:nth-child(5) { animation-delay: 1.0s; }
.sastojak:nth-child(6) { animation-delay: 1.2s; }

/* Decorative elements */
.o_nama::after, .sastojci::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to top, rgba(255,255,255,0.8), transparent);
  z-index: 1;
}

.sastojci::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
  z-index: 1;
}

/* Enhanced line styling */
.line {
  height: 3px;
  width: 100px;
  background: linear-gradient(to right, #ffc998, #e67e22);
  margin: 0 auto 30px;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Enhanced O nama section */
.o_nama {
  padding: 80px 0 40px 0;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.o_nama h1 {
  font-size: 45px;
  text-align: center;
  margin-bottom: 30px;
  color: #e67e22;
  font-family: 'Dancing Script', cursive;
  position: relative;
  z-index: 2;
}

.o_nama p {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
  text-align: justify;
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.o_nama::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  z-index: 1;
}

.image-holder-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  gap: 30px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.image-holder-section > div {
  flex: 1;
  max-width: 450px;
}

.image-holder-section img {
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  margin-bottom: 20px;
}

.image-holder-section img:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Enhanced Sastojci section */
.sastojci {
  padding: 80px 0;
  background-color: #f9f9f9;
  position: relative;
  margin-bottom: 100px; /* Increased margin to prevent overlap */
  overflow: visible; /* Changed from hidden to visible */
}

.sastojci h1 {
  font-size: 45px;
  text-align: center;
  margin-bottom: 30px;
  color: #e67e22;
  font-family: 'Dancing Script', cursive;
  position: relative;
  z-index: 2;
}

.lista {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative; /* Added position relative */
  z-index: 2; /* Ensure content is above any background elements */
}

.sastojak {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 30px;
  background-color: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  max-width: 700px;
  margin: 0 auto;
  opacity: 1; /* Changed from 0 to 1 to make content visible */
  position: relative; /* Added position relative */
  z-index: 2; /* Ensure content is above any background elements */
}

.sastojak:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.sastojak:nth-child(even) {
  flex-direction: row-reverse;
}

.sastojak img {
  width: 100%;
  max-width: 250px; /* Increased image size */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
}

.sastojak:hover img {
  transform: scale(1.03);
}

.sastojak p {
  font-size: 14px;
  line-height: 1.4;
  color: #555;
  text-align: justify;
  flex: 1;
}

/* Animation for sastojak - only once on first visit */
.sastojak.animate-once {
  animation: fadeInUp 1s ease forwards;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .sastojak, .sastojak:nth-child(even) {
    flex-direction: column;
    text-align: center;
  }

  .sastojak.reversed {
    flex-direction: column-reverse;
  }
  
  .sastojak img {
    max-width: 100%;
    margin-bottom: 20px;
  }
  
  .image-holder-section {
    flex-direction: column;
  }
  
  .image-holder-section > div {
    width: 100%;
    text-align: center;
  }
  
  .o_nama, .sastojci {
    margin-bottom: 60px;
  }
}

.details-btn {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  transition: all 0.3s ease;
  color: #e67e22;
  border: 1px solid #e67e22;
}

.details-btn:hover {
      background-color: #e67e22;
      color: #fff;
      border: 1px solid #fff;
  transform: translateY(-2px);
}

/* Footer Styles */
.footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 4rem 0 0 0;
  margin-top: 4rem;
  font-family: 'Raleway', sans-serif;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 2rem;
}

.footer-section {
  padding: 1rem;
}

.footer-section h3 {
  color: #e67e22;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 50px;
  height: 2px;
  background-color: #e67e22;
}

.footer-section p {
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

.social-link {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #e67e22;
}

.footer-section i {
  margin-right: 0.5rem;
  color: #e67e22;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: #888;
  font-size: 0.9rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }
}

/* Animation for footer sections */
.footer-section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.footer-section:nth-child(2) {
  animation-delay: 0.2s;
}

.footer-section:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .header .hero-header {
    font-size: 2.5rem;
  }

  .o_nama {
    padding-top: 0px;
    padding-bottom: 0px;
    margin-bottom: 0px;
  }

  .o_nama h1 {
    font-size: 2rem;
    padding-top: 0px;
  }

  .o_nama p {
    font-size: 1rem;
    margin-bottom: 0px;
  }

  .sastojci::before {
    display: none;
  }
  .sastojci h1{
    padding-top: 0px;
  }

  .sastojci{
    padding: 40px 0px;
  }
  
  .sastojak {
    height: unset;
  }

  .sastojak img{
    width: 100%;
    height: unset;
  }

  .porucivanje {
    padding-top: 0px;
  }

  .porucivanje h1 {
    padding-top: 0px;
  }
}

