* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: #000;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 125px;
}

/* ========================= */
/* HEADER MATTE LIQUID GLASS */
/* ========================= */

.glass-header {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);

  width: calc(100% - 20px);
  max-width: 1850px;
  height: 96px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  padding: 0 42px;
  border-radius: 999px;
  overflow: hidden;

  background:
    radial-gradient(
      circle at var(--mx, 50%) var(--my, 50%),
      rgba(255, 255, 255, 0.12),
      transparent 34%
    ),
    rgba(255, 255, 255, 0.055);

  backdrop-filter: blur(24px) saturate(115%) brightness(0.92);
  -webkit-backdrop-filter: blur(24px) saturate(115%) brightness(0.92);

  border: 1px solid rgba(255, 255, 255, 0.16);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 18px 55px rgba(0, 0, 0, 0.18);

  z-index: 1000;

  transition:
    opacity 0.35s ease,
    transform 0.5s cubic-bezier(.16, 1, .3, 1),
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.glass-header::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;

  background:
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.14),
      transparent 28%,
      transparent 66%,
      rgba(255, 255, 255, 0.07)
    );

  opacity: 0.48;
  mix-blend-mode: screen;
}

.glass-header::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;

  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.10),
    rgba(255, 255, 255, 0.035) 36%,
    transparent 68%
  );

  filter: blur(28px);
  opacity: 0.7;

  transition:
    left 0.25s ease,
    top 0.25s ease;
}

.glass-header.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-18px) scale(0.96);
  pointer-events: none;
}

/* ========================= */
/* MINI HEADER ON SCROLL */
/* ========================= */

.mini-header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(-18px) scale(0.92);

  width: 360px;
  height: 66px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  overflow: hidden;

  background:
    radial-gradient(
      circle at var(--mx, 50%) var(--my, 50%),
      rgba(255, 255, 255, 0.13),
      transparent 38%
    ),
    rgba(255, 255, 255, 0.065);

  backdrop-filter: blur(24px) saturate(115%) brightness(0.92);
  -webkit-backdrop-filter: blur(24px) saturate(115%) brightness(0.92);

  border: 1px solid rgba(255, 255, 255, 0.16);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 18px 55px rgba(0, 0, 0, 0.18);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  z-index: 1001;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.5s cubic-bezier(.16, 1, .3, 1);
}

.mini-header a {
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;

  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 3px;

  white-space: nowrap;

  text-shadow:
    0 6px 18px rgba(0, 0, 0, 0.35);
}

.mini-header.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* ========================= */
/* MENIU */
/* ========================= */

.header-side {
  position: relative;
  z-index: 5;

  display: flex;
  align-items: center;
  gap: 12px;

  opacity: 1;
  transform: translateY(0) scale(1);

  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(.16, 1, .3, 1);
}

.header-left {
  justify-content: flex-start;
}

.header-right {
  justify-content: flex-end;
}

.header-side a {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 42px;
  padding: 0 17px;
  border-radius: 999px;

  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  text-transform: uppercase;

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  line-height: 1;
  white-space: nowrap;

  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px) saturate(110%);
  -webkit-backdrop-filter: blur(16px) saturate(110%);

  border: 1px solid rgba(255, 255, 255, 0.24);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 14px 34px rgba(0, 0, 0, 0.08);

  overflow: hidden;

  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    padding 0.35s ease,
    letter-spacing 0.35s ease;
}

.header-side a:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;

  border-color: rgba(255, 255, 255, 0.34);

  transform: translateY(-3px);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 40px rgba(0, 0, 0, 0.20);
}

.header-side a.active {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.34);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 34px rgba(0, 0, 0, 0.16);
}

/* ========================= */
/* LOGO */
/* ========================= */

.header-logo {
  position: relative;
  z-index: 6;

  display: flex;
  align-items: center;
  justify-content: center;

  height: 96px;
  padding: 0 28px;
  border-radius: 999px;

  text-decoration: none;
  overflow: visible;

  background:
    radial-gradient(
      circle at var(--logo-x, 50%) var(--logo-y, 50%),
      rgba(255, 255, 255, 0.09),
      transparent 64%
    );

  transition:
    transform 0.35s cubic-bezier(.16, 1, .3, 1),
    background 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
}

.header-logo img {
  display: block;
  width: 300px;
  max-height: 70px;
  height: auto;
  object-fit: contain;

  filter:
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.10));

  transition:
    transform 0.35s cubic-bezier(.16, 1, .3, 1),
    filter 0.35s ease;
}

