/* Word Carousel Heading - početak */

#main {
  overflow: hidden;
}

.wordCarousel {
  display: flex;              /* align horizontally */
  justify-content: center;
  margin-left: 5%;
  margin-top: 5%;
  margin-bottom: 5%;
  font-size: 2em;             /* responsive font size */
  color: #000;                /* High-tech: black text */
}

@media (max-width: 768px) {
  .wordCarousel {
    font-size: 1.7em;
  }
}

/* underline for the static span label */
.wordCarousel span {
  font-weight: 900;
  text-decoration: underline solid #000;    /* was #08FF08 */
  text-underline-offset: 10px;
}

/* Creative keeps its accent color on the underline */
body.creative-layout .wordCarousel span {
  text-decoration-color: #ff9966;
}

/* the scrolling words container */
.wordCarousel div {
  overflow: hidden;
  position: relative;
  float: right;
  height: 65px;
  padding-top: 10px;
  margin-top: -10px;
}

/* each scrolling word item */
.wordCarousel div li {
  font-weight: 900;
  padding: 0 10px;
  height: 45px;
  margin-bottom: 45px;
  display: block;
}

/* High-tech: black (was green) */
.flip3 li {
  color: #000;
}

/* Creative keeps its pink accent */
body.creative-layout .flip3 li {
  color: #ff9966;
}

.flip2 {
  animation: flip2 2.8s cubic-bezier(0.23, 1, 0.32, 1.2) infinite;
}
.flip3 {
  animation: flip3 3.8s cubic-bezier(0.23, 1, 0.32, 1.2) infinite;
}

@keyframes flip2 {
  0% { margin-top: -180px; }
  5% { margin-top: -90px; }
  50% { margin-top: -90px; }
  55% { margin-top: 0px; }
  99.99% { margin-top: 0px; }
  100% { margin-top: -180px; }
}

@keyframes flip3 {
  0% { margin-top: -270px; }
  5% { margin-top: -180px; }
  33% { margin-top: -180px; }
  38% { margin-top: -90px; }
  66% { margin-top: -90px; }
  71% { margin-top: 0px; }
  99.99% { margin-top: 0px; }
  100% { margin-top: -270px; }
}

.lottie {
  margin: 0;
}
/* Word Carousel Heading - kraj */



/* Reveal heading - početak */
.reveal {
  margin: 0 auto;                 /* center horizontally */
  padding: 0;
  display: flex;
  justify-content: center;        /* center content horizontally */
  align-items: center;            /* center content vertically */
  width: 100%;
  height: auto;                   /* not full-viewport; adjust as needed */
  flex-direction: column;         /* vertical alignment */
  text-align: center;
}

/* Shimmering text effect:
   High-tech: black “shine” across white background */
.reveal-p {
  position: relative;
  text-transform: uppercase;
  font-size: 3.5em;
  letter-spacing: 4px;
  overflow: hidden;
  background: linear-gradient(90deg, #fff, #000, #fff); /* was #141414 -> #fff to make stripe visible on white */
  background-repeat: no-repeat;
  background-size: 80%;
  animation: animate 5s linear infinite;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: rgba(255, 255, 255, 0); /* show gradient through text */
}

/* Creative version unchanged from your design */
body.creative-layout .reveal-p {
  position: relative;
  text-transform: uppercase;
  font-size: 3.5em;
  letter-spacing: 4px;
  overflow: hidden;
  background: linear-gradient(90deg, #DBE9B7, #836953, #DBE9B7);
  background-repeat: no-repeat;
  background-size: 80%;
  animation: animate 3.5s linear infinite;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: rgba(255, 255, 255, 0);
}

@keyframes animate {
  0%   { background-position: -500%; }
  100% { background-position: 500%; }
}

@media (max-width: 768px) {
  .reveal-p, body.creative-layout .reveal-p {
    font-size: 2.5em;
  }
}

/* Reveal heading - kraj */



/* Text animation - početak */
.scroll-animation-container .text-section {
  margin: 50px 0;
}

.scroll-animation-container .text-section .animated-text {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animation-container .text-section .animated-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.text-section {
  padding-left: 5%;
  padding-right: 5%;
  font-size: clamp(1.2em, 1.5vw, 1.5em);
}

.heading {
  margin-bottom: 4%;
  color: #000;                  /* High-tech: headings black by default */
}

/* Explicit per-layout heading colors */
body.high-tech-layout .heading {
  color: #000;                  /* was #08FF08 */
}

body.creative-layout .heading {
  color: #836953;
  text-decoration: underline;
  text-underline-offset: 0.2em;      /* distance from text */
}
/* Text animation - kraj */



/* Tehnologije seamless animacija SEO page - početak */
.showcase {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  color: #000;                  /* default text color */
}

.slider {
  display: flex;
  width: calc(200px * 12 + 20px * 11); /* 12 logos + margins */
  animation: slide 10s linear infinite;
}

.item {
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;               /* prevent shrinking */
  margin-right: 20px;           /* space between logos */
}

.item img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* Keyframes for seamless scrolling */
@keyframes slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-200px * 6 - 20px * 6)); }
}
/* Tehnologije seamless animacija SEO page - kraj */
