.nice {
  font-family: Georgia, "Times New Roman", Times, serif;
  background-image: url("images/package6.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 100vh;
  scroll-behavior: smooth;
  background-attachment: fixed;
  color: white;
}

html {
  scroll-behavior: smooth;
}

/* --- NAVBAR CENTERING & RESPONSIVENESS --- */
.navbar {
  position: fixed;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  /* Ensure the navbar itself is centered contents */
  display: flex;
  justify-content: center;
}

.navbar-collapse {
  justify-content: center; /* Centers the navigation menu container */
  text-align: center;
}

.options {
  margin: auto;
  width: 100%;
}

.navbar-nav {
  margin: 0 auto !important; /* Overrides Bootstrap's default left alignment */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.nav-item {
  padding: 0 25px; /* Default spacing for standard desktops */
}

.navbar-brand {
  width: 15%;
  /* Optional: if you have a logo, you might want to center it or keep it left */
}

/* --- HEADINGS --- */
#sea {
  padding-top: 100px;
  text-align: center !important;
}

h1 {
  position: relative;
  margin: auto;
  text-align: center;
  padding: 20px;
  font-size: 2.5rem;
}

h3 {
  text-align: center !important;
  margin: 0 auto !important;
  margin-bottom: 50px !important;
  margin-top: -60px !important;
  width: 100%;
  font-size: 1.75rem;
  padding-bottom: 10px;
}

p {
  text-align: center;
  margin-bottom: 0;
}

/* --- CARD DECK LAYOUT --- */
.card-deck {
  width: 85%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#search {
  margin-left: 0;
}

.card {
  border: none;
  z-index: 0;
  background-color: inherit;
  margin: 10px 30px !important;
  transition: 0.3s;
  flex: 0 1 300px;
}

.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

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

.card-text, .card-title, .card-body {
  margin: auto;
  padding: 0;
  text-align: center;
  margin-top: 15px; 
}

.btn {
  margin: 20px auto; 
  display: block;    
  border-color: white;
  color: white;
  text-align: center;
}

.logo {
  width: 80%;
  margin: auto;
}

.toph {
  top: 100px;
}

.topc {
  margin-top: 100px;
  margin: auto;
}

footer {
  background-color: #f8f9fa;
}

.head {
  position: absolute;
  margin-left: 40%;
  margin-right: 40%;
}

.container {
  overflow: hidden;
}

.card img:hover {
  background-image: none;
}

.f {
  color: grey;
}

/* --- HIGH RESOLUTION SCREENS (1920px+) --- */
@media only screen and (min-width: 1920px) {
  .card-deck {
    width: 70%;
    max-width: 1800px;
  }
  .card {
    margin: 20px 40px !important;
  }
  .nav-item {
    padding: 0 40px; /* More spacing for menu on huge screens */
    font-size: 1.2rem;
  }
}

/* --- TABLET / IPAD SUPPORT (601px - 1200px) --- */
/* Covers Portrait and Landscape modes for most tablets */
@media only screen and (min-width: 601px) and (max-width: 1200px) {
  .card-deck {
    width: 95%;
  }
  
  .card {
    margin: 10px 15px !important;
  }

  /* Tighter menu spacing so it doesn't wrap on iPad */
  .nav-item {
    padding: 0 10px; 
    font-size: 0.95rem;
  }
}

/* --- MOBILE SUPPORT (Max 600px) --- */
@media only screen and (max-width: 600px) {
  .nice {
    background: linear-gradient(to bottom, #001f3f, #87ceeb);
    color: white;
    position: relative;
    width: 100%;
    background-attachment: scroll;
  }
  
  .body {
    background-image: url("images/package6.jpg");
  }

  .containertwo {
    background-image: url("images/package.jpg");
    margin-top: 150px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  p {
    width: 200px;
    font-size: 0.9rem;
    margin: auto;
  }

  .cards {
    width: 100%;
    margin: auto;
  }

  .text {
    width: 250px;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .cards:hover {
    width: 90%;
  }

  .card-group {
    width: 80%;
  }

  .card-deck {
    width: 100%;
    padding: 0;
  }

  .ex {
    width: inherit;
  }

  body {
    margin-right: 0;
  }

  .logos {
    margin-left: 30%;
    margin-right: 30%;
    width: 60%;
  }

  .card-img-top {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: auto;
  }

  .card {
    margin: 20px auto !important;
    width: 90%;
    flex: 0 1 90%;
  }

  /* On mobile, stack nav items vertically and center */
  .navbar-nav {
    flex-direction: column;
  }
  .nav-item {
    padding: 10px 0;
  }
}