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

html {
  scroll-behavior: smooth;
}

body {
  background: #f7f6f3;
  min-height: 100vh;
  font-family: Georgia, serif;
  overflow-x: hidden;
}

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

/* HERO */

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #f7f6f3;
  overflow: hidden;
  padding: 45px;
}

nav {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  font-family: Arial, sans-serif;
}

.logo {
  font-size: 18px;
  font-weight: 900;
}

.links a {
  margin-left: 35px;
  text-decoration: none;
  color: #111;
  font-size: 12px;
  transition: opacity 0.3s ease;
}

.links a:hover {
  opacity: 0.5;
}

.text {
  position: absolute;
  left: 70px;
  top: 28vh;
  z-index: 1;
}

.text h1 {
  font-size: clamp(90px, 13vw, 200px);
  line-height: 0.82;
  letter-spacing: -10px;
  font-weight: 500;
}

.text p {
  margin-top: 18px;
  font-size: clamp(24px, 2.5vw, 42px);
  line-height: 1.05;
  letter-spacing: -1px;
  max-width: 700px;
}

.text-back {
  color: rgba(0, 0, 0, 0.06);
  z-index: 1;
}

.text-front {
  color: #050505;
  z-index: 4;
  clip-path: circle(280px at var(--x, 40%) var(--y, 40%));
  pointer-events: none;
}

/* MAIN BLOB */

.blob {
  position: absolute;
  left: var(--blob-x, 55%);
  top: var(--blob-y, 35%);
  width: 760px;
  height: 430px;
  background: #ff3b12;
  z-index: 3;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-8deg);
  border-radius: 64% 36% 58% 42% / 45% 52% 48% 55%;
  animation: liquidBlob 7s ease-in-out infinite;
}

.blob::before,
.blob::after {
  content: "";
  position: absolute;
  background: #ff3b12;
  border-radius: 50%;
}

.blob::before {
  width: 260px;
  height: 230px;
  left: -100px;
  top: 110px;
}

.blob::after {
  width: 320px;
  height: 280px;
  right: -120px;
  top: 135px;
}

.blob-light {
  position: absolute;
  left: var(--blob-light-x, 50%);
  top: var(--blob-light-y, 50%);
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255,255,255,0.95) 0%,
    rgba(255,210,200,0.75) 20%,
    rgba(255,160,140,0.35) 45%,
    rgba(255,120,90,0.12) 70%,
    transparent 100%
  );
  filter: blur(10px);
  mix-blend-mode: screen;
  opacity: 1;
  pointer-events: none;
  z-index: 5;
  animation: glowPulse 2.8s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.95;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
}

@keyframes liquidBlob {
  0%, 100% {
    border-radius: 64% 36% 58% 42% / 45% 52% 48% 55%;
    transform: translate(-50%, -50%) rotate(-8deg) scale(1);
  }

  50% {
    border-radius: 38% 62% 45% 55% / 42% 60% 40% 58%;
    transform: translate(-50%, -50%) rotate(2deg) scale(1.08);
  }
}

/* MOUSE GLOW */

.mouse-glow {
  position: absolute;
  left: var(--mouse-x, 50%);
  top: var(--mouse-y, 50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(255,255,255,0.32) 0%,
    rgba(255,255,255,0.14) 35%,
    rgba(255,255,255,0.05) 55%,
    transparent 75%
  );
  mix-blend-mode: screen;
}

/* SIDE INFO */

aside {
  position: absolute;
  right: 45px;
  top: 25vh;
  z-index: 20;
  text-align: right;
  font-family: Arial, sans-serif;
}

aside small {
  font-size: 12px;
}

/* SCROLL BUTTON */

