/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: linear-gradient(to bottom, #050112, #072335);
  color: rgb(235, 249, 255);
  text-align: center;
  
  /* Strict Non-Scrollable Container */
  height: 100vh; 
  overflow: hidden; 
  display: flex;
  flex-direction: column;
}

/* Fixed Navigation - Always Top Left & Top Right */
header {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100vw; 
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(5, 1, 18, 0.95) 40%, transparent); 
}

.navbar {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  width: 100%;
  padding: 1.5rem 3vw; 
}

.logo {
  font-size: 2.2rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

nav {
  display: flex;
  gap: 1.5rem; 
}

nav a {
  color: rgb(235, 249, 255);
  text-decoration: none;
  font-size: 1.4rem;
  position: relative;
  font-weight: bold;
}

nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2.5px;
  background-color: rgb(235, 249, 255);
  transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
  transform: translateX(-50%);
}

nav a:hover::after {
  width: 100%;
}

/* Fluid Main Content Layout */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* space-evenly distributes vertical gaps perfectly on both 1080p and 1440p */
  justify-content: space-evenly; 
  align-items: center;
  width: 100%;
  height: 100vh;
  padding-top: 100px; /* Clears the header */
  padding-bottom: 2vh; /* Tiny buffer at the bottom */
}

.hero {
  width: 50%; 
  max-width: 1600px; 
  margin: 0 auto;
}

.hero h1 {
  /* clamp(minimum_size, preferred_dynamic_size, maximum_size) */
  /* This will hit your requested ~3em size on large screens but shrink gracefully on smaller ones */
  font-size: clamp(2rem, 2.5vw, 2.8rem); 
  font-weight: bold; 
  margin-bottom: 1rem;
}

.hero p {
  /* Fluid scaling for the paragraph text to keep the proportions balanced */
  font-size: clamp(1rem, 1.25vw, 1.3rem);
  line-height: 1.6;
  color: rgba(235, 249, 255, 0.85);
}

/* Full-Bleed Filmstrip Carousel */
.carousel-container {
  position: relative;
  width: 100vw; 
  overflow: hidden;
  /* Clamp automatically shrinks padding on 1080p and expands it on 1440p */
  padding: clamp(0.5rem, 3vh, 3rem) 0; 
}

.carousel {
  display: flex;
  align-items: center;
  gap: 40px; 
  padding: 0 50vw; 
}

.carousel img {
  height: 55vh; 
  width: auto;
  border-radius: 16px;
  object-fit: contain;
  transition: transform 0.5s ease, opacity 0.5s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Sleeker Navigation Overlay Buttons */
/* Sleeker Navigation Overlay Buttons */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(5, 1, 18, 0.7);
  color: rgb(235, 249, 255);
  border: 1px solid rgba(235, 249, 255, 0.2);
  font-size: 2.5rem;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  
  /* Flexbox layout */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Forces the browser to ignore the font's default baseline spacing */
  line-height: 0; 
  padding: 0;
  
  transition: all 0.2s ease;
}

.carousel-button:hover {
  background: rgba(5, 1, 18, 0.95);
  border-color: rgba(235, 249, 255, 0.6);
  transform: translateY(-50%) scale(1.05);
}

/* Optical nudges to perfectly center the asymmetric Unicode arrows */
.left { 
  left: 40px; 
  padding-right: 4px; /* Nudges the left arrow slightly right */
  padding-bottom: 4px; /* Lifts it visually to the middle */
}

.right { 
  right: 40px; 
  padding-left: 4px; /* Nudges the right arrow slightly left */
  padding-bottom: 4px;
}