/* =========================
   ROOT
========================= */

:root{
  --bg:#f8f4ee;
  --dark:#1f1a17;
  --gold:#b89a5c;
  --shadow:0 25px 80px rgba(0,0,0,.12);
}

/* =========================
   RESET
========================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:system-ui, sans-serif;
  background: radial-gradient(circle at top, #f8f4ee, #eef6f4);
  color:var(--dark);
  overflow-x:hidden;

  /* FIX: header overlap */
  padding-top:70px;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 20% 10%, rgba(184,154,92,0.08), transparent 40%),
    radial-gradient(circle at 80% 40%, rgba(255,255,255,0.08), transparent 50%),
    radial-gradient(circle at 40% 90%, rgba(184,154,92,0.06), transparent 60%);
  z-index:0;
}

/* =========================
   SECTION FLOW (FIXED STRUCTURE)
========================= */

section{
  min-height:60vh;
  padding:80px 8%;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:16px;

  align-items:center; /* 🔥 KLJUČNO */
}

section:nth-of-type(odd){
  background: #f8f4ee;
}

section:nth-of-type(even){
  background: #ffffff;
}

section{
  opacity: 1;
  transform: none;
}

section.visible{
  opacity: 1;
  transform: translateY(0) scale(1);
}

section{
  min-height:60vh;
  padding:80px 8%;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:16px;

  align-items:center; /* 🔥 TO MANJKA */
}

/* =========================
   LOADER / INTRO
========================= */

.blinkita-intro{
  position:fixed;
  inset:0;
  background:rgba(248,244,238,0.98);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  z-index:9999;
}

.blinkita-intro.hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

#portal-loader{
  position:fixed;
  inset:0;
  background:#f8f4ee;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:10000;
  transition:opacity .6s ease;
}

.blinkita-intro-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

/* =========================
   HEADER (APPLE STYLE STABLE)
========================= */

.main-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:70px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:0 20px;

  z-index:10000;

  background:rgba(255,255,255,0.85);
  backdrop-filter:blur(16px);
}

/* NAV */
.main-nav{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:nowrap;
}

.main-nav a{
  white-space:nowrap;
  text-decoration:none;
  color:var(--dark);
  font-size:13px;
  padding:6px 10px;
  border-radius:999px;
  transition:0.25s ease;
}

.main-nav a:hover{
  background:rgba(184,154,92,0.15);
}

/* =========================
   TZOLKIN WIDGET (FIXED SAFE POSITION)
========================= */

#ziv-cas-header{
  position: fixed;
  top: 10px;
  right: 20px;

  width: 200px;

  z-index: 10001;

  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(18px);

  border-radius: 14px;
  padding: 10px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  text-align: center;

  animation: widgetFloat 6s ease-in-out infinite;

  border: 1px solid rgba(184,154,92,0.25);
  box-shadow: 0 30px 90px rgba(0,0,0,0.2);

  backdrop-filter: blur(20px);
}

@keyframes widgetFloat{
  0%{ transform: translateY(0px); }
  50%{ transform: translateY(-3px); }
  100%{ transform: translateY(0px); }
}

.ziv-portal-title{
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.6;
  color: var(--gold);
  margin-bottom: 2px;
}

.ziv-date{
  font-size: 9px;
  opacity: 0.6;
  letter-spacing: 1px;
  margin-bottom: 4px;
  margin-top:2px;
}

/* 3. GLAVNI NASLOV */
.ziv-title{
  font-size:11px;
  font-weight:600;
  letter-spacing:1px;
}

/* 4. KODA */
.ziv-code,
#ziv-code,
#ziv-code-secondary{
  font-size:11px;
  opacity:0.7;
}

/* 5. ŠTEVILO + ZNAMENJE */
.energy-text{
  font-size:8px;
}

.energy-img{
  width:18px;
  height:18px;
}

/* =========================
   TZOLKIN CORE ROW
========================= */

