/* ------------------------------ */
/*  Reset and Global Styles     */
/* ------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* ------------------------------ */
/*  Top Navigation              */
/* ------------------------------ */


.top-bar {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 10px 20px;
  width: 100%;
  box-sizing: border-box;
}


.top-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-start; /* "left" is not valid, changed to flex-start */
  align-items: center;
  padding: 1rem;
  background-color: #f7f7f7; /* Light background for contrast */
  border-bottom: 1px solid #dee2e6; /* Subtle bottom border */
}

.top-nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s ease, transform 0.2s ease;
  padding: 0.25rem 0.1rem;
  border-radius: 0.25rem;
}

.top-nav-links a:hover {
  color: #007bff; 
  transform: translateY(-1px);
}

/* ------------------------------ */
/*  Language Switcher           */
/* ------------------------------ */


.top-nav-links {
  display: flex;
  gap: 20px;
}

.language-switcher {
  display: flex;
  gap: 10px;
}

.language-switcher a {
  display: inline-block;
}

.language-switcher img {
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.language-switcher img:hover {
  transform: translateY(-1px);
  filter: brightness(1.2);
}

/* ------------------------------ */
/* Logo and Header Section       */
/* ------------------------------ */
.logo-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

/* Wrapper sets the fixed size */
.logo-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
}

/* Both logos use absolute positioning and full dimensions */
.logo {
  position: absolute;
  width: 100%;      
  height: 100%;    
  object-fit: contain;
  display: block;
}

/* PNG and GIF layers */
.static-logo {
  z-index: 3;
  transition: opacity 0.3s ease-in-out;
}
.gif-logo {
  z-index: 2;
  pointer-events: none;

}
.logo-container:hover .static-logo {
  opacity: 0;
}

.text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-name {
  font-size: 3rem;
  color: #000;
  text-align: center;
}

.slogan {
  font-size: 1.5rem;
  color: #777;
  text-align: center;
}

/* ------------------------------ */
/*  Main Content Layout         */
/* ------------------------------ */

/* ================================
   Layout: Main Content Sections
================================== */
.main-content {
  display: flex;
  justify-content: space-between;
    margin: 0 auto 30px auto;  
  width: 90%; 
}

/* Left Section */
.left-section {
  flex: 1;
  background-color: #fff;
  padding: 5px;
  margin-right: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Right Section */
.button-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ================================
   Grouping & Modules
================================== */
.module-group {
  display: flex;
  flex-direction: column;
}

.flight_prep-group,
.scheduling-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 5px;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* ================================
   Drop Zone Area
================================== */
.drop-zone-header {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 20px;
}

.drop-zone {
  width: 100%;
  height: 250px;
  background-color: #e0e0e0;
  border: 2px dashed #aaa;
  border-radius: 8px;
  
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;    
  
  cursor: pointer;
  text-align: center;    
}

.drop-zone span {
  margin-bottom: 15px; /* Adds space between the spans */
}

/* ================================
   Status & Spinner
================================== */
#statusMessage {
  font-size: 1.5rem;
  color: #007bff;
  padding: 5px;
  background-color: #f0f8ff;
  text-align: center;
}

#droneSpinner {
  width: 250px;
  height: 250px;
  margin: 0 auto;
  display: none;
}


/* ------------------------------ */
/*  Partner Logos Section         */
/* ------------------------------ */

.carousel-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: transparent;          /* melts into page background */
  padding: 5px 0;
  backdrop-filter: blur(2px);
  gap: 30px;                        /* space between carousels */
}

.carousel-half {
  flex: 1 1 48%;
  text-align: center;
  min-width: 280px;                 /* ensures proper stacking on small screens */
}

/* ------------------------------ */
/*  Titles                        */
/* ------------------------------ */

.carousel-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 5px;
  color: rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.carousel-title:hover {
  color: rgba(0, 0, 0, 0.8);
}

/* ------------------------------ */
/*  Logos Container               */
/* ------------------------------ */

.logos {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 5px 0;
  background-color: #f7f7f7;       /* blends with page background */
  border-radius: 12px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.02);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.logos:hover {
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.04);
  transform: scale(1.01);
}

.logos:before,
.logos:after {
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  content: "";
  z-index: 2;
  pointer-events: none;
}

.logos:before {
  left: 0;
  background: linear-gradient(to left, rgba(247, 247, 247, 0), #f7f7f7);
}

.logos:after {
  right: 0;
  background: linear-gradient(to right, rgba(247, 247, 247, 0), #f7f7f7);
}

/* Pause animation on hover */
.logos:hover .logos-slide {
  animation-play-state: paused;
}

/* ------------------------------ */
/*  Logos Slide Animation         */
/* ------------------------------ */

.logos-slide {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  animation: slide 30s linear infinite;
}


.carousel-slide {
  display: inline-block;
}

.carousel-slide img {
  height: 40px;
  margin: 0 10px;
  vertical-align: middle;
  opacity: 0.85;
  filter: grayscale(30%) brightness(95%);
  transition: all 0.3s ease;
}

.carousel-slide img:hover {
  transform: scale(1.1);
  opacity: 1;
  filter: grayscale(0%) brightness(105%);
}

/* ------------------------------ */
/*  Carousel Animation (Continuous) */
/* ------------------------------ */

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ------------------------------ */
/*  Footer Legal Links         */
/* ------------------------------ */
.legal-links a {
  color: #666;
  text-decoration: none;
  margin: 0 0.5em;
}

.legal-links a:hover {
  text-decoration: underline;
}


/* ------------------------------ */
/*  Responsive Design              */
/* ------------------------------ */

@media (max-width: 768px) {
  .carousel-section {
    flex-direction: column;
  }

  .carousel-half {
    flex: 1 1 100%;
    margin-bottom: 40px;
  }

  .carousel-title {
    font-size: 1.15rem;
  }

  .carousel-slide img {
    height: 35px;
  }
}
