/* ============================================================
   2Y — Premium portfolio
   Dark, warm, slightly futuristic — shader-driven identity
   ============================================================ */

:root {
  --background: #050505;
  --surface: #0B0B0D;
  --surface-elevated: #121114;
  --foreground: #FFF4E6;
  --muted-foreground: #A89F96;
  --accent: #FF6A1A;
  --accent-bright: #FF9D2E;
  --accent-gold: #FFD166;
  --border: rgba(255, 244, 230, 0.08);
  --border-warm: rgba(255, 157, 46, 0.22);
  --glow-orange: rgba(255, 106, 26, 0.28);
  --grad: linear-gradient(120deg, #FF6A1A 0%, #FF9D2E 55%, #FFD166 100%);

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;

  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.6);

  --font-display: "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

::selection { background: rgba(255, 106, 26, 0.35); }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) { .container { padding-inline: 32px; } }

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--accent);
  color: #180B02;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

[data-reveal], [data-hero] { will-change: transform, opacity; }

/* ---------- Shared warm gradient text ---------- */
.grad-text {
  background: var(--grad);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.header.is-scrolled {
  background: rgba(5, 5, 5, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 157, 46, 0.12);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
}
.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.025em;
  line-height: 1;
}
.logo__reg { font-size: 0.55em; vertical-align: super; margin-left: 1px; }
.logo__star {
  font-size: 1.625rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent-bright);
  user-select: none;
  transition: transform 0.5s var(--ease-out);
}
.logo:hover .logo__star { transform: rotate(90deg); }

@media (min-width: 640px) {
  .logo__text { font-size: 1.625rem; }
  .logo__star { font-size: 1.875rem; }
}

.nav {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(5, 5, 5, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav.is-open { opacity: 1; visibility: visible; z-index: 90; }

.nav__link {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 10px 20px;
  border-radius: 999px;
  color: var(--foreground);
  transition: color 0.25s ease, background 0.25s ease;
}
.nav__link:hover { color: var(--accent-bright); }

.nav__link--cta { background: var(--grad); color: #180B02; margin-top: 8px; }
.nav__link--cta:hover { color: #180B02; filter: brightness(1.08); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
  border-radius: 12px;
  position: relative;
  z-index: 95;
}
.nav-toggle__line {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--foreground);
  transition: transform 0.3s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav {
    position: static;
    z-index: auto;
    flex-direction: row;
    gap: 2px;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
  }
  .nav__link {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0;
    padding: 8px 14px;
    color: var(--muted-foreground);
  }
  .nav__link:hover { color: var(--foreground); background: rgba(255, 244, 230, 0.06); }
  .nav__link.is-active { color: var(--accent-bright); }
  .nav__link--cta { color: #180B02; margin: 0 0 0 10px; padding-inline: 18px; }
  .nav__link--cta:hover, .nav__link--cta.is-active { color: #180B02; background: var(--grad); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s ease, color 0.3s ease, border-color 0.3s ease, filter 0.3s ease;
}

.btn__icon { transition: transform 0.3s var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(4px); }

.btn--primary {
  background: var(--grad);
  color: #180B02;
  box-shadow: 0 8px 30px var(--glow-orange);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(255, 106, 26, 0.4);
  filter: brightness(1.06);
}
.btn--primary:active { transform: translateY(0) scale(0.98); }

.btn--ghost {
  background: rgba(5, 5, 5, 0.3);
  color: var(--foreground);
  border: 1px solid var(--border-warm);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent-bright);
  background: rgba(255, 106, 26, 0.08);
}

/* ============================================================
   HERO — animated shader background
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
  background: var(--background);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Static fallback when WebGL2 is unavailable */
.hero--static .hero__canvas { display: none; }
.hero--static::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 50% 72%, rgba(255, 106, 26, 0.22), transparent 70%),
    radial-gradient(40% 30% at 68% 40%, rgba(255, 157, 46, 0.12), transparent 70%),
    var(--background);
}

.hero__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(64% 52% at 50% 55%, rgba(5, 5, 5, 0.5), rgba(5, 5, 5, 0) 72%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0) 26%, rgba(5, 5, 5, 0) 72%, #050505 100%);
}

.hero__inner { position: relative; z-index: 1; width: 100%; }

.hero__content {
  position: relative;
  max-width: 840px;
  margin-inline: auto;
  text-align: center;
}

/* Subtle glow behind the heading */
.hero__content::before {
  content: "";
  position: absolute;
  top: -6%;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 82vw);
  height: 300px;
  background: radial-gradient(closest-side, var(--glow-orange), transparent 72%);
  opacity: 0.55;
  pointer-events: none;
}

.hero__eyebrow {
  position: relative;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.hero__title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-top: 22px;
  color: var(--foreground);
}

.hero__sub {
  position: relative;
  margin: 26px auto 0;
  max-width: 52ch;
  font-size: clamp(1.0625rem, 2.2vw, 1.1875rem);
  color: var(--muted-foreground);
  line-height: 1.7;
}

.hero__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

