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

:root {
  --black: #000000;
  --white: #ffffff;
  --gold: #f2d5a0;
  --gold-dark: #796a50;
  --gray-light: #d6d4d4;
  --gray: #bababa;
  --content-width: 980px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--black);
  color: var(--white);
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* Header / Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--black);
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 20px;
}

.site-logo {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 27px;
  color: var(--white);
  transition: color 0.4s ease;
}

.site-logo:hover {
  color: var(--gold);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  font-weight: 300;
  font-size: 16px;
}

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

.main-nav > li > a {
  display: block;
  padding: 15px 18px;
  color: var(--white);
  transition: color 0.4s ease;
}

.main-nav > li > a:hover,
.main-nav > li > a.active {
  color: var(--gold);
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--black);
  list-style: none;
  min-width: 160px;
  border-top: 1px solid var(--gold);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 300;
  color: var(--white);
  transition: color 0.4s ease;
  white-space: nowrap;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
  color: var(--gold);
}

.main-nav > li:hover .dropdown-menu {
  display: block;
}

.social-link img {
  width: 27px;
  height: 27px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.social-link:hover img {
  opacity: 1;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Main content */
main {
  flex: 1;
  margin-top: 50px;
}

/* Hero section (Home page) */
.hero {
  position: relative;
  min-height: calc(100vh - 50px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.hero h1 {
  font-size: 60px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 5px;
}

.hero .subtitle {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.6em;
  line-height: 1.2;
  margin-bottom: 40px;
}

.hero .resume-label {
  font-size: 27px;
  font-weight: 400;
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  padding: 10px 40px;
  background: var(--black);
  border: 1px solid var(--gold);
  color: var(--white);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--gold);
  color: var(--black);
}

/* Page sections */
.page-section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 60px 20px;
}

.page-title {
  font-size: 60px;
  font-weight: 400;
  margin-bottom: 50px;
}

/* Portfolio grid (2 items side by side) */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 588 / 440;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.portfolio-card .card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-card:hover .card-overlay {
  opacity: 1;
}

.portfolio-card .card-overlay span {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 60px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.03);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.gallery-overlay p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  max-width: 90%;
}

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-text h1 {
  font-size: 60px;
  font-weight: 400;
  margin-bottom: 30px;
}

.about-text p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  max-width: 400px;
}

.about-portrait {
  display: flex;
  justify-content: center;
  padding-top: 50px;
}

.about-portrait img {
  width: 271px;
  height: 435px;
  object-fit: cover;
  border: 5px solid var(--gray-light);
  box-shadow: 0 13px 3px 0 rgba(0, 0, 0, 0.5);
}

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

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 300;
  line-height: 1;
}

/* Footer */
.site-footer {
  background: var(--black);
  padding: 20px 0;
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
  text-align: right;
}

.footer-inner p {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-in {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.2s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.reveal-in.visible {
  clip-path: inset(0 0 0 0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-right {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .nav-right.open {
    transform: translateY(0);
  }

  .main-nav {
    flex-direction: column;
    width: 100%;
  }

  .main-nav > li > a {
    padding: 12px 0;
  }

  .dropdown-menu {
    position: static;
    display: none;
    border-top: none;
    padding-left: 20px;
  }

  .main-nav > li.dropdown-open .dropdown-menu {
    display: block;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero .subtitle {
    font-size: 16px;
    letter-spacing: 0.3em;
  }

  .hero .resume-label {
    font-size: 22px;
  }

  .page-title {
    font-size: 36px;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

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

  .about-text h1 {
    font-size: 36px;
  }

  .about-portrait {
    padding-top: 20px;
  }

  .about-portrait img {
    width: 220px;
    height: 352px;
  }
}