.scroll-indicator {
  position: absolute;
  right: 45px;
  bottom: 45px;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  cursor: pointer;
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator span {
  color: white;
  font-size: 24px;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

/* ABOUT */

.about-section {
  position: relative;
  min-height: 100vh;
  background: #f7f6f3;
  padding: 140px 7vw;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.about-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1450px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-liquid-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.about-liquid {
  position: absolute;
  display: block;
  background: rgba(255, 104, 45, 0.11);
  filter: blur(8px);
  border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%;
  animation: lavaMove 20s ease-in-out infinite alternate;
  mix-blend-mode: multiply;
}

.liquid-1 {
  width: 620px;
  height: 460px;
  left: -120px;
  top: 16%;
  animation-duration: 24s;
}

.liquid-2 {
  width: 520px;
  height: 640px;
  right: 4%;
  top: 10%;
  animation-duration: 28s;
  animation-delay: -5s;
}

.liquid-3 {
  width: 480px;
  height: 380px;
  left: 8%;
  bottom: -140px;
  animation-duration: 26s;
  animation-delay: -9s;
}

.liquid-4 {
  width: 240px;
  height: 240px;
  right: 10%;
  bottom: 18%;
  background: rgba(255, 130, 90, 0.15);
  animation-duration: 18s;
}

.liquid-5 {
  width: 260px;
  height: 260px;
  left: 48%;
  top: -90px;
  animation-duration: 22s;
  animation-delay: -12s;
}

@keyframes lavaMove {
  0% {
    transform: translate3d(0,0,0) rotate(0deg) scale(1);
    border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%;
  }

  35% {
    transform: translate3d(45px,-35px,0) rotate(8deg) scale(1.06);
    border-radius: 40% 60% 45% 55% / 60% 40% 55% 45%;
  }

  70% {
    transform: translate3d(-40px,40px,0) rotate(-6deg) scale(0.96);
    border-radius: 65% 35% 55% 45% / 38% 62% 40% 60%;
  }

  100% {
    transform: translate3d(28px,18px,0) rotate(6deg) scale(1.1);
    border-radius: 50% 50% 35% 65% / 55% 45% 60% 40%;
  }
}

.profile-circle {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  background: #d9d9d9;
  margin-bottom: 46px;
}

.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-label {
  font-family: Arial, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 34px;
  color: #111;
}

.about-content h2 {
  max-width: 1380px;
  font-size: clamp(82px, 8vw, 170px);
  line-height: 0.88;
  letter-spacing: -7px;
  font-weight: 500;
  color: #050505;
  margin-bottom: 42px;
}

.about-text {
  max-width: 760px;
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

/* PROJECTS */

.projects-section {
  min-height: 100vh;
  background: #c92500;
  color: #f7f6f3;
  padding: 120px 8vw;
}

.projects-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.projects-content h2,
.contact-content h2 {
  font-size: clamp(46px, 7vw, 110px);
  line-height: 0.9;
  letter-spacing: -5px;
  font-weight: 500;
}

.projects-content h2 {
  max-width: 1200px;
  margin-bottom: 100px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px 42px;
  align-items: start;
}

.project-card {
  color: #f7f6f3;
  text-decoration: none;
  cursor: pointer;
}

/* 4 + 5 spodaj poravnana med 1-2 in 2-3 */

.project-card:nth-child(4) {
  grid-column: 1 / 2;
  transform: translateX(52%);
}

.project-card:nth-child(5) {
  grid-column: 2 / 3;
  transform: translateX(52%) 
}

.posters-trigger,
.editorial-trigger,
.square-book-trigger,
.gif-trigger {
  cursor: pointer;
}

/* VSI BUBBLI ENAKE OBLIKE */

.project-blob {
  width: 100%;
  aspect-ratio: 1 / 0.72;

  overflow: hidden;
  background: #f7f6f3;
  margin-bottom: 28px;

  border-radius: 58% 42% 65% 35% / 38% 55% 45% 62%;

  transform: translateZ(0);
}

/* isti liquid shape na vseh */

.project-card:nth-child(1) .project-blob,
.project-card:nth-child(2) .project-blob,
.project-card:nth-child(3) .project-blob,
.project-card:nth-child(4) .project-blob,
.project-card:nth-child(5) .project-blob {
  border-radius: 58% 42% 65% 35% / 38% 55% 45% 62%;
}


.project-blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-number {
  font-family: Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.project-card h3 {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -1px;
  font-weight: 500;
  margin-bottom: 16px;
}

.project-card p:last-child {
  max-width: 340px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.85;
}

/* PROJECT 1 POSTER OVERLAY */

.poster-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;

  overflow-y: auto;
  overflow-x: hidden;
}

.poster-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.close-posters {
  position: fixed;
  top: 35px;
  right: 45px;
  background: none;
  border: none;
  color: white;
  font-size: 48px;
  cursor: pointer;
  z-index: 999999;
}

.poster-overlay-content {
  width: 100vw;
  min-height: 100vh;
  padding: 90px 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 45px;
}

.floating-posters {
  position: relative;
  width: 90vw;
  min-height: 900px;
  max-width: 1400px;
}

.floating-poster {
  position: absolute;
  width: 28vw;
  max-width: 420px;
  min-width: 250px;
  height: auto;
  object-fit: contain;
  box-shadow: 0 35px 80px rgba(0,0,0,0.45);
  cursor: pointer;
  will-change: transform;
  transform: translateZ(0);
  transition: transform 0.5s ease, z-index 0.2s ease, box-shadow 0.5s ease;
}

.poster-a {
  left: 8%;
  top: 16%;
  transform: rotate(-8deg);
}

.poster-b {
  left: 36%;
  top: 4%;
  z-index: 2;
  transform: rotate(3deg);
}

.poster-c {
  right: 8%;
  top: 16%;
  transform: rotate(8deg);
}

.floating-poster:hover {
  transform: scale(1.08) rotate(0deg);
  z-index: 10;
  box-shadow: 0 45px 100px rgba(0,0,0,0.65);
}

/* GIF PROJECT OVERLAY */

.gif-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  overflow: hidden;
}

.gif-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.close-gif {
  position: fixed;
  top: 35px;
  right: 45px;
  background: none;
  border: none;
  color: white;
  font-size: 48px;
  cursor: pointer;
  z-index: 999999;
}

.gif-overlay-content {
  width: 100vw;
  min-height: 100vh;
  padding: 90px 7vw;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 60px;
  align-items: center;
}

.gif-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 35px 90px rgba(0,0,0,0.5);
}

.gif-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  transform: translateZ(0);
}

.gif-info {
  color: #f7f6f3;
}

.gif-info h3 {
  font-size: clamp(48px, 6vw, 90px);
  line-height: 0.9;
  letter-spacing: -4px;
  font-weight: 500;
  margin-bottom: 28px;
}

.gif-info p {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.85;
}

.gif-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.gif-skills span {
  font-family: Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
}

/* PROJECT 5 POSTER OVERLAY */

.abonma-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 99999;

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

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;

  overflow-y: auto;
  overflow-x: hidden;
}

