:root {
  --ffffff: #ffffff;
  --06141b: #06141b;
  --253745: #253745;
  --9ba8ab: #9ba8ab;
  --4a5c6a: #4a5c6a;
  --ccd0cf: #ccd0cf;
  --f3f3f3: #f3f3f3;

  --fs-42px: 42px;
  --fs-18px: 18px;
  --fs-15px: 15px;
  --fs-24px: 24px;

  --r-10px: 10px;
  --r-16px: 16px;
  --r-20px: 20px;
  --r-999px: 999px;

  --sec-px-20px: 20px;
  --sec-py-32px: 32px;

  --gap-8px: 8px;
  --gap-12px: 12px;
  --gap-15px: 15px;
  --gap-20px: 20px;
  --gap-24px: 24px;
  --gap-32px: 32px;
  --gap-40px: 40px;
  --gap-48px: 48px;
  --gap-60px: 60px;

  --btn-h-48px: 48px;

  /* button burst pixel gradients */
  --px-gradient-bright: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(248,248,248,0.98) 45%, rgba(223,223,223,0.94) 100%);
  --px-gradient-mid: linear-gradient(135deg, rgba(244,244,244,0.98) 0%, rgba(220,220,220,0.95) 52%, rgba(186,186,186,0.9) 100%);
  --px-gradient-dark: linear-gradient(135deg, rgba(9,20,28,0.98) 0%, rgba(6,20,27,0.96) 58%, rgba(28,44,56,0.9) 100%);
  --px-gradient-dark-screen: linear-gradient(135deg, rgba(212,212,212,0.96) 0%, rgba(175,175,175,0.92) 58%, rgba(138,138,138,0.86) 100%);
}

/* =========================
   RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* =========================
   BASE
========================= */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Readex Pro', sans-serif;
  background: var(--ffffff);
  color: var(--06141b);
  overflow-x: hidden;
}

section,
header,
footer {
  width: 100%;
  padding: var(--sec-py-32px) var(--sec-px-20px);
}

.container,
.wrapper {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--06141b);
  font-weight: 600;
}

.section-title {
  font-size: var(--fs-42px);
  line-height: 1.15;
  font-weight: 600;
}

.text {
  font-size: var(--fs-18px);
  line-height: 1.6;
  font-weight: 300;
  color: var(--253745);
}

.title-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =========================
   BUTTONS
========================= */
.btn {
  height: var(--btn-h-48px);
  border-radius: var(--r-999px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--fs-15px);
  font-weight: 400;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.btn img,
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn1 {
  position: relative;
  background: var(--06141b);
  color: #fff;
  border-color: var(--06141b);
  overflow: visible;
  isolation: isolate;
  cursor: none;
  z-index: 1;
  transform-origin: center;
  will-change: transform, opacity;
}

.btn1:hover {
  color: #fff;
}

.btn1 > span:last-child {
  position: relative;
  z-index: 6;
}

/* particle layer around button */
.btn1 .particles-field {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: visible;
  border-radius: inherit;
}

.btn1 .particles-field canvas {
  position: absolute;
  display: block;
  pointer-events: none;
  overflow: visible;
}

/* cursor must stay 0px */
.btn1 .btn1-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 0px;
  height: 0px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  display: none;
  transform: translate(-50%, -50%);
}

.btn1:hover .btn1-cursor {
  display: block;
}

/* button disappears on click */
.btn1.btn1-click-burst {
  animation: btn1BreakBase 120ms linear forwards;
}

.btn1.btn1-click-burst > span:last-child,
.btn1.btn1-click-burst .particles-field,
.btn1.btn1-click-burst .btn1-cursor,
.btn1.btn1-click-burst .btn1-audio {
  opacity: 0;
}

@keyframes btn1BreakBase {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(0.94);
  }
  100% {
    transform: scale(0.92);
    background: transparent;
    border-color: transparent;
    color: transparent;
  }
}

/* fullscreen pixel explosion layer */
.btn1-screen-burst {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 9999;
}

.btn1-screen-burst-pixel {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--px-size, 6px);
  height: var(--px-size, 6px);
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  animation: btn1ScreenPixelFly var(--px-dur, 1100ms) cubic-bezier(0.16, 0.72, 0.24, 1) forwards;
  border-radius: 1px;
}

