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

html,body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Vidaloka", Arial, Helvetica, sans-serif;
  background-color: #FCFAF9;
  padding-top: 0;
}

img {
  max-width: 100%;
  max-height: 100vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column; /* Optional: arrange children vertically */
  align-items: center;
  box-sizing: border-box; /* Ensure padding doesn’t break layout */
}

/* === FONT STYLES === */

h1 {
  font-family: "Vidaloka", Arial, Helvetica, sans-serif;
  font-size: clamp(0.5rem, 3.5vw, 2rem);
  padding-top: 0;
}

p {
  font-size: clamp(0.5rem, 1.3vw, 2rem);
  font-family: "Libre Caslon Text", Helvetica, sans-serif;
  max-width: 90%;
  height: auto;
}

sub {
  font-family: 'Alegreya Sans SC', Arial, Helvetica, sans-serif;
  height: auto;
}

/* === YOUTUBE STYLES === */

#work {
  padding: 5vw 6vw 5vw 6vw;
  background-color: #04AA6D;
  color: #FCFAF9;
  text-align: center;
}

.work-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  box-sizing: border-box;
}

#About {
  padding: 5vw 10vw;
  background-color: #FCFAF9;
  color: #333;
}

#main {
  padding: 5vw 12vw;
  background-color: #FCFAF9; /* Orange */
  color: #FCFAF9;
  text-align: center;
  font-size: 24px;
}

#documentary, #scripted, #socialmedia, #podcasts, #multimedia {
  color: #FCFAF9;
  text-align: left;
  font-size: 12px;
}

/* === NAVIGATION BAR === */

.nav-outer {
  position: sticky;
  top: 0;
  border-bottom: 1px solid #333; /* Adds a 2px solid black line at the bottom */
  z-index: 1000;
  width: 100%;
  padding-bottom: 5px;
}

nav {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  border-bottom: 2px solid #333; /* Adds a 2px solid black line at the bottom */
  opacity: 97%;
  z-index: 1000;
  width: 100%;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.second-line {
  margin: 0;
  width: 100%; /* Makes the line span the full width */
  height: 2px; /* Sets the thickness of the second line */
  background-color: #333; /* Sets the color of the second line */
}

.nav-bottom {
  display: flex;
  justify-content: center;       /* center the whole group */
  align-items: center;
  gap: 15rem;                      /* creates the space between subtitle and nav links */
  width: 100%;
  flex-wrap: wrap;               /* allows wrapping on small screens */
}

/* Title centered at top */
.nav-title a {
  font-size: clamp(0.5rem, 4vw, 15rem);
  color: #333;
  text-decoration: none;
  text-align: center;
}

.nav-title a:hover {
  color: #04AA6D;
}

/* Nav links left aligned */
.nav-links {
  display: flex;
  gap: 2vw;
  padding-right: 10vw;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  font-size: clamp(0.5rem, 1vw, 2rem);
  font-family: 'Alegreya Sans SC', Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
}

.nav-links a:hover {
  color: #04AA6D;
  border-radius: 4px;
}

/* Subtitle right aligned */
.nav-subtitle {
  color: #333;
  font-size: clamp(0.5rem, 1vw, 3rem);
  font-family: 'Alegreya Sans SC', Arial, Helvetica, sans-serif;
  padding-left: 10vw;

}
/* === Filing Tabs === */

.tab-container {
  display: flex;
  position: relative;
}

.tab {
  color: #333;
  font-family: 'Alegreya Sans SC', Arial, Helvetica, sans-serif;
  font-size: clamp(0.5rem, 1vw, 2rem);
  padding: 0.9rem  1rem;
  margin-right: -.2rem;
  border-bottom: none;
  border-top-left-radius: 10px;
  border: 1px solid #333;
  border-top-right-radius: 10px;
  background-color: #dddbdb;
  cursor: pointer;
  position: relative;
  top: 0;
  transition: 0.3s ease;
}

.tab:hover {
  background-color: #FCFAF9;
}

.tab.active {
  background-color:#FCFAF9;
  border-bottom: 1px #FCFAF9;
  color: #333;
  z-index: 2;
}

.tab-content {
  padding: 2rem;
  background-color: #FCFAF9;
  border: 1px solid #333;
  margin-top: -1px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;

}

/* === Section Visibility === */
.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-item {
  cursor: pointer;
}

/* Modern responsive video */
.responsive-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.responsive-video iframe,
.responsive-video video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.responsive-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.responsive-video iframe,
.responsive-video video,
.responsive-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Portrait videos (e.g. TikTok-style) */
.socialmedia-grid .responsive-video {
  aspect-ratio: 9 / 16;
}

.work-section {
  display: none;
}

.work-section.active {
  display: block;
}

/* Lightbox styles */
#lightbox {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
}

#lightbox-content {
  max-width: 90%;
  max-height: 70%;
  margin-bottom: 20px;
}

#lightbox-content video,
#lightbox-content img {
  max-width: 100%;
  max-height: 100%;
}

#lightbox-description {
  text-align: center;
  color: #ddd;
  max-width: 80%;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #FCFAF9;
  background: none;
  border: none;
  cursor: pointer;
}

#lightbox-close:hover {
  color: #1f9168;
}

/* Stork */

#contact {
  padding: 60px 12.5vw; /* More vertical padding */
  background-color: #df5a25;
  color: #FCFAF9;
  border-top: 2px solid #333; /* Adds a 2px solid black line at the bottom */

}

.contact-text h1 {
  margin-top: 0;
}

.contact-content {
  display: flex;
  align-items: center; /* vertical center */
  justify-content: space-between; /* push image left, text right */
  width: 100%;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-content img {
  width: 170px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  display: block; /* remove inline-block gaps */
}

@media (max-width: 768px) {
  #contact {
    padding: 40px 5vw;
  }

  .contact-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-text {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .section-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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