.abonma-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.close-abonma {
  position: fixed;
  top: 35px;
  right: 45px;

  background: none;
  border: none;

  color: white;
  font-size: 48px;

  cursor: pointer;
  z-index: 999999;
}


/* CONTACT */

.contact-section {
  position: relative;
  min-height: 100vh;

  background: #f7f6f3;
  color: #050505;

  padding: 120px 8vw;

  display: flex;
  align-items: center;

  overflow: hidden;
}

/* LIQUID BACKGROUND */

.contact-liquid-bg {
  position: absolute;
  inset: 0;
  z-index: 1;

  pointer-events: none;
  overflow: hidden;
}

.contact-liquid {
  position: absolute;
  display: block;

  background: rgba(255, 104, 45, 0.11);

  filter: blur(10px);

  border-radius:
    55% 45% 60% 40% /
    45% 55% 45% 55%;

  animation: lavaMove 20s ease-in-out infinite alternate;

  mix-blend-mode: multiply;
}

.contact-liquid-1 {
  width: 560px;
  height: 460px;
  left: -130px;
  top: 12%;
  animation-duration: 24s;
}

.contact-liquid-2 {
  width: 520px;
  height: 640px;
  right: -130px;
  top: 8%;
  animation-duration: 28s;
  animation-delay: -5s;
}

.contact-liquid-3 {
  width: 340px;
  height: 300px;
  left: 34%;
  bottom: -90px;
  animation-duration: 26s;
  animation-delay: -8s;
}

.contact-liquid-4 {
  width: 240px;
  height: 240px;
  right: 20%;
  bottom: 18%;
  background: rgba(255, 130, 90, 0.15);
  animation-duration: 18s;
  animation-delay: -2s;
}

/* CONTACT */

.contact-section {
  position: relative;
  min-height: 100vh;

  background: #f7f6f3;
  color: #050505;

  padding: 120px 8vw;

  display: flex;
  align-items: center;

  overflow: hidden;
}

/* LIQUID BACKGROUND */

.contact-liquid-bg {
  position: absolute;
  inset: 0;
  z-index: 1;

  pointer-events: none;
  overflow: hidden;
}

.contact-liquid {
  position: absolute;
  display: block;

  background: rgba(255, 104, 45, 0.11);

  filter: blur(10px);

  border-radius:
    55% 45% 60% 40% /
    45% 55% 45% 55%;

  animation: lavaMove 20s ease-in-out infinite alternate;

  mix-blend-mode: multiply;
}

.contact-liquid-1 {
  width: 560px;
  height: 460px;
  left: -130px;
  top: 12%;
  animation-duration: 24s;
}

.contact-liquid-2 {
  width: 520px;
  height: 640px;
  right: -130px;
  top: 8%;
  animation-duration: 28s;
  animation-delay: -5s;
}

