/* =================================== */
/* GLOBAL STYLES & RESET               */
/* =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: #000;
  color: #fff;
  overflow-x: hidden; /* Prevent horizontal scrollbars */
}


/* =================================== */
/* FULLSCREEN VIDEO & OVERLAY          */
/* =================================== */

#background-video {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -2;
  object-fit: cover;
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}


/* =================================== */
/* HEADER & LOGO                       */
/* =================================== */

header {
  position: absolute; /* Changed from 'fixed' to 'absolute' */
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  z-index: 10;
  text-align: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  max-height: 60px;
  width: auto;
}


/* =================================== */
/* MAIN CONTENT (TAGLINE H1)           */
/* =================================== */

main {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  position: relative; 
}

.main-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

/* =================================== */
/* SCROLL DOWN INDICATOR               */
/* =================================== */

.scroll-down-container {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  z-index: 5;
  cursor: pointer;
  text-decoration: none;
}

.scroll-down-container .drone-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.scroll-down-container .scroll-chevron {
  width: 28px;
  height: 28px;
  opacity: 0;
  animation: pulse-down 2.2s infinite ease-out;
}

/* Stagger the animation for the second chevron */
.scroll-down-container .scroll-chevron:last-of-type {
  animation-delay: 0.6s;
}

/* The pulsing animation for the chevrons */
@keyframes pulse-down {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}


/* =================================== */
/* PAGE CONTAINER & MENU               */
/* =================================== */

.page-container {
  background-image: url('background.jpg');
  background-repeat: repeat;
  padding: 5rem 2rem;
  color: #fff;
  text-align: center;
  min-height: 100vh;
}

.section-menu {
  margin-bottom: 4rem; 
  width: 100%;
}

.section-menu ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.section-menu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background-color: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.section-menu a:hover,
.section-menu a.active { /* Style for both hover and the active page link */
  color: #000;
  background-color: #fff;
}


/* =================================== */
/* PAGE SECTION STYLING                */
/* =================================== */

.page-section {
  display: none; /* Hide all pages by default */
}

.page-section.active {
  display: block; /* Show only the active page */
}

/* Generic container for simple text pages */
.page-content-container {
  background-color: rgba(0, 0, 0, 0.8); 
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: left;
  line-height: 1.6;
}

.page-content-container h2 {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

/* Responsive video wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 8px; /* Match container radius */
  margin-top: 1.5rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* Specific container for the contact form */
.contact-container {
  background-color: rgba(0, 0, 0, 0.8); 
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* =================================== */
/* WHITEPAPER DOWNLOAD LINK            */
/* =================================== */

.whitepaper-link {
  display: block;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  text-decoration: none; /* Removes the default underline */
  color: #fff; /* Sets the default text color for all content inside */
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.whitepaper-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.whitepaper-link .link-content {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  gap: 1.5rem;
}

.whitepaper-link .link-icon {
  font-size: 2.5rem;
}

.whitepaper-link .link-text h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  color: #fff; /* Explicitly sets the heading color to white */
}

.whitepaper-link .link-text p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.8;
  color: #fff; /* Explicitly sets the paragraph color to white */
}

/* =================================== */
/* FORM ELEMENT STYLING                */
/* =================================== */

.contact-container h2 {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  font-weight: 600;
}

.contact-container form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-align: left;
}

.contact-container form input,
.contact-container form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid #555;
  border-radius: 8px;
  background-color: #1a1a1a;
  color: #fff;
  font-size: 1rem;
}

.contact-container form input::placeholder,
.contact-container form textarea::placeholder {
  color: #888;
}

.contact-container form button {
  display: block;
  width: 100%;
  padding: 1rem;
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-container form button:hover {
  background-color: #ccc;
}

.contact-container form button:active {
  transform: scale(0.98);
}


/* =================================== */
/* CONTACT DETAILS & FORM RESPONSE     */
/* =================================== */

.contact-details {
  margin-top: 2rem;
  font-size: 1rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
}

.contact-details a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.contact-details a:hover {
  text-decoration: underline;
}

#contact-response {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 500;
  display: none;
}

.response-success {
  background-color: rgba(40, 167, 69, 0.2);
  color: #28a745;
  display: block;
}

.response-error {
  background-color: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  display: block;
}


/* =================================== */
/* RESPONSIVE DESIGN                   */
/* =================================== */

@media (max-width: 768px) {
  .main-content h1 {
    font-size: 2.5rem;
  }

  .page-content-container,
  .contact-container {
    padding: 2rem;
  }

  .page-content-container h2,
  .contact-container h2 {
    font-size: 2rem;
  }
}
