/* ===== Base ===== */
body {
  font-family: 'IBM Plex Sans', sans-serif;
  background-color: #2E073F;
  margin: 0;
}
*{
  scroll-behavior: smooth;

}
/* ===== Navbar ===== */
/* ================================
   NAVBAR
================================ */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(27, 4, 38, 0);
  backdrop-filter: blur(3px);
  transition: background 0.3s ease;
}

/* Inner layout */
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo img {
  height: 32px;
  width: auto;
}

/* ================================
   DESKTOP NAV LINKS
================================ */

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
}

/* CTA */
.nav-cta {
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 0.85rem;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: #ffffff;
  color: #2E073F;
}

/* ================================
   MOBILE TOGGLE (HAMBURGER)
================================ */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  flex-direction: column;
  z-index: 60; /* iznad menija */
   position: fixed;        /* ⬅️ KLJUČ */
  top: 1.8rem;
  right: 1.5rem;

  z-index: 1000;          /* ⬅️ IZNAD mobile-menu */
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #ffffff;
  display: block;
  filter: none !important;
}

/* ================================
   FULLSCREEN MOBILE MENU
================================ */

/* ================================
   FULLSCREEN MOBILE MENU (FIXED)
================================ */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  background: #1B0426;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;

  z-index: 999; /* IZNAD NAVBARA */
}

/* Active fullscreen state */
.navbar.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
}

/* Menu links */
.mobile-menu a {
  font-size: 2rem;
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.mobile-menu a:hover {
  opacity: 0.7;
}

/* ================================
   RESPONSIVE BREAKPOINT
================================ */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

.hero {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align:center;
}

/* UNICORN BACKGROUND WRAPPER */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* UNICORN EMBED */
.unicorn-embed {
  width: 100%;
  height: 100%;
}

/* Force canvas / svg / iframe to behave as background */
.unicorn-embed > *,
.unicorn-embed canvas,
.unicorn-embed iframe {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 8rem 1.5rem 2rem;
  transition: filter 0.2s linear, transform 0.2s linear, opacity 0.2s linear;
  will-change: transform, filter, opacity;
}

/* ===== Typography ===== */
.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  font-variation-settings: "wght" 500;
  letter-spacing: -0.02em;
}

.text-box {
  display: inline-block;
  position: relative;
  color: #1B0426;
}
.text-box h2, 
.text-box h3,
.text-box h4,
.text-box h5 ,
.text-box p {
  color: transparent;
}
/* AKTIVNO STANJE */
.text-box.is-visible h2
 {
  animation: textRevealPurple 0.1s ease forwards;
  animation-delay: 0.6s;
}
.text-box.is-visible p, .text-box.is-visible h5 {
  animation: textRevealGray 0.1s ease forwards;
  animation-delay: 0.6s;
}
.text-box.is-visible h3, .text-box.is-visible h4 {
  animation: textRevealWhite 0.1s ease forwards;
  animation-delay: 0.6s;
}
.text-box.is-visible .box-reveal  {
  animation: revealBox 1.2s ease forwards;
}
.text-box.is-visible .box-reveal-light{
  animation: revealBox 1.2s ease forwards;
}
@keyframes textRevealPurple {
  0% {
    color: transparent;
  }
  100% {
    color: #1B0426;
  }
}
@keyframes textRevealGray {
  0% {
    color: transparent;
  }
  100% {
    color: rgb(122, 122, 122);
  }
}
@keyframes textRevealWhite {
  0% {
    color: transparent;
  }
  100% {
    color: #ffffff;
  }
}

.box-reveal {
  position: absolute;
  inset: 0;
  width: 0%;
  height: 100%;
  background: #1B0426;
  pointer-events: none;
}
.box-reveal-light {
  position: absolute;
  inset: 0;
  width: 0%;
  height: 100%;
  background: #7b3d97;
  pointer-events: none;
}


@keyframes revealBox {
  0% {
    width: 0;
  }
  40%,
  60% {
    width: 105%;
  }
  100% {
    width: 0;
  }
}

.highlight {
  font-family:"Tartuffo Trial", sans-serif;
  letter-spacing: 0.02em;
  font-style: italic;
}

.hero-subtitle {
  margin-top: 2rem;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
}

/* ===== Buttons ===== */
.hero-cta {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: #ffffff;
  color: #2E073F;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.btn-primary:hover {
  transform: scale(1.04);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #ffffff;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: #ffffff;
  color: #2E073F;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-400 {
  animation-delay: 0.4s;
}

/* ===== Work Section (Light) ===== */
.work-section {
  position: relative;
  margin-top: 100vh;
  z-index: 2;
  background: radial-gradient(#cbcbcb, #ffffff);
 padding:6rem 1.5rem;
 
}


.work-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Intro */
.work-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.work-title {
  margin: 1rem 0rem;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: #1B0426;
}

/* ================================
   WORK CAROUSEL
================================ */

/* Wrapper */
.work-carousel-wrapper {
  position: relative;
  padding-top: 1.8rem;
}

/* Carousel */
.work-carousel {
  display: flex;
  gap: 3rem;
  overflow: hidden;
  padding: 4rem 0rem 1rem;
  scroll-behavior: smooth;
}

/* Item */
.work-item {
  flex: 0 0 420px;
  text-decoration: none;
  color: inherit;
}

/* Image placeholder */
.work-image {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #2E073F, #000);
 object-fit: cover;

  border-radius: 16px;
  transition: transform 0.4s ease;
}
/* Hover scale */
.work-item:hover .work-image {
  transform: scale(1.03);
}

/* Meta */
.work-meta {
  margin-top: 1.25rem;
}

.work-meta h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: #1B0426;
}

.work-meta p {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: rgba(27, 4, 38, 0.7);
}

