/* ============================================
   Cinematic Art — Portfolio Styles
   Editorial, museum-inspired, responsive
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Colors */
  --color-bg: #faf9f7;
  --color-bg-warm: #f6f4f1;
  --color-text: #1a1918;
  --color-text-muted: #4a4543;
  --color-accent: #5c3429;
  --color-accent-hover: #7d4538;
  --color-gold: #b5c2ce;
  --color-border: #e8e5e0;
  --color-card: #fff;
  --color-shadow: rgba(26, 25, 24, 0.06);
  --color-shadow-strong: rgba(26, 25, 24, 0.1);
  
  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --letter-spacing-tight: -0.015em;
  --letter-spacing-normal: 0.02em;
  --letter-spacing-wide: 0.06em;
  --letter-spacing-wider: 0.1em;
  --line-height-tight: 1.2;
  --line-height-body: 1.65;
  --line-height-relaxed: 1.8;
  --line-height-loose: 1.9;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Layout */
  --container-max: 72rem;
  --container-narrow: 42rem;
  
  /* Transitions */
  --ease: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-card: 6px;
}

/* --- Skip link (accessibility) --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent);
  color: #fff;
  font-weight: 500;
  z-index: 1000;
  border-radius: var(--radius-sm);
  transition: top var(--ease);
}

.skip-link:focus {
  top: var(--space-md);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: var(--line-height-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-tight);
  position: relative;
  padding-bottom: var(--space-sm);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 2px;
  background: var(--color-accent);
  opacity: 0.4;
}

.section-intro {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: var(--line-height-relaxed);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: box-shadow var(--ease), padding var(--ease);
}

.site-header.scrolled {
  padding: var(--space-sm) var(--space-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255,255,255,0.06);
}

.site-header.scrolled::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(15, 14, 12, 0.82) 0%, rgba(25, 22, 18, 0.75) 50%, rgba(20, 18, 15, 0.78) 100%),
    url("./assets/Caspar_David_Friedrich_-_Wanderer_above_the_Sea_of_Fog.jpeg") center 25% / cover no-repeat;
  animation: headerPaintIn 0.4s ease-out;
  transition: opacity var(--ease);
}

@keyframes headerPaintIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.logo {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wide);
  color: #e8dfd0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5), 0 0 1px rgba(0,0,0,0.4);
  transition: color var(--ease), text-shadow var(--ease);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.lang-switcher {
  display: flex;
  gap: 0.4rem;
  padding: 0.2rem;
  background: rgba(180, 165, 135, 0.25);
  border-radius: 999px;
  border: 1px solid rgba(196, 167, 116, 0.4);
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #e8dcc8;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  transition: color var(--ease), background var(--ease);
  border-radius: 50%;
}

.lang-btn:hover {
  color: #f5efe6;
  background: rgba(196, 167, 116, 0.3);
}

.lang-btn.active {
  color: #1a1918;
  font-weight: 600;
  background: linear-gradient(135deg, #c4a574 0%, #b0926a 100%);
  text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}

.lang-btn:focus-visible,
.nav-menu a:focus-visible,
.cta-button:focus-visible,
.film-btn:focus-visible,
.read-more-btn:focus-visible,
.show-more-projects-btn:focus-visible,
.back-to-top:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: var(--space-md);
  padding-left: var(--space-md);
  border-left: 1px solid rgba(255,255,255,0.15);
}

.nav-menu li {
  min-width: 7.5em;
  text-align: center;
}

.nav-menu a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  color: #e0d8cc;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  transition: color var(--ease);
  display: inline-block;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #f5efe6;
  transition: width var(--ease);
}

.nav-menu a:hover {
  color: #f5efe6;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-xs);
}

.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: #e8dfd0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-warm) url("./assets/Caspar_David_Friedrich_-_Wanderer_above_the_Sea_of_Fog.jpeg") center / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 30%, rgba(26,25,24,0.2) 100%);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,25,24,0.4) 0%, rgba(26,25,24,0.7) 50%, var(--color-bg) 95%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-lg);
  max-width: 36rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 600;
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
  margin-bottom: var(--space-xl);
  line-height: var(--line-height-relaxed);
}

.cta-button {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #c4a574 0%, #b0926a 100%);
  color: #1a1918;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.cta-button:hover {
  background: linear-gradient(135deg, #d0b280 0%, #c4a574 100%);
  color: #1a1918;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: start;
}

.about-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: 0 4px 24px var(--color-shadow);
}

.about-image-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-content {
  padding-top: var(--space-sm);
}

.about-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
  line-height: var(--line-height-loose);
}

/* --- Films --- */
.films {
  position: relative;
  background: var(--color-bg-warm) url("./assets/Pannini%2C_Giovanni_Paolo_-_Interior_of_a_Picture_Gallery_with_the_Collection_of_Cardinal_Silvio_Valenti_Gonzaga_-_1740.jpg") center / cover no-repeat;
  overflow: hidden;
}

