/* ==========================================================================
   LEA OBERMAIR - PORTFOLIO STYLESHEET
   Typography: Jost (Google Fonts)
   ========================================================================== */

:root {
  --bg-color: #000000;
  --text-primary: #ffffff;
  --text-muted: #a3a3a3;
  --text-subtle: #737373;
  --border-color: rgba(255, 255, 255, 0.16);
  --border-hover: rgba(255, 255, 255, 0.4);
  --card-bg: #141416;
  --placeholder-bg: #1e2023;
  --container-max: 1360px;
  --font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.25s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-color);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

.main-content {
  flex: 1 0 auto;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4.5vw, 60px);
  padding-right: clamp(20px, 4.5vw, 60px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  padding-top: clamp(24px, 3.5vw, 44px);
  padding-bottom: clamp(20px, 3vw, 36px);
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: clamp(20px, 4.5vw, 60px);
  padding-right: clamp(20px, 4.5vw, 60px);
}

.brand-logo {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-logo:hover {
  opacity: 0.8;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 32px);
}

.nav-link {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.mobile-projects-link {
  display: none;
}

@media (hover: hover) {
  .nav-link:hover {
    opacity: 0.7;
  }
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  line-height: 1;
}

.social-link svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: var(--transition);
}

.social-link:hover {
  opacity: 0.7;
  transform: scale(1.05);
}

/* ==========================================================================
   Hero Video Section (Home)
   ========================================================================== */
.hero-video-section {
  padding-top: clamp(30px, 5vw, 70px);
  padding-bottom: clamp(40px, 7vw, 90px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-video-container {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-video-wrapper {
  width: 100%;
  background-color: #080808;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: radial-gradient(circle at center, #18191d 0%, #090a0c 100%);
  cursor: pointer;
  user-select: none;
  padding: 20px;
  text-align: center;
}

.hero-placeholder-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hero-video-placeholder:hover .hero-placeholder-icon {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.08);
}

.hero-placeholder-icon svg {
  margin-left: 3px;
  fill: #ffffff;
}

.hero-placeholder-title {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
}

.hero-placeholder-hint {
  font-size: 0.75rem;
  color: var(--text-subtle);
  letter-spacing: 0.03em;
}

/* ==========================================================================
   About Me Section (Home)
   ========================================================================== */
.about-section {
  padding-top: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(60px, 8vw, 110px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  column-gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.about-title {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text-primary);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.about-content p {
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  line-height: 1.65;
  color: var(--text-primary);
  font-weight: 400;
}

.about-content em {
  font-style: italic;
}

.about-content strong {
  font-weight: 700;
}

/* ==========================================================================
   Projects Grid (Home)
   ========================================================================== */
.projects-section {
  padding-bottom: clamp(60px, 8vw, 110px);
}

.projects-container {
  max-width: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 28px);
}

.project-card {
  display: block;
  position: relative;
  background-color: var(--card-bg);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  aspect-ratio: 16 / 9.2;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.project-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
  background-color: #000000;
}

.project-card:hover .project-card-image {
  transform: scale(1.03);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.project-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.project-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Project Detail View (project.html)
   ========================================================================== */
.project-header-section {
  padding-top: clamp(24px, 3.5vw, 44px);
  padding-bottom: clamp(28px, 4vw, 50px);
  text-align: center;
}

.project-page-title {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.project-page-subtitle {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 300;
  color: #cccccc;
  letter-spacing: 0.02em;
}

.project-showcase-section {
  padding-bottom: clamp(30px, 4vw, 50px);
}

.project-showcase-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  column-gap: clamp(28px, 3.5vw, 48px);
  align-items: end;
}

/* Main Player */
.main-media-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #111215;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.main-media-container iframe,
.main-media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.media-interactive-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #d1d5db; /* As seen in mock grey box */
  color: #111;
  overflow: hidden;
}

.media-interactive-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.media-play-overlay:hover {
  background: rgba(0, 0, 0, 0.5);
}

.media-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.media-play-overlay:hover .media-play-btn {
  transform: scale(1.1);
}

/* Credits Sidebar */
.project-sidebar {
  display: flex;
  flex-direction: column;
  align-self: end;
}

.project-date {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: clamp(16px, 2.2vw, 28px);
}

.project-credits-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-credit-item {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.25em;
  align-items: baseline;
  font-size: clamp(0.92rem, 1.05vw, 1.02rem);
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 400;
}

.project-credit-role,
.project-credit-name {
  white-space: nowrap;
}

/* Gallery Stills Row */
.project-gallery-section {
  padding-top: clamp(20px, 3vw, 36px);
  padding-bottom: clamp(24px, 3.5vw, 40px);
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.8vw, 24px);
}

.gallery-thumbnail {
  aspect-ratio: 16 / 9;
  background-color: #000000;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  position: relative;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbnail:hover,
.gallery-thumbnail:focus-within {
  transform: scale(1.02);
  opacity: 0.85;
}

/* Back Link */
.back-nav-container {
  padding-top: 10px;
  padding-bottom: clamp(30px, 5vw, 60px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.back-link:hover {
  opacity: 0.7;
  transform: translateX(-4px);
}

/* ==========================================================================
   Contact Page (contact.html)
   ========================================================================== */
.contact-section {
  padding-top: clamp(30px, 4vw, 55px);
  padding-bottom: clamp(60px, 8vw, 100px);
}

.contact-simple {
  text-align: center;
}

.contact-title {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.contact-line {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.contact-line a:hover,
.contact-insta:hover {
  opacity: 0.7;
}

.contact-insta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  color: var(--text-primary);
}

.contact-insta svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: clamp(24px, 3.5vw, 36px);
  padding-bottom: clamp(28px, 4vw, 44px);
  width: 100%;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 32px);
  padding-left: clamp(20px, 4.5vw, 60px);
  padding-right: clamp(20px, 4.5vw, 60px);
}

/* ==========================================================================
   Lightbox / Modal for Image Preview
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 24px;
}

.lightbox-modal[aria-hidden="true"] {
  pointer-events: none;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-close-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  z-index: 1001;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
  z-index: 1001;
}

.lightbox-nav-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.lightbox-prev-btn {
  left: 24px;
}

.lightbox-next-btn {
  right: 24px;
}

.lightbox-close-btn:hover {
  opacity: 0.7;
}

@media (max-width: 480px) {
  .lightbox-modal {
    padding: 16px;
  }

  .lightbox-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .lightbox-prev-btn {
    left: 12px;
  }

  .lightbox-next-btn {
    right: 12px;
  }
}

/* ==========================================================================
   Responsive Breakpoints (Mobile and Tablet)
   ========================================================================== */

/* Tablet & Mobile down */
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
    text-align: center;
  }

  .about-title {
    margin-bottom: 4px;
  }

  .project-showcase-grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
    align-items: start;
  }
}

/* Mobile Screens (< 768px) */
@media (max-width: 768px) {
  .mobile-projects-link {
    display: inline;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Gallery becomes 2x2 grid on mobile matching mockup */
  .project-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-video-container {
    max-width: 100%;
  }

  .header-nav {
    gap: 18px;
  }
}

/* Small mobile (< 480px) */
@media (max-width: 480px) {
  .brand-logo {
    font-size: 1.15rem;
  }

  .about-title {
    font-size: 1.95rem;
  }

  .about-content p {
    font-size: 0.98rem;
  }

  .contact-title {
    font-size: 1.95rem;
  }
}