.header-logo:hover {
  transform:
    translate(
      calc(var(--logo-move-x, 0px) * 0.13),
      calc(var(--logo-move-y, 0px) * 0.13 - 2px)
    );

  background:
    radial-gradient(
      circle at var(--logo-x, 50%) var(--logo-y, 50%),
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0.06) 44%,
      transparent 72%
    ),
    rgba(255, 255, 255, 0.045);

  backdrop-filter: blur(16px) saturate(105%);
  -webkit-backdrop-filter: blur(16px) saturate(105%);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 34px rgba(0, 0, 0, 0.16);
}

.header-logo:hover img {
  transform: scale(1.04);

  filter:
    drop-shadow(0 12px 22px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.16));
}

/* ========================= */
/* HERO */
/* ========================= */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;

  background-image: url("images/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.42) 0%,
      rgba(0, 0, 0, 0.16) 45%,
      rgba(0, 0, 0, 0.56) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 5;

  max-width: 940px;
  padding: 0 24px;
  margin-top: 70px;

  text-align: center;
  color: #fff;
}

.hero-small {
  display: inline-block;
  margin-bottom: 24px;

  font-size: 12px;
  letter-spacing: 7px;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-content h1 {
  max-width: 850px;
  margin: 0 auto 24px;

  font-family: Georgia, serif;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 300;
  line-height: 1.08;
}

.hero-content p {
  margin-bottom: 38px;

  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.hero-btn {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 16px 34px;

  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;

  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;

  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px) saturate(110%);
  -webkit-backdrop-filter: blur(16px) saturate(110%);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 14px 34px rgba(0, 0, 0, 0.16);

  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.hero-btn:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 40px rgba(0, 0, 0, 0.20);
}

/* ========================= */
/* PORTFOLIO PAGE */
/* ========================= */

.portfolio-page {
  position: relative;
  min-height: 100vh;
  padding: 150px 26px 90px;

  background: #f5f1eb;
  color: #111;
}

.portfolio-intro {
  max-width: 1200px;
  margin: 0 auto 85px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 22px;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;

  color: rgba(0, 0, 0, 0.55);
}

.portfolio-intro h2,
.section-inner h2 {
  margin-bottom: 24px;

  font-family: Georgia, serif;
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 300;
  line-height: 1;
}

.portfolio-intro p,
.section-inner p {
  max-width: 720px;

  font-size: 18px;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.72);
}

.portfolio-category {
  max-width: 1500px;
  margin: 0 auto 110px;
}

.portfolio-category:last-child {
  margin-bottom: 0;
}

.category-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: 28px;
  padding: 0 4px;
}

.category-title-wrap h3 {
  font-family: Georgia, serif;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 12px;
}

.category-title-wrap span {
  display: block;

  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;

  color: rgba(0, 0, 0, 0.52);
}

.category-count {
  flex: 0 0 auto;

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;

  color: rgba(0, 0, 0, 0.42);
}

/* ========================= */
/* GOOGLE PHOTOS JUSTIFIED GALLERY */
/* ========================= */

.photo-mosaic {
  width: 100%;
}

.justified-row {
  display: flex;
  width: 100%;
  gap: 8px;
  margin-bottom: 8px;
}

.gallery-item {
  position: relative;
  display: block;

  padding: 0;
  margin: 0;
  border: 0;

  background: transparent;
  cursor: pointer;
  overflow: hidden;

  border-radius: 16px;

  box-shadow: none;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.gallery-item img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  border-radius: inherit;

  opacity: 1;
  transform: scale(1);

  transition:
    transform 0.35s ease,
    opacity 0.25s ease;
}

.gallery-item:hover {
  transform: scale(0.992);
  border-radius: 20px;
  z-index: 3;
}

