* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
body {
  font-family: 'Montserrat', sans-serif;
  color: #F9FAFB;
  background-color: #020617;
  line-height: 1.6;
  animation: fadeIn 1s ease-in;
}


#intro-loader {
  position: fixed;
  inset: 0;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOut 1s ease-in-out 2s forwards; /* izgine po 2s */
}

#intro-loader img {
  width: 120px;
  height: auto;
  animation: spinIn 2s ease-in-out;
}
/* prikaz loaderja (logo) */
@keyframes spinIn {
  0% {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
  }
  50% {
    opacity: 1;
    transform: rotate(0deg) scale(1.1);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

/* Animacija za izginotje loaderja */
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

body.loading {
  overflow: hidden;
}

  h1, h2 {
  font-family: 'Montserrat', sans-serif;
}
  a {
    text-decoration: none;
    color: inherit;
  }
  
  img, video {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
/* HEADER */
header {
  background-color: #020617;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: 'Montserrat';
  transition: padding 0.3s ease, background-color 0.3s ease;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 2.5rem;
  background: transparent;
  border: none;
  z-index: 1300;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid #F97316;
  color: #F97316;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.menu-toggle:hover {
  transform: translateY(-2px);
  background: #F97316;
  color: #020617;
}

.menu-label {
  font-weight: 600;
}

.menu-lines {
  display: grid;
  gap: 4px;
}

.menu-lines span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.site-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 25vw;
  min-width: 280px;
  background: #111827;
  color: #F9FAFB;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 1400;
  padding: 3rem;
  box-shadow: -14px 0 35px rgba(0,0,0,0.45);
}

.site-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}

.menu-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: transparent;
  border: none;
  color: #F97316;
  font-size: 2.2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.menu-close:hover {
  transform: rotate(90deg);
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.menu-links a {
  color: #F9FAFB;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease, transform 0.2s ease;
}

.menu-links a:hover {
  color: #EC4899;
  transform: translateX(6px);
}

.menu-open {
  overflow: hidden;
}

.logo-center {
  max-width: 80px;
  height: auto;
  transition: transform 0.5s ease;
}

.logo-link {
  transition: transform 0.5s ease;
}

.logo-link:hover{
  transform: scale(1.1);
}

nav {
  display: flex;
  gap: 10rem;
}

nav a {
  color: #F9FAFB;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  text-decoration: none;
  transition: color 0.8s ease;
}

nav a:hover {
  color: #F97316;
}

.nav-left,
.nav-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}
/* SKRČEN IN SKRIT HEADER */
header.shrink {
  padding: 0.5rem 2rem;
  transition: padding 0.3s ease;
}
header.shrink nav a {
  font-size: 0.8rem;
}


header.shrink .logo-center {
  max-width: 50px;
}

header .logo-center {
  max-width: 80px;
  transition: max-width 0.3s ease;
}

/* Prilagoditve za levi in desni meni */
.nav-left,
.nav-right {
  flex: 1;
  display: flex;
  justify-content: center;
    transition: opacity 0.3s ease;
}

  /* STORITVE / PROCES */
.services-section {
  padding: 0;
  background: #111827;
  color: #F9FAFB;
  display: grid;
  gap: 2.25rem;
}

.services-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 0; /* brez razmikov med karticami */
}

.type-card {
  background: #F9FAFB;
  color: #111827;
  border: 1px solid rgba(17, 24, 39, 0.08);
  padding: 2rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.type-card h3 {
  font-size: 1.3rem;
  color: #F97316;
}

.type-card p {
  color: #111827;
}


  .process-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 0; /* brez razmikov med kvadrati */
  }

.process-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.4rem;
  color: #F97316;
  text-align: center;
}

.process-card {
  position: relative;
  background: #F97316;
  border: 1px solid #111827;
  padding: 1.9rem 1.6rem 1.6rem 1.6rem;
  overflow: hidden;
  min-height: 260px;
}

  .process-number {
    position: absolute;
    top: -10px;
  right: 12px;
  font-size: 9.5rem;
  font-weight: 800;
  color: #111827;
  opacity: 0.14;
  line-height: 1;
  pointer-events: none;
}

.process-content h3 {
  color: #111827;
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.process-content p {
  margin-bottom: 0.75rem;
  color: #F9FAFB;
}

.process-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.process-content li {
  position: relative;
  padding-left: 1.35rem;
  color: #F9FAFB;
  font-size: 1.05rem;
}

.process-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #111827;
}