.films::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(250,249,247,0.75) 0%, rgba(250,249,247,0.88) 50%, rgba(250,249,247,0.95) 100%);
  pointer-events: none;
}

.films .container {
  position: relative;
  z-index: 1;
}

.films-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.film-card {
  background: var(--color-card);
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.film-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--color-shadow-strong), 0 4px 12px var(--color-shadow);
  border-color: transparent;
}

.film-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

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

.film-card:hover .film-thumb img {
  transform: scale(1.03);
}

.film-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.35) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}

.film-card:hover .film-thumb::after {
  opacity: 1;
}

.film-body {
  padding: var(--space-md);
}

.film-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-tight);
  line-height: 1.25;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.film-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  line-height: var(--line-height-body);
}

.film-btn {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--color-accent);
  transition: color var(--ease), border-color var(--ease);
}

.film-btn:hover {
  color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.film-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.film-desc-wrap {
  margin-bottom: var(--space-md);
}

.other-projects-more-wrap {
  margin-top: var(--space-md);
  text-align: center;
}

.show-more-projects-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: transparent;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
}

.show-more-projects-btn:hover {
  color: #fff;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.other-projects-more {
  display: none;
  margin-top: var(--space-lg);
}

.other-projects-wrap.is-expanded .other-projects-more {
  display: grid;
}

.other-projects-more .film-body,
.other-projects-more .film-desc,
.other-projects-more .film-desc-wrap {
  text-align: left;
}

.read-more-content {
  display: none;
}

.film-desc-wrap.is-expanded .read-more-content {
  display: inline;
}

.read-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
  margin-top: var(--space-xs);
}

.films-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  line-height: var(--line-height-relaxed);
  letter-spacing: var(--letter-spacing-normal);
  color: #2d1b2e;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
  padding: var(--space-xl) var(--space-md) var(--space-md);
  background: linear-gradient(135deg, rgba(254, 252, 250, 0.75) 0%, rgba(250, 248, 244, 0.82) 100%),
    url("./assets/Giuseppe_Arcimboldo_-_Rudolf_II_of_Habsburg_as_Vertumnus_-_Google_Art_Project.jpg") center center / cover no-repeat;
  border-radius: 4px;
  text-align: center;
}

.films-quote .quote-line {
  display: block;
  font-weight: 600;
}

.films-quote cite {
  display: block;
  margin-top: var(--space-sm);
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: var(--letter-spacing-wide);
  color: #4a2c4a;
}

/* --- Philosophy --- */
.philosophy {
  position: relative;
  background: var(--color-bg) url("./assets/Rembrandt_-_The_Artist_in_his_Studio_-_WGA19205.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.philosophy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250,249,247,0.88) 0%, rgba(250,249,247,0.95) 100%);
  pointer-events: none;
}

.philosophy .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.philosophy .section-title {
  margin-bottom: var(--space-xl);
}

.philosophy .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.philosophy-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.015em;
  line-height: 1.75;
  color: var(--color-text);
  margin: 0;
  padding: 0 var(--space-md);
  position: relative;
}

.philosophy-quote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-serif);
  font-size: 4rem;
  font-style: normal;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.35;
  margin-bottom: -1.5rem;
}

.philosophy-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
  line-height: var(--line-height-loose);
}

/* --- Photography Romania --- */
.photography {
  position: relative;
  background: var(--color-bg) url("./assets/IMG_1620.JPG") center / cover no-repeat;
  overflow: hidden;
}

.photography::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(250,249,247,0.82) 0%, rgba(250,249,247,0.92) 100%);
  pointer-events: none;
}

.photography .container {
  position: relative;
  z-index: 1;
}

.photography .photo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  align-items: stretch;
}

.photography .photo-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.photography .photo-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
}

.photography .photo-item--align-bottom img {
  object-position: center bottom;
  filter: brightness(1.15);
}

.iceland-photos .photo-item--align-right img {
  object-position: 95% center;
  filter: contrast(1.02) saturate(0.9) brightness(1.12) sepia(0.12);
}