.btn1-local-fragment {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--lf-size, 6px);
  height: var(--lf-size, 6px);
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  border-radius: 1px;
  will-change: transform, opacity;
  animation: btn1LocalFragmentFly var(--lf-dur, 520ms) cubic-bezier(0.16, 0.72, 0.24, 1) forwards;
}

.btn1-local-fragment.bright { background: var(--px-gradient-bright); }
.btn1-local-fragment.mid { background: var(--px-gradient-mid); }
.btn1-local-fragment.dark { background: var(--px-gradient-dark); }

@keyframes btn1LocalFragmentFly {
  0% {
    opacity: 1;
    transform:
      translate3d(0px, 0px, 0)
      rotate(0deg)
      scale(1);
  }

  20% {
    opacity: 1;
    transform:
      translate3d(
        calc(var(--lf-x, 0px) * 0.22),
        calc(var(--lf-y, 0px) * 0.18),
        0
      )
      rotate(calc(var(--lf-rot, 0deg) * 0.22))
      scale(1);
  }

  100% {
    opacity: 0;
    transform:
      translate3d(
        var(--lf-x, 0px),
        calc(var(--lf-y, 0px) + var(--lf-drop, 0px)),
        0
      )
      rotate(var(--lf-rot, 0deg))
      scale(0.72);
  }
}

/* screen burst pixel shades */
.btn1-screen-burst-pixel.bright { background: var(--px-gradient-bright); }
.btn1-screen-burst-pixel.mid { background: var(--px-gradient-mid); }
.btn1-screen-burst-pixel.dark { background: var(--px-gradient-dark-screen); }

@keyframes btn1ScreenPixelFly {
  0% {
    opacity: 1;
    transform:
      translate3d(0px, 0px, 0)
      rotate(0deg)
      scale(1);
  }

  10% {
    opacity: 1;
    transform:
      translate3d(
        calc(var(--px-x, 0px) * 0.12),
        calc(var(--px-y, 0px) * 0.1),
        0
      )
      rotate(calc(var(--px-rot, 0deg) * 0.12))
      scale(1);
  }

  45% {
    opacity: 1;
    transform:
      translate3d(
        calc(var(--px-x, 0px) * 0.58),
        calc(var(--px-y, 0px) * 0.58 + var(--px-drop, 0px) * 0.18),
        0
      )
      rotate(calc(var(--px-rot, 0deg) * 0.62))
      scale(0.98);
  }

  100% {
    opacity: 0;
    transform:
      translate3d(
        var(--px-x, 0px),
        calc(var(--px-y, 0px) + var(--px-drop, 0px)),
        0
      )
      rotate(var(--px-rot, 0deg))
      scale(0.72);
  }
}

.btn2 {
  position: relative;
  background: #fff;
  color: var(--06141b);
  border: 2px solid var(--06141b);
  border-radius: 999px;
  overflow: visible;
}

/* hero button system */
#hero .btn2 {
  --btn2-distance: 0%;
  --btn2-fill-x: 50%;
  --btn2-fill-y: 50%;
  --btn2-cursor-x: 50%;
  --btn2-cursor-y: 50%;

  position: relative;
  background: #fff;
  color: var(--06141b);
  border: 2px solid var(--06141b);
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;

  transition:
    color 0.35s ease 1s,
    border-color 0.24s ease,
    background-color 0.24s ease;
}

#hero .btn2 span {
  position: relative;
  z-index: 3;
  transition:
    color 0.35s ease 1s,
    opacity 0.35s ease 1s;
  opacity: 1;
}

/* soft fill blob */
#hero .btn2::before {
  content: "";
  position: absolute;
  left: var(--btn2-fill-x);
  top: var(--btn2-fill-y);
  width: 14px;
  height: 14px;
  background: #EABE00;
  z-index: 1;
  opacity: 1;

  transform: translate(-50%, -50%) scale(0);
  border-radius: 60% 40% 55% 45% / 45% 58% 42% 55%;

  will-change: transform, left, top, border-radius;

  transition:
    left 1.5s ease,
    top 1.5s ease,
    transform 3s cubic-bezier(.19,1,.22,1),
    border-radius 0.2s cubic-bezier(.19,1,.22,1);
}