.hero__meta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.hero__meta-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(255, 209, 102, 0.06); }
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section { padding: 84px 0; }
@media (min-width: 900px) { .section { padding: 120px 0; } }

.section-head { max-width: 640px; margin-bottom: 48px; }
@media (min-width: 900px) { .section-head { margin-bottom: 64px; } }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.section-eyebrow--light { color: var(--accent-gold); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--foreground);
}

.section-sub {
  margin-top: 16px;
  font-size: 1.0625rem;
  color: var(--muted-foreground);
}

/* ============================================================
   O MENI — near-black with warm ambient light
   ============================================================ */
.about {
  position: relative;
  background:
    radial-gradient(52% 42% at 82% 8%, rgba(255, 106, 26, 0.07), transparent 70%),
    var(--background);
}

.about__grid { display: grid; gap: 32px; }

.about__text p { color: var(--muted-foreground); font-size: 1.0625rem; line-height: 1.75; }
.about__text p + p { margin-top: 20px; }
.about__text strong { color: var(--foreground); font-weight: 600; }

.about__lead {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3.4vw, 1.75rem) !important;
  color: var(--foreground) !important;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4 !important;
}

.about__side { display: grid; gap: 20px; align-content: start; }

.about__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s ease;
}
.about__card:hover {
  transform: translateY(-4px);
  border-color: var(--border-warm);
  box-shadow: var(--shadow-md);
}

.about__card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-warm);
}

.lang-list { list-style: none; display: grid; gap: 16px; }
.lang {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
}
.lang__flag { grid-row: 1 / 3; font-size: 1.5rem; }
.lang__name { font-weight: 600; font-size: 0.9375rem; color: var(--foreground); }
.lang__level { font-size: 0.8125rem; color: var(--muted-foreground); }

.about__card--accent {
  background: var(--surface-elevated);
  border: 1px solid var(--border-warm);
  position: relative;
  overflow: hidden;
}
.about__card--accent::after {
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  right: -90px; bottom: -120px;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.35), transparent 70%);
  filter: blur(12px);
}
.about__card-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.4rem;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about__card-sub { color: var(--muted-foreground); margin-top: 6px; font-size: 0.9375rem; }

@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1.4fr 1fr; gap: 64px; }
}

/* ============================================================
   ZAŠTO JA — soft-black cards, orange spotlight
   ============================================================ */
.why { background: var(--background); }

.why__grid { display: grid; gap: 16px; }

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s ease;
}
.why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 106, 26, 0.1), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-warm);
  box-shadow: var(--shadow-md);
}
.why-card:hover::before { opacity: 1; }

.why-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 15px;
  background: rgba(255, 106, 26, 0.12);
  color: var(--accent-bright);
  margin-bottom: 20px;
  transition: transform 0.35s var(--ease-out), background 0.35s ease, color 0.35s ease;
}
.why-card:hover .why-card__icon {
  transform: scale(1.08) rotate(-4deg);
  background: var(--grad);
  color: #180B02;
}

.why-card__title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--foreground);
}
.why-card__text { color: var(--muted-foreground); font-size: 0.9375rem; line-height: 1.65; }

@media (min-width: 640px) { .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ============================================================
   USLUGE — slightly lighter black band
   ============================================================ */
.services {
  background:
    radial-gradient(60% 40% at 12% 0%, rgba(255, 157, 46, 0.05), transparent 70%),
    var(--surface);
  border-block: 1px solid var(--border);
}

.services__grid { display: grid; gap: 16px; }

.service-card {
  position: relative;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background 0.4s ease, border-color 0.4s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  background: var(--surface-elevated);
  border-color: var(--border-warm);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 106, 26, 0.08);
}

.service-card__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  display: inline-block;
  margin-bottom: 40px;
  transition: color 0.3s ease;
}
.service-card:hover .service-card__num { color: var(--accent-bright); }

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  max-width: 16ch;
  color: var(--foreground);
}
.service-card__text { color: var(--muted-foreground); font-size: 0.9375rem; line-height: 1.65; max-width: 34ch; }

.service-card__arrow {
  position: absolute;
  top: 26px; right: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 244, 230, 0.06);
  color: var(--foreground);
  opacity: 0;
  transform: translate(-6px, 6px) rotate(-45deg);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out), background 0.35s ease, color 0.35s ease;
}
.service-card:hover .service-card__arrow {
  opacity: 1;
  transform: translate(0, 0) rotate(-45deg);
  background: var(--grad);
  color: #180B02;
}

@media (min-width: 640px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ============================================================
   PROCES — thin lines, warm indicators
   ============================================================ */
.process {
  background:
    radial-gradient(50% 36% at 88% 100%, rgba(255, 106, 26, 0.06), transparent 70%),
    var(--background);
}

.process__grid {
  list-style: none;
  display: grid;
  gap: 40px;
  position: relative;
}

.step { position: relative; padding-top: 24px; }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 244, 230, 0.12);
}
.step::after {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 44px; height: 3px;
  border-radius: 3px;
  background: var(--grad);
}