.photography .photo-item .photo-caption {
  flex: 0 0 auto;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.photo-item {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 12px var(--color-shadow);
}

.photo-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.photo-caption {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-card);
}

.photo-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
  line-height: var(--line-height-loose);
  max-width: 42rem;
}

/* --- Iceland Museum (Living Art Museum) --- */
.iceland {
  position: relative;
  background: var(--color-bg-warm) url("./assets/iceland.jpg") center / cover no-repeat;
  overflow: hidden;
}

.iceland::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(250,249,247,0.82) 0%, rgba(250,249,247,0.92) 100%);
  pointer-events: none;
}

.iceland .container {
  position: relative;
  z-index: 1;
}

.iceland-layout {
  display: grid;
  gap: var(--space-xl);
}

.iceland-content {
  max-width: 42rem;
}

.iceland-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: var(--space-md);
}

.iceland-text:last-child {
  margin-bottom: 0;
}

.iceland-photos {
  margin-bottom: 0;
}

/* --- Interview --- */
.interview {
  position: relative;
  background: var(--color-bg) url("./assets/Vincent_van_Gogh_-_Irises_1889.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.interview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248,246,244,0.78) 0%, rgba(250,249,247,0.88) 100%);
  pointer-events: none;
}

.interview .container {
  position: relative;
  z-index: 1;
}

.interview-content {
  position: relative;
}

.interview-image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: 0 8px 32px rgba(26, 25, 24, 0.12), 0 2px 8px rgba(26, 25, 24, 0.06);
  border: 3px solid rgba(255, 255, 255, 0.9);
}

.interview-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  border-radius: inherit;
  pointer-events: none;
}

.interview-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--ease-slow);
}

.interview-content:hover .interview-image-wrap img {
  transform: scale(1.02);
}

.interview-content .film-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: var(--space-md);
  padding: 0.6rem 1.5rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  border: none;
  border-bottom: none;
  padding-bottom: 0.6rem;
  font-size: 0.9rem;
  transition: background var(--ease), transform var(--ease);
}

.interview-content .film-btn:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.interview-content .film-btn::before {
  content: "▶";
  font-size: 0.75em;
}

/* --- Contact --- */
.contact {
  position: relative;
  background: linear-gradient(180deg, #f5f3f0 0%, #ebe8e4 100%);
}

.contact .section-title {
  color: var(--color-text);
}

.contact .section-title::after {
  background: var(--color-accent);
  opacity: 0.4;
}

.contact .contact-email,
.contact .contact-email a,
.contact .social-link {
  color: var(--color-text-muted);
}

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

.contact .social-link:hover {
  opacity: 0.9;
  color: var(--color-accent);
  background: rgba(92, 52, 41, 0.06);
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact-email-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}

.contact-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.contact-email {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.social-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}

.social-link {
  font-size: 0.95rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: opacity var(--ease), background var(--ease), color var(--ease);
}

.contact-email a {
  font-weight: 500;
}


/* --- Footer --- */
.site-footer {
  position: relative;
  padding: var(--space-xl) 0;
  background: url("./assets/banner.jpg") center center / cover no-repeat;
  color: #f5f0eb;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.site-footer a:hover {
  color: #e8d4b8;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.footer-copy {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.footer-social {
  display: flex;
  gap: var(--space-lg);
}

.footer-social a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: var(--letter-spacing-normal);
}

/* --- Reveal Animation (base state) --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 280px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    padding-left: 0;
    border-left: none;
    background: var(--color-bg);
    transform: translateX(100%);
    transition: transform var(--ease);
    box-shadow: -4px 0 24px rgba(0,0,0,0.06);
  }

  .nav-menu a {
    color: var(--color-text);
    text-shadow: none;
  }

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

  .nav-menu a::after {
    background: var(--color-accent);
  }

  .nav-menu[data-open="true"] {
    transform: translateX(0);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about-image-wrap {
    max-width: 320px;
    margin: 0 auto;
  }

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

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

  .photography .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
  }
}

@media (max-width: 600px) {
  .photography .photo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-xl) 0;
  }

  .hero-title {
    font-size: 2rem;
  }
}

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 100;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-card);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  box-shadow: 0 4px 16px var(--color-shadow-strong);
  transition: opacity var(--ease), visibility var(--ease), transform var(--ease), color var(--ease), background var(--ease);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: #fff;
  background: var(--color-accent);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 95vw;
  max-height: 95vh;
}

.lightbox-img {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
}
