:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #34495e;
  --primary: #4361ee;
  --secondary: #3f37c9;
  --accent: #4895ef;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --success: #4cc9f0;
  --warning: #f72585;
  --text: #333333;
  --text-light: #6c757d;
  --primary-dark: #3a56d4;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --font-main: "Poppins", sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.05);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.6;
  background-color: var(--light);
  padding-top: 70px;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header/Navbar */
.main-header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  padding: 8px;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.navbar-brand i {
  color: var(--primary-color);
}

.main-nav .nav-link {
  color: var(--secondary-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--primary-color);
}

.auth-buttons .btn {
  margin-left: 0.5rem;
  padding: 0.4rem 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--primary);
}

.btn-outline-primary {
  border: 1px solid var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  min-height: 500px;
  background: linear-gradient(135deg, var(--primary), var(--accent)),
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("assets/images/hero-bg.jpg") no-repeat center center/cover;
  color: white;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
}

.hero h1 {
  margin-top: 50px;
  font-size: 3.5rem;
  font-weight: 700;
  /* margin-bottom: 1.5rem; */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Search Box */
/* .search-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  max-width: 1200px;
  margin: 40 auto;
  transform: translateY(50px);
} */

.search-box:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.search-tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--light);
}

.search-tabs button {
  padding: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  transition: var(--transition);
  border-radius: 4px 4px 0 0;
  margin-right: 5px;
  flex: 1;
}

.search-tabs button:hover {
  color: var(--primary);
  background: rgba(67, 97, 238, 0.1);
}

.search-tabs button.active {
  color: var(--primary);
  font-weight: 600;
  background: white;
}

.search-tabs button.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
  padding: 2rem;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  transition: var(--transition);
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

/* Sections */
/* .section {
  padding: 5rem 0;
  position: relative;
} */

.section-title {
  text-align: center;
  margin: 1rem;
}
.section-title > h3 {
  text-align: center;
  margin-top: 5rem;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.section-title p {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

/* Cards Grid */
.flights-grid,
.destinations-grid,
.testimonials-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Flight Card */
.flight-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.flight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.flight-header {
  padding: 1.5rem;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
}

.airline-logo {
  width: 40px;
  height: 40px;
  margin-right: 1rem;
  border-radius: 50%;
  object-fit: contain;
}

/* .flight-details {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
} */

.flight-details::before {
  position: absolute;
  top: 50%;
  left: 25%;
  right: 25%;
  height: 1px;
  background: var(--light-gray);
  z-index: 1;
}

.flight-time {
  font-size: 1.5rem;
  font-weight: 600;
}

.flight-airport {
  font-size: 0.9rem;
  color: var(--text-light);
}

.flight-duration {
  text-align: center;
  font-size: 0.9rem;
}

.flight-price {
  padding: 1.5rem;
  background: #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* Destination Card */
.destination-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 300px;
}

.destination-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.destination-image {
  height: 100%;
}

.destination-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.destination-card:hover .destination-image img {
  transform: scale(1.05);
}

.destination-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
}

.destination-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 4rem 0 2rem;
  /* margin-top: 4rem; */
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: var(--accent);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: unset;
    padding: 3rem 1rem;
    text-align: center;
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2rem;
    margin-top: 0;
  }

  .hero p {
    font-size: 1rem;
    margin-top: 1rem;
  }

  .search-tabs {
    flex-direction: column;
  }

  .search-tabs button {
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
  }

  .tab-content {
    padding: 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .flight-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .flight-details::before {
    display: none;
  }

  .flight-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .flights-grid,
  .destinations-grid,
  .testimonials-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .auth-buttons .btn {
    width: 100%;
    margin-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: 95%;
    padding: 0 10px;
  }
}