.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.3px rgba(255, 157, 46, 0.4);
  display: block;
  margin-bottom: 18px;
  transition: -webkit-text-stroke-color 0.3s ease;
}
.step:hover .step__num { -webkit-text-stroke-color: var(--accent-bright); }

.step__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--foreground);
}
.step__text { color: var(--muted-foreground); font-size: 0.9375rem; line-height: 1.65; }

@media (min-width: 700px) { .process__grid { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; } }
@media (min-width: 1000px) { .process__grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   RADOVI — dark elevated editorial cards
   ============================================================ */
.projects { background: var(--surface); border-block: 1px solid var(--border); }

.projects__grid { display: grid; gap: 24px; }

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-elevated);
  border: 1px solid var(--border-warm);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s ease;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 157, 46, 0.4);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(255, 106, 26, 0.1);
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #14100C;
}
.project-card--wide .project-card__media { aspect-ratio: 16 / 7; }

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease-out);
}
.project-card:hover .project-card__media img { transform: scale(1.04); }

.project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 60%, rgba(5, 5, 5, 0.35) 100%);
  pointer-events: none;
}

.project-card__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 22px;
}
.project-card__meta {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-bottom: 4px;
}
.project-card__num { color: var(--accent-bright); font-weight: 600; }
.project-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--foreground);
}
.project-card__cta {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.project-card:hover .project-card__cta { color: var(--accent-gold); }

@media (min-width: 900px) {
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .project-card--wide { grid-column: 1 / -1; }
}

/* ============================================================
   TECH
   ============================================================ */
.tech { background: var(--background); }

.tech__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--foreground);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
}
.tech-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-warm);
  box-shadow: var(--shadow-md);
}
.tech-item svg { flex-shrink: 0; }

@media (min-width: 640px) { .tech__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) {
  .tech__grid { grid-template-columns: repeat(5, 1fr); }
  .tech-item { justify-content: center; }
}

/* ============================================================
   KONTAKT — warm glowing conclusion
   ============================================================ */
.contact { padding-bottom: 84px; background: var(--background); }

.contact__panel {
  position: relative;
  background: var(--surface-elevated);
  border: 1px solid var(--border-warm);
  color: var(--foreground);
  border-radius: 32px;
  padding: 48px 28px;
  overflow: hidden;
  display: grid;
  gap: 48px;
}
.contact__panel::before {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  top: -260px; right: -180px;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.3), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
  animation: glow-drift 9s ease-in-out infinite alternate;
}
.contact__panel::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  bottom: -240px; left: -140px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.16), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
  animation: glow-drift 11s ease-in-out infinite alternate-reverse;
}

@keyframes glow-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-30px, 24px); }
}

.contact__intro, .contact__form { position: relative; z-index: 1; }

.contact__title { color: var(--foreground); }
.contact__sub { margin-top: 16px; color: var(--muted-foreground); font-size: 1.0625rem; }

.contact__list {
  list-style: none;
  margin-top: 40px;
  display: grid;
  gap: 22px;
}
.contact__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 4px;
}
.contact__value {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--foreground);
  transition: color 0.25s ease;
}
a.contact__value:hover { color: var(--accent-gold); }
.contact__value--muted { color: var(--muted-foreground); font-weight: 500; }

.contact__form { display: grid; gap: 18px; align-content: start; }

.field { display: grid; gap: 8px; }
.field__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
}
.field__input {
  width: 100%;
  font: inherit;
  color: var(--foreground);
  background: rgba(5, 5, 5, 0.4);
  border: 1px solid rgba(255, 157, 46, 0.18);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.field__input::placeholder { color: rgba(168, 159, 150, 0.6); }
.field__input:hover { border-color: rgba(255, 157, 46, 0.35); }
.field__input:focus {
  outline: none;
  border-color: var(--accent-bright);
  background: rgba(5, 5, 5, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.18);
}
.field__input--area { resize: vertical; min-height: 130px; }

.contact__submit { margin-top: 6px; justify-self: start; }

.contact__status {
  min-height: 1.4em;
  font-size: 0.9375rem;
  color: var(--accent-gold);
}

@media (min-width: 900px) {
  .contact__panel {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    padding: 72px 64px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 64px 0 32px; background: var(--background); }

.footer__inner {
  display: grid;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.04em;
  display: block;
  color: var(--foreground);
}
.footer__reg { font-size: 0.45em; vertical-align: super; }
.footer__tag { color: var(--muted-foreground); margin-top: 10px; max-width: 26ch; font-size: 0.9375rem; }

.footer__heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 16px;
}
.footer__line { font-size: 0.9375rem; color: var(--muted-foreground); margin-top: 8px; }
.footer__line a { transition: color 0.25s ease; }
.footer__line a:hover { color: var(--accent-bright); }
.footer__line--muted { color: rgba(168, 159, 150, 0.65); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 28px;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.footer__top { font-weight: 500; transition: color 0.25s ease; }
.footer__top:hover { color: var(--accent-gold); }

@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .grad-text { animation: none; }
}