.tzolkin-mini{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.tone-block,
.sign-block{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:60px;
  gap:3px;
}

.tone-block img,
.sign-block img{
  width:26px;
  height:26px;
  object-fit:contain;
}

.tone-block span,
.sign-block span{
  font-size:10px;
  opacity:0.75;
}

/* =========================
   MOBILE TZOLKIN POSITION
========================= */

@media (max-width: 768px) {

  #ziv-cas-header {
    position: fixed;
    top: auto;
    bottom: 15px;
    right: 15px;
    left: auto;

    z-index: 99999;

    /* NE dotikamo velikosti */
    width: auto;
    height: auto;

    /* samo malo “lažji feel” */
    transform: scale(0.95);
  }

}

/* =========================
   INLINE ENERGY
========================= */

.tzolkin-inline{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.energy-text{
  font-size:13px;
  font-weight:600;
}

.energy-img{
  width:22px;
  height:22px;
  object-fit:contain;
}

/* =========================
   HERO
========================= */

.hero{
  min-height:90vh;
  display:flex;
  align-items:center;
  padding:8%;
  color:white;
  position:relative;
  overflow: hidden;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.35)),
    url("../images/blinkitanaplazi.jpg");
  background-size: cover;
  background-position: center;
 transform: scale(1.1) translateY(calc(var(--scroll, 0) * 60px));
  transition: transform 0.2s ease-out;
}

.hero::before{
  animation: heroZoom 18s ease-in-out infinite;
  transform-origin: center;
}

@keyframes heroZoom{
  0%{
    transform: scale(1);
  }
  50%{
    transform: scale(1.08);
  }
  100%{
    transform: scale(1);
  }
}

.hero-card{
  max-width: 520px;          /* ožji = bolj vertikalen občutek */
  width: 100%;
  padding: 44px 38px;

  display: flex;
  flex-direction: column;
  gap: 14px;

  border-radius: 28px;

  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(16px);

  box-shadow: 0 30px 100px rgba(0,0,0,0.35);
}

.hero-card p{
  line-height: 1.7;
  font-size: 15px;
}

.hero-card h1{
  font-size: 40px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.hero-card h1,
.hero-card p,
.hero-card .hero-buttons{
  opacity: 0;
  transform: translateY(10px);
  animation: heroTextIn 1s ease forwards;
}

.hero-card p{ animation-delay: 0.2s; }
.hero-card h1{ animation-delay: 0.1s; }
.hero-buttons{ animation-delay: 0.4s; }

@keyframes heroTextIn{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-buttons{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.hero-buttons .btn,
.hero-buttons .btn-secondary{
  display:inline-flex;
  width:auto;
}

/* =========================
   CARDS
========================= */

.card{
  background:rgba(255,255,255,.65);
  backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.35);
  box-shadow:var(--shadow);
  padding:24px;
  border-radius:18px;
  transition:.3s ease;
}

.card:hover{
  transform:translateY(-8px);
}

/* GRID */

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:20px;
}

.image-section{
  padding:40px 8%;
}

.feature-image{
  width:100%;
  max-width:1100px;
  margin:auto;
  display:block;

  border-radius:24px;

  box-shadow:
  0 30px 90px rgba(0,0,0,.18);
}

/* =========================
   BUTTONS
========================= */

.btn,
.btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:auto;

  padding:12px 18px;
  border-radius:999px;

  text-decoration:none;
  white-space:nowrap;
}

.btn{
  background:var(--gold);
  color:white;
}

.btn-secondary{
  background:linear-gradient(
    135deg,
    #d6b878,
    #b89a5c
  );

  color:white;
  font-weight:600;
  letter-spacing:0.5px;

  box-shadow:0 15px 40px rgba(184,154,92,0.35);
}

/* =========================
   MULTIVERSE
========================= */

.universe-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:24px;
}

