/* Main Styles for Nexus Aerospace Website */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Euclid Circular A', sans-serif;
  background-color: #000;
  color: #fff;
  margin: 0;
  padding: 0;
}

/* Hero Section */
.hero-container {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* Adjust hero height for contact page */
.contact-page .hero-container {
  height: 60vh;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  filter: brightness(0.85);
}

/* Add this to make sure video is visible */
video {
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0.2));
  z-index: 1;
}

/* Adjust hero overlay for contact page */
.contact-page .hero-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.05));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-left: 25%;
}

/* Center hero content for contact page */
.contact-page .hero-content {
  padding-left: 0;
}

@media (max-width: 1280px) {
  .hero-content {
    padding-left: 20%;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding-left: 15%;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding-left: 10%;
  }
}

/* Typography */
.bracket {
  letter-spacing: -0.2em;
  margin: 0 -5px;
}

/* Layout */
.section-spacing {
  padding: 80px 0;
}

/* Technology Cards */
.tech-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 500px;
}

.tech-card p {
  width: 100%;
}

.tech-card .text-left {
  width: 100%;
}

.tech-image-container {
  overflow: hidden;
  width: 500px;
}

.tech-image-container img {
  transition: transform 0.5s ease;
}

.tech-image-container:hover img {
  transform: scale(1.05);
}

.tech-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
  filter: brightness(0.8);
}

.tech-image:hover {
  transform: scale(1.03);
  filter: brightness(1);
}

/* Vision Section */
.vision-section {
  position: relative;
  height: 50vh;
  overflow: hidden;
}

.vision-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
  filter: brightness(0.5);
}

.vision-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4), rgba(0,0,0,0.6));
  z-index: 1;
}

.vision-content {
  position: relative;
  z-index: 2;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
  cursor: pointer;
}

.scroll-indicator a {
  display: block;
  padding: 10px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* Divider */
.divider {
  height: 60px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Navigation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: white;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Button animations */
.btn-animate {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-animate::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease-in-out;
  z-index: -1;
}

.btn-animate:hover::before {
  left: 0;
}

.btn-animate:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Form input styling */
.form-input {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.15);
  outline: none;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.active {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Delay classes */
.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

.delay-500 {
  transition-delay: 500ms;
}

/* Hamburger Menu Animation */
.menu-icon {
  transition: transform 0.3s ease;
}

.hamburger-line-1, .hamburger-line-2, .hamburger-line-3 {
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-open .hamburger-line-1 {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .hamburger-line-2 {
  opacity: 0;
}

.menu-open .hamburger-line-3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* Team Section */
.team-member {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: white;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 20px;
  width: 2px;
  height: calc(100% + 20px);
  background-color: rgba(255, 255, 255, 0.3);
}

.timeline-item:last-child::after {
  display: none;
}

/* Scroll Indicators */
.story-scroll-indicator {
  position: relative;
  display: inline-block;
  animation: bounce 2s infinite;
  cursor: pointer;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

#backToTop:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
#mobile-menu {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

#mobile-menu.open {
  height: 100vh;
}

/* Navbar */
#navbar {
  transition: transform 0.3s ease;
}
