/* ==========================================================================
   Gabi Bervian — Interior Designer Portfolio
   Palette: off-white #F7F7F7 | navy #1C3F60 | light blue #AFC1D0 | beige #E3DDDC | black #000
   Type: Cinzel (titles) | Poppins (body) | Amsterdam One (hero tagline)
   ========================================================================== */

@font-face {
  font-family: 'Amsterdam One';
  src: url('../fonts/AmsterdamOne400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --off-white: #F7F7F7;
  --navy: #1C3F60;
  --light-blue: #AFC1D0;
  --beige: #E3DDDC;
  --gold: #C9A96E;
  --black: #000000;

  --font-title: 'Cinzel', serif;
  --font-body: 'Poppins', sans-serif;
  --font-script: 'Amsterdam One', 'Brush Script MT', cursive;

  --section-pad: 7rem 1.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--font-title); font-weight: 500; letter-spacing: 0.03em; }

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

.section-tag {
  display: block;
  font-family: var(--font-title);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--light-blue);
  margin-bottom: 0.6rem;
}

.section-tag--center { text-align: center; }

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-line {
  width: 48px;
  height: 1.5px;
  background: var(--gold);
  margin-bottom: 3rem;
}

.section-line--center { margin: 0 auto 3.5rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.is-scrolled {
  background: rgba(247, 247, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: rgba(175, 193, 208, 0.25);
}

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy);
  font-family: var(--font-title);
  letter-spacing: 0.15em;
  font-size: 1rem;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.85);
}

.navbar__logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar__logo-mark img {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 1px 4px rgba(255, 255, 255, 0.85));
}

.navbar__menu {
  display: flex;
  gap: 0.6rem;
}

.navbar__menu a {
  font-family: var(--font-title);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--off-white);
  background: var(--navy);
  border-radius: 999px;
  padding: 8px 18px;
  transition: all 0.3s ease;
}

.navbar__menu a:hover {
  background: var(--gold);
  color: var(--navy);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar__toggle span {
  width: 24px; height: 2px;
  background: var(--navy);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(247, 244, 240, 0.72) 0%, rgba(227, 221, 220, 0.65) 50%, rgba(175, 193, 208, 0.35) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--navy);
  padding: 2rem;
}

.hero__name {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: 0.12em;
  color: var(--navy);
  text-shadow: 0 2px 18px rgba(255,255,255,0.6);
}

.hero__title {
  font-family: var(--font-title);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--navy);
  margin: 1rem 0 1.8rem;
}

.hero__tagline {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--navy);
  max-width: 480px;
  margin: 0 auto;
}

.hero__divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 2rem auto 0;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--navy);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 2;
  animation: bounce 2.2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ===== ABOUT ===== */
.about { padding: var(--section-pad); background: var(--off-white); }

.about__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4.5rem;
  align-items: center;
}

.about__image {
  position: relative;
}

.about__image-accent {
  position: absolute;
  top: -16px; left: -16px; right: 16px; bottom: 16px;
  border: 1.5px solid var(--gold);
  z-index: 0;
}

.about__image img {
  position: relative;
  z-index: 1;
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
}

.about__text h2 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.about__text p {
  margin-bottom: 1.1rem;
  color: #333;
  font-size: 0.95rem;
}

/* ===== SERVICES ===== */
.services {
  padding: var(--section-pad);
  background: var(--beige);
}

.carousel--service {
  max-width: 680px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
}

.service-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
}

.service-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(28,63,96,0.1) 100%);
}

.service-slide__content {
  position: relative;
  z-index: 2;
  color: var(--off-white);
  padding: 2.2rem 2.5rem;
  text-align: left;
  max-width: 520px;
}

.service-slide__content h3 {
  color: var(--off-white);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
}

.service-slide__content p {
  font-size: 0.9rem;
  color: var(--beige);
}

/* ===== PROJECTS ===== */
.projects { padding: var(--section-pad); background: var(--off-white); }

.carousel--projects {
  max-width: 680px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
}

.project-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(28, 63, 96, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.project-card:hover,
.project-card:focus-visible {
  box-shadow: 0 16px 40px rgba(28, 63, 96, 0.16);
  transform: translateY(-3px);
  outline: none;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(28,63,96,0.1) 100%);
}

