/* ============================================================
   ECATERINA — Main Stylesheet
   ============================================================ */

/* ── Reset & variables ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:      #0d0d0d;
  --fg:      #ffffff;
  --muted:   rgba(255, 255, 255, .55);
  --overlay: rgba(0, 0, 0, .55);
  --font:    'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
}

/* index: no-scroll full-screen page */
html.no-scroll,
html.no-scroll body {
  overflow: hidden;
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
}


/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .60) 0%, transparent 100%);
  transition: background .3s;
}

/* solid variant used on gallery page */
.header--solid {
  background: rgba(13, 13, 13, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.header.scrolled {
  background: rgba(10, 10, 10, .92);
  backdrop-filter: blur(8px);
}

.header__logo {
  font-size: .85rem;
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
}


/* ============================================================
   NAV
   ============================================================ */
.nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav a {
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--fg);
  opacity: .75;
  transition: opacity .2s;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}

.nav a:hover        { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); }
.nav a.active       { opacity: 1; }
.nav a.active::after{ transform: scaleX(1); }


/* ── Burger ── */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--fg);
  transition: .3s;
}

.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* ── Mobile nav overlay ── */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(13, 13, 13, .97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 1.2rem;
  font-weight: 200;
  letter-spacing: .25em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0;
  animation: fadeUp .4s forwards;
}

.nav-mobile a:nth-child(1) { animation-delay: .10s; }
.nav-mobile a:nth-child(2) { animation-delay: .18s; }
.nav-mobile a:nth-child(3) { animation-delay: .26s; }
.nav-mobile a:nth-child(4) { animation-delay: .34s; }


/* ============================================================
   HERO  (index.html)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  /* Adjust vertical % to move the focal point:
     lower value → face higher in frame          */
  background: url("img/3.jpg") center 20% / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  opacity: 0;
  animation: fadeIn 1.2s .3s forwards;
}

.hero__sub {
  font-size: .7rem;
  font-weight: 300;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero__name {
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 200;
  letter-spacing: .15em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 28px;
}

.hero__tagline {
  font-size: .75rem;
  font-weight: 300;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ── Generic button ── */
.btn {
  display: inline-block;
  padding: 13px 36px;
  border: 1px solid rgba(255, 255, 255, .6);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  transition: background .25s, color .25s;
}

.btn:hover {
  background: var(--fg);
  color: var(--bg);
}


/* ============================================================
   PAGE HERO  (gallery.html)
   ============================================================ */
.page-hero {
  padding: 160px 48px 72px;
  text-align: center;
}

.page-hero__label {
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.page-hero__title {
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 200;
  letter-spacing: .14em;
  text-transform: uppercase;
}


/* ============================================================
   GALLERY GRID  (gallery.html)
   ============================================================ */
.gallery {
  padding: 16px 24px 80px;
  columns: 3 280px;
  column-gap: 12px;
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery__item img {
  display: block;
  width: 100%;
  filter: brightness(.92);
  transition: transform .5s cubic-bezier(.25, .46, .45, .94), filter .5s;
}

.gallery__item:hover img {
  transform: scale(1.03);
  filter: brightness(1);
}

.gallery__item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background .3s;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery__item:hover .gallery__item__overlay {
  background: rgba(0, 0, 0, .18);
}


/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s, transform .7s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   LIGHTBOX  (gallery.html)
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, .95);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  user-select: none;
  animation: lbIn .3s ease;
}

.lightbox__close {
  position: absolute;
  top: 24px; right: 32px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--muted);
  line-height: 1;
  transition: color .2s;
}

.lightbox__close:hover { color: var(--fg); }

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  color: var(--muted);
  padding: 16px;
  transition: color .2s;
  user-select: none;
}

.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

.lightbox__prev:hover,
.lightbox__next:hover { color: var(--fg); }

.lightbox__counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ============================================================
   FOOTER
   ============================================================ */

/* index: fixed transparent footer */
footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: linear-gradient(to top, rgba(0, 0, 0, .60) 0%, transparent 100%);
  font-size: .65rem;
  font-weight: 300;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* gallery: static footer at bottom of scroll */
footer.footer--static {
  position: static;
  background: none;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 28px 48px;
}

footer a {
  color: inherit;
  text-decoration: none;
}


/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes lbIn {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  .header      { padding: 20px 24px; }
  .nav         { display: none; }
  .burger      { display: flex; }
  footer       { padding: 20px 24px; }

  /* gallery page */
  .page-hero   { padding: 120px 24px 48px; }
  .gallery     { columns: 2 140px; column-gap: 8px; padding: 0 12px 60px; }
  .gallery__item { margin-bottom: 8px; }
  footer.footer--static { padding: 24px; flex-direction: column; gap: 8px; text-align: center; }
  .lightbox__prev { left: 4px; }
  .lightbox__next { right: 4px; }

  /* hero bg position on mobile */
  .hero__bg    { background-position: center top; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .header  { padding: 20px 32px; }
  .gallery { columns: 2 260px; }
}
