/* Reset & basics   */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
    font-family: 'Orbitron', 'Segoe UI', Verdana, Tahoma, Geneva, sans-serif;
    color: #e0f7fa;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}
main {
    padding: 80px 20px 40px;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background: rgba(0, 30, 50, 0.85);
  z-index: 999;
  box-shadow: 0 0 10px #00e5ff;
  display: flex;
  align-items: center;
  justify-content: center;  /* change from center */
  padding: 0 20px;
  box-sizing: border-box;
}

.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar a:hover {
    color: #00e5ff;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: rgba(0, 15, 30, 0.7);
    border-radius: 12px;
}
.services-container h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 3em;
    text-shadow: 0 0 6px #00bcd4;
}
.service {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  align-items: center; /* <-- This centers the text vertically */
  background: rgba(0, 30, 50, 0.6);
  border-radius: 10px;
  margin-bottom: 25px;
  padding: 20px;
  box-shadow: 0 0 10px #00e5ff40;
}
.service img {
    width: 300px;
    height: 300px;
    border-radius: 8px;
    object-fit: contain;
}
.service h2 {
    margin: 0;
    color: #81d4fa;
    font-size: 1.5em;
    margin-bottom: 45px;


}
.service p {
    margin-top: 5px;
    color: #c1f4ff;
    font-size: 1.2em;
    font-family: Verdana, Tahoma, Geneva, sans-serif;
    margin-top: 25px;


}
.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(0, 15, 30, 0.75);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}
.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid #00e5ff;
    object-fit: cover;
}
.bio-text p {
    color: #cdeef7;
    font-size: 1.1em;
}
.logos {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}
.logos img {
    height: 40px;
    opacity: 0.8;
    transition: transform 0.3s;
}
.logos img:hover {
    transform: scale(1.1);
    opacity: 1;
}
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(0, 20, 35, 0.75);
    border-radius: 10px;
    text-align: center;
}
.contact-container h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #4dd0e1;
}
.contact-container p {
    font-size: 1.1em;
    margin: 10px 0;
    color: #b2ebf2;
}

html, body {
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .service {
    flex-direction: column;
    align-items: flex-start;
  }
  .service img {
    width: 100%;
    height: auto;
  }
  .header-text-box h1 {
    font-size: 2em !important;
  }
  body.home .background-layer {
    background-position: center center !important;
  }
  body.services h1 {
    font-size: 2em !important;
  }
  .mission-banner h2 {
    font-size: 2em !important;
  }
  .services h1 {
    font-size: 2em !important;
  }

  .service h2 {
    font-size: 1.5em !important;
  }

  .service p {
    font-size: 1.2em !important;
  }
  .navbar {
    justify-content: center !important;
    width: 100%;           /* ensure full width */
    padding: 0 15px;       /* consistent padding */
    box-sizing: border-box; /* ensure padding included in width */
    justify-content: flex-start; /* align items to left */
  }
  .nav-center {
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0;
    display: flex;
    justify-content: flex-start;
  }
  .nav-links {
  display: flex;
  flex-direction: row;
  justify-content: center !important;  /* spreads items evenly */
  gap: 5px !important;
                         /* reduce gap */
  padding: 0 5px !important;
                  /* shrink side padding */
  margin: 0;
  list-style: none;
  flex-wrap: wrap; /* allow wrap if needed on very narrow screens */               /* prevent wrapping */
  overflow: hidden;                /* prevent scrollbars */
  }
  .nav-links li {
    margin: 0;
  }
  .logo-link img {
    margin: 0;
    padding: 0;
  }
  .nav-links li a {
  font-size: 0.65em;               /* reduce font size slightly */
  padding: 4px 8px !important;
               /* tighter padding */
  white-space: nowrap;
  }
}

/* Text box with animation */
.header-text-box {
    background: rgba(0, 20, 35, 0.25);
    padding: 1.5em;
    border-radius: 12px;
    max-width: 600px;
    margin: 5em auto;
    text-align: center;
    box-shadow: 0 0 3px rgba(0, 20, 35, 0.25);
    /*font-family: Aptos, sans-serif;*/
}