.project-card__content {
  position: relative;
  z-index: 2;
  color: var(--off-white);
  padding: 2.2rem 2.5rem;
  text-align: left;
  max-width: 520px;
}

.project-card__content h3 {
  color: var(--off-white);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
}

.project-card__content p {
  font-size: 0.9rem;
  color: var(--beige);
}

.project-card__btn {
  display: inline-block;
  margin-top: 1.1rem;
  background: rgba(247, 247, 247, 0.12);
  border: 1px solid rgba(175, 193, 208, 0.4);
  color: var(--off-white);
  font-family: var(--font-title);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.project-card__btn:hover,
.project-card__btn:focus-visible {
  background: rgba(247, 247, 247, 0.25);
  border-color: var(--light-blue);
  outline: none;
}

/* ===== PROJECT IMAGE VIEWER (LIGHTBOX) ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  padding: 2rem;
}

.lightbox.is-open { display: flex; }

.lightbox__stage {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__stage img {
  max-width: 90vw;
  max-height: 78vh;
  width: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__caption {
  color: var(--off-white);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-top: 1rem;
  text-align: center;
}

.lightbox__counter {
  color: var(--light-blue);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
}

.lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--off-white);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__arrow {
  background: rgba(247, 247, 247, 0.12);
  border: 1px solid rgba(175, 193, 208, 0.35);
  color: var(--off-white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 1.2rem;
  transition: background 0.3s ease;
}

.lightbox__arrow:hover { background: rgba(247, 247, 247, 0.25); }

/* Carousel */
.carousel {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--black);
}

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
}

.carousel__slide {
  flex: 0 0 100%;
  height: 100%;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(28, 63, 96, 0.55);
  color: var(--off-white);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.carousel__arrow--prev { left: 0.7rem; }
.carousel__arrow--next { right: 0.7rem; }

.carousel__dots {
  position: absolute;
  bottom: 0.7rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 3;
}

.carousel__dots button {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(247, 247, 247, 0.5);
  cursor: pointer;
}

.carousel__dots button.is-active { background: var(--off-white); }

/* ===== CONTACT ===== */
.contact {
  background: var(--navy);
  color: var(--off-white);
  padding: 4.5rem 1.5rem;
  text-align: center;
}

.contact .section-tag { color: var(--light-blue); }
.contact .section-title { color: var(--off-white); font-size: 1.7rem; }
.contact .section-line { background: var(--gold); margin-bottom: 2.6rem; }

.contact__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.4rem;
  flex-wrap: wrap;
  max-width: 680px;
  margin: 0 auto;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.35rem;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--light-blue);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.contact__link svg {
  width: 15px; height: 15px;
  fill: currentColor;
}

.contact__link:hover {
  color: var(--off-white);
  border-bottom-color: var(--gold);
}

.contact__sub {
  font-size: 0.74rem;
  color: rgba(175, 193, 208, 0.55);
  margin-top: 2.2rem;
  letter-spacing: 0.06em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; text-align: center; }
  .about__image { max-width: 320px; margin: 0 auto; }
  .carousel--projects { max-width: 100%; }
}

@media (max-width: 700px) {
  .navbar__menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(247, 247, 247, 0.7);
    border-bottom: 1px solid rgba(175, 193, 208, 0.25);
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    gap: 0.8rem;
    display: none;
  }
  .navbar__menu.is-open { display: flex; }
  .navbar__toggle { display: flex; }
  .service-slide__content { padding: 1.4rem 1.6rem; }
  .carousel--service,
  .carousel--projects { aspect-ratio: 3 / 4; }
  .hero__tagline { font-size: 1.15rem; }
  .lightbox { padding: 1rem; }
  .lightbox__arrow { width: 38px; height: 38px; font-size: 1.3rem; margin: 0 0.6rem; }
  .lightbox__close { top: 0.7rem; right: 0.9rem; font-size: 1.8rem; }
  .carousel__arrow { width: 42px; height: 42px; font-size: 1.4rem; }
  .contact__links { flex-direction: column; align-items: center; gap: 1.2rem; }
}