/* square */
#hero .btn2::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: #EABE00;
  top: 0;
  left: 0;
  z-index: 4;

  offset-path: inset(0 round 999px);
  offset-distance: var(--btn2-distance);
  offset-rotate: auto;
  offset-anchor: center;
  margin: -6px 0 0 -6px;

  animation: btnSquareShake 1.25s linear infinite;
  will-change: transform, left, top, offset-distance, opacity;

  transition:
    opacity 0.16s ease,
    left 0.14s linear,
    top 0.14s linear,
    margin 0.18s ease,
    transform 0.28s ease,
    border-radius 0.22s ease;
}




/* hover fill */
#hero .btn2.is-filling {
  background: #EABE00;
  color: #fff;
  border-color: #EABE00;

  /* tekst odmah postaje beo na hover */
  transition:
    color 0.06s linear,
    border-color 0.24s ease,
    background-color 0.24s ease;
}

#hero .btn2.is-filling span {
  color: #fff;
  opacity: 1;
  transition:
    color 0.06s linear,
    opacity 0.06s linear;
}

#hero .btn2.is-filling::before {
  transform: translate(-50%, -50%) scale(34);
  border-radius: 50%;
  animation: btnBlobBreath 1.1s ease forwards;
}

/* square ulazi u dugme */
#hero .btn2.is-filling::after {
  offset-distance: 0%;
  left: calc(var(--btn2-fill-x) - 3px);
  top: calc(var(--btn2-fill-y) - 3px);
  margin: 0;
  opacity: 1;
  transform: scale(0.96);
}

/* short exit state before cursor mode */
#hero .btn2.is-exiting {
  overflow: visible;
}

#hero .btn2.is-exiting::after {
  animation: btnSquareExit 0.26s cubic-bezier(.22,.61,.36,1) forwards;
  offset-path: none;
  left: calc(var(--btn2-fill-x) - 3px);
  top: calc(var(--btn2-fill-y) - 3px);
  margin: 0;
  opacity: 1;
}

#hero .btn2.is-resetting::after {
  opacity: 0 !important;
  animation: none !important;
}

@keyframes btnSquareShake {
  0% { transform: rotate(6deg); }
  25% { transform: rotate(-10deg); }
  50% { transform: rotate(8deg); }
  75% { transform: rotate(-4deg); }
  100% { transform: rotate(-90deg); }
}

@keyframes btnSquareExit {
  0% {
    transform: translate(0, 0) scale(0.96) rotate(0deg);
    border-radius: 3px;
    opacity: 1;
  }
  100% {
    transform: translate(14px, -12px) scale(0.88) rotate(18deg);
    border-radius: 4px;
    opacity: 1;
  }
}

/* after click: square outside and follows cursor */
#hero .btn2.is-cursor-mode {
  overflow: visible;
}

#hero .btn2.is-cursor-mode::after {
  offset-path: none;
  offset-distance: 0%;
  left: var(--btn2-cursor-x);
  top: var(--btn2-cursor-y);
  margin: 0;
  transform: translate(8px, -14px);
  opacity: 1;
}

.btn3 {
  background: transparent;
  color: var(--06141b);
  border: 0;
  padding: 0;
  height: auto;
  border-radius: 0;
}

.btn3:hover {
  color: #EABE00;
}

/* =========================
   GLOBAL HEAD LAYOUTS
========================= */
.work-sb-head,
.work-app-head,
.about-head {
  display: grid;
  grid-template-columns: 1fr 45%;
  gap: var(--gap-40px);
  margin-bottom: var(--gap-48px);
}

.work-sb-head,
.work-app-head {
  align-items: end;
}

.about-head {
  align-items: start;
}

/* =========================
   HEADER
========================= */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: #06141B;
  box-shadow: rgba(6, 20, 27, 0.5) 0px 1px 4px;
}

#header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

#header-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logosvg {
  width: 40px;
  height: 40px;
  display: block;
}

#nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

#nav-menu ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

#nav-menu ul li {
  margin-bottom: 0;
}

#nav-menu ul li a {
  position: relative;
  color: #fff;
  font-size: 15px;
  font-weight: 300;
  transition: 0.2s ease;
}

#nav-menu ul li a:hover {
  color: #EABE00;
}

#nav .btn {
  display: flex;
  align-items: center;
}

