/* ═══════════════════════════════════════════════════════════
   DIM LAZAR — Personal Site v20 — lamp entrance (optimized)
   css/style.css
════════════════════════════════════════════════════════════ */

:root {
  --c-ground:   #0d0d0e;
  --c-text:     rgba(255, 255, 255, 0.88);
  --c-text-mid: rgba(255, 255, 255, 0.55);
  --c-text-dim: rgba(255, 255, 255, 0.34);
  --c-accent:   #c8a97e;

  --f-sans: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --f-name:  clamp(3.2rem, 7.5vw, 6.4rem);
  --f-title: clamp(1.0rem, 1.8vw, 1.4rem);
  --f-sub:   clamp(0.72rem, 1.1vw, 0.86rem);
  --f-body:  clamp(0.78rem, 1.1vw, 0.88rem);
  --f-nav:   clamp(0.66rem, 0.85vw, 0.74rem);

  --hero-offset: 8vw;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

img, .bg-layer, [data-protected-image] {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.copyright-notice {
  position: fixed;
  z-index: 10000;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(200, 169, 126, 0.34);
  border-radius: 2px;
  background: rgba(7, 10, 16, 0.92);
  color: rgba(255, 255, 255, 0.8);
  font: 500 0.68rem/1.25 var(--f-sans);
  letter-spacing: 0.08em;
  transform: translate(-50%, calc(-50% + 0.5rem));
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.copyright-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--c-ground);
  color: var(--c-text);
  font-family: var(--f-sans);
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── BACKGROUND ─────────────────────────────────────────── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--c-ground);
  overflow: hidden;
}

.bg-layer-img {
  position: absolute;
  top: -2%;
  left: -2%;
  width: 104%;
  height: 104%;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 1;
}

.bg-layer-img--full {
  background-image: url('../images/dim-home-bg-01.webp');
  filter: brightness(0.82) contrast(1.00) saturate(0.94);
  transition: none;
}