.header-text-box h1 {
    font-size: 3.5em;
    }

.mission-banner {
    background: rgba(0, 30, 60, 0.8);
    text-align: center;
    padding: 2em 1em;
    margin: 6em auto 6em;
    border-top: 2px solid #00e5ff;
    border-bottom: 2px solid #00e5ff;
    box-shadow: 0 0 10px #00e5ff40;
    max-width: 1200px;
    border-radius: 10px;
}

.mission-banner h2 {
    color: #81d4fa;
    font-size: 3.5em;
    margin-bottom: 0.5em;
    text-shadow: 0 0 5px #00e5ff;
}

.mission-banner p {
    color: #cdeef7;
    font-size: 1.75em;
}

.mission-banner.bottom {
    margin-top: 8em;
}

.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;

    opacity: 0;
    z-index: -1;
    transition: opacity 2s ease-in;
}

.background-layer.visible {
    opacity: 1;
}

.content-wrapper {
    opacity: 0;
    transition: opacity 2s ease-in;
}

.content-wrapper.visible {
    opacity: 1;
}

/* Assign images per page */
body.home .background-layer {
    background-image: url("backgrounds/BH.png");
    background-position: center -650px;
}

body.services .background-layer{
    background-image: url("backgrounds/space.png");
    background-position: center center;

}
body.about .background-layer{
    background-image: url("backgrounds/asteroids.png");
    background-position: center center;

}
body.contact .background-layer {
    background-image: url("backgrounds/comet.png");
    background-position: center center;

}

body.projects .background-layer {
    background-image: url("backgrounds/icy_blue.png");
    background-position: center center;

}

body.services::before,
body.projects::before,
body.about::before,
body.contact::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Adjust opacity here (0.3–0.6 for subtle darkening) */
    z-index: -1;
}

.fade-in {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.content-wrapper.visible .fade-in {
    opacity: 1;
    transform: translateY(0);
}

.delay-0 {
    transition-delay: .5s;
}
.delay-1 {
    transition-delay: 1.0s;
}
.delay-2 {
    transition-delay: 1.5s;
}
.delay-3 {
    transition-delay: 2.0s;
}

.team-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  margin-top: 3rem;
}

.member-card {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 10px;
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 100%;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.bio-text {
  text-align: center;
}

.trusted-banner {
  text-align: center;
  padding: 50px 20px;
  background: rgba(255, 255, 255, 0.03);
  margin-top: 4rem;
}

.trusted-banner h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #fff;
}

.trusted-logos {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.trusted-logos img {
  height: 40px;
  transition: filter 0.3s ease;
}

.trusted-logos img:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

footer {
    position: fixed;
    bottom: 10px;
    left: 20px;
    font-size: 0.8em;
    color: rgba(178, 235, 242, 0.4); /* Subtler version of #b2ebf2 */
    z-index: 10;
    text-align: left;
    line-height: 1.4;
    max-width: 700px;
}

footer-scroll {
    position: static;
    bottom: 10px;
    left: 20px;
    font-size: 0.8em;
    color: rgba(178, 235, 242, 0.4); /* Subtler version of #b2ebf2 */
    z-index: 10;
    text-align: left;
    line-height: 1.4;
    max-width: 700px;
}

.logo img {
  height: 40px;
  margin: 10px 20px;
  vertical-align: middle;
}



.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background: rgba(0, 30, 50, 0.85);
  z-index: 999;
  box-shadow: 0 0 10px #00e5ff;
  display: flex;
  align-items: center;
  justify-content: center;
}



.logo-link img {
  height: 40px;
  vertical-align: middle;
}

/* Navigation is centered */
.nav-center {
  display: flex;
  justify-content: center;
  flex: 1;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;  /* ✅ ensures vertical centering */
  gap: 30px;
  list-style: none;
}

.navbar a {
  color: #b2ebf2;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #00e5ff;
}


.logo img {
  height: 40px;
  vertical-align: middle;
}

.content-wrapper {
  padding-top: 70px; /* match navbar height */
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.navbar {
  box-sizing: border-box;
  padding-left: 20px;
  padding-right: 20px;
}

.project-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.project-card {
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.01);
}

.project-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
}