/* ============================================
   HORIZONTAL LAYOUT STYLES
   ============================================ */

@font-face {
  font-family: 'Micaelasfont-Regular';
  src: url('../fonts/Micaelasfont-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* ============================================
   BASE STYLES
   ============================================ */

/* ============================================
   CUSTOM SCROLLBAR - RUN ORANGE/BLUE THEME
   ============================================ */

/* Apply scrollbar styling to all scrollable elements */
* {
  /* Webkit browsers (Chrome, Safari, Edge) */
  scrollbar-width: thin;
  scrollbar-color: #fe7430 #ffffff;
}

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
  z-index: 5001; /* Ensure scrollbar is above other content */
}

::-webkit-scrollbar-track {
  background: #ffffff;
  border-radius: 10px;
  z-index: 5001; 
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fe7430, #01718f);
  border-radius: 10px;
  border: 2px solid #ffffff;
  transition: all 0.3s ease;
  z-index: 5001; 
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e6672a, #015d73);
  box-shadow: 0 8px 20px rgba(254, 116, 48, 0.3);
}

::-webkit-scrollbar-corner {
  background: #ffffff;
}

/* Specific styling for horizontal scroll container */
.horizontal-scroll::-webkit-scrollbar {
  height: 12px;
  width: 12px;
  z-index: 5001; 
}

.horizontal-scroll::-webkit-scrollbar-track {
  background: #ffffff;
  border-radius: 10px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #fe7430, #01718f);
  border-radius: 10px;
  border: 2px solid #ffffff;
}

.horizontal-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #e6672a, #015d73);
  box-shadow: 0 8px 20px rgba(254, 116, 48, 0.3);
}

/* Enable scrollbar on elements that might need it */
.section-content,
.text-content,
.description,
textarea,
.scrollable {
  scrollbar-width: thin;
  scrollbar-color: #fe7430 #ffffff;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto; /* Allow vertical scrolling to test scrollbar */
  font-family: 'Micaelasfont-Regular', sans-serif;
}

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

html, body {
  /* overflow: hidden; */ /* Temporarily disabled to test scrollbar */
  overflow-x: hidden;
  overflow-y: auto;
  height: 100vh;
  margin: 0;
  padding: 0;
}

/* Typography */
h1 {
  font-family: 'Micaelasfont-Regular', sans-serif;
  font-size: clamp(2rem, 4vw, 5rem);
}

h2 {
  font-family: 'Micaelasfont-Regular', sans-serif;
  font-size: clamp(1.5rem, 3vw, 4rem);
}

p {
  font-size: clamp(1rem, 2.5vw, 2rem);
  max-width: 600px;
  font-family: "Sora", sans-serif;
}
/* ============================================ HORIZONTAL SCROLL LAYOUT  ============================================ */
.horizontal-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  height: 100vh;
  width: 100vw;
  background-image: url('../imgs/HozBG.png');
  background-size: cover;
  background-position: center;
  gap: 0;
}