.work-cta {
  background: #111827;
  display: flex;
  justify-content: center;
  padding: 2.5rem 1rem 4rem;
}

.work-button {
  border: 1px solid #F97316;
  color: #F97316;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.8rem;
  font-weight: 700;
  background: transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.work-button:hover {
  background: #F97316;
  color: #020617;
  transform: translateY(-2px);
}

.portfolio-cta {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem 5rem;
  background: #F97316;
}

.portfolio-cta-content {
  max-width: 820px;
  text-align: center;
  color: #F9FAFB;
  display: grid;
  gap: 0.9rem;
}

.portfolio-cta-content h3 {
  font-size: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase; 
}

.portfolio-cta-content p {
  color: #F9FAFB;
  font-size: 1.05rem;
}

.portfolio-cta-button {
  border: 1px solid #111827;
  color: #F9FAFB;
  background: #111827;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.95rem 2.6rem;
  font-weight: 700;
  display: inline-block;
  margin: 0 auto;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.portfolio-cta-button:hover {
  background: #EC4899;
  color: #020617;
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .services-types {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .services-section {
    padding: 4rem 1.25rem;
  }

  .services-types {
    grid-template-columns: 1fr;
  }

  .process-card {
    padding: 1.5rem 1.3rem;
  }

  .process-number {
    font-size: 7rem;
    right: 6px;
  }
}


  .hero-project-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.5);
  transition: filter 0.3s ease;
}

.hero-project-row:hover img {
  filter: brightness(0.75); /* rahlo svetlejša */
}
  
  /* PORTFOLIO */
  #portfolio {
    padding: 4rem 2rem;
    text-align: center;
  }
  
  #portfolio h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  /* KONTAKT */
  #kontakt {
    padding: 4rem 2rem;
    background-color: #ffffff;
    text-align: center;
  }
  
  #kontakt h2 {
    margin-bottom: 2rem;
    color: #F97316;
  }
  
form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
    gap: 1rem;
  }
  
  input, textarea {
    padding: 0.75rem;
    border: 1px solid #000000;
  }
  
button {
  background-color: #111827;
  color: #F9FAFB;
  padding: 0.75rem;
  border: 1px solid #F97316;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background-color: #F97316;
  color: #020617;
}

.hp-field {
  display: none;
}
  
  /* FOOTER */
  footer {
    background-color: #020617;
    color: #F9FAFB;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
  }

  /* MODAL */
  .modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
}

.modal-content {
  position: relative;
  margin: 5% auto;
  width: 90%;
  max-width: 800px;
  background: #000;
  padding: 1rem;
  border-radius: 8px;
}

.modal-content iframe {
  width: 100%;
  height: 450px;
  border: none;
}

.close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 3s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* BRAND */

.brand-section {
  padding: -10rem 1rem;
  background-color: #111827;
}

.brand-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-text {
  flex: 1 1 420px;
}

.brand-text h2 {
  font-size: 2rem;
  color: #F97316;
  margin-bottom: 1rem;
}

.brand-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #F9FAFB;
  margin-bottom: 1rem;
}

.brand-image {
  flex: 1.2 1 700px;
  text-align: center;
}

.brand-image img {
  max-width: 100%;
  box-shadow: none;
  border-radius: 0;
}

.brand-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: none;
  border-radius: 0;
}

.brand-mark{
  width: 680px;
  aspect-ratio: 1 / 1;
  position: relative;
  margin: 0 auto;
}

.brand-video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

  /* Maskiranje v obliko logotipa */
  -webkit-mask-image: url("images/mango-mask.png");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;

  mask-image: url("images/mango-mask.png");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;

  /* Glow okoli robov loga */
  animation: glowPulse 4.5s ease-in-out infinite;
  filter:
    drop-shadow(0 0 12px rgba(255, 140, 0, 0.40))
    drop-shadow(0 0 28px rgba(255, 85, 0, 0.22));
}

@keyframes glowPulse{
  0%, 100%{
    filter:
      drop-shadow(0 0 12px rgba(255, 140, 0, 0.40))
      drop-shadow(0 0 28px rgba(255, 85, 0, 0.22));
  }
  50%{
    filter:
      drop-shadow(0 0 16px rgba(255, 140, 0, 0.55))
      drop-shadow(0 0 40px rgba(255, 85, 0, 0.30));
  }
}