.world{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:120px;
  border-radius:16px;
  background:rgba(255,255,255,.6);
  backdrop-filter:blur(10px);
  text-decoration:none;
  color:inherit;
  transition:.3s ease;
}

.world:hover{
  transform:scale(1.03);
}

/* =========================
   IMAGE SAFETY
========================= */

img{
  max-width:100%;
  display:block;
}

/* =========================
   POETIC TEXT
========================= */

.poetic{
  max-width:720px;
}

.poetic p,
.poetic li{
  margin:0 0 10px 0;
  line-height:1.65;
}

.poetic h2{
  margin-bottom:14px;
}

.poetic ul{
  padding-left:18px;
}

.hero-buttons{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.btn,
.btn-secondary{
  width: auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
}

.doors-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap:16px;
  margin-top:20px;
}

.door-card{
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  border-radius: 18px;

  padding: 18px;
  text-decoration:none;
  color: var(--dark);

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  gap:6px;

  box-shadow: 0 20px 60px rgba(0,0,0,0.12);

  transition: 0.25s ease;
}

.door-card:hover{
  transform: translateY(-6px);
  background: rgba(255,255,255,0.9);
}

.door-card span{
  font-size: 14px;
  font-weight: 600;
}

.door-card small{
  opacity: 0.7;
}

.door-card{
  border-radius: 20px;
  padding: 20px;

  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);

  box-shadow: 0 25px 60px rgba(0,0,0,0.12);

  transform: translateY(0);
  transition: all 0.3s ease;

  border: 1px solid rgba(184,154,92,0.15);
}

.door-card:hover{
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 35px 90px rgba(0,0,0,0.18);
}

/* pastel accents */
.d1{ background: rgba(255, 230, 230, 0.55); }
.d2{ background: rgba(230, 255, 240, 0.55); }
.d3{ background: rgba(230, 240, 255, 0.55); }
.d4{ background: rgba(255, 250, 220, 0.55); }
.d5{ background: rgba(240, 230, 255, 0.55); }


.multiverse-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap:16px;
  margin-top:20px;
}

.world-card{
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);

  border-radius: 16px;
  padding: 18px;

  text-align:center;
  text-decoration:none;
  color: var(--dark);

  box-shadow: 0 18px 50px rgba(0,0,0,0.12);

  transition: 0.25s ease;
}

.world-card:hover{
  transform: scale(1.03);
}

section{
  padding: 70px 8%;
  margin: 0;
  gap: 14px;
}

section + section{
  margin-top: 10px;
}

h1,h2,h3{
  letter-spacing: -0.02em;
}

p{
  opacity: 0.92;
}

.world-card{
  padding: 26px;
  border-radius: 18px;

  font-size: 14px;

  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);

  box-shadow: 0 20px 60px rgba(0,0,0,0.12);

  transition: 0.3s ease;
}

.world-card:hover{
  transform: scale(1.06);
  box-shadow: 0 30px 90px rgba(0,0,0,0.18);
}

.card,
.door-card,
.world-card{
  animation: float 6s ease-in-out infinite;
}

@keyframes float{
  0%{ transform: translateY(0px); }
  50%{ transform: translateY(-4px); }
  100%{ transform: translateY(0px); }
}

#ziv-cas-header{
  border: 1px solid rgba(184,154,92,0.25);
  box-shadow: 0 25px 70px rgba(0,0,0,0.18);

  animation: widgetPulse 4s ease-in-out infinite;
}

@keyframes widgetPulse{
  0%{
    box-shadow: 0 20px 50px rgba(0,0,0,0.14);
  }
  50%{
    box-shadow: 0 25px 80px rgba(184,154,92,0.25);
  }
  100%{
    box-shadow: 0 20px 50px rgba(0,0,0,0.14);
  }
}

html{
  scroll-behavior: smooth;
}

section{
  scroll-margin-top: 80px;
}

section.visible{
  transition: all 1s cubic-bezier(.2,.8,.2,1);
}

