body {
  font-family: "Kalam", cursive;
  background: #e8dcf1;
  color: rgb(136, 68, 165);
}

.navbar.animate-navbar {
  font-family: "Kalam", cursive;
  font-weight: 100;
  color: rgb(136, 68, 165);
  transition: background 0.3s, box-shadow 0.3s;
}

.hero-section {
  min-height: 100vh;
  background-image: url("/background_photo_edited.jpeg");
  position: relative;
  overflow: hidden;
  background-repeat: no-repeat;
  /* 1. Ne ponavljaj sliku! */
  background-size: cover;
  /* 2. Proširi je da prekrije cijelo područje. */
  background-position: center;
}

@media (max-width: 700px) {
  .hero-section {
    background-image: url("/mobile_background.jpeg");
    min-height: 60vh;
  }

  .animate-hero {
    font-family: "Pacifico";
    color: rgb(136, 68, 165);
    animation: fadeInDown 1.2s cubic-bezier(0.77, 0, 0.18, 1) both;
    padding-bottom: 4rem;
  }
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(120deg, #f1e9f1 0%, #eacbff 100%); */
  /* opacity: 0.5; */
  z-index: 1;
}

.hero-section .container {
  z-index: 2;
}

.card {
  font-family: "Kalam", cursive;
  font-size: 2rem;
  border-color: #e1cdf1;
  border-radius: 1rem;
}

.animate-hero {
  font-family: "Pacifico";
  color: rgb(136, 68, 165);
  animation: fadeInDown 1.2s cubic-bezier(0.77, 0, 0.18, 1) both;
}

.animate-cta {
  animation: bounceIn 1.5s 0.5s both;
  color: rgb(136, 68, 165);
  background-color: #e8dcf1;
  border-color: rgb(110, 72, 161);
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }

  60% {
    opacity: 1;
    transform: scale(1.05);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.stats-section .stat-box {
  transition: transform 0.3s, box-shadow 0.3s;
}

.stats-section .stat-box:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(255, 179, 71, 0.15);
}

.stat-number {
  font-size: 2.5rem;
  color: #c77ff6;
  font-weight: 700;
}

.card {
  color: rgb(136, 68, 165);
  height: fit-content;
}

.service-card {
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 8px 32px rgba(93, 70, 139, 0.9);
}

.service-icon {
  transition: color 0.3s;
}

.service-card:hover .service-icon {
  color: #c77ff6 !important;
}

.carousel-inner img {
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}

.carousel-item.active img {
  transform: scale(1.03);
}

.carousel-caption {
  background: rgba(34, 40, 49, 0.7);
  border-radius: 1rem;
}

.testimonial-card {
  border-left: 5px solid #c77ff6;
  transition: box-shadow 0.3s;
}

.testimonial-card:hover {
  box-shadow: 0 8px 32px #c77ff6;
}

#contactForm .form-control:focus {
  border-color: #c77ff6;
  box-shadow: 0 0 0 0.2rem #c77ff6;
}

#contactForm .btn {
  transition: background 0.3s, box-shadow 0.3s;
}

#contactForm .btn:hover {
  background: #7ff6be;
  box-shadow: 0 4px 16px #f6d07f;
}

.btn.btn-ljubicasti:hover {
  background: #d3a7ff;
  border-color: #d3a7ff;
}

footer {
  background: #222;
  color: #fff;
}

@media (max-width: 767px) {
  .hero-section {
    min-height: 70vh;
    padding: 4rem 0 2rem 0;
  }

  .hero-section .display-3 {
    font-family: "Pacifico", cursive;
    font-weight: normal !important;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* Why Choose Us */
.feature-box {
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-box:hover {
  transform: translateY(-0.5px) scale(1.001);
  box-shadow: 0 8px 32px rgba(90, 67, 141, 0.884);
}

/* Process Timeline */
.timeline {
  position: relative;
  gap: 0.5rem;
}

.timeline-step {
  flex: 1 1 180px;
  min-width: 150px;
  max-width: 200px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px #c77ff6;
  padding: 1.5rem 1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.timeline-divider {
  flex: 0 0 40px;
  height: 4px;
  /* background: linear-gradient(90deg, #ffb347 0%, #ffcc33 100%); */
  border-radius: 2px;
  margin: 0 0.5rem;
  align-self: center;
  z-index: 1;
}

@media (max-width: 991px) {
  .timeline {
    flex-direction: column;
    gap: 0;
  }

  .timeline-divider {
    display: none !important;
  }

  .timeline-step {
    margin-bottom: 1.5rem;
  }
}

/* Team Section */
.team-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 8px 32px #c77ff6;
}

.team-card img {
  border: 4px solid #c77ff6;
  transition: border-color 0.3s;
}

.bg-card {
  background: #e3beee;
}

bg-grey {
  background-color: #e8e4eb;
}

.bg-fairy {
  background-color: #e8dcf1;
}

.navbar-bg {
  background-color: rgb(186, 100, 201);
}

.team-card:hover img {
  border-color: #c77ff6;
}

/* Partners/Clients Logos */
#partners img {
  filter: grayscale(1) brightness(0.8);
  opacity: 0.7;
  transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}

#partners img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.08);
}

/* FAQ Accordion - Remove border */
#faqAccordion .accordion-item {
  border: none;
  box-shadow: none;
}