.button2 {
  height: 44px;
  width: 160px;
  padding: 0 20px;
  background-color: #06141B;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 300;
  white-space: nowrap;
  transition: 0.5s ease;
}

.button2:hover {
  color: #EABE00;
  box-shadow: 2px 2.5px 2px rgba(0, 0, 0, 0.9);
  background-color: #0b1c25;
}
.button2:active {
  box-shadow: 2px 2.5px 2px rgba(0, 0, 0, 0.9), -2px -1.5px 2px rgba(0, 0, 0, 0.9);
  background-color: #030d11;
}

.animate-charcter2 {
  background-image: linear-gradient(100deg, #2F3C43 0%, #394850 20%, #4A5C6A 40%, #6E7A81 70%, #2F3C43 100%);
  background-size: 200% auto;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  color: #fff;
  animation: textclip 1.8s linear infinite;
}

@keyframes textclip {
  to {
    background-position: 200% center;
  }
}

#nav-toggle {
  display: none;
  font-size: 24px;
  color: #06141B;
  cursor: pointer;
}

/* =========================
   HERO
========================= */
#hero {
  width: 100%;
}

#hero .container {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  min-height: 70vh;
  width: 100%;
}

.hero-left {
  width: 100%;
  max-width: 620px;
}

.hero-hello {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 400;
  color: #06141B;
  margin-bottom: 0;
}

.hero-title {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 60px;
  line-height: 1.08;
  font-weight: 600;
  color: #06141B;
  letter-spacing: -0.02em;
}