section{
  padding: 60px 8%;
}

section:nth-of-type(odd){
  background: #f8f4ee;
}

section:nth-of-type(even){
  background: #ffffff;
}

.series-row {
  display: grid;
  grid-template-columns: repeat(3, 220px);
  justify-content: center; /* CENTRIRANO na sredini strani */
  gap: 16px;
  perspective: 1000px; /* 3D globina */

  margin-top: 60px;  /* ZRAK od hero sekcije */
  padding: 0 20px;
}

/* kartice */
.series-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  padding: 10px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform: translateZ(0);
}

/* KVADRATNE SLIKE */
.series-card img {
  width: 100%;
  aspect-ratio: 1 / 1;   /* ključ za kvadrat */
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: transform 0.5s ease;
}

/* hover “prebujenje” */
.series-card:hover {
  transform: translateY(-6x) rotateX(2eg) rotateY(-2eg);
  box-shadow: 0 18px 35px rgba(0,0,0,0.35);
}

/* slika se rahlo poveča v hoverju */
.series-card:hover img {
  transform: scale(1.08);
}

/* MAIN SERIES malo bolj izrazit */
.main-series {
  grid-column: span 3;
}

/* MAIN ni več fullscreen */
.main-series {
  grid-column: span 1; /* pomembno: NE razteguje več */
}

/* tekst bolj čist */
.series-card h3 {
  font-size: 14px;
  margin: 8x 0 4px;
}

.series-card p {
  font-size: 11px;
  opacity: 0.85;
}

.series-date {
  font-size: 10px;
  opacity: 0.7;
}

.featured-text {
  margin-top: 24px;
}

.featured-text p:last-of-type {
  margin-bottom: 18px;
}

.featured-text .btn {
  display: inline-block;
  margin-top: 10px;
}

footer {
  text-align: center;
  padding: 60px 20px;
  opacity: 0.6;
  perspective: 1000px;
  position: relative;
  overflow: hidden;

  transform: translateY(10px);
  transform-style: preserve-3d;

  transition: all 0.3s ease;
}

footer h3,
footer p {
  display: inline-block;
  transform: translateZ(0);
  transition: transform 0.4s ease, text-shadow 0.4s ease;
}

footer p {
  opacity: 0.7;
  font-size: 14px;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);

  width: 60%;
  height: 3px;
  border-radius: 999px;

  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.1),
    rgba(255,255,255,0.6),
    rgba(255,255,255,0.1)
  );

  animation: frequencyPulse 4s ease-in-out infinite;
  opacity: 0.6;
}

footer:hover h3 {
  transform: translateZ(20px) rotateX(6deg);
  text-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

footer:hover p {
  transform: translateZ(10px);
  opacity: 0.85;
}

@keyframes footerPulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
}

footer {
  animation: footerPulse 6s ease-in-out infinite;
}

.portals {
  padding: 90px 20px;
}

