/* Fonts and reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  scroll-behavior: smooth;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
  font-size: 16px;
}

/* Logo Intro */
.logo-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: white;
  z-index: 1000;
  opacity: 1;
}

.logo-symbol { width: 100px; }
.logo-name { width: 300px; margin-top: 20px; }
.logo-container img { pointer-events: none; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 999;
  opacity: 0;
}

.navbar-logo { width: 60px; cursor: pointer; display: block; }
.nav-menu { display: flex; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 1rem;
}

.nav-links a {
  font-weight: 500;
  color: #000;
  text-decoration: none;
}

.nav-links a:hover {
  color: #0077ff;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  border-radius: 50%;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #0077ff;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: #000;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Sections and Backgrounds */
section {
  padding: 140px 2rem 60px;
  min-height: 80vh;
  text-align: center;
  color: #000;
  position: relative;
  max-width: 1000px;
  margin: auto;
}

section h2 { font-size: 2.5rem; margin-bottom: 20px; }
section p { font-size: 1.2rem; line-height: 1.7; margin-bottom: 20px; }
.team-member { font-size: 1.1rem; font-weight: 500; margin-bottom: 20px; }

/* Vision Page Specific Styles */
.phase {
  text-align: left;
  margin-bottom: 40px;
}

.phase h3 {
  font-size: 1.4rem;
  color: #0077ff;
  margin-bottom: 10px;
}

.phase p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.values {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 1.2rem;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.value-item span {
  font-size: 1.5rem;
}

/* Technology Page Specific Styles */
.feature-block {
  text-align: left;
  margin-bottom: 40px;
}

.feature-block h3 {
  font-size: 1.4rem;
  color: #0077ff;
  margin-bottom: 10px;
}

.feature-block ul {
  padding-left: 20px;
  list-style-type: disc;
  font-size: 1.1rem;
  line-height: 1.6;
}

.tagline {
  margin-top: 60px;
  font-size: 1.2rem;
  font-style: italic;
  color: #444;
}

/* Roadmap and Achievements Page Specific Styles */
.timeline {
  text-align: left;
  font-size: 1.1rem;
  line-height: 2;
  border-left: 3px solid #0077ff;
  padding-left: 20px;
}

.timeline-entry {
  margin-bottom: 25px;
  position: relative;
}

.timeline-entry::before {
  content: "📍";
  position: absolute;
  left: -30px;
  color: #0077ff;
}

.timeline-entry h3 {
  font-size: 1.4rem;
  color: #0077ff;
  margin-bottom: 10px;
}

/* Sponsorship Page Specific Styles */
.list-block {
  text-align: left;
  margin-bottom: 60px;
}

.list-block h3 {
  font-size: 1.5rem;
  color: #0077ff;
  margin-bottom: 20px;
}

.list-block ul {
  list-style: none;
  font-size: 1.1rem;
  line-height: 1.9;
  padding-left: 0;
}

.list-block ul li::before {
  content: "✔️";
  margin-right: 10px;
  color: #0077ff;
}

/* FPV Page Specific Styles */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.video-item {
  text-align: center;
}

.video-item iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

.video-item p {
  font-size: 1rem;
  margin-top: 10px;
}

.instagram-feed {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

.instagram-feed iframe {
  width: 100%;
  height: 500px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.service-item {
  text-align: left;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.service-item h3 {
  font-size: 1.4rem;
  color: #0077ff;
  margin-bottom: 10px;
}

.service-item p {
  font-size: 1rem;
}

.book-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}

.book-form input,
.book-form select,
.book-form textarea,
.book-form button {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
}

.book-form textarea {
  resize: vertical;
  min-height: 100px;
}

.book-form button {
  background-color: #0077ff;
  color: #fff;
  border: none;
  cursor: pointer;
}

.book-form button:hover {
  background-color: #005bcc;
}

/* Fly Page Specific Styles */
.course-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.course-item {
  text-align: left;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.course-item h3 {
  font-size: 1.4rem;
  color: #0077ff;
}

.course-item p {
  font-size: 1rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}

.waitlist-form input,
.waitlist-form button {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
}

.waitlist-form button {
  background-color: #0077ff;
  color: #fff;
  border: none;
  cursor: pointer;
}

.waitlist-form button:hover {
  background-color: #005bcc;
}

/* Hero Section */
.hero {
  height: 100vh;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.hero-background, .section-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-background.video video, .section-background.video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-background.image, .section-background.image {
  background-size: cover;
  background-position: center;
}

.hero-content {
  z-index: 1;
  position: relative;
  text-align: center;
}

.hero h1 { font-size: 3rem; margin-bottom: 10px; }
.hero h2 { font-size: 1.5rem; margin-bottom: 30px; }

.cta-buttons a {
  margin: 10px;
  padding: 14px 28px;
  background-color: #0077ff;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  font-size: 1.1rem;
}

.cta-buttons a:hover {
  background-color: #005bcc;
}

/* Contact Page Specific Styles */
.page-contact .contact {
  padding: 140px 2rem 60px;
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.page-contact .contact h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
}

.page-contact .contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 60px;
}

.page-contact .contact input,
.page-contact .contact textarea {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  color: #000;
}

.page-contact .contact textarea {
  resize: vertical;
  min-height: 100px;
}

.page-contact .contact button {
  padding: 12px;
  font-size: 1rem;
  background-color: #0077ff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.page-contact .contact button:hover {
  background-color: #005bcc;
}

.page-contact .contact .contact-details {
  font-size: 1.1rem;
  line-height: 2;
}

.page-contact .contact .contact-details a {
  color: #0077ff;
  text-decoration: none;
}

.page-contact .contact .contact-details a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #f3f3f3;
  padding: 40px 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #000;
}

.footer-socials {
  margin-bottom: 15px;
}

.footer-socials a {
  color: #0077ff;
  text-decoration: none;
  margin: 0 5px;
}

.footer-socials a:hover {
  text-decoration: underline;
}

.footer-email {
  margin-bottom: 10px;
}

.footer-email a {
  color: #0077ff;
  text-decoration: none;
}

.footer-email a:hover {
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.85rem;
  margin-top: 10px;
}

/* Dark Mode */
body.dark {
  background-color: #121212;
  color: #f1f1f1;
}

body.dark section,
body.dark section h1,
body.dark section h2,
body.dark section p,
body.dark .team-member,
body.dark .phase,
body.dark .phase h3,
body.dark .phase p,
body.dark .values,
body.dark .value-item,
body.dark .feature-block,
body.dark .feature-block h3,
body.dark .feature-block ul,
body.dark .tagline,
body.dark .timeline,
body.dark .timeline-entry,
body.dark .list-block,
body.dark .list-block h3,
body.dark .list-block ul,
body.dark .hero,
body.dark .hero h1,
body.dark .hero h2,
body.dark .cta-buttons a {
  color: #f1f1f1;
}

body.dark .phase h3,
body.dark .feature-block h3,
body.dark .list-block h3,
body.dark .timeline-entry h3,
body.dark .service-item h3,
body.dark .course-item h3 {
  color: #66b0ff;
}

body.dark .tagline {
  color: #bbb;
}

body.dark .timeline {
  border-left-color: #66b0ff;
}

body.dark .timeline-entry::before,
body.dark .list-block ul li::before {
  color: #66b0ff;
}

body.dark .navbar {
  background-color: #2e2e2e;
}

body.dark .navbar a,
body.dark footer,
body.dark .footer-socials a,
body.dark .footer-email a {
  color: #f1f1f1;
}

body.dark footer {
  background-color: #2e2e2e;
}

body.dark .section-background.image,
body.dark .hero-background.image {
  filter: brightness(0.8);
}

body.dark .hamburger span {
  background-color: #f1f1f1;
}

body.dark .page-contact .contact input,
body.dark .page-contact .contact textarea,
body.dark .service-item,
body.dark .course-item,
body.dark .book-form input,
body.dark .book-form select,
body.dark .book-form textarea,
body.dark .book-form button,
body.dark .waitlist-form input,
body.dark .waitlist-form button {
  background-color: #2e2e2e;
  color: #f1f1f1;
  border-color: #555;
}

body.dark .page-contact .contact button,
body.dark .book-form button,
body.dark .waitlist-form button {
  background-color: #0077ff;
  color: #fff;
}

body.dark .page-contact .contact button:hover,
body.dark .book-form button:hover,
body.dark .waitlist-form button:hover {
  background-color: #005bcc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    height: auto;
    padding: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  body.dark .nav-menu {
    background-color: #2e2e2e;
  }

  .nav-menu.active {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .nav-links li {
    margin: 0;
  }

  .logo-symbol { width: 80px; }
  .logo-name { width: 240px; }

  .hero h1 { font-size: 2rem; }
  .hero h2 { font-size: 1.2rem; }

  section {
    padding: 120px 1rem 60px;
  }

  section h2 { font-size: 2rem; }
  section p { font-size: 1rem; }
  .team-member { font-size: 0.9rem; }
  .phase h3 { font-size: 1.2rem; }
  .phase p { font-size: 0.9rem; }
  .values { font-size: 1rem; }
  .value-item span { font-size: 1.2rem; }
  .feature-block h3 { font-size: 1.2rem; }
  .feature-block ul { font-size: 0.9rem; }
  .tagline { font-size: 1rem; margin-top: 40px; }
  .timeline { font-size: 0.9rem; line-height: 1.8; padding-left: 15px; }
  .timeline-entry { margin-bottom: 20px; }
  .timeline-entry::before { left: -25px; }
  .list-block h3 { font-size: 1.3rem; }
  .list-block ul { font-size: 0.9rem; line-height: 1.7; }
  .cta-buttons a {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .video-gallery,
  .service-list,
  .course-list {
    grid-template-columns: 1fr;
  }

  .instagram-feed iframe {
    height: 300px;
  }

  footer {
    padding: 30px 15px;
    font-size: 0.85rem;
  }

  .footer-copyright {
    font-size: 0.8rem;
  }

  .page-contact .contact {
    padding: 120px 1rem 60px;
  }

  .page-contact .contact h2 {
    font-size: 1.8rem;
  }

  .page-contact .contact form {
    max-width: 100%;
  }

  .page-contact .contact input,
  .page-contact .contact textarea,
  .page-contact .contact button {
    font-size: 0.9rem;
    padding: 10px;
  }

  .page-contact .contact .contact-details {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .logo-symbol { width: 60px; }
  .logo-name { width: 180px; }

  .hero h1 { font-size: 1.5rem; }
  .hero h2 { font-size: 1rem; }

  .cta-buttons a {
    display: block;
    margin: 10px auto;
    max-width: 200px;
  }

  .page-contact .contact h2 {
    font-size: 1.6rem;
  }

  .page-contact .contact input,
  .page-contact .contact textarea,
  .page-contact .contact button {
    font-size: 0.85rem;
    padding: 8px;
  }

  .page-contact .contact .contact-details {
    font-size: 0.9rem;
  }
}

/* Contact Form Section */
.contact-section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  background-color: #f8f8f8; /* Light background for both modes */
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-content h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #000 !important; /* Force black text in all modes */
}

.contact-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #000 !important; /* Force black text in all modes */
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  font-size: 1em;
  margin-bottom: 8px;
  color: #000 !important; /* Force black text in all modes */
}

.form-group input,
.form-group textarea {
  padding: 12px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
  background-color: white; /* Light input background for both modes */
  color: #000 !important; /* Force black text in all modes */
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-button {
  padding: 12px 20px;
  background-color: #007bff; /* Button color */
  color: white; /* Button text remains white */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #0056b3;
}

/* Achievements Section – Updated for 2 rows with 2 items each */
.achievements-section {
  padding: 100px 20px;
  text-align: center;
  position: relative;
  background-color: #f8f8f8;
}

.achievements-content {
  max-width: 1200px;
  margin: 0 auto;
}

.achievements-content h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #000;
}

.achievements-content p {
  font-size: 1.2rem;
  margin-bottom: 50px;
  color: #333;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Two fixed columns per row */
.achievements-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

/* Card styling */
.achievement-item {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.achievement-item h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #0077ff;
}

.achievement-item p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #333;
  flex-grow: 1;
}

/* Instagram embed wrapper – ensures consistent size and centering */
.instagram-embed-wrapper {
  margin-top: auto;
  width: 100%;
  height: 520px; /* Consistent height for all embeds */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.instagram-embed-wrapper .instagram-media {
  width: 100% !important;
  height: 100% !important;
  min-width: unset !important;
  max-width: unset !important;
}

/* CTA Buttons */
.cta-buttons {
  margin-top: 40px;
}

.cta-buttons a {
  padding: 14px 32px;
  background-color: #0077ff;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-buttons a:hover {
  background-color: #005bcc;
}

/* Dark Mode Support for Achievements */
body.dark .achievements-section {
  background-color: #121212;
}

body.dark .achievements-content h1,
body.dark .achievements-content p {
  color: #f1f1f1;
}

body.dark .achievement-item {
  background-color: #2e2e2e;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark .achievement-item h3 {
  color: #66b0ff;
}

body.dark .achievement-item p {
  color: #ddd;
}

body.dark .instagram-embed-wrapper {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive: Stack to 1 column on smaller screens */
@media (max-width: 992px) {
  .achievements-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .instagram-embed-wrapper {
    height: 450px;
  }
}

@media (max-width: 480px) {
  .achievements-content h1 {
    font-size: 2.2rem;
  }
  
  .achievement-item {
    padding: 20px;
  }
  
  .instagram-embed-wrapper {
    height: 400px;
  }
}

/* Dark Mode Adjustments */
body.dark-mode .contact-section,
body.dark-mode .achievements-section {
  background-color: #f8f8f8; /* Keep light background in dark mode for black text */
}

body.dark-mode .achievement-item {
  background-color: white; /* Keep light background in dark mode for black text */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Slightly darker shadow in dark mode */
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
  background-color: white; /* Keep light input background in dark mode for black text */
  border-color: #ccc; /* Keep light border */
}

/* Instagram Embed in Dark Mode */
body.dark-mode .instagram-embed-wrapper .instagram-media {
  background-color: white; /* Keep light background for Instagram embed */
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .achievements-grid {
    grid-template-columns: 1fr;
  }
  
  .instagram-embed-wrapper .instagram-media {
    width: 100% !important;
  }
}