/* ==========================================================================
   PIXXELPOINT 2024: PURE STRESS - FADE-IN ON LOAD (0.4s)
   Podlaga: #B4FFCB
   Elementi ob nalaganju mehko prehaja iz prosojnosti (opacity: 0 -> 1) v 0.4s
   ========================================================================== */

:root {
  --bg-color: #B4FFCB;
  --text-color: #05140B;
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  overflow-x: hidden;
  position: relative;
}

.page-background {
  background-color: var(--bg-color);
}

/* Glavni kontejner za pomik pri razmerju > 1 */
.aspect-shift-container {
  width: 100%;
  position: relative;
  will-change: transform;
  transform: translateY(0px);
}

/* ==========================================================================
   0. GRAPHIC RAY V OZADJU (Tik nad #B4FFCB in POD vsemi ostalimi elementi)
   ========================================================================== */
.bg-ray-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
  line-height: 0;
}

.img-bg-ray {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   1. VRH SPLETNE STRANI (Začetek v točki 0)
   ========================================================================== */
.hero-top-section {
  width: 100%;
  position: relative;
  z-index: 10;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.purestress-wrapper {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

/* Layer 2: Graphic Purestress (Določa višino sklopa) */
.img-purestress {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  z-index: 12;
  margin: 0;
  padding: 0;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Layer 3: Text Pixxelpoint (Zožan za 20%, spuščen za 20px) */
.img-pixxelpoint {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 68%;
  max-width: 816px;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   2. VERTIKALNI VRSTNI RED SPODAJ
   text_title (-20%) -> VEČ PROSTORA -> text_date (-20%) -> graphic_logo (-45%)
   ========================================================================== */
.main-content-container {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
  gap: 1.5rem;
}

.svg-block {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.responsive-svg {
  max-width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Razred ko je posamezen element naložen (opacity -> 1 v 0.4s) */
.img-bg-ray.svg-loaded,
.img-purestress.svg-loaded,
.img-pixxelpoint.svg-loaded,
.responsive-svg.svg-loaded {
  opacity: 1;
}

/* Dimenzije posameznih blokov spodaj */

/* SVG text_title (Zožano za 20%) */
.block-title {
  max-width: 920px;
  margin-top: 0.5rem;
}

.svg-title {
  width: 78%;
}

/* SVG text_date (Zožano za 20%, Povečan prostor) */
.block-date {
  max-width: 720px;
  margin-top: 1.8rem;
}

.svg-date {
  width: 72%;
}

/* SVG graphic_logo (Zožano za 45%) */
.block-logo {
  max-width: 467px;
  margin-top: -0.3rem;
}

.svg-logo {
  width: 46%;
}

/* ==========================================================================
   3. RESPONSIVENESS / MOBILNE NAPRAVE
   ========================================================================== */
@media (max-width: 768px) {
  .img-pixxelpoint {
    width: 85%;
    bottom: -35px;
  }

  .main-content-container {
    gap: 1.8rem;
    padding-top: 4rem;
    padding-bottom: 3.5rem;
  }

  .block-date {
    margin-top: 1.2rem;
  }

  .svg-title,
  .svg-date {
    width: 88%;
  }
  
  .svg-logo {
    width: 62%;
  }
}
