/* ==========================================================================
   NIK KOP DOO — ultra-modern light-mode / bento / glassmorphism theme
   ========================================================================== */

:root {
  --white: #ffffff;
  --gray-50: #f4f5f7;
  --gray-100: #e9ecef;
  --border: #e2e8f0;
  --ink: #111315;
  --ink-soft: #52565c;
  --steel: #6b7076;
  --yellow: #ffcc00;
  --amber: #f5b800;
  --accent-deep: #8a6d00;

  --shadow-sm: 0 10px 30px rgba(17, 19, 21, 0.05);
  --shadow-md: 0 22px 48px rgba(17, 19, 21, 0.1);
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --font-display: "Unbounded", "Syne", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection {
  background: var(--yellow);
  color: var(--ink);
}

.grid-contents {
  display: contents;
}

/* ==========================================================================
   PRELOADER — excavator bucket drives across while the counter fills,
   then the whole cover wipes away to reveal the page underneath.
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.preloader__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 3rem;
}
.preloader__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: uppercase;
}
.preloader__logo span {
  color: var(--accent-deep);
}
.preloader__percent {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.preloader__ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 58px;
  height: 2px;
  background: var(--border);
}
.preloader__bucket {
  position: absolute;
  bottom: 40px;
  left: -180px;
  width: 150px;
  height: auto;
  will-change: transform;
}

/* Custom cursor only replaces the system cursor on devices that actually
   have a precise pointer — touch devices keep their native behaviour. */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }
  a,
  button {
    cursor: none;
  }
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cursor.is-visible {
  opacity: 1;
}
.cursor__dot {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}
.cursor__ring {
  position: absolute;
  top: -19px;
  left: -19px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(17, 19, 21, 0.35);
  transition: width 0.25s ease, height 0.25s ease, top 0.25s ease, left 0.25s ease,
    border-color 0.25s ease, background 0.25s ease;
}
.cursor.is-active .cursor__ring {
  width: 60px;
  height: 60px;
  top: -30px;
  left: -30px;
  border-color: var(--yellow);
  background: rgba(255, 204, 0, 0.12);
}
.cursor.is-active .cursor__dot {
  background: var(--accent-deep);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  color: var(--ink);
}

.section-head {
  max-width: 1400px;
  margin: 0 auto 3.5rem;
  padding: 0 3rem;
}

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.pill--live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.6);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 204, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid transparent;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.btn--primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--ink);
  color: var(--yellow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  border-color: rgba(17, 19, 21, 0.15);
  color: var(--ink);
  background: var(--white);
}
.btn--outline:hover {
  border-color: var(--yellow);
  background: var(--gray-50);
  transform: translateY(-3px);
}

