/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.content-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
}

.image-container {
  flex: 0 0 auto;
  max-width: 40%;
}

.image-container img {
  width: 300px;
  height: auto;
  border-radius: 8px;
}

.text-container {
  flex: 1;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
header {
  background: #333333; /* Dark grey background */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background: #333333; /* Dark grey background */
}

/* Updated Logo Styles */
.logo-container {
  padding: 0;
  margin-right: 20px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 8px; /* Reduced space between logo and text */
}

.logo-container a {
  text-decoration: none;
  color: #ffffff;
  display: block;
}

.logo-image {
  height: 32px;
  width: auto;
  display: block;
  vertical-align: middle;
}

.logo-text {
  color: #ffffff;
  font-size: 28px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  letter-spacing: 1px;
  line-height: 32px; /* Match the logo height */
  display: inline-block;
  vertical-align: middle;
}

/* Hover effect for the entire logo */
.logo-container a:hover {
  opacity: 0.9;
}

.cockpit-plaque {
  background: #4a4a4a; /* Slightly lighter grey */
  border: 1px solid #111;
  border-radius: 2px; /* Less rounded corners */
  padding: 5px 16px;
  position: relative;
  /* Removed most shadows for flatter look */
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cockpit-plaque::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #4a4a4a; /* Slightly lighter grey */
  pointer-events: none;
}

.plaque-text {
  color: #eeeeee; /* Slightly less bright white */
  font-family: "Roboto Mono", monospace;
  font-size: 15px;
  font-weight: 400; /* Lighter weight */
  letter-spacing: 1.5px;
  text-shadow: none; /* Remove glow */
  position: relative;
  display: block;
  text-align: center;
  line-height: 1;
}

/* Simplified corner rivets */
.cockpit-plaque::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 2px;
  height: 2px;
  background: #444;
  border-radius: 50%;
  box-shadow: calc(100% - 4px) 0 0 #444, 0 calc(100% - 4px) 0 #444,
    calc(100% - 4px) calc(100% - 4px) 0 #444;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 10px;
}

nav ul li a {
  text-decoration: none;
  color: #ffffff; /* White text for better contrast */
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #ffde00; /* Yellow hover state to match split flap */
}

/* Updated Hero Section Styles */
#hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aircraft-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-aircraft {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This will make the image cover the entire container */
  object-position: center; /* Center the image */
}

/* Social Banner */
#social {
  background: #ffffff;
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.social-banner h2 {
  color: #2c3e50;
  font-size: 28px;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #2c3e50;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.social-card .label {
  font-weight: 600;
}

.social-card.instagram {
  color: #d62976;
}
.social-card.youtube {
  color: #ff0000;
}
.social-card.tiktok {
  color: #111;
}

@media (max-width: 768px) {
  #social {
    padding: 28px 0;
  }
  .social-banner h2 {
    font-size: 22px;
  }
  .social-card {
    padding: 10px 14px;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  margin: 0 20px;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 24px;
}

/* Sections */
section {
  padding: 80px 0;
}

/* Videos Section */
#videos {
  background: #f8f9fa;
  padding: 100px 0;
}

.video-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.video-container iframe {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  height: 85vh; /* Tall viewport height for vertical videos */
  aspect-ratio: 9 / 16; /* Maintain vertical (Shorts) ratio */
  width: auto; /* Let width derive from height via aspect ratio */
  max-width: 100%; /* Do not exceed container width */
}

.video-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: #666;
  font-size: 18px;
  line-height: 1.6;
}

/* Responsive video adjustments */
@media (max-width: 768px) {
  .video-container iframe {
    height: 75vh; /* Slightly smaller but still tall on mobile */
    aspect-ratio: 9 / 16;
    width: auto;
    max-width: 100%;
  }

  .video-description {
    font-size: 16px;
    padding: 0 20px;
  }
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
  color: #2c3e50;
}

/* Mission Stats */
.mission-stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stat h3 {
  font-size: 36px;
  color: #3498db;
}

