/* ====== Global Styles ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  list-style: none;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: black;
  }
  /* Use flexbox for vertical layout of body */
  body {
    display: flex;
    flex-direction: column;
    color: white;

  }

  /* =============== Navbar Styles =============== */
  header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; 
    background-color: transparent;
    padding: 0 2rem;
  }
  /* Logo styling */
  .logo {
    font-family: "Bruno Ace SC", sans-serif;
    color: whitesmoke;
    font-size: 2.5rem;
  }
  li {
    list-style: none;
  }
  a {
    text-decoration: none;
    color: whitesmoke; 
    font-size: 0.9rem;
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
  }

  /* Navigation bar layout */
  .navbar{
    width:100%;
    height:100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    pointer-events: auto;
  }
  .navbar .logo a {
    background: none;
    padding: 0;
    border: none;
    outline: none;
    border-radius: 0;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
  }
  /* Navigation links and buttons */
  .navbar .links a,
  .navbar .action_btn {
    /* color: whitesmoke; */
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .navbar .links a:hover,
  .navbar .action_btn:hover {
    transform: scale(1.5);
  }
  .navbar .action_btn:hover {
    transform: translateY(-50%) scale(1.5);
  }
  .navbar .toggle_btn{
    color: whitesmoke;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
  }
  /* Dropdown Menu for Small Screens */
  .dropdown_menu {
    display: none;
    position:absolute;
    right:2rem;
    top:60px;
    height: 0;
    width: 300px;
    background: rgba(84, 84, 84, 0.9);
    border-radius: 5px;
    overflow: hidden;
    transition: height 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
  }
  .dropdown_menu.open{
    height: 130px;
  }
  .dropdown_menu li{
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  
  /* Basic Section Styles */
  section {
    min-height: auto;
    width: 100%;
    position: relative;
  }
  

/* ========= Banner Section ========= */
/* Banner layout and centering */
.banner {
  text-align: center;
  padding: 0;
  width: 100%;
  height: 1000px;
  position: relative;
  overflow: hidden;
  /* border: 1px solid red; */
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;  
  position: absolute;
  top: 0;
  left: 0;
}

/* Title styling within the banner */
.banner h1 {
  font-size: 6rem;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-weight: 900;
  text-transform: uppercase;
  mix-blend-mode: difference; 
  transition: background-color 0.3s ease, top 0.3s ease-out;
}

/* ========= Description Section ========= */
/* Project description styling */
.description {
  padding: 40px 60px; 
  max-width: 1400px; 
  margin: 0 auto;
  text-align: center;
  /* border: 1px solid red;  */
}
.description p {
  font-size: 1.1rem; 
  line-height: 1.6; 
  text-align: left; 
  margin: 0;
}




/* ============ Gallery Section ============ */
/* Responsive grid for gallery images */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 10px; 
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}
.gallery-image {
  position: relative;
  width: 100%;
  /* height: 300px;  */
  aspect-ratio: 16 / 9; 
  overflow: hidden;
  /* border: 1px solid red; */
}
.gallery-image.span-2 {
  grid-column: span 2; 
}
.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}

.gallery-text {
  display: flex;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
}
.text-1 .caption, .text-2 .caption, .text-3 .caption {
  width: 100%;
  text-align: left;
}
/* .text-2 .caption {
  width: 100%;
  text-align: right;
} */
 
/* Caption styling */
.caption {
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1.1rem);
  line-height: 1.6;
  color: white;
}


/* ============ Video Section ============ */
/* Center video with responsive design */
.video {
  padding: 10px;
  /* margin-bottom: 100px;  */
  text-align: center;
  max-width: 1300px;
  margin: 0 auto 200px auto; /* Auto margins for horizontal centering */
  /* border: 1px solid red; */
}

.video video {
  max-width: 100%;
  height: auto;
  
}

.video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: 1300px;
  border: none;
}

/* ============ Footer Section ============ */
  footer {
    padding: 20px;
    text-align: center;
    font-family: "Open Sans", sans-serif;
    color: grey;
    font-size: 0.7rem;
  }


/* ============ Responsive Design ============ */
/* Adjustments for medium screens */
@media (min-width: 1030px) {
  .navbar {
    /* position: relative;
    display: flex; */
    align-items: center;
    justify-content: center; 
  }
  .navbar .links {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 2rem;
  }
  .navbar .action_btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
}
@media (max-width: 1030px) {
  .navbar .toggle_btn {
    display: block; 
  }
  .navbar .links,
  .navbar .action_btn {
    display: none; 
  }
  .dropdown_menu {
    display: block;
    left: 2rem;
    top:80px;  
    width: unset;
  }
}
  
/* Adjustments for small (mobile) screens */
@media (max-width: 768px) {
  .banner {
    height: 1000px;
  }
  .banner h1 {
    font-size: 4rem;
  }
  .description {
    padding: 20px 30px; 
    max-width: 90%; 
  }
  .description p {
    font-size: 0.9rem; 
  }
  .gallery {
    display: grid;
    grid-template-columns: 1fr;
    width: min(95%, 1400px);
    margin: 5px auto;
    gap: 5px;
  }
  .gallery-image.span-2 {
    grid-column: auto;
  }

/* Use specific class names to control order */
  .image-1 { order: 1; }
  .text-1 { order: 2; }

  .image-2 { order: 3; }
  .text-2 { order: 4; }

  .image-3 { order: 5; }
  .text-3 { order: 6; }

  .gallery-text {
    aspect-ratio: auto;
    min-height: 20px;
  }
 
  /* Left-aligned on small screens */
  .text-1 .caption,
  .text-2 .caption,
  .text-3 .caption {
    width: 100%;
    text-align: left;
    font-size: 0.8rem;
  }

  .video {
    padding: 10px;
  }
}