.portals h2 {
  margin-bottom: 35px;
  text-align: center;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.portal-card {
  padding: 24px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  text-align: center;

  display: flex;
  flex-direction: column;
  gap: 12px;

  position: relative;
  overflow: hidden;

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.portal-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.portal-card .btn-small {
  margin-top: 12px;
  display: inline-block;
  transition: all 0.3s ease;
}

.portal-card .btn-small:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.portal-card::before {
  content: "";
  position: absolute;
  inset: -40px;
  opacity: 0;
  filter: blur(30px);
  transition: opacity 0.4s ease;
  z-index: 0;
}

.portal-card:hover::before {
  opacity: 0.7;
}

.portal-card:nth-child(1)::before {
  background: radial-gradient(circle, rgba(255, 120, 120, 0.5), transparent 60%);
}

.portal-card:nth-child(2)::before {
  background: radial-gradient(circle, rgba(120, 200, 255, 0.5), transparent 60%);
}

.portal-card:nth-child(3)::before {
  background: radial-gradient(circle, rgba(180, 255, 160, 0.45), transparent 60%);
}

.portal-card > * {
  position: relative;
  z-index: 1;
}

@keyframes auraPulse {
  0% {
    transform: scale(0.98);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
  100% {
    transform: scale(0.98);
    opacity: 0.4;
  }
}

.portal-card:hover::before {
  animation: auraPulse 3s ease-in-out infinite;
}

.cta-box{
  margin-top: 50px;
  padding: 30px;
  border-radius: 18px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);
  box-shadow: 0 25px 70px rgba(0,0,0,0.12);
  text-align: center;
}

.cta-box h3{
  margin-bottom: 10px;
}

.price{
  margin: 15px 0;
  font-size: 22px;
}

.price .old{
  text-decoration: line-through;
  opacity: 0.5;
  margin-right: 10px;
}

.price .new{
  font-weight: bold;
  color: #b89a5c;
}

.cta-buttons{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

.modal-box{
  background: rgba(255,255,255,0.95);
  padding: 30px;
  border-radius: 18px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 90px rgba(0,0,0,0.25);
  transform: scale(0.95);
  transition: 0.3s ease;
}

.modal-overlay.active .modal-box{
  transform: scale(1);
}

.modal-box{
  position:relative;
}

.modal-close{
  position:absolute;
  top:12px;
  right:12px;

  width:36px;
  height:36px;

  border:none;
  border-radius:50%;

  cursor:pointer;

  background:rgba(184,154,92,0.15);
  color:#333;

  font-size:18px;
  font-weight:bold;

  transition:all .3s ease;
}

.modal-close:hover{
  background:rgba(184,154,92,0.3);
  transform:rotate(90deg);
}

.oracle-section{
  text-align:center;
}

.oracle-section h2{
  text-align:center;
  margin-bottom:30px;
}

.oracle-card{
  max-width:900px;
  margin:0 auto;

  padding:50px;

  border-radius:28px;

  background:
  linear-gradient(
    135deg,
    rgba(255,255,255,0.88),
    rgba(248,244,238,0.95)
  );

  border:1px solid rgba(184,154,92,0.18);

  box-shadow:
  0 30px 90px rgba(0,0,0,0.12);

  text-align:center;
}

.oracle-card p{
  max-width:720px;
  margin:0 auto 18px auto;
}

.oracle-lead{
  font-size:24px;
  font-weight:600;
}

.oracle-final{
  margin-top:25px;
  font-size:20px;
  color:var(--gold);
  font-weight:600;
}

.oracle-btn{
  margin-top:20px;
  display:inline-flex;
}

/* =========================
   BELIZE PORTAL SECTION STYLE
========================= */

#belize{
  position: relative;
  padding: 90px 8%;
  text-align: center;
}

/* rahlo “portal” ozadje */
#belize::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 30% 20%, rgba(184,154,92,0.08), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(0,0,0,0.04), transparent 50%);
  pointer-events:none;
}

/* naslov */
#belize h2{
  font-size: 42px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

/* lead (ključne vrstice) */
#belize .lead{
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
  font-style: italic;
}

/* vsi paragrafi */
#belize p{
  max-width: 720px;
  margin: 0 auto 18px auto;
  line-height: 1.7;
  font-size: 15px;
  opacity: 0.92;
}

/* poudarjeni “portali” (datumi, številke) */
#belize strong{
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* slika */
#belize img,
#belize video {
  margin-top: 35px;
  width: 100%;
  max-width: 900px;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.18);
  transform: scale(1);
  transition: 0.4s ease;
}

#belize img:hover{
  transform: scale(1.02);
}

/* =========================
   BLINKITA IMAGE PORTAL FRAME
========================= */

.blinkita-portal-image{
  position: relative;
  max-width: 520px;
  margin: 40px auto;
  border-radius: 22px;

  /* 3D občutek */
  transform: perspective(1200px) rotateX(2deg);

  transition: transform 0.6s ease;
}

