/* Reset / base */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html, body { 
  background:#fff; color:#0b0b0b; 
}

html { 
  scroll-behavior: smooth; 
}

body { 
  font-family: "Urbanist", sans-serif; 
}

/* Back strelica */
.back-home{
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.14);
  color: #111;
  text-decoration: none;
  z-index: 120;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.back-home:hover{ 
  transform: translateY(-2px); 
  box-shadow: 0 12px 28px rgba(0,0,0,.18); 
  background:#fff; 
}

.back-home:active{ 
  transform: translateY(0); 
}

.material-symbols-rounded{
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  font-size: 15px; line-height: 1;
}

/* Intro */
.Intro{ 
    position: fixed; 
    inset: 0; 
    background:#fff; 
    z-index: 9999; 
    display: grid; 
    place-items: center; 
}

.Intro .letters{ 
    position: relative; 
    width: 120px; 
    height: 120px; 
}

.Intro .letter{
  position:absolute; 
  top:50%; 
  transform:translateY(-50%);
  font-family:"Urbanist", sans-serif; 
  font-weight:300; 
  font-size:24px; 
  color:#111; 
  opacity:0;
}

.Intro .letter.m{ 
    left:20px; 
}

.Intro .letter.g{ 
    right:20px; 
}

.Intro.fadeout{ 
    transition: opacity 500ms ease, visibility 500ms ease; 
    opacity:0; 
    visibility:hidden; 
}

/* Viewport1 */

.lang-switch {
  position: fixed;
  top: 16px;
  right: 70px; 
  display: flex;
  gap: 10px;
  z-index: 130;
}