.text-light {
  font-weight: 600;
  background-image: linear-gradient(-500deg, #2F3C43 0%, #4A5C6A 29%, #6E7A81 54%, #06141B 78%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
  animation: textclip 2s linear infinite;
}

.hero-light {
  font-weight: 300;
}

.animate-charcter {
  background-image: linear-gradient(-500deg, #2F3C43 0%, #4A5C6A 29%, #6E7A81 54%, #2F3C43 78%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
  animation: textclip 2s linear infinite;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
  color: #06141B;
}

.hero-location-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-location-icon svg,
.hero-location-icon img {
  width: 22px;
  height: 22px;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 32px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 300;
  color: #253745;
}

.hero-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.hero-buttons .btn {
  width: 100%;
}

.btn3-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn3-icon svg,
.btn3-icon img {
  width: 20px;
  height: 20px;
}

.hero-right {
  width: 100%;
  min-width: 0;
}

.hero-image {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

/* =========================
   SERVICES
========================= */
#services {
  width: 100%;
  --06141b: #06141b;
  --f3f3f3: #f3f3f3;
  --ffffff: #ffffff;
  --ccd0cf: #ccd0cf;
  --f4c400: #eabe00;
  --000000: #000000;
  --163544: #163544;
  --radius-4px: 4px;
  --radius-999px: 999px;
  --gap-12px: 12px;
  --gap-16px: 16px;
  --gap-20px: 20px;
  --gap-24px: 24px;
  --gap-32px: 32px;
  --padding-24px: 24px;
  --transition-02s: 0.2s ease;
  --transition-03s: 0.3s ease;
}

.services-head {
  margin-bottom: 60px;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
}

.services-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-tab {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  background-color: transparent;
  border: 0px solid transparent;
  border-radius: 3px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.service-tab.active {
  border-color: var(--ccd0cf);
  background-color: #fff8d6;
}

.service-tab-left {
  display: flex;
  align-items: center;
}

.service-name {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  margin-left: 20px;
}

.service-num {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--06141b);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.service-tab:hover .service-num {
  color: var(--f4c400);
}

.service-tab.active .service-num {
  color: var(--06141b);
}

.service-tab.active:hover .service-num {
  color: var(--f4c400);
}

.service-arrow {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-arrow img,
.service-arrow svg {
  width: 12px;
  height: 12px;
  display: block;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.service-tab.active .service-arrow img,
.service-tab.active .service-arrow svg {
  transform: rotate(-90deg);
}

.service-panel {
  position: relative;
  min-height: clamp(520px, 82vh, 920px);
  border-radius: 3px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-panel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.service-panel img{
  object-fit: scale-down;
}

.service-panel-inner {
  position: relative;
  z-index: 1;
  min-height: clamp(520px, 82vh, 920px);
  padding: 26px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.service-panel-top {
  display: flex;
  flex-direction: column;
}

.service-panel-text {
  max-width: 680px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 100;
  color: var(--ffffff);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--ffffff);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 300;
}

.service-tag-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-tag-icon img,
.service-tag-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

@media (max-width: 1200px) {
  .services-layout {
    grid-template-columns: 1fr;
  }

  .service-panel,
  .service-panel-inner {
    min-height: clamp(480px, 70vh, 760px);
  }
}

@media (max-width: 767px) {
  .services-head {
    margin-bottom: 40px;
  }

  .service-tab {
    min-height: auto;
    padding: 22px 18px;
  }

  .service-tab-left {
    gap: 14px;
  }

  .service-name,
  .service-num {
    font-size: 18px;
  }

  .service-panel,
  .service-panel-inner {
    min-height: clamp(420px, 62vh, 620px);
  }

  .service-panel-inner {
    padding: 20px;
  }

  .service-panel-text {
    font-size: 15px;
    line-height: 1.45;
  }

  .service-tags {
    justify-content: flex-start;
  }
}

/* =========================
   TECH STACK MARQUEE
========================= */
.tech-head {
  margin-bottom: 72px;
}

.tech-marquee {
  display: flex;
  flex-direction: column;
  gap: 60px;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.marquee {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scroll 20s linear infinite;
}



.marquee-track img:hover {
  cursor: none;
}

.marquee-track:has(img:hover) {
  animation-play-state: paused;
}

.marquee.reverse .marquee-track {
  animation-direction: reverse;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* novi wrapper za svaki logo */
.tech-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* oba layera imaju istu velicinu */
.tech-logo img {
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* base logo */
.tech-logo-base {
  transition: opacity 0s ease;
}

/* hover logo */
.tech-logo-hover {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  transition: opacity 0s ease;
  pointer-events: none;
}

/* hover state */
.tech-logo:hover .tech-logo-base {
  opacity: 0;
}

.tech-logo:hover .tech-logo-hover {
  opacity: 1;
}

.marquee-track img {
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* =========================
   WORK SB
========================= */
#work-sb {
  width: 100%;
}

#work-sb .btn2 img {
  color: #000;
}

.work-sb-head {
  display: grid;
  grid-template-columns: 1fr 45%;
  align-items: end;
  gap: 40px;
  margin-bottom: 48px;
}

.work-sb-intro {
  max-width: 100%;
}

.work-sb-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-sb-card {
  width: 100%;
}

.work-sb-image {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 24px;
}

/* background layer */
.work-sb-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(.22, 1, .36, 1);
}

.work-sb-card:nth-child(1) .work-sb-image::before {
  background-image: url("assets/slotgames1bg.png");
}

.work-sb-card:nth-child(2) .work-sb-image::before {
  background-image: url("assets/landingpage1bg.png");
}

.work-sb-card:nth-child(3) .work-sb-image::before {
  background-image: url("assets/mbdsbg.png");
}

.work-sb-image:hover::before {
  transform: scale(1.08);
}

.work-sb-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-sb-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}

.work-sb-image:hover .work-sb-overlay {
  opacity: 1;
  visibility: visible;
}

.work-sb-overlay-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-sb-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 190px;
  color: #fff;
  background-color: transparent;
  border: 0;
}

.work-sb-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}

.work-sb-btn:hover .work-sb-btn-icon {
  transform: translateX(40px) rotate(360deg);
}

.work-app-overlay-icon img {
  transition: transform 0.2s ease;
}

.work-app-overlay:has(.work-sb-btn:hover) .work-app-overlay-icon img,
.work-sb-overlay:has(.work-sb-btn:hover) .work-sb-overlay-icon img {
  animation: elasticShake 0.6s cubic-bezier(.36, .07, .19, .97) infinite;
  transform-origin: center;
}

@keyframes elasticShake {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-10deg); }
  40% { transform: rotate(8deg); }
  60% { transform: rotate(-6deg); }
  80% { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
}

.work-sb-title {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
  color: #06141B;
}

.work-sb-text {
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
  color: #253745;
}

/* =========================
   WORK APP
========================= */
#work-app {
  width: 100%;
}

.work-app-head {
  display: grid;
  grid-template-columns: 1fr 45%;
  align-items: end;
  gap: 40px;
  margin-bottom: 48px;
}

.work-app-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
}

.work-app-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.work-app-card,
.work-app-card-large {
  width: 100%;
}

.work-app-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
  border-radius: 3px;
  overflow: hidden;
}