/* hover “prebujenje” */
.blinkita-portal-image:hover{
  transform: perspective(1200px) rotateX(0deg) scale(1.02);
}

/* slika */
.blinkita-portal-image img{
  width: 100%;
  display: block;
  border-radius: 22px;

  /* globina */
  box-shadow:
    0 25px 70px rgba(0,0,0,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.2);

  transform: scale(1.02);
  transition: transform 0.6s ease, filter 0.6s ease;
}

/* hover slika */
.blinkita-portal-image:hover img{
  transform: scale(1.07);
  filter: contrast(1.05) brightness(1.05);
}

/* svetlobni “portal” efekt */
.image-glow{
  position: absolute;
  inset: -40px;
  background: radial-gradient(
    circle,
    rgba(184,154,92,0.25),
    transparent 60%
  );

  filter: blur(25px);
  opacity: 0.6;

  animation: portalPulse 6s ease-in-out infinite;
  z-index: -1;
}

/* subtilno dihanje */
@keyframes portalPulse{
  0%   { transform: scale(0.98); opacity: 0.35; }
  50%  { transform: scale(1.05); opacity: 0.7; }
  100% { transform: scale(0.98); opacity: 0.35; }
}

.blinkita-portal-image{
  animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage{
  0%   { transform: perspective(1200px) translateY(0px) rotateX(2deg); }
  50%  { transform: perspective(1200px) translateY(-6px) rotateX(2deg); }
  100% { transform: perspective(1200px) translateY(0px) rotateX(2deg); }

}

/* =========================
   LIBRARY IMAGE PORTAL
========================= */

.library-image{
  max-width: 520px;
  margin: 40px auto;
  position: relative;

  transform: perspective(1200px) rotateX(2deg);
  animation: floatLibrary 7s ease-in-out infinite;
}

.library-image img{
  border-radius: 22px;
  width: 100%;
  display: block;

  box-shadow:
    0 30px 80px rgba(0,0,0,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.2);
}

.library-image:hover{
  transform: perspective(1200px) rotateX(0deg) scale(1.03);
}

.library-image:hover img{
  transform: scale(1.06);
  transition: 0.5s ease;
}

@keyframes floatLibrary{
  0%   { transform: perspective(1200px) translateY(0px) rotateX(2deg); }
  50%  { transform: perspective(1200px) translateY(-6px) rotateX(2deg); }
  100% { transform: perspective(1200px) translateY(0px) rotateX(2deg); }
}

/* =========================
   LIBRARY CENTER ALIGN FIX
========================= */

.library.portal-center{
  text-align: center;
}

.library.portal-center p{
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.library.portal-center h2,
.library.portal-center h3,
.library.portal-center .lead{
  text-align: center;
}

/* gumb v centru */
.library.portal-center .btn{
  display: inline-flex;
  justify-content: center;
  margin: 20px auto 0 auto;
}

/* =========================
   BUTTON FIX (NO FULL WIDTH)
========================= */

.library .btn{
  display: inline-flex;
  width: auto;
  margin: 20px auto 0 auto;
}

.offer-box{
  margin-top: 40px;
  padding: 30px;
  border-radius: 22px;

  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);

  box-shadow: 0 25px 80px rgba(0,0,0,0.12);

  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.offer-box h3{
  margin-bottom: 10px;
}

.offer-box .price{
  margin: 15px 0;
}

/* =========================
   GUARDIAN PORTAL IMAGE
========================= */

.guardian-image{
  max-width: 520px;
  margin: 35px auto;
  position: relative;

  transform: perspective(1200px) rotateX(2deg);
  animation: guardianFloat 7s ease-in-out infinite;
}

.guardian-image img{
  width: 100%;
  display: block;
  border-radius: 22px;

  box-shadow:
    0 30px 90px rgba(0,0,0,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.2);

  transition: transform 0.6s ease, filter 0.6s ease;
}

.guardian-image:hover img{
  transform: scale(1.06);
  filter: brightness(1.05) contrast(1.05);
}

.guardian-image:hover{
  transform: perspective(1200px) rotateX(0deg) scale(1.03);
}

@keyframes guardianFloat{
  0%   { transform: perspective(1200px) translateY(0px) rotateX(2deg); }
  50%  { transform: perspective(1200px) translateY(-7px) rotateX(2deg); }
  100% { transform: perspective(1200px) translateY(0px) rotateX(2deg); }
}

.guardian-image .image-glow{
  background: radial-gradient(
    circle,
    rgba(120,180,255,0.22),
    transparent 60%
  );
}

.blinkita-section-center{
  text-align: center;
}

.blinkita-section-center p{
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.blinkita-section-center h2,
.blinkita-section-center h3{
  text-align: center;
}

/* =========================
   MOBILE NAV
========================= */

.mobile-menu-btn{
  display:none;
}

@media (max-width:768px){

  .mobile-menu-btn{
    display:block;
    font-size:28px;
    cursor:pointer;
    background:none;
    border:none;
  }

  .main-nav{
    display:none;

    position:absolute;
    top:70px;
    left:0;
    right:0;

    background:white;

    flex-direction:column;
    padding:20px;
    gap:12px;

    box-shadow:0 20px 40px rgba(0,0,0,.12);
  }

  .main-nav.active{
    display:flex;
  }

  #ziv-cas-header{

  top:auto;
  bottom:15px;

  right:15px;

  width:160px;

  z-index:999;

  border-radius:16px;

  box-shadow:
    0 15px 40px rgba(0,0,0,.18);

}

.mobile-menu-btn{
  display:none;
  z-index:10001; /* KLJUČNO */
}

@media (max-width:768px){

  .mobile-menu-btn{
    display:block;
    font-size:28px;
    cursor:pointer;
    background:none;
    border:none;

    position:relative;
    z-index:10002;
  }

  .main-header{
    z-index:10000;
  }

  .main-nav{
    display:none;
    position:absolute;
    top:70px;
    left:0;
    right:0;
    background:white;
    flex-direction:column;
    padding:20px;
    gap:12px;
    box-shadow:0 20px 40px rgba(0,0,0,.12);
    z-index:9999;
  }

  .main-nav.active{
    display:flex;
  }
}

.cta-box{
  max-width:700px;
  margin:60px auto;
  padding:40px;

  border-radius:24px;

  background:rgba(255,255,255,0.65);
  backdrop-filter:blur(12px);

  text-align:center;
}

.cta-box h3{
  margin-bottom:20px;
}

.cta-box p{
  margin-bottom:20px;
  line-height:1.8;
}

.cta-box .btn{
  display:inline-flex;
  width:auto;

  margin-top:30px;
}

.cta-buttons{
  display:flex;
  justify-content:center;
  gap:15px;
  margin-top:30px;
}

.cta-box p:last-of-type{
  margin-bottom:40px;
}

.manifest-section .blinkita-portal-image{
  max-width:600px;
  margin:50px auto;
  transform:perspective(1200px) rotateX(2deg);
  transition:0.6s ease;
}

.manifest-section .blinkita-portal-image:hover{
  transform:perspective(1200px) rotateX(0deg) scale(1.02);
}

.manifest-highlight{
  margin:40px auto;
  max-width:600px;
  padding:20px;
  text-align:center;
}

.blinkita-video-portal{
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 40px auto;

  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;

  transform: perspective(1200px) rotateX(2deg);
  transition: transform 0.6s ease;

  display: block;
}

/* VIDEO KONTROLA */
.blinkita-video-portal video{
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;   /* ključno */
  object-position: center;
}

/* hover efekt */
.blinkita-video-portal:hover{
  transform: perspective(1200px) rotateX(0deg) scale(1.02);
}