.lang-switch .lang-btn {
  border: 1px solid rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.lang-switch .lang-btn:hover { 
  transform: translateY(-1px); 
}


.lang-switch .lang-btn.is-active { 
  border-color: #111; 
  font-weight: 600; 
}

.hero{
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 40px 72px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.hero-title{
  justify-self: start;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.01em;
  line-height: 1.05;
  display: flex; gap: 10px; align-items: baseline;
}

.hero-title .divider{ 
    opacity:100; 
    font-weight:300; 
}

.slideshow{
  position: relative;
  width: min(1024px, 100%);
  margin: 6px auto 0;
  aspect-ratio: 16 / 9;
  background: #e8eaed;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

.slideshow .slide{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(4px);
  transform: scale(1.02);
  transition: opacity 900ms ease, filter 900ms ease, transform 900ms ease;
  pointer-events: none;
}

.slideshow .slide.is-active{
  opacity: 1;
  filter: blur(0);
  animation: kburns 3600ms ease-out forwards;
}

@keyframes kburns{ from{ 
    transform: scale(1.02);
} to{ 
    transform: scale(1.06);
} 
}

.details-button{
  justify-self: center;
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  font-family: "Outfit", sans-serif;
  text-decoration: none; 
  color:#0b0b0b;
  border-radius: 999px; 
  padding: 10px 14px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.details-button:hover{ 
    transform: translateY(-2px); 
    box-shadow:0 12px 28px rgba(0,0,0,.16); 
    background:#fff; 
}

.details-button:active{ 
    transform: translateY(0); 
}

/* Viewport2 */
.description{
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 90px) clamp(32px, 6vw, 72px) clamp(56px, 7vw, 92px);
  display: grid;
  place-items: center;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

.description p{
  max-width: 62ch;
  width: 100%;
  text-align: left;
  font-family: "Outfit", sans-serif;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 300;
  line-height: 1.65;
  margin: 0 auto;
  padding: 0 12px;          
  position: relative;
  opacity: 0;
  filter: blur(6px);
  transition: opacity 1.1s ease, filter 1.1s ease;
}

.description p::after{
  content: "";
  position: absolute; inset: 0;
  background: #fff;
  transform: translateY(0%);
  z-index: 2;
  pointer-events: none;
}

.description.show-curtain p{ 
    opacity: 1; 
    filter: blur(0); 
}

.description.show-curtain p::after{ 
    animation: curtainDown 1.1s ease forwards; 
}

@keyframes curtainDown{ from{ 
    transform: translateY(0%);
} to{ 
    transform: translateY(100%);
} 
}

/* Responsive */
@media (max-width: 990px){
  .hero-title{ 
    font-size:22px; 
}

  .details-button{ 
    font-size:14px; 
    padding: 8px 12px; 
}
  .description p{ 
    font-size: 18px; 
    line-height: 1.62; 
    max-width: 60ch; 
    padding: 0 10px; 
}
}


@media (max-width: 745px){
  .hero-title{ 
    font-size:20px; 
}

  .details-button{ 
    font-size:13px; 
    padding: 7px 11px; 
}

  .description{ 
    padding: 36px 24px 56px; 
}

  .description p{ 
    font-size: 16px; 
    line-height: 1.58; 
    max-width: 58ch; 
}
}


@media (max-width: 560px){
  .hero-title{ 
    font-size:18px; 
}

  .details-button{ 
    font-size:12px; 
    padding: 6px 10px; 
}

  .description{ 
    padding: 32px 20px 52px; 
}

  .description p{ 
    font-size: 15px; 
    line-height: 1.55; 
    max-width: 95%; 
    padding: 0 8px; 
}
}


@media (max-width: 400px){
  .hero-title{ 
    font-size:14px; 
}

  .details-button{ 
    font-size:11px; 
    padding: 5px 9px; 
}

  .description{ 
    padding: 28px 16px 44px;
 }

  .description p{ 
    font-size: 14px; 
    line-height: 1.52; 
    max-width: 94%; 
}
}


@media (max-width: 320px){
  .hero{ 
    padding: 20px 10px 28px; 
}

  .hero-title{ 
    font-size: 12px; 
}

  .slideshow{ 
    border-radius: 9px; 
}

  .details-button{ 
    font-size: 10.5px; 
    padding: 4.5px 8px; 
}

  .description{ 
    padding: 20px 10px 28px; 
}

  .description p{ 
    font-size: 13.5px; 
    line-height: 1.5;
    max-width: 92%; 
}
}


@media (max-width: 280px){
  .hero{ 
    padding: 16px 6px 20px; 
}

  .hero-title{ 
    font-size: 10.5px; 
}

  .slideshow{ 
    border-radius: 8px; 
    aspect-ratio: 4/3; 
}

  .details-button{ 
    font-size: 9.8px; 
    padding: 3.5px 7px; 
    gap: 5px; 
}

  .description{ 
    padding: 16px 6px 20px; 
}

  .description p{ 
    font-size: 12.8px; 
    line-height: 1.48; 
    max-width: 96%; 
}
}

@media (prefers-reduced-motion: reduce){
  .description p,
  .description p::after{
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

/* Viewport 3  */
.video-viewport{
  width: 100%;
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.video-wrap{
  position: relative;
  width: min(1100px, 92vw);
  aspect-ratio: 16 / 9;
}
.video-viewport__video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  display: block;
}

/* Sound dugme */
#viewport3 .sound-toggle{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

#viewport3 .sound-toggle:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.26);
  background: #fff;
}
#viewport3 .sound-toggle .icon{
     width: 20px; 
     height: 20px; 
     color: #111; 
    }

#viewport3 .sound-toggle .icon-on{ 
    display: none; 
}

#viewport3 .sound-toggle.is-on .icon-off{ 
    display: none; 
}

#viewport3 .sound-toggle.is-on .icon-on{ 
    display: block; 
}

/* Responsive */
@media (max-width: 745px){
  .video-viewport{ 
    padding: 28px 0; 
}

  .video-wrap{ 
    width: 94vw; 
}

  .video-viewport__video{
    border-radius: 10px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.4);
  }

  #viewport3 .sound-toggle{ 
    width: 40px; 
    height: 40px; 
    top: 10px; 
    right: 10px; 
}

  #viewport3 .sound-toggle .icon{ 
    width: 18px; 
    height: 18px; 
}
}

@media (max-width: 480px){
  .video-viewport{ 
    padding: 22px 0; 
}

  .video-wrap{ 
    width: 96vw; 
}

  .video-viewport__video{
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  }

  #viewport3 .sound-toggle{ 
    width: 38px; 
    height: 38px; 
    top: 8px; 
    right: 8px; 
}

  #viewport3 .sound-toggle .icon{ 
    width: 17px; 
    height: 17px; }
}

@media (max-width: 320px){
  .video-wrap{ 
    width: 97vw; 
}

  #viewport3 .sound-toggle{ 
    width: 34px; 
    height: 34px; 
    top: 6px; 
    right: 6px; 
}

  #viewport3 .sound-toggle .icon{ 
    width: 16px; 
    height: 16px; 
}
}

/*Selekcija teksta*/
::selection {
  background:#f47c44;
  color: #65100c;
}
::-moz-selection {
  background: #f47c44;
  color: #65100c;
}