.work-app-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.work-app-image:hover img {
  transform: scale(1.06);
}

.work-app-card-large .work-app-image {
  min-height: 100%;
}

.work-app-side .work-app-card:first-child .work-app-image,
.work-app-side .work-app-card:last-child .work-app-image {
  min-height: 220px;
}

.work-app-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}

.work-app-image:hover .work-app-overlay {
  opacity: 1;
  visibility: visible;
}

.work-app-overlay-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   ABOUT
========================= */
#about {
  width: 100%;
}

.about-head {
  display: grid;
  grid-template-columns: 1fr 45%;
  align-items: start;
  gap: 40px;
  margin-bottom: 48px;
}

.about-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.about-card {
  position: relative;
  height: 560px;
  min-height: 75vh;
  overflow: hidden;
}

.about-text {
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  padding-right: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.about-title {
  margin-bottom: 2px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  color: #EABE00;
}

.about-desc {
  font-size: 14px;
  line-height: 1.55;
  font-weight: 300;
  color: #253745;
}

.about-image {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  overflow: hidden;
  transition: height 0.4s ease;
  z-index: 2;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 560px;
}

.about-card:hover .about-image {
  height: calc(100% - 130px);
}

.about-card:hover .about-text {
  opacity: 1;
}

/* =========================
   CASE STUDY
========================= */
#portfolio {
  width: 100%;
}

#portfolio .container {
  width: 100%;
}

#portfolio .section-title {
  margin-bottom: 48px;
}

.portfolio .portfolio__wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.portfolio .portfolio__wrapper .portfolio__block {
  flex: 1 1 calc(33.333% - 13.333px);
  height: 290px;
  min-width: 0;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  transition: 0.45s ease;
}

.portfolio .portfolio__wrapper .portfolio__block img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  position: relative;
  z-index: 1;
  transform: scale(1);
  transform-origin: top left;
  transition: transform 0.4s ease;
}

.portfolio .portfolio__wrapper .portfolio__block:hover img {
  transform: scale(0.85);
}

.portfolio .portfolio__wrapper .portfolio__block h2 {
  margin-bottom: 0;
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: #06141B;
  opacity: 0;
  transition: 0.2s;
}

.portfolio .portfolio__wrapper .portfolio__block:hover h2 {
  opacity: 1;
  transition: 0.5s;
}

.portfolio .portfolio__wrapper .portfolio__block .icons {
  position: absolute;
  top: 12px;
  right: 12px;
  opacity: 0;
  transition: 0.5s;
}

.portfolio .portfolio__wrapper .portfolio__block:hover .icons {
  opacity: 1;
}

.portfolio .portfolio__wrapper .portfolio__block .icons a {
  display: block;
  padding: 10px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #06141B;
  font-size: 14px;
  text-align: center;
  margin-bottom: 10px;
  border: 1px solid #CCD0CF;
  transition: 0.2s ease;
}

.portfolio .portfolio__wrapper .portfolio__block .icons a:hover {
  color: #EABE00;
  background: #06141B;
  border-color: #06141B;
}

.portfolio .portfolio__wrapper .portfolio__block .icons a:active {
  transform: translate(-1px, 1px);
  transition: 0s;
}

/* =========================
   WORK LP - LANDING PAGES
========================= */
#work-lp {
  width: 100%;
  scroll-margin-top: 60px;
}

#contact {
  scroll-margin-top: 60px;
}

.work-lp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

@media (max-width: 992px) {
  .work-lp-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .work-lp-left {
    max-width: none;
  }
}

.work-lp-left {
  max-width: 520px;
}

.work-lp-intro {
  max-width: 460px;
}

.work-lp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 32px;
}

.work-lp-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #ccd0cf;
  background: #f9fafb;
  font-size: 13px;
  font-weight: 400;
  color: #253745;
}

.work-lp-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 32px;
}

.work-lp-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work-lp-stat-number {
  font-size: 26px;
  line-height: 1.1;
  font-weight: 600;
  color: #06141b;
}

.work-lp-stat-label {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 300;
  color: #4a5c6a;
}

