/* 3D slova - početak */

h1 {
  width: 100%;
  margin: 0 auto;
  line-height: 1.5;
  padding: 5vw 3vw;
  text-align: center;
  text-transform: uppercase;
  text-rendering: optimizeLegibility;
  font-size: clamp(2rem, 10vw, 11.5rem); /* Responsive font size */
}

/* Default (High-tech) color is BLACK; keep the 3D shadow stack */
#text3d {
  color: #b5b5b5;
  letter-spacing: 0.22em;
  text-shadow:
    -1px -1px 1px #efede3,
    0px 1px 0 #2e2e2e,
    0px 2px 0 #2c2c2c,
    0px 3px 0 #2a2a2a,
    0px 4px 0 #282828,
    0px 5px 0 #262626,
    0px 6px 0 #242424,
    0px 7px 0 #222,
    0px 8px 0 #202020,
    0px 9px 0 #1e1e1e,
    0px 10px 0 #1c1c1c,
    0px 11px 0 #1a1a1a,
    0px 12px 0 #181818,
    0px 13px 0 #161616,
    0px 14px 0 #141414,
    0px 15px 0 #121212,
    2px 20px 5px rgba(0, 0, 0, 0.9),
    5px 23px 5px rgba(0, 0, 0, 0.3),
    8px 27px 8px rgba(0, 0, 0, 0.5),
    8px 28px 35px rgba(0, 0, 0, 0.9);
}

/* Creative stays as-is */
body.creative-layout #text3d {
  color: #DEA5A4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 {
    padding: 10vw 5vw;
    line-height: 1.5;
  }

  #text3d {
    text-shadow:
      -1px -1px 1px #efede3,
      0px 1px 0 #2e2e2e,
      0px 2px 0 #2c2c2c,
      0px 3px 0 #2a2a2a,
      0px 4px 0 #282828,
      0px 5px 0 #262626,
      0px 6px 0 #242424,
      0px 7px 0 #222,
      0px 8px 0 #202020,
      0px 9px 0 #1e1e1e,
      0px 10px 0 #1c1c1c,
      1px 12px 3px rgba(0, 0, 0, 0.8),
      3px 14px 3px rgba(0, 0, 0, 0.3),
      4px 16px 5px rgba(0, 0, 0, 0.4),
      5px 18px 10px rgba(0, 0, 0, 0.7);
  }
}

@media (max-width: 480px) {
  h1 {
    padding: 12vw 5vw;
    font-size: clamp(1.5rem, 8vw, 6rem); /* Smaller font size for small screens */
  }

  #text3d {
    text-shadow:
      -1px -1px 1px #efede3,
      0px 1px 0 #2e2e2e,
      0px 2px 0 #2c2c2c,
      0px 3px 0 #2a2a2a,
      0px 4px 0 #282828,
      0px 5px 0 #262626,
      0px 6px 0 #242424,
      1px 8px 2px rgba(0, 0, 0, 0.8),
      2px 10px 2px rgba(0, 0, 0, 0.3),
      3px 12px 3px rgba(0, 0, 0, 0.4),
      4px 15px 8px rgba(0, 0, 0, 0.6);
  }
}
/* 3D slova - kraj */


/* Text animation - početak */

/* (Flattened from SCSS) */
.scroll-animation-container .text-section {
  line-height: 1.8;
  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);
}

/* High-tech headings must be black */
body.high-tech-layout .heading {
  color: #08FF08;
  text-shadow:
    /* thin outline */
    1px 0 0 rgba(0,0,0,.45),
   -1px 0 0 rgba(0,0,0,.45),
    0 1px 0 rgba(0,0,0,.45),
    0 -1px 0 rgba(0,0,0,.45),
    /* soft ambient */
    0 4px 10px rgba(0,0,0,.22);
}

/* Creative stays colored */
body.creative-layout .heading{
  color:#DEA5A4;
  text-shadow:
    /* thin outline */
    1px 0 0 rgba(0,0,0,.45),
   -1px 0 0 rgba(0,0,0,.45),
    0 1px 0 rgba(0,0,0,.45),
    0 -1px 0 rgba(0,0,0,.45),
    /* soft ambient */
    0 4px 10px rgba(0,0,0,.22);
}
/* Text animation - kraj */
