/* General Styles */
body,
html {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #fff;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: #000;
}

.container {
  width: 80%;
  margin: auto;
  overflow: hidden;
  padding: 20px 0;
}

/* Video Container Styles */
.video-container {
  width: 100%;
  height: calc(100vh - var(--reserved-space, 70px));
  /* Dynamic space for the footer */
  overflow: hidden;
  position: relative;
  margin: 0;
  padding: 0;
}

#responsiveVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center;
}

/* Scroll Overlay Styles */
.scroll-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  text-align: center;
  color: #fff;
  font-size: calc(0.8em + var(--aspect-ratio) * 0.2em);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

.scroll-text {
  transform: rotate(90deg);
  transform-origin: bottom right;
}

.scroll-arrow {
  animation: arrowBounce 1s infinite;
}

@keyframes arrowBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

/* Header Styles */
header {
  width: 100%;
  background: #ff4c4c;
  padding: 10px 0;
  color: #000;
  text-align: center;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
}

header .logo {
  margin-left: 20px;
}

header h1 {
  font-size: calc(2em + var(--aspect-ratio) * 0.5em);
  margin: 0;
  font-weight: bold;
}

header nav {
  margin-right: 20px;
  flex-grow: 1;
}

header ul {
  display: flex;
  justify-content: space-around;
  padding: 0;
  list-style: none;
  margin: 0;
}

header li {
  margin: 0;
}

header a {
  color: #000;
  text-decoration: none;
  font-size: calc(1em + var(--aspect-ratio) * 0.2em);
  font-weight: bold;
}

header a:hover {
  color: #fff;
}

header fixed-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: #ff4c4c;
  /* Ensure background is set for better visibility */
}

/* Hero Section Styles */
#hero {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 100px 0;
  text-transform: uppercase;
  margin: 0;
}

#hero h2 {
  font-size: 60px;
  margin: 0;
  font-weight: 700;
}

#hero p {
  font-size: 24px;
  font-weight: bold;
}

#hero .btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: #ff4c4c;
  padding: 15px 30px;
  border-radius: 5px;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

#hero .btn:hover {
  background: #fff;
  color: #000;
}

/* About Section Styles */
#about {
  background: #000;
  padding: 50px 0;
  text-align: center;
  text-transform: uppercase;
  margin: 0;
}

#about h2 {
  font-size: 46px;
  margin-bottom: 20px;
  color: #ff4c4c;
  font-weight: 700;
}

#about p {
  font-size: 20px;
  line-height: 1.8;
  color: #fff;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Projects Section Styles */
#projects {
  background: #000;
  color: #fff;
  padding: 50px 0;
  text-align: center;
  text-transform: uppercase;
  margin: 0;
}

#projects h2 {
  font-size: 46px;
  margin-bottom: 20px;
  color: #ff4c4c;
  font-weight: 700;
  width: 100%;
}

#projects .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.project {
  flex: 1 1 30%;
  margin: 20px;
  box-sizing: border-box;
  vertical-align: top;
  text-align: left;
}

#projects h3 {
  font-size: 24px;
  margin-top: 10px;
  color: #fff;
  font-weight: bold;
}

#projects p {
  font-size: 16px;
  color: #aaa;
  font-weight: bold;
}

/* Team Section Styles */
#team {
  background: #000;
  padding: 50px 0;
  text-align: center;
  text-transform: uppercase;
  margin: 0;
}

#team h2 {
  font-size: 46px;
  margin-bottom: 20px;
  color: #ff4c4c;
  font-weight: 700;
  width: 100%;
}

#team .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.team-member {
  flex: 1 1 30%;
  margin: 20px;
  box-sizing: border-box;
  vertical-align: top;
  text-align: left;
}

#team h3 {
  font-size: 24px;
  margin-top: 10px;
  color: #fff;
  font-weight: bold;
}

#team p {
  font-size: 16px;
  color: #aaa;
  font-weight: bold;
}

/* Contact Section Styles */
#contact {
  background: #000;
  color: #fff;
  padding: 50px 0;
  text-align: center;
  text-transform: uppercase;
  margin: 0;
}

#contact h2 {
  font-size: 40px;
  margin-bottom: 20px;
  color: #ff4c4c;
  font-weight: 700;
}

.contact-form {
  text-align: center;
  font-weight: bold;
}

.contact-form p {
  margin: 15px 0;
}

.contact-form input {
  border: none;
  border-bottom: 1px solid #ff4c4c;
  background: none;
  padding: 5px;
  margin: 5px 0;
  text-align: center;
  font-weight: normal;
  font-size: 16px;
  text-transform: uppercase;
  width: auto;
  color: #ff4c4c;
  /* Ensure text color is always visible */
}

.contact-form input::placeholder {
  color: #ff4c4c;
  opacity: 0.7;
}

.contact-form input:focus {
  outline: none;
  border-bottom: 2px solid #ff4c4c;
}

.contact-form button {
  display: inline-block;
  background: #ff4c4c;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 20px;
}

.contact-form button:hover {
  background: #fff;
  color: #ff4c4c;
}

/* Footer Styles */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  position: relative;
  bottom: 0;
  width: 100%;
  text-transform: uppercase;
  font-weight: bold;
  margin: 0;
}

footer p {
  margin: 0;
}

footer .social-links a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
}

footer .social-links a:hover {
  color: #ff4c4c;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  header nav {
    display: none;
  }

  header .logo {
    margin: auto;
  }

  #hero h2 {
    font-size: 46px;
  }

  #hero p {
    font-size: 18px;
  }

  #hero .btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  #about h2,
  #projects h2,
  #team h2,
  #contact h2 {
    font-size: 38px;
  }

  #about p,
  #projects p,
  #team p {
    font-size: 16px;
  }

  #projects .project,
  #team .team-member {
    width: 100%;
  }

  .contact-form input {
    width: 100%;
    margin: 5px 0;
  }

  .contact-form p {
    display: block;
  }

  .scroll-overlay {
    font-size: 0.8em;
  }

  .scroll-arrow {
    display: block;
  }

  .video-container {
    height: calc(100vh - var(--reserved-space, 70px));
  }

  #responsiveVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center;
  }
}

/* Styles for Non-Mobile Fill-in-the-Blank Form */
@media (min-width: 769px) {
  .contact-form p {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .contact-form input {
    width: auto;
    flex: 1;
  }
}

/* New Styles for Navbar Fixed Top on Scroll */
header bottom-nav {
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 1000;
}