/* ============================================SECTION LAYOUT ============================================ */
.section {
  flex: 0 0 100vw;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  padding: 0;
  box-sizing: border-box;
  margin: 0;
  overflow: hidden;
  background-image: url('../imgs/Run/ReelOutlines.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.section-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  gap: 0;
  padding: 2% 5%;
  box-sizing: border-box;
}

.section-content > * {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

/* ============================================ FILM REEL ELEMENTS ============================================ */
.film-reel {
  position: fixed;
  left: 5%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5000;
  pointer-events: none;
}

/* ============================================ SECTION1 ============================================ */
.Poster{
  position: absolute;
  top: 50%;
  left: 25%;
  transform: translate(-50%, -50%);
}
.section1 h1{
  position: absolute;
  top: 20%;
  left: 40%;
  color: #000000;
  text-align: center;
  z-index: 10;
}
.keywords-container {
  position: absolute;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  top: 35%;
  left: 40%;
  gap: 8px;
  margin-top: 0;
  margin-bottom: 20px;
  align-items: left;
  justify-items: left;
}

.keyword-tag {
  background: #01718f;
  color: #000000;
  padding: 8px 20px;
  border-radius: 50px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 120px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}

.keyword-tag:hover {
  background: #fe7430;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #9c461c55;  
  transition: all 0.3s ease;
  cursor: default;
}

.placeholder1{
  position: absolute;
  height: 216px;
  width: 364px;
  top: 50%;
  left: 40%;
  background-color: #fe7430;
}

.placeholder2{
  position: absolute;
  height: 216px;
  width: 364px;
  top: 50%;
  left: 70%;
  background-color: #fe7430;
}

/* Video styling for placeholders */
.placeholder1 video,
.placeholder2 video,
.placeholder3 video,
.placeholder4 video,
.placeholder5 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* ============================================ SECTION2 ============================================ */
.problem-section h2{
  position: absolute;
  top: 18%;
  left: 15%;
  color: #000000;
  text-align: center;
  z-index: 10;
  font-size: 32px;
}
.problem-section p{
  position: absolute;
  top: 25%;
  left: 15%;
  color: #000000;
  text-align: left;
  z-index: 10;
  font-size: 14px;
  max-width: 33%;

}

.brief-section h2{
  position: absolute;
  top: 48%;
  left: 55%;
  color: #000000;
  text-align: center;
  z-index: 10;
  font-size: 32px;
}
.brief-section p{
  position: absolute;
  top: 55%;
  left: 55%;
  color: #000000;
  text-align: left;
  z-index: 10;
  font-size: 14px;
  max-width: 33%;
}

.placeholder3{
  position: absolute;
  height: 216px;
  width: 364px;
  top: 50%;
  left: 15%;
  background-color: #fe7430;
}


.placeholder4{
  position: absolute;
  height: 216px;
  width: 364px;
  top: 18%;
  left: 55%;
  background-color: #fe7430;
}

/* ============================================ SECTION3 ============================================ */
.solution-section h2{
  position: absolute;
  top: 18%;
  left: 15%;
  color: #000000;
  text-align: center;
  z-index: 10;
  font-size: 32px;
}
.solution-section p{
  position: absolute;
  top: 25%;
  left: 15%;
  color: #000000;
  text-align: left;
  z-index: 10;
  font-size: 14px;
  max-width: 22%;
}


.roleImgs{
  align-items: center;
}
.Clapper{
  position: absolute;
  top: 33%;
  left: 55%;
  transform: translate(-50%, -50%);
} 
.Stairs{
  position: absolute;
  top: 33%;
  left: 67%;
  transform: translate(-50%, -50%);
} 
.Write{
  position: absolute;
  top: 33%;
  left: 70%;
  transform: translate(-50%, -50%);
} 
.MandL{
  position: absolute;
  top: 33%;
  left: 80%;
  transform: translate(-50%, -50%);
}
.Meeting{
  position: absolute;
  top: 33%;
  left: 85%;
  transform: translate(-50%, -50%);

}

.role-section h2{
  position: absolute;
  top: 50%;
  left: 42%;
  color: #000000;
  text-align: center;
  z-index: 10;
  font-size: 32px;
}

.role-section p:nth-child(2){
  position: absolute;
  top: 55%;
  left: 42%;
  color: #000000;
  text-align: left;
  z-index: 10;
  font-size: 14px;
  max-width: 16%;
}

.role-section p:nth-child(3){
  position: absolute;
  top: 53%;
  left: 60%;
  color: #000000;
  text-align: left;
  z-index: 10;
  font-size: 14px;
  max-width: 16%;
}

.role-section p:nth-child(4){
  position: absolute;
  top: 53%;
  left: 78%;
  color: #000000;
  text-align: left;
  z-index: 10;
  font-size: 14px;
  max-width: 17%;
}

/* ============================================ SECTION4 ============================================ */
.CastCrew{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 35%;
  height: auto;
  transform: translate(-50%, -50%);
}

.OnSet{
  position: absolute;
  top: 18%;
  left: 0%;
}

.Tix{
  position: absolute;
  top: 49%;
  left: 0%; 
}

.FlatLay{
  position: absolute;
  top: 10%;
  left: 60%;
}

.Group{
  position: absolute;
  top: 45%;
  left: 70%;  
}

/* ============================================ SECTION4 ============================================ */
.Camera{
  position: absolute;
  top: 50%;
  right: 0%;
  width: 40%;
  height: auto;
  transform: translate(0%, -50%);
  z-index: 2;
}

.synopsis-section h2{
  position: absolute;
  top: 18%;
  left: 15%;
  color: #000000;
  text-align: center;
  z-index: 10;
  font-size: 32px;
}

.synopsis-section p{
  position: absolute;
  top: 25%;
  left: 15%;
  color: #000000;
  text-align: left;
  z-index: 10;
  font-size: 14px;
  max-width: 22%;
}

.IA-section h2{
  position: absolute;
  top: 50%;
  left: 15%;
  color: #000000;
  text-align: center;
  z-index: 10;
  font-size: 32px;
}

.IA-section p{
  position: absolute;
  top: 58%;
  left: 15%;
  color: #000000;
  text-align: left;
  z-index: 10;
  font-size: 14px;
  max-width: 22%;
}

.Premiere{
position: absolute;
top: 22%;
left: 45%;
z-index: 1; 
}

.Audience{
position: absolute;
top: 46%;
left: 35%;
z-index: 2; 
}

.Screen{
position: absolute;
top: 45%;
left: 45%;
z-index: 3;
}

/* ============================================ MOBILE WARNING ============================================ */
   

.mobile-warning {
  display: none;
}

@media (max-width: 699px) {
  html, body {
    height: 100%;
    overflow: hidden;
  }

  body > *:not(.mobile-warning) {
    display: none !important;
  }

  .mobile-warning {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #fff;
    text-align: center;
    font-family: 'Micaelasfont-Regular', sans-serif;
  }

  .mobile-warning .message {
    max-width: 720px;
    color: #000;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: 0.2px;
  }
}

/* ============================================RESPONSIVE DESIGN ============================================ */
/* MacBook specific adjustments - covers most MacBook viewport sizes */
@media (min-width: 1280px) and (max-width: 1728px) and (min-height: 800px) and (max-height: 1117px) {
  .problem-section h2, .solution-section h2, .synopsis-section h2 {
    top: 22%;
  }
  .problem-section p, .solution-section p, .synopsis-section p {
    top: 29%;
  }

.IA-section h2 {
    top: 54%;
  }
  
  .IA-section p {
    top: 61%;
  }
}

@media (min-width: 700px) and (max-width: 2560px) {
  .horizontal-scroll-container {
    align-items: center;
    justify-content: center;
  }

  #Run1 {
    min-width: 100%;
    max-width: 2560px;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .navbar ul {
    gap: 100px;
  }
  
  .navbar a {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .modal-content { 
    width: calc(100% - 28px); 
    margin-top: 4vh; 
  }
  
  .modal-close-img { 
    width: 36px; 
    height: 36px; 
    top: -12px; 
    right: -12px; 
  }
  
  .work-overlay { 
    padding: 12px; 
  }
  
  .work-btn { 
    font-size: 16px; 
    padding: 6px 8px; 
  }
}

/* ============================================ LARGE SCREEN SCALING (>1920px) ============================================ */
@media (min-width: 1921px) {
  /* Scale up typography */
  h1 {
    font-size: clamp(3rem, 5vw, 7rem);
  }
  
  h2 {
    font-size: clamp(2.5rem, 4vw, 6rem);
  }
  
  p {
    font-size: clamp(1.2rem, 3vw, 2.5rem);
  }
  
  .keyword-tag {
    font-size: 18px;
    padding: 12px 12px;
    min-width: 160px;
  }
  
  /* Scale up section-specific text */
  .problem-section h2,
  .brief-section h2,
  .solution-section h2,
  .role-section h2,
  .synopsis-section h2,
  .IA-section h2 {
    font-size: 48px;
  }
  
  .problem-section p,
  .brief-section p,
  .solution-section p,
  .role-section p,
  .synopsis-section p,
  .IA-section p {
    font-size: 18px;
  }
  .problem-section p,
  .brief-section p {
    width: 25% !important;
  }
  
  /* Scale up images and elements proportionally */
  .film-reel {
    transform: translate(-50%, -50%) scale(1.7);
  }
  
  .Poster {
    transform: translate(-50%, -50%) scale(1.5);
  }
  
  .placeholder1,
  .placeholder2,
  .placeholder3,
  .placeholder4 {
    height: 288px;
    width: 485px;
  }

  .placeholder4{
    top: 22%;
  }
  
  .Clapper,
  .Stairs,
  .Write,
  .MandL,
  .Meeting,
  .Premiere,
  .Audience,
  .Screen {
    transform: translate(-50%, -50%) scale(1.4);
  }

  .roleImgs{
    gap: 100px;
  }


  .Stairs{
  left: 65%;
  }
  
  .OnSet,
  .Tix,
  .FlatLay,
  .Group {
    transform: scale(1.4);
  }
  
  .Camera {
    width: 48%;
    right: -5%;
    transform: translate(0%, -50%) scale(1.1);
  }
    
  /* Scale up keyword container */
  .keywords-container {
    gap: 12px;
  }
  
  /* Specifically target role-section paragraphs */

  .role-section h2{
    top: 55% !important;
  }
  .role-section p:nth-child(2),
  .role-section p:nth-child(3),
  .role-section p:nth-child(4) {
    font-size: 18px !important;
    top: 60% !important;
  }
  
  /* Reposition Section 4 images for larger screens */
  
  .OnSet {
    top: 20%;
    left: 5%;
  }
  
  .Tix {
    top: 58%;
    left: 0%;
  }
  
  .FlatLay {
    top: 25%;
    left: 65%;
  }
  
  .Group {
    top: 50%;
    left: 75%;
  }
  
  /* Reposition Section 5 images for larger screens */
  
  .Premiere {
    top: 40%;
    left: 55%;
  }
  
  .Audience {
    top: 50%;
    left: 45%;
  }
  
  .Screen {
    top: 65%;
    left: 55%;
  }
}