:root {
  --bg: #0a0a0a;
  --bg-menu: #111111;
  --text: #d8d8d8;
  --text-dim: #999999;
  --accent: #0bb4aa;
  --accent-hover: #076c65;
  --border: #232323;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, .brand {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

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

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.9);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img { height: 38px; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-links > li { position: relative; }

.nav-links a {
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a:hover { color: var(--accent); }

.submenu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--bg-menu);
  border: 1px solid var(--border);
  display: none;
}

.nav-links li:hover .submenu { display: block; }

.submenu li a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  text-transform: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* ---- Fullscreen home ---- */
body.home-fullscreen {
  overflow: hidden;
  height: 100vh;
}

body.home-fullscreen .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0));
  border-bottom: none;
}

body.home-fullscreen .hero {
  height: 100vh;
  min-height: 100vh;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 78vh;
  min-height: 420px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active { opacity: 1; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 42px;
  margin: 0 0 12px;
}

.hero-content p {
  font-size: 18px;
  color: #eee;
  max-width: 560px;
  margin: 0 0 24px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid #fff;
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(11,180,170,0.08); }

/* ---- Sections ---- */
.section { max-width: 1200px; margin: 0 auto; padding: 70px 20px; }
.section h2 { font-size: 26px; text-align: center; margin-bottom: 40px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), rgba(0,0,0,0.1));
}

.category-card span {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  font-size: 18px;
}

/* ---- Portfolio grid (masonry) ---- */
.section-full {
  padding: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 4px;
  gap: 4px;
}

.photo-grid a {
  display: block;
  grid-row-end: span 60;
  overflow: hidden;
  position: relative;
}

.photo-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.12);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.photo-grid a:hover::after { opacity: 1; }

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.photo-grid a:hover img { transform: scale(1.045); }

.page-title {
  text-align: center;
  padding: 50px 20px 10px;
}

.page-title h1 { font-size: 30px; margin-bottom: 6px; }
.page-title p { color: var(--text-dim); font-size: 14px; }

/* ---- Portfolio banner ---- */
.portfolio-banner {
  position: relative;
  height: 46vh;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(10,10,10,0.85));
}

.portfolio-banner .banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.portfolio-banner h1 {
  font-size: 42px;
  margin: 0 0 10px;
}

.portfolio-banner p {
  color: #ddd;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 30px;
}

.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; }

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 10px;
}

.lightbox-close { top: 16px; right: 24px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---- Footer ---- */
.site-footer {
  background: #1a1a1a;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  text-align: center;
  padding: 24px 20px;
  font-size: 13px;
}

/* ---- Mobile ---- */
@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--bg-menu);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 66px);
    overflow-y: auto;
  }

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

  .nav-links > li { width: 100%; border-top: 1px solid var(--border); }
  .nav-links a { padding: 14px 20px; display: block; }
  .submenu { position: static; border: none; display: none; background: #0d0d0d; }
  .nav-links li.open .submenu { display: block; }

  .menu-toggle { display: block; }

  .hero-content h1 { font-size: 30px; }
  .hero-content p { font-size: 15px; }

  .category-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 3px; }
  .section { padding: 44px 16px; }
  .portfolio-banner { height: 36vh; min-height: 240px; }
  .portfolio-banner h1 { font-size: 28px; }
}