.btn--lg {
  padding: 1.25rem 2.6rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   NAV — always-on light glassmorphism bar
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 3rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(17, 19, 21, 0.06);
  transition: padding 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.nav.scrolled {
  padding: 0.9rem 3rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(17, 19, 21, 0.06);
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.nav__logo span {
  color: var(--accent-deep);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav__links a {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}
.nav__links a:not(.nav__cta):hover {
  color: var(--ink);
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--yellow);
  transition: width 0.25s ease;
}
.nav__links a:not(.nav__cta):hover::after {
  width: 100%;
}

.nav__cta {
  background: var(--yellow);
  color: var(--ink) !important;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-weight: 700 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.nav__tools {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  z-index: 200;
}
.nav__burger span {
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger.open span:nth-child(2) {
  opacity: 0;
}
.nav__burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 150;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.1rem;
  padding: 0 2rem;
  clip-path: inset(0 0 100% 0);
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  width: 100%;
  padding-bottom: 0.6rem;
}

/* ==========================================================================
   HERO — full-bleed photo fading into the white page, glass content card
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--gray-50);
}

.hero__media {
  position: absolute;
  inset: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}
.hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--white) 2%,
    rgba(255, 255, 255, 0.35) 32%,
    rgba(255, 255, 255, 0.02) 58%
  );
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(17, 19, 21, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 21, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to top, black 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(to top, black 0%, transparent 55%);
}

.hero__trail {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__glass {
  position: relative;
  z-index: 2;
  margin: 0 3rem 4.5rem;
  max-width: 640px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.6rem 2.8rem;
  box-shadow: var(--shadow-md);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.04;
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  letter-spacing: -0.01em;
  margin-top: 1.2rem;
}

.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title .line span {
  display: inline-block;
  will-change: transform;
}
.hero__title .line:nth-child(2) span {
  color: var(--accent-deep);
}

.hero__subtitle {
  margin-top: 1.3rem;
  max-width: 48ch;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero__scroll {
  position: absolute;
  right: 3rem;
  bottom: 2.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(255, 204, 0, 0.18);
  border-bottom: 1px solid rgba(255, 204, 0, 0.18);
  mask-image: linear-gradient(
    to right,
    transparent,
    black 6%,
    black 94%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 6%,
    black 94%,
    transparent
  );
}
.marquee::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow) 50%, transparent);
  opacity: 0.7;
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__seq {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-right: 1.1rem;
  flex: none;
}
.marquee__item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(244, 245, 247, 0.55);
  transition: color 0.25s ease;
}
.marquee__seq:hover .marquee__item {
  color: rgba(244, 245, 247, 0.55);
}
.marquee__item:hover {
  color: var(--yellow);
}
.marquee__sep {
  flex: none;
  width: 4px;
  height: 4px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.55;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   BENTO — shared grid + card primitives
   ========================================================================== */
.bento {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  gap: 1.25rem;
}

.bento-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(17, 19, 21, 0.14);
}

/* ==========================================================================
   O NAMA — bento layout + excavator
   ========================================================================== */
.about {
  padding: 7rem 0 8rem;
  background: var(--white);
}

.bento--about {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto);
}

.bento-card--statement {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bento-card--statement .section-title {
  margin-bottom: 1.2rem;
}

.bento-card__text {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 46ch;
}

.bento-card__quote {
  margin-top: 1.3rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  max-width: 40ch;
}

.bento-card--image {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
}
.bento-card--image .bento-card__img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  filter: grayscale(10%) contrast(1.04);
  transition: transform 0.7s ease;
}
.bento-card--image:hover .bento-card__img {
  transform: scale(1.06);
}

.bento-card--stat {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 150px;
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--ink);
  line-height: 1;
}
.stat__value::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 0.5rem;
  border-radius: 50%;
  background: var(--yellow);
  vertical-align: middle;
}
.stat__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.bento-card--excavator {
  grid-column: span 4;
  background: var(--gray-50);
}

.excavator-head {
  max-width: 560px;
  margin-bottom: 1.6rem;
}
.excavator-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0.4rem 0 0.7rem;
}
.excavator-text {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.excavator-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.excavator-stage {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
}
.excavator-svg {
  width: 100%;
  height: auto;
  display: block;
}
.dust {
  transform-box: fill-box;
  transform-origin: center;
}

.excavator-part {
  cursor: pointer;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.excavator-part:hover,
.excavator-part.is-active {
  filter: drop-shadow(0 0 7px rgba(255, 204, 0, 0.85));
}

.excavator-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  justify-content: center;
}
.excavator-spec {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.excavator-spec:hover,
.excavator-spec.is-active {
  border-color: var(--yellow);
  background: rgba(255, 204, 0, 0.1);
  transform: translateX(4px);
}
.excavator-spec__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.excavator-spec__value {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   USLUGE — bento layout with photographic tiles
   ========================================================================== */
.services {
  padding: 7rem 0;
  background: var(--gray-50);
}

.bento--services {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(230px, auto);
}

.bento-card--service {
  grid-column: span 2;
  grid-row: span 1;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.bento-card--service.is-featured {
  grid-row: span 2;
}
.bento-card--service.is-compact {
  grid-column: span 1;
}

.bento-card--service__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
  will-change: transform;
}
.bento-card--service:hover .bento-card--service__bg {
  transform: scale(1.08);
}

.bento-card--service__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17, 19, 21, 0.92),
    rgba(17, 19, 21, 0.35) 55%,
    rgba(17, 19, 21, 0) 78%
  );
}

.bento-card--service__content {
  position: relative;
  z-index: 1;
  padding: 1.8rem;
  color: var(--white);
}

.bento-card--service__number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 0.8rem;
}

.bento-card--service__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.3rem;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}
.bento-card--service.is-featured .bento-card--service__title {
  font-size: 1.7rem;
}

.bento-card--service__desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 34ch;
}

/* ==========================================================================
   PORTFOLIO
   ========================================================================== */
.portfolio {
  padding: 7rem 3rem;
  background: var(--white);
}

/* ---------- Before / After slider ---------- */
.ba {
  max-width: 1400px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 2.5rem;
  align-items: center;
}

.ba__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.ba__text {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 38ch;
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
}

