:root {
  --bg: #060606;
  --surface: #141414;
  --surface-2: #1f1f1f;
  --text: #f7efe2;
  --muted: #b7a895;
  --accent: #c89b55;
  --accent-strong: #f2c36f;
  --border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(20,20,20,0.85));
  padding: 1.4rem 1.5rem 1.8rem;
}

.topbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0 1.2rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  color: var(--muted);
}

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

.hero-content {
  max-width: 1200px;
  margin: 2.2rem auto 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero h1,
.section-heading h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-subtitle {
  margin: 0 0 1rem;
  color: var(--accent-strong);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  margin: 0;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  width: min(420px, 100%);
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.hero h1 span {
  color: var(--accent);
}

.lead {
  font-size: 1.05rem;
  max-width: 620px;
  color: var(--muted);
  margin: 1rem 0 1.8rem;
}

.button {
  display: inline-block;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #121212;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual img {
  border-radius: 1.2rem;
  min-height: 460px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
  background: var(--surface-2);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.section {
  padding: 3rem 0 0;
}

.section-heading {
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  font-size: 2rem;
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  color: var(--muted);
}

.about-grid p {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.4rem;
  margin: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  justify-items: center;
}

.portfolio-grid.single-card .portfolio-card {
  max-width: 760px;
}

.portfolio-main-card {
  cursor: zoom-in;
}

.portfolio-main-image {
  cursor: zoom-in;
}

.portfolio-lead {
  max-width: 760px;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

.portfolio-action {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  min-height: 420px;
  width: 100%;
  border: 1px solid var(--border);
}

.portfolio-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  padding: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease, visibility 0s linear 0.35s, padding 0.35s ease;
}

.portfolio-details.visible {
  max-height: 2000px;
  opacity: 1;
  visibility: visible;
  padding: 4.4rem 0 0;
  transition: max-height 0.45s ease, opacity 0.35s ease, visibility 0s linear 0s, padding 0.35s ease;
}

.portfolio-details .portfolio-card {
  min-height: 320px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.overlay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.72);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s ease;
}

.overlay-button:hover {
  background: rgba(255,255,255,0.12);
}

.portfolio-card img {
  transition: transform 0.35s ease;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  justify-content: flex-start;
  padding: 1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.74));
}

.card-overlay span {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  color: var(--text);
}

.portfolio-footer {
  margin-top: 1.4rem;
  color: var(--muted);
}

.portfolio-footer a {
  color: var(--accent-strong);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 999;
}

.lightbox-overlay.visible {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 1000px;
  width: min(100%, 1000px);
  background: rgba(10, 10, 10, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  touch-action: pan-y;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
}

.lightbox-caption {
  margin: 0;
  padding: 1rem 1.2rem 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 420px;
}

.contact-card a {
  color: var(--accent-strong);
  font-weight: 600;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
}

footer {
  text-align: center;
  padding: 2.4rem 1.5rem 3rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .hero-content,
  .about-grid,
  .portfolio-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    min-height: 320px;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 1rem 1rem 2.4rem;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

  .hero-content {
    margin-top: 2.2rem;
    gap: 1.4rem;
  }

  .section {
    padding-top: 3rem;
  }
}
