@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');

/* Page Load Fade In */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  font-family: 'Cormorant Garamond', serif;
  color: #111;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
  animation: pageFadeIn 0.6s ease-in-out;
}

/* NAVBAR */
.navbar {
  color: white;
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  transition: background-color 0.4s ease, box-shadow 0.3s ease;
  background-color: transparent;
  z-index: 1000;
}

.navbar.scrolled {
  background-color: #0d0d0d;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.navbar-content {
    display: grid;
    grid-template-columns: auto 1fr auto; /* logo | nav | icons */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    transform: translateX(-25px); /* ← Adjust this value */

}

  .nav-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
  }

.logo img {
  height: 85px;
}

.nav-links {
    display: flex;
    justify-content: center;
    flex: 1;
    list-style: none;
    gap: 2rem;
}
  

.nav-links a {
  position: relative;
  color: white;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 8px;
  text-align: center;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.4);
  transform: scaleX(0);
  opacity: 0.75;
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:not(.active):hover {
  opacity: 0.75;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  background-color: white;
}

.nav-links a.active {
  font-weight: 700;
}

.nav-links a.active:hover {
  opacity: 0.75;
}

.nav-icons a {
  color: white;
  margin-left: 1.2rem;
  font-size: 1.3rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-icons a:hover {
  opacity: 0.75;
}


.typewriter-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 26vh;
    font-family: 'Cormorant Garamond', serif;
  }

  .typewriter-line1 {
    font-weight: 500;
    font-size: 5rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    margin: 0 auto;
    border-right: 2px solid white;
    animation: blink-caret 0.75s step-end infinite;
  }

  .typewriter-line2 {
    font-size: 1.35rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 0.7rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1.3s ease, transform 1.3s ease;
  }

  .typewriter-line2.show {
    opacity: 1;
    transform: translateY(0);
  }

  /* Hero CTA button */
  .hero-cta {
    display: inline-block;
    margin-top: 2.4rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    padding: 0.6rem 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 1s ease, transform 1s ease, visibility 0s linear 0s,
                background-color 0.3s ease, color 0.3s ease,
                border-color 0.3s ease;
  }

  .hero-cta.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero-cta:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.85);
  }

  @keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: white; }
  }

  /* CTA section — pre-reserved, stable layout */
  .cta-title {
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.9s ease, transform 0.9s ease, visibility 0s linear 0s;
  }

  .cta-title.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .cta-sub {
    color: white;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 1s ease, transform 1s ease, visibility 0s linear 0s;
  }

  .cta-sub.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  

/* Contact Layout */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 3rem;
  gap: 2rem;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.contact-info p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.contact-info .social-icons {
  margin-top: 1.5rem;
}

.contact-info .social-icons a {
  margin-right: 1rem;
  font-size: 1.5rem;
  color: #111;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.contact-info .social-icons a:hover {
  opacity: 0.7;
}

form {
  flex: 2;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
}

form label {
  font-weight: 500;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: #111;
}

form input,
form select,
form textarea {
  padding: 1rem 1.2rem;
  border: 1px solid #d0d0d0;
  border-radius: 0;
  width: 100%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  box-sizing: border-box;
  background-color: #ffffff;
  color: #111;
  transition: border-color 0.3s ease;
}

form textarea {
  resize: vertical;
  min-height: 120px;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: #111;
  outline: none;
}

.name-fields {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.name-fields .form-group {
  flex: 1;
  min-width: 200px;
}

form button {
  background-color: transparent;
  color: #111;
  padding: 0.9rem 2.5rem;
  border: 1.5px solid #111;
  border-radius: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  align-self: start;
  transition: background-color 0.3s ease, color 0.3s ease;
}

form button:hover {
  background-color: #111;
  color: white;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-info {
    padding-right: 0;
    margin-bottom: 2rem;
  }
}

.contact-email {
  color: #111;
  text-decoration: none;
  transition: opacity 0.3s ease, text-decoration 0.3s ease;
}

.contact-email:hover {
  text-decoration: underline;
  opacity: 0.7;
}

.field-note {
  display: block;
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.aircraft-service-fields,
.email-phone-fields {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.aircraft-service-fields .form-group,
.email-phone-fields .form-group {
  flex: 1;
  min-width: 200px;
}

.contact-button {
  background-color: transparent;
  color: #111;
  border: 2px solid #111;
  padding: 0.75rem 2rem;
  font-size: 1.15rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.2s ease;
  border-radius: 0;
  letter-spacing: 0.3px;
}

.contact-button:hover {
  background-color: #111;
  color: #e6e6e6;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

a i {
  text-decoration: none;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

.contact-footer {
  background-color: #111111;
  color: white;
  padding: 2rem;
  position: relative;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  position: relative;
}

.footer-title {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-align: left;
}

.footer-contact p {
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0.3rem 0;
  text-align: left;
  max-width: none;
}

.footer-contact a {
  color: white;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.footer-address p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  margin: 0.2rem 0;
  color: white;
  text-align: left;
  max-width: none;
}

.footer-logo {
  height: 150px;
  opacity: 0.1;
  position: absolute;
  right: 5rem;
  bottom: 1.7rem;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 0.4;
}

.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Video Section for Transparent Navbar */
.video-header {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.48);
  z-index: 2;
}

.hero-text {
  position: relative;
  z-index: 3;
  color: white;
  text-align: center;
  padding-top: 30vh;
  font-family: 'Cormorant Garamond', serif;
}

/* ===== MOBILE RESPONSIVE ===== */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.nav-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    padding: 0.9rem 0;
  }

  .hamburger {
    display: flex;
  }

  .navbar-content {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    transform: none !important;
    grid-template-columns: unset !important;
    padding: 0 1.25rem;
  }

  .logo img {
    height: 52px;
  }

  /* Mobile menu — opacity/visibility transition instead of display toggle */
  .nav-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(6, 6, 6, 0.98);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }

  .nav-right.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column !important;
    align-items: center;
    gap: 0 !important;
    margin-top: 0 !important;
  }

  /* Menu items — spaced with padding, not gap */
  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links a {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 4px;
    padding: 1.4rem 2rem;
    width: 100%;
    opacity: 0.85;
  }

  .nav-links a.active,
  .nav-links a:hover {
    opacity: 1;
  }

  /* Hide underline effect inside mobile menu */
  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 2.5rem;
  }

  .nav-icons {
    display: none;
  }

  /* Hero */
  .typewriter-lines {
    padding: 32vh 1.5rem 0;
  }

  .typewriter-line1 {
    font-size: 2.2rem !important;
    white-space: normal !important;
    text-align: center;
    border-right: none !important;
    animation: none !important;
    overflow: visible !important;
  }

  .typewriter-line2 {
    font-size: 1.05rem !important;
    padding: 0 1.2rem;
    text-align: center;
    margin-top: 0.6rem !important;
  }

  .hero-cta {
    font-size: 0.85rem;
    padding: 0.55rem 1.8rem;
    margin-top: 2rem;
  }

  /* Footer */
  .footer-logo {
    display: none;
  }

  .footer-title {
    font-size: 1.4rem;
  }

  .footer-contact p {
    font-size: 1rem;
  }

  /* Form */
  .name-fields,
  .aircraft-service-fields,
  .email-phone-fields {
    flex-direction: column;
    gap: 0;
  }

  .contact-container {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .typewriter-line1 {
    font-size: 1.8rem !important;
  }
}
