/* ============================================
   LENS & LIGHT — Photography Portfolio
   A cinematic, editorial aesthetic
   ============================================ */

:root {
  --color-bg: #0d0d0d;
  --color-bg-elevated: #161616;
  --color-text: #e8e4df;
  --color-text-muted: #8a8681;
  --color-accent: #c9a962;
  --color-accent-hover: #e0c078;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s var(--ease-out-expo);
  --transition-base: 0.4s var(--ease-out-expo);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-base);
}

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: linear-gradient(to bottom, rgba(13, 13, 13, 0.9), transparent);
  backdrop-filter: blur(8px);
  transition: background var(--transition-base);
}

.nav.scrolled {
  background: rgba(13, 13, 13, 0.95);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition-base);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 20s ease-out infinite alternate;
}

@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 0.3) 0%,
    rgba(13, 13, 13, 0.5) 50%,
    rgba(13, 13, 13, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.3s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.5s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 400;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.7s forwards;
  transition: background var(--transition-base), color var(--transition-base);
}

.hero-cta:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 1s forwards;
}

.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(0.5); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Section Styles ========== */
section {
  padding: 6rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

/* ========== Gallery ========== */
.gallery {
  padding-top: 8rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.gallery-grid-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
  padding: 3rem 1rem;
  margin: 0;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item--tall {
  aspect-ratio: 3/4;
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.9), transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.gallery-item-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  transform: translateY(10px);
  transition: transform var(--transition-base);
}

.gallery-item-overlay p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transform: translateY(10px);
  transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-item-overlay h3,
.gallery-item:hover .gallery-item-overlay p {
  transform: translateY(0);
}

.gallery-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  transition: letter-spacing var(--transition-base);
}

.gallery-link:hover {
  letter-spacing: 0.15em;
}

/* ========== About ========== */
.about {
  background: var(--color-bg-elevated);
  margin: 0 -3rem;
  padding: 6rem 3rem;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  aspect-ratio: 4/5;
  overflow: hidden;
}

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

.about-content .section-title {
  margin-bottom: 1.5rem;
}

.about-text {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  max-width: 52ch;
}

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ========== Contact ========== */
.contact {
  text-align: center;
  padding: 8rem 3rem;
}

.contact-text {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 2rem;
  transition: color var(--transition-base);
}

.contact-email:hover {
  color: var(--color-accent-hover);
}

.contact-social {
  display: flex;
  justify-content: center;
}

.contact-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-social a:hover {
  color: var(--color-accent);
}

.contact-social-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* ========== Footer ========== */
.footer {
  padding: 2rem 3rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

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

  .about-image {
    max-height: 400px;
    aspect-ratio: 16/10;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 2rem;
    background: var(--color-bg);
    gap: 1.5rem;
  }

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

  .nav-toggle {
    display: flex;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .gallery {
    padding-top: 6rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item,
  .gallery-item--tall,
  .gallery-item--wide {
    aspect-ratio: 4/3;
    grid-column: span 1;
  }

  .about {
    margin: 0 -1.5rem;
    padding: 4rem 1.5rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact {
    padding: 6rem 1.5rem;
  }

  .contact-email {
    font-size: 1.25rem;
  }

  .contact-social {
    flex-direction: column;
  }
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-bg img {
    animation: none;
  }
}