#faqAccordion .accordion-button {
  border: none !important;
  box-shadow: none !important;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(120deg, #d3a7ff 0%, #bc6fff 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner .btn-dark {
  background: rgb(110, 72, 161);
  border: none;
  transition: background 0.3s;
}

.cta-banner .btn-dark:hover {
  background: rgb(110, 72, 161);
  /* box-shadow: 0 4px 16px rgb(102, 71, 150); */
}

.shape-divider-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 40px;
  background: url('data:image/svg+xml;utf8,<svg width="100%25" height="100%25" viewBox="0 0 1200 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,0V46.29c47.29,22.09,104.09,29,158,17.39C230.13,51.53,284.09,27.5,339,18.26c54.13-9.09,104.09,6.09,158,18.26,53.13,12.09,104.09,27.5,158,18.26,53.13-9.09,104.09-33.12,158-41.35,53.13-8.23,104.09,6.09,158,18.26,53.13,12.09,104.09,27.5,158,18.26V0Z" opacity=".25" fill="%23fff"/><path d="M0,0V15.81C47.29,37.9,104.09,44.81,158,33.2c53.13-11.67,104.09-35.7,158-44.94,54.13-9.09,104.09,6.09,158,18.26,53.13,12.09,104.09,27.5,158,18.26,53.13-9.09,104.09-33.12,158-41.35,53.13-8.23,104.09,6.09,158,18.26,53.13,12.09,104.09,27.5,158,18.26V0Z" opacity=".5" fill="%23fff"/><path d="M0,0V5.63C47.29,27.72,104.09,34.63,158,23.02c53.13-11.67,104.09-35.7,158-44.94,54.13-9.09,104.09,6.09,158,18.26,53.13,12.09,104.09,27.5,158,18.26,53.13-9.09,104.09-33.12,158-41.35,53.13-8.23,104.09,6.09,158,18.26,53.13,12.09,104.09,27.5,158,18.26V0Z" fill="%23fff"/></svg>');
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Back to Top Button */
#backToTop {
  /* box-shadow: 0 4px 16px rgba(255, 179, 71, 0.25); */
  transition: background 0.3s, box-shadow 0.3s, opacity 0.3s;
  opacity: 0.85;
}

#backToTop:hover {
  background: #c77ff6;
  opacity: 1;
}

@media (max-width: 767px) {

  .feature-box,
  .team-card,
  .timeline-step {
    padding: 1rem 0.5rem;
  }

  .timeline-step {
    min-width: 120px;
    max-width: 100%;
  }

  #partners img {
    height: 28px;
    margin-bottom: 0.5rem;
  }
}

/* Project Grid */
.project-card {
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px) scale(1.03);
  /* box-shadow: 0 8px 32px rgba(255, 179, 71, 0.15); */
}

.project-img {
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.18, 1);
}

.project-card:hover .project-img {
  transform: scale(1.07);
}

@media (max-width: 991px) {
  .project-img {
    height: 180px;
  }
}

@media (max-width: 767px) {
  .project-img {
    height: 140px;
  }
}

/* Section Dividers */
.section-divider-wave,
.section-divider-angle {
  width: 100%;
  line-height: 0;
  margin-top: -1px;
  position: relative;
  z-index: 2;
}

.section-divider-wave svg,
.section-divider-angle svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* FAQ Pattern Background */
.faq-pattern-bg {
  background-color: #fdf6ed;
  background-image: repeating-linear-gradient(135deg,
      #fff7e6 0 2px,
      transparent 2px 40px);
}

/* Section backgrounds for distinction */
.stats-section {
  align-items: center;
  justify-content: center;
  background: #e8dcf1;
  padding-left: 5%;
  padding-right: 5%;
  border-radius: 1rem;
}

#why-us {
  background: #fff;
}

#process {
  background: linear-gradient(120deg, #f3f4f6 60%, #fdf6ed 100%);
}

#team {
  background: #f3f4f6;
}

#partners {
  background: #fff;
}

.faq-pattern-bg {
  background-color: #fdf6ed;
  background-image: repeating-linear-gradient(135deg,
      #fff7e6 0 2px,
      transparent 2px 40px);
}

#testimonials .testimonial-card {
  max-width: 400px;
  margin: 0 auto 1.5rem auto;
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px rgba(255, 179, 71, 0.1);
  border-left: 5px solid #c77ff6;
  background: #fff;
  transition: box-shadow 0.3s, transform 0.3s;
}

@media (max-width: 767px) {
  #testimonials .testimonial-card {
    max-width: 95vw;
    padding: 1.5rem 0.5rem;
  }
}