.contact-liquid-3 {
  width: 340px;
  height: 300px;
  left: 34%;
  bottom: -90px;
  animation-duration: 26s;
  animation-delay: -8s;
}

.contact-liquid-4 {
  width: 240px;
  height: 240px;
  right: 20%;
  bottom: 18%;
  background: rgba(255, 130, 90, 0.15);
  animation-duration: 18s;
  animation-delay: -2s;
}

/* CONTENT */

.contact-content {
  position: relative;
  z-index: 5;

  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.contact-content h2 {
  color: #050505;
}

/* TEXT UNDER TITLE */

.contact-section .about-text {
  margin-top: 34px;
  color: #050505;
}

.contact-section .section-label,
.contact-section p {
  color: #050505;
}

/* LAYOUT */

.contact-layout {
  margin-top: 95px;

  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 90px;

  align-items: end;
}

.contact-left {
  width: 100%;
}

/* SOCIALS */

.social-links {
  display: flex;
  gap: 70px;

  margin-bottom: 80px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 24px;

  text-decoration: none;
  color: #050505;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.social-item:hover {
  opacity: 0.65;
  transform: translateY(-4px);
}

.social-icon {
  width: 64px;
  height: 64px;

  border: 2px solid #050505;
  border-radius: 22px;

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

  font-family: Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;

  color: #050505;
}

.social-item .contact-label {
  color: #050505;
}

/* CONTACT LINKS */

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;

  width: 100%;
}

.contact-item {
  display: grid;
  grid-template-columns: 160px 1fr 30px;
  align-items: center;

  padding: 24px 0;

  border-top: 1px solid rgba(0,0,0,0.15);

  text-decoration: none;
  color: #050505;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.contact-item:last-child {
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

.contact-item:hover {
  opacity: 0.65;
  transform: translateX(8px);
}

.contact-label {
  display: block;

  font-family: Arial, sans-serif;
  font-size: 12px;

  text-transform: uppercase;
  letter-spacing: 2px;

  color: #050505;
}

.contact-value {
  display: block;

  font-family: Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.5px;

  color: #050505;
}

.contact-arrow {
  font-family: Arial, sans-serif;
  font-size: 24px;
  text-align: right;

  color: #050505;
}

/* COLLABORATION FORM */

.collaboration-form {
  width: 100%;
  max-width: 520px;

  justify-self: end;
}

.collaboration-form label {
  display: block;

  margin-bottom: 36px;

  font-family: Arial, sans-serif;
  font-size: 13px;

  text-transform: uppercase;
  letter-spacing: 3px;

  color: #050505;
}

/* WHITE MAIL BAR */

.email-bar {
  display: flex;
  align-items: center;

  width: 100%;

  background: #ffffff;
  border-radius: 999px;

  padding: 8px 10px 8px 26px;

  box-shadow:
    0 18px 55px rgba(0,0,0,0.08);
}

.email-bar input {
  width: 100%;

  background: transparent;
  border: none;
  outline: none;

  color: #050505;

  font-family: Arial, sans-serif;
  font-size: 18px;
}

.email-bar input::placeholder {
  color: rgba(0,0,0,0.45);
}

.email-bar button {
  width: 54px;
  height: 54px;

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

  padding: 0;
  line-height: 1;

  border: none;
  border-radius: 50%;

  background: #050505;
  color: #f7f6f3;

  font-size: 24px;

  cursor: pointer;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.email-bar button span {
  display: flex;
  justify-content: center;
  align-items: center;

  transform: translateY(-1px);
}

.email-bar button:hover {
  transform: translateX(4px);
  opacity: 0.85;
}

/* BOOK OVERLAYS */

.book-overlay,
.book2-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  overflow: hidden;
}

.book-overlay.active,
.book2-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.close-book,
.close-book2 {
  position: fixed;
  top: 35px;
  right: 45px;
  background: none;
  border: none;
  color: white;
  font-size: 48px;
  cursor: pointer;
  z-index: 999999;
}

.book-viewer,
.book2-viewer {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  overflow: hidden;
}

#book {
  width: 1280px;
  height: 452px;
}

#book2 {
  width: 900px;
  height: 450px;
}

.page {
  background: white;
  overflow: hidden;
}

.page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FLIP TEXT */

.flip-text {
  color: white;
  font-family: Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* PAGEFLIP FIX */

.stf__parent {
  margin: 0 auto !important;
}

.stf__wrapper {
  background: transparent !important;
}

/* FADE */

.reveal {
  opacity: 0;
  transform: translate3d(0, 70px, 0);
  will-change: transform, opacity;
  backface-visibility: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}