.work-lp-cta {
  margin-top: 8px;
  padding-inline: 26px;
}

.work-lp-right {
  position: relative;
}

.work-lp-swiper {
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.work-lp-swiper .swiper-slide {
  width: 60%;
  max-width: 360px;
  height: auto;
  box-sizing: border-box;
}

.work-lp-image {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #f5f5f5;
}

.work-lp-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.4s ease;
}

.work-lp-image:hover img {
  transform: scale(1.06);
}

.work-lp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.work-lp-image:hover .work-lp-overlay {
  opacity: 1;
  visibility: visible;
}

.work-lp-preview-btn {
  min-width: 140px;
  color: #ffffff;
  border-color: #ffffff;
  background-color: transparent;
  cursor: pointer;
  font: inherit;
}

.work-lp-preview-btn:hover {
  color: #06141b;
  background-color: #ffffff;
}

.work-lp-overlay-btn {
  min-width: 140px;
  color: #ffffff;
  border-color: #ffffff;
  background-color: transparent;
}

.work-lp-overlay-btn span {
  color: #ffffff;
}

/* =========================
   PREVIEW MODAL
========================= */
.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.preview-modal[hidden] {
  display: none;
}

.preview-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 27, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.preview-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  background: #1a252d;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.preview-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.preview-modal-tabs {
  display: flex;
  gap: 4px;
}

.preview-tab {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #9ba8ab;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.preview-tab:hover {
  color: #ccd0cf;
}

.preview-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.preview-modal-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.preview-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.preview-modal-body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
}

.preview-modal-pane {
  display: none;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.preview-modal-pane.active {
  display: flex;
}

.preview-device-frame {
  position: relative;
  max-width: 100%;
  max-height: calc(90vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-device-frame .preview-device-mockup {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.preview-device-screen {
  position: absolute;
  overflow: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: #0d0d0d;
}

.preview-device-desktop .preview-device-screen {
  /* Overlay on MacBook screen: adjust to match your mockup */
  top: 5.2%;
  left: 10.2%;
  right: 10.2%;
  bottom: 10%;
}

.preview-device-mobile .preview-device-screen {
  /* Overlay on phone screen: adjust to match your mockup */
  top: 10%;
  left: 3.6%;
  right: 4%;
  bottom: 1.6%;
  border-radius: 0px 0px 0px 18px;
}

.preview-screen-img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
  vertical-align: top;
}

/* =========================
   IMAGE POPUP (data-image)
========================= */
.popup {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s ease, opacity 0.2s ease;
}

.popup.active {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 27, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.popup-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #06141b;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.popup-close:hover {
  background: #0b1c25;
  transform: scale(1.05);
}

.popup-img {
  display: block;
  max-width: 100%;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* =========================
   DESKTOP / TABLET
========================= */
@media screen and (min-width: 768px) {
  section,
  header,
  footer {
    padding: 60px 90px;
  }

  .hero {
    padding: 70px 0 0 0;
  }

  .section-head {
    margin-bottom: 48px;
  }

  #header {
    padding: 15px 90px;
  }
}

/* =========================
   TABLET
========================= */
@media screen and (max-width: 991px) {
  #nav {
    position: relative;
  }

  /* Slide-in menu from right (old site pattern: https://nenad.html5apps.info) */
  #nav-menu {
    position: fixed;
    top: 50px;
    right: -100%;
    width: 30%;
    min-width: 240px;
    height: 100%;
    background-color: #06141B;
    padding: 2rem;
    transition: right 0.5s;
    box-shadow: -5px -2px 5px -5px rgba(0, 0, 0, 0.5);
    z-index: 200;
    overflow-y: auto;
  }

  #nav.menu-open #nav-menu {
    right: 0;
  }

  /* Always use stacked layout in mobile so content doesn’t reflow when closing */
  #nav-menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 0;
  }

  #nav-menu ul li {
    margin-bottom: 30px;
  }

  #nav-menu ul li:last-child {
    margin-bottom: 0;
  }

  #nav-menu ul li a {
    display: block;
    padding: 0;
    font-size: 15px;
    color: #fff;
  }

  #nav .btn {
    display: none;
  }

  #nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1rem;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  #nav.menu-open #nav-toggle {
    position: relative;
    z-index: 201;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
  }

  .hero-left {
    max-width: 100%;
  }

  .hero-title {
    font-size: 52px;
  }

  .hero-buttons {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-image {
    height: 460px;
  }

  .services-head {
    margin-bottom: 48px;
  }

  .service-tab {
    padding: 24px 28px;
  }

  .service-content {
    padding: 0 28px 24px;
  }

  .service-info {
    gap: 32px;
  }



  .tech-logo svg {
    height: 27px;
  }

  .work-sb-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work-sb-list {
    grid-template-columns: 1fr 1fr;
  }

  .work-app-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work-app-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work-app-image {
    min-height: 220px;
  }

  .about-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-card {
    min-height: 520px;
  }

  .portfolio .portfolio__wrapper .portfolio__block {
    flex: 1 1 calc(50% - 10px);
  }
}