/* Sponsorship Tiers */
.tiers {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.tier {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 280px;
  max-width: 350px;
}

.tier.featured {
  transform: scale(1.05);
  border: 2px solid #3498db;
}

.tier h3 {
  text-align: center;
  color: #2c3e50;
  font-size: 24px;
  margin-bottom: 20px;
}

.price {
  text-align: center;
  font-size: 36px;
  color: #3498db;
  margin-bottom: 20px;
}

.tier ul {
  list-style: none;
}

.tier ul li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.tier ul li:before {
  content: "✓";
  color: #3498db;
  position: absolute;
  left: 0;
}

/* Contact Form */
form {
  max-width: 600px;
  margin: 0 auto;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
}

form textarea {
  height: 150px;
}

button {
  background: #3498db;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

button:hover {
  background: #2980b9;
}

/* Footer */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 20px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 20px;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .content-row {
    flex-direction: column;
    gap: 1rem;
  }

  .image-container,
  .text-container {
    flex: 1 1 100%;
    width: 100%;
  }

  .about-image {
    max-width: 100%;
    margin-bottom: 1rem;
  }

  nav ul {
    display: none;
  }

  nav {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .logo-container {
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .logo-text {
    font-size: 24px;
    line-height: 28px; /* Match smaller logo height on mobile */
  }

  .logo-image {
    height: 28px;
  }

  .logo-wrapper {
    gap: 6px; /* Slightly reduced gap on mobile */
  }

  .cockpit-plaque {
    padding: 3px 12px;
  }

  .plaque-text {
    font-size: 14px;
  }
}

/* Current Sponsors */
#current-sponsors {
  background: #f8f9fa;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.sponsor {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.sponsor:hover {
  transform: translateY(-5px);
}

.sponsor img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  padding: 20px;
  background: white;
}

.sponsor-info {
  padding: 20px;
  text-align: center;
  border-top: 1px solid #eee;
}

.sponsor-info h3 {
  color: #2c3e50;
  font-size: 18px;
  margin-bottom: 5px;
}

.sponsor-info p {
  color: #3498db;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sponsors-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .sponsor img {
    height: 120px;
  }
}

.about-section {
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pilot-content,
.plane-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.pilot-image,
.plane-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .pilot-content,
  .plane-content {
    flex-direction: column;
    gap: 1rem;
  }

  .pilot-image,
  .plane-image {
    width: 100%;
    height: auto;
    max-width: 300px;
  }
}

/* Split Flap Display Styles */
.split-flap-display {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.split-flap-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  font-family: "Roboto Mono", monospace;
  padding: 20px;
}

.split-flap {
  width: 30px;
  height: 40px;
  background: #111;
  position: relative;
  perspective: 400px;
}

.split-flap-top,
.split-flap-bottom,
.split-flap-flip {
  width: 100%;
  height: 50%;
  position: absolute;
  left: 0;
  overflow: hidden;
  background: #222;
  border: 1px solid #000;
  box-sizing: border-box;
  color: #ffde00; /* Yellow text */
  font-size: 24px;
  text-align: center;
  line-height: 40px;
  text-shadow: 0 0 5px rgba(255, 222, 0, 0.5);
}

.split-flap-top {
  top: 0;
  border-radius: 4px 4px 0 0;
}

.split-flap-bottom {
  bottom: 0;
  border-radius: 0 0 4px 4px;
  line-height: 0;
}

.split-flap-flip {
  top: 0;
  transform-origin: bottom;
  transition: transform 0.1s;
  backface-visibility: hidden;
  border-radius: 4px 4px 0 0;
}

.split-flap.flipping .split-flap-flip {
  transform: rotateX(-180deg);
}

/* Add subtle inner shadow to create depth */
.split-flap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #000;
  z-index: 2;
}

/* Split Flap Navbar Styles */
.logo-container {
  padding: 0;
  margin-right: 20px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 8px; /* Reduced space between logo and text */
}

.logo-container a {
  text-decoration: none;
  color: #ffffff;
  display: block;
}

.navbar-split-flap {
  display: flex;
  gap: 1px;
  padding: 2px;
}

.flap-tile {
  width: 20px;
  height: 30px;
  background: #222;
  color: #ffde00;
  font-family: "Roboto Mono", monospace;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  line-height: 30px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  text-shadow: 0 0 3px rgba(255, 222, 0, 0.5);
  position: relative;
}

/* Split line in the middle of each tile */
.flap-tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #000;
  opacity: 0.5;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  nav {
    justify-content: center;
  }

  .logo-container {
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .flap-tile {
    width: 16px;
    height: 24px;
    font-size: 14px;
    line-height: 24px;
  }
}

/* Cockpit Button Styles - Updated */
.cockpit-controls {
  display: flex;
  list-style: none;
  gap: 2px; /* Reduced gap between buttons */
}

.cockpit-button {
  display: inline-block;
  width: 90px; /* Slightly smaller width */
  height: 40px;
  margin: 0 5px; /* Reduced margin from 10px to 5px */
  background: linear-gradient(to bottom, #444, #333);
  border: 2px solid #222;
  border-radius: 5px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 -1px 0 rgba(0, 0, 0, 0.2) inset, 0 2px 4px rgba(0, 0, 0, 0.3);
  color: #ddd;
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 40px;
  position: relative;
  transition: all 0.2s ease;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
}

/* Remove the button label that was above each button */
.cockpit-button::before {
  content: none; /* Remove the NAV 1, NAV 2, etc. labels */
}

/* Button indicator light - moved to top-right corner */
.cockpit-button::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #444;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5) inset;
}

