/* ============================================
   GLOBAL STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700&family=Barlow:wght@300;400;500&display=swap');

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

:root {
  --black: #000000;
  --white: #ffffff;
  --gold: #c9a84c;
  --grey: #888888;
  --light-grey: #cccccc;
  --nav-height: 70px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ============================================
   TYPOGRAPHY
   ============================================ */

.site-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
}

.site-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.8;
  margin-top: 4px;
}

/* ============================================
   HOMEPAGE NAVIGATION (bottom-fixed)
   ============================================ */

.home-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 2.5rem 1.75rem;
  pointer-events: none;
}

.home-nav .brand {
  pointer-events: all;
}

.home-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  pointer-events: all;
}

.home-nav .nav-links .social-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.home-nav .nav-links .social-icons a {
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.2s;
  font-size: 1rem;
  line-height: 1;
}

.home-nav .nav-links .social-icons a:hover {
  opacity: 1;
}

.home-nav .nav-links .page-links {
  display: flex;
  gap: 1.75rem;
}

.home-nav .nav-links .page-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.home-nav .nav-links .page-links a:hover {
  opacity: 1;
}

/* ============================================
   INNER PAGE NAVIGATION (top)
   ============================================ */

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: var(--black);
}

.top-nav .brand a {
  display: block;
}

.top-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.top-nav .nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
  position: relative;
}

.top-nav .nav-links a:hover {
  opacity: 1;
}

.top-nav .nav-links a.active {
  color: var(--gold);
  opacity: 1;
}


/* Page content offset for fixed top nav */
.page-content {
  padding-top: var(--nav-height);
}

/* ============================================
   HOMEPAGE HERO SLIDESHOW
   ============================================ */

.hero-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 20%),
    linear-gradient(to top,    rgba(0,0,0,0.3)  0%, rgba(0,0,0,0) 30%);
}

/* ============================================
   CINEMATOGRAPHY PAGE
   ============================================ */

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 1.5rem 0 0;
}

.project-card {
  display: block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card .thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

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

.project-card .project-info {
  padding: 0.75rem 0 1.5rem 0.1rem;
  margin-left: 0;
}

.project-card .project-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.project-card .project-category {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--white);
  opacity: 0.7;
}

/* ============================================
   PROJECT DETAIL PAGE
   ============================================ */

.project-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #111;
  margin-bottom: 2.5rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.project-detail-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.project-detail-subtitle {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  text-align: center;
  color: var(--light-grey);
  margin-bottom: 2rem;
  font-style: italic;
}

.project-credits {
  max-width: 400px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
}

.credit-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.credit-label {
  font-weight: 500;
  color: var(--white);
}

.credit-value {
  font-weight: 300;
  color: var(--light-grey);
}

.credit-format {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.72rem;
  font-style: italic;
  color: var(--grey);
  letter-spacing: 0.05em;
}

/* ============================================
   PHOTOGRAPHY PAGE
   ============================================ */

.photo-gallery {
  padding: 1.5rem 0 0;
}


.photo-full {
  width: 100%;
  display: block;
  margin-bottom: 3px;
}

.photo-full img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.95);
}

/* ============================================
   ABOUT / CONTACT PAGE
   ============================================ */

.about-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.about-image {
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 2rem 0;
}

.about-image img {
  width: auto;
  height: 100%;
  max-height: 85vh;
  aspect-ratio: 734 / 1002;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(20%) brightness(0.85);
}

.about-content {
  padding: 3rem 3.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-bio {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--light-grey);
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
}

.about-bio p + p {
  margin-top: 1rem;
}

.contact-section {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  margin-top: 1rem;
}

.contact-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1.25rem;
}

.contact-email {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

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

.contact-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.contact-social a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.contact-social a:hover {
  opacity: 1;
  color: var(--gold);
}

.download-cv {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.65rem 1.75rem;
  border: 1px solid rgba(255,255,255,0.3);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  transition: border-color 0.2s, color 0.2s;
  border-radius: 2px;
}

.download-cv:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================
   FOOTER SOCIAL ICONS (inner pages)
   ============================================ */

.inner-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem 2.5rem;
}

.inner-footer a {
  color: var(--white);
  opacity: 0.5;
  font-size: 1rem;
  line-height: 1;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
}

.inner-footer a:hover {
  opacity: 1;
}

.inner-footer a[aria-label="IMDb"] {
  font-size: 0.75rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

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

  .about-image {
    position: relative;
    height: 50vh;
    top: 0;
  }

  .about-content {
    padding: 2rem 1.5rem;
  }

  .home-nav {
    padding: 0 1.25rem 1.25rem;
  }

  .home-nav .nav-links .page-links {
    gap: 1rem;
  }

  .top-nav {
    padding: 1rem 1.25rem;
  }

  .project-detail {
    padding: 1.5rem 1.25rem 3rem;
  }
}