.gallery-item:hover img {
  transform: scale(1.025);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.08);

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.25s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ========================= */
/* LIGHTBOX */
/* ========================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 28px;

  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;

  border-radius: 18px;

  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.45);

  transform: scale(0.96);

  transition: transform 0.35s cubic-bezier(.16, 1, .3, 1);
}

.lightbox.is-open img {
  transform: scale(1);
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.075);
  color: #fff;

  backdrop-filter: blur(16px) saturate(110%);
  -webkit-backdrop-filter: blur(16px) saturate(110%);

  cursor: pointer;

  transition:
    background 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease;
}

.lightbox-close {
  top: 28px;
  right: 28px;

  width: 48px;
  height: 48px;
  border-radius: 999px;

  font-size: 30px;
  line-height: 1;
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);

  width: 54px;
  height: 54px;
  border-radius: 999px;

  font-size: 42px;
  line-height: 1;
}

.lightbox-arrow.prev {
  left: 28px;
}

.lightbox-arrow.next {
  right: 28px;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
}

.lightbox-arrow.prev:hover {
  transform: translateY(-50%) translateX(-3px);
}

.lightbox-arrow.next:hover {
  transform: translateY(-50%) translateX(3px);
}

/* ========================= */
/* PAGE SECTIONS */
/* ========================= */

.page-section {
  position: relative;
  min-height: 100vh;
  padding: 150px 7vw;

  display: flex;
  align-items: center;

  background: #ebe5dc;
  color: #111;
}

.page-section:nth-of-type(even) {
  background: #f5f1eb;
}

.dark-section {
  background: #080808;
  color: #fff;
}

.section-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.dark-section .section-kicker {
  color: rgba(255, 255, 255, 0.55);
}

.dark-section .section-inner p {
  color: rgba(255, 255, 255, 0.72);
}

/* ========================= */
/* CONTACT */
/* ========================= */

.contact-actions {
  margin-top: 42px;

  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 15px 26px;
  border-radius: 999px;

  text-decoration: none;
  text-transform: uppercase;

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;

  color: #111;
  background: rgba(255, 255, 255, 0.35);

  border: 1px solid rgba(0, 0, 0, 0.12);

  transition:
    transform 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease;
}

.contact-actions a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.22);
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 1300px) {
  .glass-header {
    padding: 0 22px;
  }

  .header-side {
    gap: 8px;
  }

  .header-side a {
    font-size: 10px;
    letter-spacing: 3px;
    padding: 0 12px;
  }

  .header-logo img {
    width: 240px;
  }
}

@media (max-width: 1050px) {
  .glass-header {
    width: calc(100% - 24px);
    height: 82px;
    padding: 0 18px;
  }

  .header-side a {
    font-size: 9px;
    letter-spacing: 2px;
    padding: 0 9px;
  }

  .header-logo {
    height: 82px;
  }

  .header-logo img {
    width: 210px;
    max-height: 58px;
  }

  .mini-header {
    width: 330px;
    height: 62px;
  }

  .mini-header a {
    font-size: 18px;
  }
}

@media (max-width: 900px) {
  .page-section {
    padding: 120px 24px;
  }

  .portfolio-page {
    padding: 120px 18px 70px;
  }

  .portfolio-intro,
  .portfolio-category {
    margin-bottom: 70px;
  }

  .section-inner p,
  .portfolio-intro p {
    font-size: 16px;
  }

  .category-header {
    display: block;
  }

  .category-count {
    margin-top: 14px;
  }
}

@media (max-width: 850px) {
  .glass-header {
    top: 10px;
    height: 74px;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0 20px;
  }

  .header-left,
  .header-right {
    display: none;
  }

  .header-logo {
    height: 74px;
  }

  .header-logo img {
    width: 230px;
    max-height: 58px;
  }

  .mini-header {
    width: calc(100% - 28px);
    height: 64px;
  }

  .mini-header a {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .hero-content {
    margin-top: 40px;
  }

  .hero-small {
    font-size: 10px;
    letter-spacing: 4px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content p {
    font-size: 12px;
    line-height: 1.8;
  }

  .lightbox-arrow {
    width: 46px;
    height: 46px;
    font-size: 34px;
  }

  .lightbox-arrow.prev {
    left: 14px;
  }

  .lightbox-arrow.next {
    right: 14px;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .glass-header {
    width: calc(100% - 18px);
    height: 68px;
  }

  .header-logo {
    height: 68px;
  }

  .header-logo img {
    width: 200px;
    max-height: 52px;
  }

  .mini-header {
    width: calc(100% - 18px);
    height: 60px;
  }

  .mini-header a {
    font-size: 16px;
    letter-spacing: 1.5px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-content p {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .hero-btn {
    padding: 14px 26px;
    font-size: 10px;
    letter-spacing: 3px;
  }

  .portfolio-page {
    padding-left: 4px;
    padding-right: 4px;
  }

  .portfolio-intro {
    padding: 0 14px;
  }

  .justified-row {
    gap: 3px;
    margin-bottom: 3px;
  }
}