/* =========================
   MOBILE
========================= */
@media screen and (max-width: 648px) {
  .section-title {
    font-size: 32px;
    line-height: 1.2;
  }

  .text {
    font-size: 16px;
    line-height: 1.6;
  }

  #header {
    padding: 16px 20px;
  }

  .logosvg {
    width: 36px;
    height: 36px;
  }

  .hero {
    gap: 28px;
  }

  .hero-hello {
    font-size: 24px;
    margin-top: 64px;
  }

  .hero-title {
    font-size: 42px;
    line-height: 1.12;
    margin-bottom: 18px;
  }

  .hero-location {
    margin-bottom: 24px;
    font-size: 16px;
  }

  .hero-text {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .hero-buttons {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-buttons .btn3 {
    width: fill-content;
    height: 44px;
  }

  .hero-image {
    height: 320px;
  }

  .services-head {
    margin-bottom: 32px;
  }

  .service-tab {
    padding: 14px 20px;
  }

  .service-content {
    padding: 0 20px 14px;
  }

  .service-top {
    gap: 16px;
  }

  .service-info {
    gap: 16px;
  }



  .service-icon {
    width: 24px;
    height: 24px;
  }

  .service-icon svg,
  .service-icon img {
    width: 24px;
    height: 24px;
  }

  .service-tags {
    gap: 8px;
    margin-bottom: 20px;
  }

  .service-text {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .service-btn {
    width: 100%;
  }

  .tech-head {
  margin-bottom: 48px;
}

  .tech-marquee {
  gap: 40px;
}

  .tech-logos {
    gap: 16px;
  }

  .tech-logo svg {
    height: 24px;
  }

  .work-sb-head {
    margin-bottom: 32px;
  }

  .work-sb-list {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .work-sb-image {
    height: 240px;
    margin-bottom: 14px;
  }

  .work-sb-title {
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 20px;
  }

  .work-sb-text {
    font-size: 15px;
    font-weight: 300;
  }

  .work-sb-btn {
    min-width: 160px;
  }

  .work-app-head {
    margin-bottom: 32px;
  }

  .work-app-grid {
    grid-template-columns: 1fr;
  }

  .work-app-side {
    gap: 20px;
  }

  .work-app-image,
  .work-app-card-large .work-app-image,
  .work-app-side .work-app-card:first-child .work-app-image,
  .work-app-side .work-app-card:last-child .work-app-image {
    min-height: 220px;
  }

  .work-app-btn {
    min-width: 160px;
  }

  .about-head {
    margin-bottom: 32px;
  }

  .about-list {
    grid-template-columns: 1fr;
  }

  .about-card {
    position: relative;
    height: 420px;
    min-height: auto;
  }

  .about-text {
    opacity: 1;
    position: static;
    padding-right: 0;
    margin-bottom: 14px;
  }

  .about-image,
  .about-card:hover .about-image {
    position: static;
    height: 320px;
  }

  #portfolio .section-title {
    margin-bottom: 32px;
  }

  .portfolio .portfolio__wrapper .portfolio__block {
    flex: 1 1 100%;
    height: 220px;
  }

  .portfolio .portfolio__wrapper .portfolio__block h2 {
    font-size: 16px;
    left: 10px;
    bottom: 10px;
  }

  .portfolio .portfolio__wrapper .portfolio__block .icons {
    top: 10px;
    right: 10px;
  }

  .portfolio .portfolio__wrapper .portfolio__block .icons a {
    padding: 9px 11px;
    margin-bottom: 8px;
  }
}