.ba-slider__before,
.ba-slider__after {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.ba-slider__after {
  clip-path: inset(0 0 0 50%);
}

.ba-slider__tag {
  position: absolute;
  top: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ba-slider__tag--before {
  left: 1.1rem;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}
.ba-slider__tag--after {
  right: 1.1rem;
  background: rgba(17, 19, 21, 0.85);
  color: var(--white);
}

.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  pointer-events: none;
}
.ba-slider__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(17, 19, 21, 0.1);
  transform: translateX(-50%);
}
.ba-slider__handle-btn {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  cursor: ew-resize;
}

.portfolio__grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.portfolio-item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.portfolio-item__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
  will-change: transform;
}

.portfolio-item:hover .portfolio-item__bg {
  transform: scale(1.1);
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 19, 21, 0.9), rgba(17, 19, 21, 0.08) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
}

.portfolio-item__category {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--yellow);
  margin-bottom: 0.4rem;
}

.portfolio-item__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.15;
}

/* ==========================================================================
   CONTACT / FOOTER
   ========================================================================== */
.contact {
  position: relative;
  background: var(--gray-50);
  border-top: 1px solid var(--border);
  padding: 7rem 3rem 2rem;
}

.contact__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.05;
  color: var(--ink);
  margin: 1.1rem 0 2.3rem;
}

.contact__details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-content: center;
}

.contact-detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact__detail-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
  margin-bottom: 0.35rem;
}

.contact__detail-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  transition: color 0.25s ease;
  display: block;
}
.contact__detail-value:hover {
  color: var(--accent-deep);
}

.contact__bottom {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding-top: 1.6rem;
  font-size: 0.76rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   SCROLL PROGRESS — bager koji se kreće po traci sa progresom skrola
   ========================================================================== */
.scroll-progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  height: 34px;
  background: transparent;
  pointer-events: none;
  overflow: visible;
}
.scroll-progress__track {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: rgba(17, 19, 21, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.scroll-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--amber), var(--yellow));
  border-radius: 999px;
  will-change: width;
}
.scroll-progress__excavator {
  position: absolute;
  left: 24px;
  bottom: 0;
  width: 86px;
  height: auto;
  transform: translateX(0);
  will-change: transform;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(255, 204, 0, 0.55)) drop-shadow(0 0 14px rgba(255, 204, 0, 0.3));
}
.scroll-progress__excavator svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

@media (max-width: 768px) {
  .scroll-progress {
    height: 26px;
  }
  .scroll-progress__track {
    left: 14px;
    right: 14px;
  }
  .scroll-progress__excavator {
    left: 14px;
    bottom: 0;
    width: 70px;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .bento--about,
  .bento--services {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card--statement,
  .bento-card--image {
    grid-column: span 2;
  }
  .bento-card--stat {
    grid-column: span 1;
  }
  .bento-card--excavator {
    grid-column: span 2;
  }
  .bento-card--service,
  .bento-card--service.is-compact {
    grid-column: span 2;
    grid-row: span 1;
  }
  .bento-card--service.is-featured {
    grid-row: span 1;
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .excavator-body {
    grid-template-columns: 1fr;
  }
  .excavator-specs {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .excavator-spec {
    flex: 1 1 calc(50% - 0.6rem);
  }

  .ba {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1.1rem 1.4rem;
  }
  .nav__links {
    display: none;
  }
  .nav__burger {
    display: flex;
  }

  .hero__glass {
    margin: 0 1.4rem 3rem;
    padding: 2rem 1.8rem;
  }
  .hero__scroll {
    right: 1.4rem;
  }

  .section-head {
    padding: 0 1.4rem;
  }

  .about,
  .services {
    padding: 4.5rem 0;
  }
  .bento {
    padding: 0 1.4rem;
    grid-template-columns: 1fr !important;
  }
  .bento-card--statement,
  .bento-card--image,
  .bento-card--stat,
  .bento-card--excavator,
  .bento-card--service,
  .bento-card--service.is-featured,
  .bento-card--service.is-compact {
    grid-column: span 1 !important;
    grid-row: auto !important;
  }
  .bento-card--image .bento-card__img {
    min-height: 260px;
  }
  .bento-card--service {
    min-height: 220px;
  }

  .portfolio {
    padding: 4.5rem 1.4rem;
  }
  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 4.5rem 1.4rem 1.6rem;
  }
  .contact__details {
    grid-template-columns: 1fr;
  }
  .contact__bottom {
    flex-direction: column;
    gap: 0.5rem;
  }

  .excavator-specs {
    flex-direction: column;
  }
  .excavator-spec {
    flex: 1 1 auto;
  }

  .ba-slider__handle-btn {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