/* ── SITE WRAP ───────────────────────────────────────────── */
.site-wrap {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── HOME LANGUAGE SWITCH ───────────────────────────────── */
.home-language-switch {
  position: fixed;
  top: 1.62rem;
  left: 2.5rem;
  z-index: 103;
  display: flex;
  align-items: center;
  gap: 0.58rem;
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.70rem;
  letter-spacing: 0.10em;
  text-shadow: 0 2px 8px rgba(2, 8, 18, 0.76);
}

.home-language-button {
  appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0.25rem 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font: 420 0.70rem/1 var(--f-sans);
  letter-spacing: 0.10em;
  cursor: pointer;
  text-shadow: inherit;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.home-language-button:hover,
.home-language-button:focus-visible,
.home-language-button.is-active {
  color: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(200, 169, 126, 0.76);
  outline: none;
}

/* ── NAV ─────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.6rem 2.5rem;
  display: flex;
  justify-content: flex-end;
  background:
    linear-gradient(
      to bottom,
      rgba(8, 24, 48, 0.34) 0%,
      rgba(8, 28, 54, 0.20) 42%,
      rgba(8, 28, 54, 0.07) 74%,
      rgba(8, 28, 54, 0.00) 100%
    ),
    radial-gradient(
      110% 140% at 100% 0%,
      rgba(8, 24, 48, 0.46) 0%,
      rgba(8, 24, 48, 0.30) 34%,
      rgba(8, 24, 48, 0.16) 56%,
      rgba(8, 24, 48, 0.06) 74%,
      rgba(8, 24, 48, 0.00) 100%
    );
  backdrop-filter: blur(5px) saturate(0.94) brightness(0.86);
  -webkit-backdrop-filter: blur(5px) saturate(0.94) brightness(0.86);
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.00) 0%,
    rgba(0, 0, 0, 0.10) 14%,
    rgba(0, 0, 0, 0.34) 30%,
    rgba(0, 0, 0, 0.72) 56%,
    rgba(0, 0, 0, 1.00) 76%,
    rgba(0, 0, 0, 1.00) 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.00) 0%,
    rgba(0, 0, 0, 0.10) 14%,
    rgba(0, 0, 0, 0.34) 30%,
    rgba(0, 0, 0, 0.72) 56%,
    rgba(0, 0, 0, 1.00) 76%,
    rgba(0, 0, 0, 1.00) 100%
  );
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
}

.nav-link {
  font-family: var(--f-sans);
  font-size: var(--f-nav);
  font-weight: 390;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 0.2em 0;
  border-bottom: 1px solid transparent;
  text-shadow:
    0 2px 6px rgba(2, 8, 18, 0.72),
    0 0 14px rgba(115, 160, 210, 0.10);
  transition:
    color 0.28s var(--ease),
    border-color 0.28s var(--ease),
    text-shadow 0.28s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link:active {
  color: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(180, 210, 245, 0.34);
  text-shadow:
    0 2px 7px rgba(2, 8, 18, 0.78),
    0 0 18px rgba(150, 190, 240, 0.22);
  outline: none;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: calc(6rem + 96px) 2.5rem calc(4rem - 36px);
}

.hero__inner {
  width: 100%;
  margin-left: var(--hero-offset);
  display: flex;
  flex-direction: column;
}

.hero__name {
  font-family: var(--f-sans);
  font-size: var(--f-name);
  font-weight: 260;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--c-text);
  margin-bottom: 2.4rem;
}

.hero__block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.hero__title {
  font-family: var(--f-sans);
  font-size: var(--f-title);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--c-text-mid);
  line-height: 1.3;
}

.hero__subtitle {
  font-family: var(--f-sans);
  font-size: var(--f-sub);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: rgba(225, 232, 238, 0.78);
}

.hero__intro {
  max-width: 46ch;
  font-family: var(--f-sans);
  font-size: var(--f-body);
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: var(--c-text-dim);
}

.hero__statement {
  max-width: 46ch;
  margin-top: 1.25rem;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: flex-end;
}

.footer-text {
  font-family: var(--f-sans);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.14);
}

/* ── ENTRANCE ANIMATION (hero text) ─────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__name  { animation: fadeUp 1s var(--ease) 0.06s both; }
.hero__block { animation: fadeUp 1s var(--ease) 0.20s both; }
.hero__intro,
.hero__statement { animation: fadeUp 1s var(--ease) 0.32s both; }

@media (prefers-reduced-motion: reduce) {
  .hero__name,
  .hero__block,
  .hero__intro,
  .hero__statement { animation: none; }

}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --hero-offset: 0; }

  .site-nav {
    padding: 1.2rem 1.5rem;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .nav-list {
    gap: 0.8rem 1.4rem;
    justify-content: center;
  }

  .hero {
    padding: calc(3.5rem + 80px) 1.5rem 3.5rem;
    align-items: flex-start;
  }

  .hero__name { margin-bottom: 1.8rem; }

  .hero__intro { max-width: 100%; }

  .site-footer { justify-content: center; }
}

@media (max-width: 480px) {
  .nav-list { gap: 0.65rem 1rem; }
}


/* Stage 2 — clean responsive layer */
.menu-toggle { display: none; }
.nav-link--act { color: rgba(218, 181, 126, 0.92); }

@media (max-width: 760px) {
  :root {
    --f-name: clamp(3rem, 15vw, 4.6rem);
    --f-title: clamp(1rem, 4.4vw, 1.2rem);
    --f-sub: clamp(0.78rem, 3.2vw, 0.9rem);
    --f-body: clamp(0.82rem, 3.4vw, 0.94rem);
  }

  body { min-height: 100svh; }

  .bg-layer-img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: 63% center;
  }
  .bg-layer-img--full { filter: brightness(0.64) contrast(1.04) saturate(0.9); }

  .site-nav {
    padding: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .home-language-switch {
    top: 16px;
    left: 16px;
    gap: 0.34rem;
    font-size: 0.68rem;
  }

  .home-language-button {
    min-width: 36px;
    min-height: 40px;
    padding: 0.55rem 0.2rem 0.42rem;
    font-size: 0.70rem;
  }

  .menu-toggle {
    display: inline-flex;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 102;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: rgba(5, 12, 22, .68);
    color: rgba(255,255,255,.9);
    font: 400 .72rem/1 var(--f-sans);
    letter-spacing: .1em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .nav-list {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 101;
    padding: 76px 26px 34px;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    overflow-y: auto;
    background: rgba(5, 10, 18, .96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .nav-list.is-open { display: flex; }
  .nav-list li { width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-link {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: .92rem;
    letter-spacing: .07em;
  }

  .hero {
    min-height: 100svh;
    align-items: flex-end;
    padding: 96px 22px 78px;
  }
  .hero__inner {
    max-width: 31rem;
    margin: 0;
    padding: 20px 0 0;
    text-shadow: 0 2px 16px rgba(0,0,0,.72);
  }
  .hero__name {
    margin-bottom: 1.35rem;
    line-height: .94;
  }
  .hero__block { margin-bottom: 1.2rem; gap: .42rem; }
  .hero__subtitle { line-height: 1.48; letter-spacing: .02em; }
  .hero__subtitle br { display: none; }
  .hero__intro { max-width: 34ch; line-height: 1.62; color: rgba(255,255,255,.54); }

  .site-footer {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    justify-content: flex-start;
    padding: 16px 22px 18px;
    pointer-events: none;
  }
  .footer-text { font-size: .62rem; color: rgba(255,255,255,.42); }
}

@media (max-width: 390px) {
  .hero { padding-left: 18px; padding-right: 18px; }
  .site-footer { padding-left: 18px; }
}

/* Approved finishing adjustments */
@media (min-width: 761px) {
  .site-footer {
    justify-content: flex-start;
    padding-left: calc(2.5rem + var(--hero-offset));
  }

  .footer-text {
    color: rgba(255, 255, 255, 0.42);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
  }
}

@media (max-width: 760px) {
  .hero__intro {
    color: rgba(255, 255, 255, 0.70);
  }
}


/* Act 0 is a desktop-only conceptual archive. */
@media (max-width: 900px) {
  .nav-item--desktop-only {
    display: none !important;
  }
}

/* Home — low-height laptop viewports. */
@media (min-width: 769px) and (max-height: 700px) {
  .hero {
    padding-top: clamp(6rem, calc(100dvh - 31.5rem), 12rem);
  }
}