@media (prefers-reduced-motion: reduce){
  .brand-video{
    animation: none;
  }
}
.brand-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 0;
  background: #111827;
  margin-top: 0;
}

.brand-step {
  background: #F97316;
  color: #020617;
  text-align: center;
  padding: 1.8rem 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
}

.brand-break {
  width: 100%;
  overflow: hidden;
}

.brand-break img {
  width: 100%;
  height: 65vh;
  object-fit: cover;
  display: block;
}

/* RESPONSIVE ZA MOBILNE NAPRAVE */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
  }

  .site-menu {
    width: 100%;
    left: 0;
    right: 0;
    transform: translateX(100%);
    box-shadow: none;
  }

  .site-header {
    padding: 1rem 1.5rem;
  }

  .menu-links a {
    font-size: 1.5rem;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .hero-project-box {
    height: auto;
  }

  .hero-project-row {
    min-height: 250px;
  }

  .brand-container {
    flex-direction: column;
  }

  .modal-content iframe {
    height: 250px;
  }

  form {
    width: 90%;
  }
  nav a {
    font-size: 1rem;
  }

  .logo-center {
    max-width: 60px;
  }

    .hero-left-blur {
    display: none;
  }

  .hero-clean {
    height: 55vh;
    min-height: 55vh;
  }

  .brand-container {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
  }

  .brand-image {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .brand-image video {
    height: 320px;
    object-fit: cover;
  }

  .brand-section {
    padding: 0.6rem 0.9rem 0.1rem;
  }

  .brand-steps {
    grid-template-columns: 1fr;
    margin-top: -18rem;
  }

  .brand-text {
    width: 100%;
    text-align: left;
  }

  .brand-text h2 {
    margin-bottom: 0.8rem;
  }

  .brand-text p {
    margin-bottom: 0.4rem;
  }
  
  .brand-mark{
  width: min(340px, 82vw);
}

}

@media (max-width: 640px) {
  .brand-break img {
    height: 50vh;
  }
}

/* Mobile hero overrides (place after base hero styles to ensure they apply) */
@media (max-width: 768px) {
  .hero-clean {
    height: 60vh;
    min-height: 60vh;
  }

  .hero-text-overlay {
    width: 100%;
    padding: 0 1rem;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .hero-text-overlay h1 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .hero-text-overlay .hero-small {
    font-size: 0.38em;
    line-height: 1;
  }

  .hero-text-overlay p {
    font-size: 1rem;
    max-width: 90vw;
    margin: 0.5rem auto 0;
  }
}

/* Custom oranžen cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background-color: rgba(249, 115, 22, 0.85); /* #F97316 */
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #ffffff;
  font-size: 1rem;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.2s linear;
  mix-blend-mode: difference; /* opcijsko, za lep kontrast */
}

.hero-clean {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.hero-clean video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12); /* bolj poveča video, da odreže črne robove */
  transform-origin: center;
  z-index: 0;
}

/* 🔤 Središčena vsebina */
.hero-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
  color: white;
}

.hero-text-overlay h1 {
  font-family: 'Playfair';
  font-size: 6rem;
  line-height: 0.7;
  color: #F97316;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.hero-text-overlay .hero-small {
  font-size: 0.55em;
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
}

.hero-text-overlay p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  color: #ffffff;
  margin-top: 1rem;
}

/* Reveal animacije (uporablja tudi portfolio) */
.reveal-item,
.reveal-text {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
}

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

/* FINAL mobile hero override (keep at the very bottom) */
@media (max-width: 768px) {
  .hero-text-overlay h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
    line-height: 0.92;
  }

  .hero-text-overlay .hero-small {
    font-size: 0.42em;
    line-height: 1;
  }

  .hero-text-overlay p {
    font-size: 1rem;
  }
}
  

/* MOBILE (iPhone): večji hero naslov */
@media (max-width: 480px) {
  .hero-text-overlay h1 {
    font-size: clamp(5.0rem, 14vw, 4.8rem);
    line-height: 0.92;
  }

  .hero-text-overlay .hero-small {
    font-size: 0.55em;
  }

  .hero-text-overlay p {
    font-size: 1.05rem;
  }
}

/* HERO fallback slika za mobilne */
.hero-fallback{
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobilne naprave: skrij video, pokaži sliko */
@media (max-width: 768px) {
  #heroVideo,
  .hero-video,
  .hero-clean video{
    display: none !important;
  }

  .hero-fallback{
    display: block;
  }
}