/* ================================
   SEE ALL PROJECTS ITEM
================================ */
.work-all-inner {
  width: 100%;
  height: 420px;
  border-radius: 16px;
  border: 1px solid rgba(27, 4, 38, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.work-item--all:hover .work-all-inner {
  background: #1B0426;
  color: #ffffff;
  transform: scale(1.03);
}

/* ================================
   CAROUSEL ARROWS
================================ */

.carousel-arrow {
  position: absolute;
  top: 20px;
  transform: none;

  width: 48px;
  height: 48px;

  border-radius: 50%;
  background: rgba(255,255,255,0.75);
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.carousel-arrow:hover {
  background: #1B0426;
}
.carousel-arrow span {
  width: 14px;
  filter: none !important;
  height: 14px;
  border-top: 2px solid #1B0426;
  border-right: 2px solid #1B0426;
  transform: rotate(45deg);
  transition: border-color 0.25s ease;
}

.carousel-arrow--left span {
  transform: rotate(-135deg);
}

.carousel-arrow:hover span {
  border-color: #ffffff;
}

.carousel-arrow--right {
  left: 60px;
}

/* ================================
   RESPONSIVE
================================ */



/* ===== Why Fokus Section (Dark) ===== */
.why-section {
  position: relative;
    z-index: 1;
  padding: 6rem 1.5rem;
  
  color: #ffffff;
}

.why-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: scale(0.85);
  z-index: -1;
}

.why-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Intro */
.why-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.why-title {
  margin-top: 1rem;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
}

/* Principles */
.why-principles {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  text-align: left;
}
.why-item h3 {
  font-size: 1.05rem;
  font-weight: 500;
}

.why-item p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}
.about-why-wrapper{
  background: radial-gradient(
    circle at bottom,
    #000000,
    #3c0057
  );
  position: relative;
  z-index: 2;
}
/* ===== About Section ===== */
.about-section {
  padding: 8rem 1.5rem;
  overflow: hidden;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.unicorn-head{
  height: 600px;
  width: 600px;
  opacity: 0.4;
  transform: scale(1.1);
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 0;
}
.unicorn-head canvas{
  width: 100%;
  height: 100%;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 5rem;
}

.unicorn-wrap{
     width: 100%;
    position: absolute;
    display: flex;
    height: 100%;
    justify-content: center;
    top: 0;
}
/* Text */
.about-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

span{
  font-style: italic;
  filter: blur(0);
  transition: filter 0.3s ease;
}
span:hover{
  filter: blur(2px);
}
.about-main {
  margin-top: 1.5rem;
  font-size: 2.2rem;
  line-height: 1.4;
  font-weight: 600;
  position: relative;
  z-index: 3;
}

.about-secondary {
  margin-top: 1.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 3;
}

/* Stats */
.about-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  justify-content: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-number {
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  line-height: 1.3;
  color: rgba(255,255,255,0.65);
}


.project-cta{
  margin-top: 2rem;
  margin-left: -1.8rem;
}
/* ===== Contact Section ===== */
.contact-section {
  position: relative;
  z-index: 2;
  background: radial-gradient(#cbcbcb, #ffffff);
  color: #1B0426;
  overflow: hidden;
  padding:6rem 1.5rem 3rem;
}
.contact-bg{
  position: absolute;
  top: 0;
  height: 100%;
  right: -3rem;
}

@media (max-width: 1200px) {
  .contact-bg {
    display: none;
  }
  .unicorn-head {
    z-index: -1;
    opacity: 0.2;
  }
}
/* Content */
.contact-content {
  position: relative;
  margin: 0 auto;
  z-index: 2;
}

/* Intro text */
.contact-intro {
  max-width: 800px;
}

.contact-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(27,4,38,0.5);
}

.contact-title {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.05;
}

.contact-description {
  margin-top: 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(27,4,38,0.75);
}

/* Form */
.contact-form {
  margin-top: 1.5rem;
  max-width: 700px;
}

.form-row {
  display: flex;
  gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  backdrop-filter: blur(4px);
  background: rgba(28, 0, 51, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 0.2rem;
  border: none;
  border-bottom: 1px solid rgba(27,4,38,0.25);
  font-size: 1rem;
  color: #1B0426;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #5f3c6f;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2E073F;
}

.contact-form textarea {
  margin-top: 2rem;
  resize: none;
}

/* Button */
.contact-form button {
  margin-top: 2rem;
  background: #1B0426;
  color: #ffffff;
  border: none;
  padding: 1rem 2.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 700px) {
  .form-row {
    flex-direction: column;
  }
}

/* ================================
   FOOTER
================================ */

.site-footer {
  background: #1B0426;
  color: #ffffff;
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
/* Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}

.footer-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  max-width: 360px;
}

/* Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-bottom span {
  font-style: normal !important;
}
.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}


@media (max-width: 900px) {
  .work-item {
    flex: 0 0 360px;
  }
  .hero-subtitle{
        font-size: .8rem;
        margin-top: 0.6rem;
  }
  .hero-cta{
    gap: 0.5rem;
  }
  .hero-title{
    font-size: 2rem;
  }
  .work-image,
  .work-all-inner {
    height: 190px;
  }
  .about-main{
    font-size: 1.4rem;
  }
    .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-statement h2 {
    margin-bottom: 4rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }
   .about-container {
    display: block;
  }
  .about-section{
    padding: 2rem 1.5rem 6rem;
  }
  .about-stats {
    margin-top: 2rem;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
  }
  .why-intro{
    text-align: left;
  }
  .why-section{
    padding: 4rem 1.5rem 2rem;
    
  }
  .why-principles{
    margin-top: 3rem;
  }
}

@media (max-width: 700px) {

  .work-item {
    flex: 0 0 80vw;
  }
}