/* Rest of the button styles remain the same */
.cockpit-button:hover {
  background: linear-gradient(to bottom, #555, #444);
  color: #fff;
}

.cockpit-button:active,
.cockpit-button.active {
  background: linear-gradient(to bottom, #222, #333);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) inset,
    0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(1px);
  color: #ffde00;
}

.cockpit-button:active::after,
.cockpit-button.active::after {
  background: #ffde00;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5) inset, 0 0 5px #ffde00,
    0 0 10px rgba(255, 222, 0, 0.5);
}

/* Remove the specific button labels */
.cockpit-controls li:nth-child(1) .cockpit-button::before,
.cockpit-controls li:nth-child(2) .cockpit-button::before,
.cockpit-controls li:nth-child(3) .cockpit-button::before,
.cockpit-controls li:nth-child(4) .cockpit-button::before {
  content: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cockpit-controls {
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
  }

  .cockpit-button {
    width: 75px;
    height: 35px;
    margin: 3px;
    font-size: 12px;
    line-height: 35px;
  }
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
}

/* Enhanced mobile responsiveness - simplified */
@media (max-width: 768px) {
  nav {
    justify-content: center;
    padding: 15px 20px;
  }

  .logo-container {
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Completely hide the cockpit controls on mobile */
  .cockpit-controls {
    display: none;
  }
}

/* Scrapbook Styles */
#about {
  padding: 100px 0 80px;
  background: #f5f5f5;
  position: relative;
  overflow: hidden;
}

.scrapbook-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  perspective: 1500px;
}

/* Scrapbook spine/seam */
.scrapbook-spine {
  width: 40px;
  background: #5d4037; /* Dark brown */
  position: relative;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.scrapbook-spine::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 10px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}

/* Scrapbook binding details */
.scrapbook-spine::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: 20px;
  background: repeating-linear-gradient(
    to bottom,
    #4e342e,
    #4e342e 15px,
    #3e2723 15px,
    #3e2723 30px
  );
}

/* Scrapbook page */
.scrapbook-page {
  flex: 1;
  background: #f0e6d2; /* Vintage paper color */
  padding: 40px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1), inset 0 0 30px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
  min-height: 500px;
  border-radius: 0 5px 5px 0;
}

/* Page texture */
.scrapbook-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("https://www.transparenttextures.com/patterns/paper.png");
  opacity: 0.4;
  z-index: -1;
}

/* Page content */
.page-content {
  position: relative;
}

/* Scrapbook heading */
.scrapbook-page h2 {
  font-family: "Playfair Display", serif;
  color: #5d4037;
  text-align: center;
  margin-bottom: 30px;
  font-size: 36px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
}

/* Decorative elements */
.scrapbook-page h2::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  background: #8d6e63;
  margin: 15px auto 0;
}

/* Split flap display within scrapbook */
.scrapbook-page .split-flap-display {
  background: transparent;
  box-shadow: none;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .scrapbook-spine {
    width: 20px;
  }

  .scrapbook-spine::after {
    left: 5px;
    width: 10px;
  }

  .scrapbook-page {
    padding: 20px;
  }
}

/* Container for knob and placard */
.nav-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Cockpit Knob Styles */
.cockpit-knob {
  width: 24px;
  height: 24px;
  background: #d6cdc1;
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.6),
    inset 0 -2px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  /* Update transform style for smooth rotation */
  transform: rotate(0deg);
  transform-origin: center center;
  will-change: transform;
  transition: background 0.2s ease;
}

/* Remove the rotating animation class since we're using scroll-based rotation */
.cockpit-knob.rotating {
  animation: none;
}

/* Knob ridges */
.knob-ridges {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
}

.knob-ridges::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(0, 0, 0, 0.1) 0deg,
    rgba(0, 0, 0, 0.1) 10deg,
    transparent 10deg,
    transparent 20deg
  );
  border-radius: 50%;
}

/* Center indicator */
.knob-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 8px;
  background: #333;
  transform: translate(-50%, -50%);
  border-radius: 1px;
}

/* Knob hover and active states */
.cockpit-knob:hover {
  background: #e0d6ca;
}

.cockpit-knob:active {
  background: #ccc3b7;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4),
    inset 0 -1px 2px rgba(255, 255, 255, 0.3);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .nav-container {
    gap: 8px;
  }

  .cockpit-knob {
    width: 20px;
    height: 20px;
  }

  .knob-indicator {
    height: 6px;
  }
}
