:root {
  --base-bg: #001f3f;
  --primary: #ffffff;
  --accent: #ff851b;
  --card-bg: #003366;
  --secondary: #ff4136;
  --gradient-1: #0074d9;
  --gradient-2: #7fdbff;
  --gradient-3: #39cccc;
  --neumo-light: rgba(255, 255, 255, 0.05);
  --neumo-dark: rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(135deg, var(--base-bg), #001933);
  color: var(--primary);
  line-height: 1.6;
  min-height: 100vh;
  background-image: url("./resources/images/3796059_9442.jpg");
  background: cover no-repeat;
}

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

/* Header Styles */
header {
  background: rgba(0, 31, 63, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  margin: 0 0 25px 0;
  z-index: 100;
  padding: 1rem 0;
  border-bottom: 1px solid var(--accent);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.logo img {
  width: 40px;
  height: auto;
  border-radius: 50%;
}

.logo:hover {
  transform: scale(1.05);
}

.toll-free {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: 9999px;
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.toll-free::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 133, 27, 0.2),
    transparent
  );
  transition: 0.5s;
}

.toll-free:hover::before {
  left: 100%;
}

.toll-free:hover {
  background-color: var(--accent);
  color: var(--base-bg);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 133, 27, 0.3);
}

/* Main Content Styles */
main {
  padding: 2rem 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background: linear-gradient(145deg, var(--card-bg), #00264d);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 8px 8px 16px var(--neumo-dark), -8px -8px 16px var(--neumo-light);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 133, 27, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(255, 133, 27, 0.2), 12px 12px 20px var(--neumo-dark),
    -12px -12px 20px var(--neumo-light);
}

.hero {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--card-bg), #00264d);
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.service-item:hover {
  background: rgba(255, 133, 27, 0.1);
  transform: translateX(10px);
}

.service-icon {
  color: var(--accent);
  font-size: 1.5rem;
}

/* Wait Time Section */
.wait-time {
  text-align: center;
  background: linear-gradient(145deg, #00264d, #001f3f);
}

.wait-time h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.timer {
  font-size: 2rem;
  font-weight: bold;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.call-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, var(--accent), #ffb347);
  border: none;
  border-radius: 9999px;
  color: var(--base-bg);
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  box-shadow: 0 0 20px rgba(255, 133, 27, 0.3);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(255, 133, 27, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 133, 27, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(255, 133, 27, 0.3);
  }
}

.call-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 133, 27, 0.5);
  animation: none;
}

/* Airlines Grid */
.airlines h2 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.airlines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.airline-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.airline-item:hover {
  transform: translateX(10px);
  background: rgba(255, 133, 27, 0.1);
}

.airline-number {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--accent), #ffb347);
  color: var(--base-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* CTA Bar */
.cta-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--accent); /* Use the orange color */
  color: var(--base-bg); /* Use the dark blue for text */
  padding: 1rem;
  text-align: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  animation: gradientBG 15s ease infinite;
  background-size: 400% 400%;
  z-index: 2001; /* Higher than the popup's z-index */
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.cta-bar h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: bold;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0 2rem;
  background: linear-gradient( rgba(0, 31, 63, 0.95), transparent);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary);
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999; /* Lower than the sticky CTA */
  animation: overlayFadeIn 0.5s forwards;
}

/* Popup Container */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 2000; /* Higher than the overlay but lower than the sticky CTA */
  overflow: hidden;
  animation: popupIn 0.5s forwards;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var (--card-bg); /* Accent color */
  z-index: 2100;
}

.popup-content {
  padding: 2rem;
  margin: 50px 0px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
}

.popup-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent);
  /* font-weight: bold;/ */
}

/* .popup-phone-number {
    font-size: 1.5rem; 
    color: var(--primary);
    font-weight: bold;
    margin: 0.5rem 0;
} */

.popup-phone-number {
  display: flex; /* Use flexbox to align items in a single line */
  align-items: center; /* Vertically center the icon and text */
  gap: 8px; /* Add space between the icon and text */
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--card-bg); /* Accent color */
  border: 1px solid var(--card-bg);
  border-radius: 12px;
  margin: 0.5rem 0 1rem;
  padding: 0.5rem 1rem;
  animation: pulsePhone 2s infinite;
}

.popup-text,
.popup-action-text {
  margin: 0.75rem 0;
  color: var(--card-bg);
  opacity: 0.8;
}

.popup-click-to-call {
  font-size: 2rem;
  font-weight: 600;
  /* display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem; */
}

.first-popup-action-text {
  font-size: 2.5rem; /* Adjusted for smaller screens */
  color: var(--accent);
  font-weight: bold;
}

.popup-call-circle {
  margin: 1rem auto;
  width: 100px;
  height: 100px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.popup-call-circle:hover {
  transform: scale(1.1);
}

.popup-call-circle svg {
  width: 50px; /* Adjusted for smaller screens */
  height: 50px; /* Adjusted for smaller screens */
}

.popup-action-text {
    font-size: 2.5rem; /* Adjusted for smaller screens */
    color: var(--accent);
    font-weight: bold;
}

/* Hide popup on larger screens */
@media (min-width: 769px) {
  .popup,
  .popup-overlay {
    display: none;
  }
}

/* Media Query for Smaller Screens (Phones) */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.5rem;
  }
}
