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

:root {
  --bg: #080808;
  --surface: #0e0e0e;
  --text: #c8c8c8;
  --text-muted: #7a7a7a;
  --accent: #a8a8a8;
  --accent-light: #c0c0c0;
  --highlight: #c48b99;
  --highlight-soft: rgba(196, 139, 153, 0.12);
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(168, 168, 168, 0.15);
  --font-hero: 'UnifrakturMaguntia', cursive;
  --font-heading: 'Oranienbaum', Georgia, serif;
  --font-body: 'Caudex', Georgia, serif;
  --max-width: 1200px;
  --gap: clamp(1rem, 3vw, 2.5rem);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-light);
}

/* ===== Typography ===== */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  text-align: center;
  color: var(--accent-light);
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  margin: 1.2rem auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 5vw, 3rem);
  background: rgba(8, 8, 8, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--accent-light);
  letter-spacing: 0.06em;
  text-shadow: 0 0 40px rgba(168, 168, 168, 0.15);
}

/* ===== Nav ===== */
.nav__list {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav__list a {
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s, text-shadow 0.3s;
}

.nav__list a:hover {
  color: var(--accent-light);
  text-shadow: 0 0 20px rgba(168, 168, 168, 0.3);
}

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

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--accent);
  transition: transform 0.3s, opacity 0.3s;
}

.nav--open .nav__toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav--open .nav__toggle span:nth-child(2) {
  opacity: 0;
}

.nav--open .nav__toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(196, 139, 153, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(168, 168, 168, 0.04) 0%, transparent 40%),
    var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.008) 2px,
      rgba(255, 255, 255, 0.008) 4px
    );
  pointer-events: none;
}

/* Decorative corner ornaments */
.hero::after {
  content: '';
  position: absolute;
  inset: 3rem;
  border: 1px solid rgba(168, 168, 168, 0.08);
  pointer-events: none;
}

.hero__title {
  font-family: var(--font-hero);
  font-size: clamp(48px, 10vw, 108px);
  font-weight: 400;
  color: var(--accent-light);
  letter-spacing: 0.02em;
  line-height: 1.15;
  position: relative;
  z-index: 1;

  /* Metallic volume effect */
  background: linear-gradient(
    180deg,
    #d4d4d4 0%,
    #a0a0a0 25%,
    #e8e8e8 45%,
    #888 65%,
    #c0c0c0 85%,
    #999 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  /* 3D shadow layers */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8))
          drop-shadow(0 4px 8px rgba(0,0,0,0.6))
          drop-shadow(0 0 60px rgba(196, 139, 153, 0.2));
}

.hero__sub {
  margin-top: 1.2rem;
  font-family: var(--font-body);
  font-size: clamp(13px, 2vw, 17px);
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* Ornamental divider below hero subtitle */
.hero__sub::before {
  content: '\2766';
  display: block;
  margin: 0 auto 0.8rem;
  font-size: 18px;
  color: var(--highlight);
  opacity: 0.7;
}

/* ===== Portfolio ===== */
.portfolio {
  padding: 6rem clamp(1rem, 5vw, 3rem);
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}

.gallery__item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  background: var(--surface);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border);
  transition: border-color 0.4s;
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s;
  pointer-events: none;
  z-index: 2;
}

.gallery__item:hover::after {
  border-color: rgba(196, 139, 153, 0.25);
  box-shadow: inset 0 0 40px rgba(196, 139, 153, 0.08);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* ===== Services ===== */
.services {
  padding: 6rem clamp(1rem, 5vw, 3rem);
  max-width: var(--max-width);
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}

.service-card {
  padding: 2.2rem 2rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
  transition: border-color 0.4s, box-shadow 0.4s;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 139, 153, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 30px rgba(196, 139, 153, 0.06);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent-light);
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== About ===== */
.about {
  padding: 6rem clamp(1rem, 5vw, 3rem);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border: 1px solid var(--border);
  opacity: 0;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: center;
}

.about__content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== Contact ===== */
.contact {
  padding: 6rem clamp(1rem, 5vw, 3rem) 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.contact__link {
  padding: 0.8rem 2.2rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  transition: background 0.35s, color 0.35s, border-color 0.35s,
              box-shadow 0.35s, text-shadow 0.35s;
  position: relative;
}

.contact__link:hover {
  background: var(--accent-light);
  color: var(--bg);
  border-color: var(--accent-light);
  box-shadow: 0 0 30px rgba(168, 168, 168, 0.2);
}

/* ===== Footer ===== */
.footer {
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
}

.footer::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(90deg, transparent, var(--highlight), transparent);
}

.footer p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 3, 3, 0.96);
  align-items: center;
  justify-content: center;
}

.lightbox--visible {
  display: flex;
}

.lightbox__content {
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox__content img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: fixed;
  z-index: 210;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  padding: 1rem;
  transition: color 0.3s, text-shadow 0.3s;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  font-size: 44px;
}

.lightbox__prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ===== Section divider ===== */
.section-divider {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 8, 8, 0.95);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 0;
  }

  .nav--open .nav__list {
    display: flex;
  }

  .nav__list a {
    display: block;
    padding: 0.8rem clamp(1rem, 5vw, 3rem);
    font-size: 16px;
  }

  .hero {
    min-height: 90vh;
  }

  .hero::after {
    inset: 1.5rem;
  }

  .hero__title {
    font-size: clamp(36px, 12vw, 64px);
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
  }

  .lightbox__prev,
  .lightbox__next {
    font-size: 28px;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .contact__links {
    flex-direction: column;
    align-items: center;
  }
}
