
:root {
  --wanderwise-primary: hsl(200, 100%, 40%);
  --wanderwise-secondary: hsl(280, 70%, 50%);
  --ocean-blue: hsl(210, 85%, 55%);
  --sunset-orange: hsl(25, 95%, 60%);
  --forest-green: hsl(140, 70%, 45%);
  --mountain-gray: hsl(220, 15%, 25%);
  --snow-white: hsl(0, 0%, 100%);
  --charcoal: hsl(0, 0%, 15%);
  --silver-mist: hsl(0, 0%, 85%);
  --warm-sand: hsl(45, 30%, 90%);
  --united-nations-blue: var(--ocean-blue);
  --bright-navy-blue: var(--wanderwise-primary);
  --spanish-gray: hsl(0, 0%, 60%);
  --black-coral: var(--mountain-gray);
  --oxford-blue: var(--charcoal);
  --yale-blue: hsl(214, 72%, 33%);
  --blue-ncs: hsl(197, 100%, 36%);
  --gunmetal: hsl(206, 34%, 20%);
  --gainsboro: var(--silver-mist);
  --cultured: var(--warm-sand);
  --white: var(--snow-white);
  --black: var(--charcoal);
  --onyx: hsl(0, 0%, 25%);
  --jet: hsl(0, 0%, 20%);
  --ff-poppins: "Poppins", sans-serif;
  --ff-montserrat: "Montserrat", sans-serif;
  --fs-1: calc(20px + 3.5vw);
  --fs-2: calc(18px + 1.6vw);
  --fs-3: calc(16px + 0.45vw);
  --fs-4: 15px;
  --fs-5: 14px;
  --fs-6: 13px;
  --fs-7: 12px;
  --fs-8: 11px;
  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;
  --fw-800: 800;
  --transition: 0.25s ease-in-out;
  --section-padding: 60px;
  --radius-15: 15px;
  --radius-25: 25px;
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
li {
  list-style: none;
}
a {
  text-decoration: none;
}
a,
img,
span,
input,
label,
button,
ion-icon {
  display: block;
}
input,
button {
  background: none;
  border: none;
  font: inherit;
}
button {
  cursor: pointer;
}
input {
  width: 100%;
}
ion-icon {
  pointer-events: none;
}
html {
  font-family: var(--ff-poppins);
  scroll-behavior: smooth;
}
body {
  background: var(--white);
  opacity: 1;
  transition: opacity 0.7s ease-in-out;
}
body.fade {
  opacity: 0;
}
body.page-loaded {
  opacity: 1;
}
.container {
  padding-inline: 15px;
}
.btn {
  color: var(--white);
  text-transform: uppercase;
  font-size: var(--fs-5);
  border-radius: 100px;
  padding: var(--padding, 8px 18px);
  border: var(--border-width, 2px) solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--wanderwise-primary),
    var(--ocean-blue)
  );
  border-color: var(--wanderwise-primary);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s;
}
.btn-primary:hover::before {
  left: 100%;
}
.btn-primary:is(:hover, :focus) {
  background: linear-gradient(
    135deg,
    var(--ocean-blue),
    var(--wanderwise-secondary)
  );
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.btn-secondary {
  border-color: var(--white);
}
.btn-secondary:is(:hover, :focus) {
  background: hsla(0, 0%, 100%, 0.1);
}
.h1,
.h2,
.h3 {
  font-weight: var(--fw-800);
  font-family: var(--ff-montserrat);
  text-transform: uppercase;
}
.h1 {
  color: var(--white);
  font-size: var(--fs-1);
}
.h2,
.h3 {
  color: var(--gunmetal);
}
.h2 {
  font-size: var(--fs-2);
}
.h3 {
  font-size: var(--fs-3);
  font-weight: var(--fw-700);
}
.section-subtitle {
  color: var(--bright-navy-blue);
  font-size: var(--fs-5);
  text-transform: uppercase;
  font-family: var(--ff-montserrat);
  margin-bottom: 8px;
}
.section-title {
  margin-bottom: 15px;
}
.section-text {
  color: var(--black-coral);
  margin-bottom: 30px;
}
.card-text {
  color: var(--black-coral);
  font-size: var(--fs-5);
}
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 61px;
  z-index: 4;
}
.header-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: var(--transition);
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.1);
  padding-block: 15px;
  z-index: 1;
}
.header.active .header-top {
  position: fixed;
  background: var(--gunmetal);
}
.header-top .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: flex-start;
  align-items: center;
}
.helpline-box .wrapper {
  display: none;
}
.helpline-box .icon-box {
  background: var(--bright-navy-blue);
  padding: 6px;
  border-radius: 50%;
  color: var(--white);
}
.helpline-box .icon-box ion-icon {
  --ionicon-stroke-width: 40px;
}
.header-top .logo {
  margin-inline: auto;
}
.header-top .logo img {
  max-width: 100px;
}
.header-btn-group {
  justify-self: flex-end;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.search-btn,
.nav-open-btn {
  font-size: 30px;
  color: inherit;
}
.search-btn {
  font-size: 20px;
}
.header-bottom {
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.1);
}
.header-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 15px;
}
.social-list {
  display: flex;
  align-items: center;
  gap: 5px;
}
.social-link {
  color: var(--white);
  padding: 8px;
  border: 1px solid hsla(0, 0%, 100%, 0.3);
  border-radius: 50%;
  font-size: 15px;
  transition: var(--transition);
}
.social-link:is(:hover, :focus) {
  background: hsla(0, 0%, 100%, 0.2);
}
.header .btn {
  --padding: 4px 20px;
}
.header .navbar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 100%;
  max-width: 300px;
  height: 100%;
  background: var(--white);
  visibility: hidden;
  pointer-events: none;
  transition: 0.15s ease-in;
  z-index: 3;
}
.navbar.active {
  right: 0;
  visibility: visible;
  pointer-events: all;
  transition: 0.25s ease-out;
}
.navbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 15px;
}
.navbar-top .logo img {
  width: 150px;
}
.nav-close-btn {
  font-size: 20px;
  color: var(--bright-navy-blue);
}
.nav-close-btn ion-icon {
  --ionicon-stroke-width: 80px;
}
.navbar-list {
  border-top: 1px solid hsla(0, 0%, 0%, 0.1);
}
.navbar-list li {
  border-bottom: 1px solid hsla(0, 0%, 0%, 0.1);
}
.navbar-link {
  padding: 15px 20px;
  color: var(--jet);
  font-weight: var(--fw-500);
  font-size: var(--fs-4);
  transition: var(--transition);
  text-transform: capitalize;
}
.navbar-link:is(:hover, :focus) {
  color: var(--bright-navy-blue);
}
.overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: var(--transition);
}
.overlay.active {
  opacity: 0.7;
  pointer-events: all;
}
.hero {
  background-image: linear-gradient(
      135deg,
      rgba(32, 178, 255, 0.8),
      rgba(142, 45, 226, 0.6)
    ),
    url("../images/hero-banner.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: grid;
  place-items: center;
  min-height: 700px;
  text-align: center;
  padding-top: 125px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--white));
}
.hero-title {
  margin-bottom: 20px;
}
.hero-text {
  color: var(--white);
  font-size: var(--fs-5);
  margin-bottom: 40px;
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.tour-search {
  background: var(--bright-navy-blue);
  padding-block: var(--section-padding);
}
.tour-search-form .input-label {
  color: var(--white);
  font-size: var(--fs-4);
  margin-left: 20px;
  margin-bottom: 10px;
}
.tour-search-form .input-field {
  background: var(--white);
  padding: 10px 15px;
  font-size: var(--fs-5);
  border-radius: 50px;
}
.tour-search-form .input-field::placeholder {
  color: var(--spanish-gray);
}
.tour-search-form .input-field::-webkit-datetime-edit {
  color: var(--spanish-gray);
  text-transform: uppercase;
}
.tour-search-form .input-wrapper {
  margin-bottom: 15px;
}
.tour-search .btn {
  width: 100%;
  --border-width: 1px;
  font-weight: var(--fw-600);
  margin-top: 35px;
}
.popular {
  padding-block: var(--section-padding);
}
.popular-list,
.popular-list > li:not(:last-child) {
  margin-bottom: 30px;
}
.popular-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-25);
  height: 430px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.popular-card .card-img {
  height: 100%;
}
.popular-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.popular-card .card-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--white);
  border-radius: var(--radius-25);
  padding: 20px;
}
.popular-card .card-rating {
  background: var(--bright-navy-blue);
  color: var(--white);
  position: absolute;
  top: 0;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 1px;
  transform: translateY(-50%);
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 14px;
}
.popular-card .card-subtitle {
  color: var(--blue-ncs);
  font-size: var(--fs-6);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.popular-card .card-title {
  margin-bottom: 5px;
}
.popular-card :is(.card-subtitle, .card-title) > a {
  color: inherit;
}
.popular .btn {
  margin-inline: auto;
}
.package {
  padding-block: var(--section-padding);
}
.package-list {
  margin-bottom: 40px;
}
.package-list > li:not(:last-child) {
  margin-bottom: 30px;
}
.package-card {
  background: var(--cultured);
  overflow: hidden;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
.package-card .card-banner {
  height: 250px;
}
.package-card .card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.package-card .card-content {
  padding: 30px 20px;
}
.package-card .card-title {
  margin-bottom: 15px;
}
.package-card .card-text {
  line-height: 1.6;
  margin-bottom: 20px;
}
.card-meta-list {
  background: var(--white);
  max-width: max-content;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 8px;
  box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.15);
  border-radius: 50px;
}
.card-meta-item {
  position: relative;
}
.card-meta-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 4px;
  right: -1px;
  bottom: 4px;
  width: 1px;
  background: hsla(0, 0%, 0%, 0.3);
}
.meta-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding-inline: 9px;
  color: var(--black-coral);
  font-size: var(--fs-8);
}
.meta-box > ion-icon {
  color: var(--bright-navy-blue);
  font-size: 13px;
}
.package-card .card-price {
  background: var(--united-nations-blue);
  color: var(--white);
  padding: 25px 20px;
  text-align: center;
}
.package-card .card-price .wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px 15px;
  margin-bottom: 10px;
}
.package-card .card-price .reviews {
  font-size: var(--fs-5);
}
.package-card .card-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1px;
  font-size: 14px;
}
.package-card .card-rating ion-icon:last-child {
  color: hsl(0, 0%, 80%);
}
.package-card .price {
  font-size: var(--fs-2);
  font-family: var(--ff-montserrat);
  font-weight: var(--fw-800);
  margin-bottom: 20px;
}
.package-card .price span {
  font-size: var(--fs-7);
  font-weight: initial;
}
.package .btn {
  margin-inline: auto;
}
.gallery {
  padding-block: var(--section-padding);
}
.gallery-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gallery-image {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-15);
  overflow: hidden;
}
.gallery-item:nth-child(3) {
  grid-area: 1 / 2 / 3 / 3;
}
.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta {
  background: var(--bright-navy-blue);
  padding-block: var(--section-padding);
}
.cta :is(.section-subtitle, .section-title, .section-text) {
  color: var(--white);
}
.cta .section-text {
  font-size: var(--fs-5);
}
.footer-top {
  background: var(--gunmetal);
  padding-block: var(--section-padding);
  color: var(--gainsboro);
}
.footer-brand {
  margin-bottom: 30px;
}
.footer-brand img {
  width: 180px;
}
.footer-brand .logo {
  margin-bottom: 20px;
}
.footer-text {
  font-size: var(--fs-5);
  line-height: 1.7;
}
.footer-contact {
  margin-bottom: 30px;
}
.contact-title {
  position: relative;
  font-family: var(--ff-montserrat);
  font-weight: var(--fw-500);
  margin-bottom: 30px;
}
.contact-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--bright-navy-blue);
}
.contact-text {
  font-size: var(--fs-5);
  margin-bottom: 15px;
  max-width: 200px;
}
.contact-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.contact-item ion-icon {
  --ionicon-stroke-width: 40px;
}
.contact-link,
address {
  font-style: normal;
  color: var(--gainsboro);
  font-size: var(--fs-5);
}
.contact-link:is(:hover, :focus) {
  color: var(--white);
}
.form-text {
  font-size: var(--fs-5);
  margin-bottom: 20px;
}
.footer-form .input-field {
  background: var(--white);
  font-size: var(--fs-5);
  padding: 15px 20px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.footer-form .btn {
  width: 100%;
}
.footer-bottom {
  --gunmetal: hsl(205, 36%, 17%);
  background: var(--gunmetal);
  padding-block: 20px;
  text-align: center;
}
.copyright {
  color: var(--gainsboro);
  font-size: var(--fs-5);
  margin-bottom: 10px;
}
.copyright a {
  color: inherit;
  display: inline-block;
}
.copyright a:is(:hover, :focus) {
  color: var(--white);
}
.footer-bottom-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 21px;
}
.footer-bottom-list > li {
  position: relative;
}
.footer-bottom-list > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 3px;
  right: -10px;
  bottom: 3px;
  width: 1px;
  background: hsla(0, 0%, 100%, 0.2);
}
.footer-bottom-link {
  color: var(--gainsboro);
  font-size: var(--fs-7);
  transition: var(--transition);
}
.footer-bottom-link:is(:hover, :focus) {
  color: var(--white);
}
.go-top {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  background: var(--bright-navy-blue);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 18px;
  border-radius: 6px;
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.5);
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  transition: var(--transition);
}
.go-top.active {
  opacity: 0.8;
  transform: translateY(0);
  visibility: visible;
}
.go-top:is(:hover, :focus) {
  opacity: 1;
}
@media (min-width: 580px) {
  .container {
    max-width: 580px;
    margin-inline: auto;
  }
  .btn {
    --fs-5: 16px;
    --padding: 12px 30px;
  }
  section:not(.cta) :is(.section-subtitle, .section-title, .section-text) {
    text-align: center;
  }
  .section-text {
    margin-bottom: 40px;
  }
  .card-text {
    --fs-5: 15px;
  }
  .header {
    padding-top: 83px;
  }
  .helpline-box .icon-box {
    padding: 14px;
  }
  .header-top .logo img {
    max-width: unset;
  }
  .search-btn {
    font-size: 30px;
  }
  .nav-open-btn {
    font-size: 40px;
  }
  .header .btn {
    --fs-5: 14px;
    --padding: 6px 20px;
  }
  .hero {
    min-height: 800px;
    padding-top: 85px;
  }
  .hero-text {
    --fs-5: 15px;
  }
  .btn-group {
    gap: 20px;
  }
  .tour-search-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-end;
    gap: 15px;
  }
  .tour-search-form .input-wrapper {
    margin-bottom: 0;
  }
  .tour-search-form .input-field {
    padding: 16px 20px;
  }
  .tour-search .btn {
    grid-column: span 2;
    margin-top: 20px;
  }
  .popular-card .card-content {
    right: auto;
  }
  .footer .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-form {
    grid-column: span 2;
  }
  .footer-bottom {
    text-align: left;
  }
  .copyright {
    margin-bottom: 0;
  }
  .footer-bottom-list {
    justify-content: flex-end;
  }
}
@media (min-width: 768px) {
  :root {
    --fs-5: 15px;
  }
  .container {
    max-width: 800px;
  }
  .section-text {
    max-width: 60ch;
    margin-inline: auto;
  }
  .helpline-box {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
  }
  .helpline-box .wrapper {
    display: block;
    color: var(--white);
    font-size: var(--fs-6);
  }
  .social-list {
    gap: 10px;
  }
  .popular-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
  }
  .popular-list > li:not(:last-child) {
    margin-bottom: 0;
  }
  .popular-card .card-content {
    right: 20px;
  }
  .package-list {
    margin-bottom: 50px;
  }
  .package-list > li:not(:last-child) {
    margin-bottom: 40px;
  }
  .package-card {
    display: grid;
    grid-template-columns: 1.3fr 1.5fr 1fr;
  }
  .package-card .card-banner {
    height: 100%;
  }
  .package-card .card-content {
    padding: 40px;
  }
  .package-card .card-price {
    display: grid;
    place-content: center;
  }
  .package-card .card-price .wrapper {
    margin-bottom: 15px;
  }
  .gallery {
    padding-bottom: calc(var(--section-padding * 2));
  }
  .gallery-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .gallery-image {
    border-radius: var(--radius-25);
  }
  .cta .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .cta-content {
    width: calc(100% - 225px);
  }
  .cta .section-text {
    margin-inline: 0;
  }
  .form-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
  }
  .footer-form .input-field {
    margin-bottom: 0;
  }
  .footer-form .btn {
    width: max-content;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 1050px;
  }
  .header.active .header-top {
    position: unset;
    background: unset;
  }
  .nav-open-btn,
  .navbar-top {
    display: none;
  }
  .header-bottom {
    border-bottom: none;
  }
  .header.active .header-bottom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    color: var(--onyx);
    box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.08);
    transition: var(--transition);
  }
  .header-bottom .container {
    padding-block: 0;
  }
  .header .navbar {
    all: unset;
  }
  .navbar-list {
    border-top: none;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .navbar-list li {
    border-bottom: none;
  }
  .navbar-link {
    color: var(--white);
    --fs-4: 16px;
    font-weight: unset;
    text-transform: uppercase;
    padding: 20px 15px;
  }
  .header.active .navbar-link {
    color: var(--onyx);
  }
  .header.active .navbar-link:is(:hover, :focus) {
    color: var(--bright-navy-blue);
  }
  .header.active .social-link {
    color: var(--onyx);
    border-color: hsla(0, 0%, 0%, 0.15);
  }
  .overlay {
    display: none;
  }
  .hero .container {
    max-width: 740px;
  }
  .tour-search-form {
    grid-template-columns: repeat(5, 1fr);
  }
  .tour-search .btn {
    --padding: 15px;
    grid-column: unset;
    margin-top: 0;
  }
  .popular-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .meta-box {
    --fs-8: 13px;
  }
  .meta-box > ion-icon {
    font-size: 15px;
  }
  .cta .section-title {
    max-width: 25ch;
  }
  .footer-top .container {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
  }
  .footer-form {
    grid-column: unset;
  }
  .form-wrapper {
    flex-direction: column;
  }
  .footer-form .btn {
    width: 100%;
  }
}
@media (min-width: 1200px) {
  :root {
    --section-padding: 100px;
  }
  .container {
    max-width: 1180px;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes textGlow {
  0%,
  100% {
    text-shadow: 0 0 5px var(--united-nations-blue);
  }
  50% {
    text-shadow: 0 0 20px var(--united-nations-blue),
      0 0 30px var(--bright-navy-blue);
  }
}
@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes blink {
  50% {
    border-color: transparent;
  }
}
@keyframes pageLoadFade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes sectionSlideIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-text {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}
.animate-text.delay-1 {
  animation-delay: 0.2s;
}
.animate-text.delay-2 {
  animation-delay: 0.4s;
}
.animate-text.delay-3 {
  animation-delay: 0.6s;
}
.animate-text.delay-4 {
  animation-delay: 0.8s;
}
.animate-slide-left {
  opacity: 0;
  animation: fadeInLeft 0.8s ease-out forwards;
}
.animate-slide-right {
  opacity: 0;
  animation: fadeInRight 0.8s ease-out forwards;
}
.animate-from-top {
  opacity: 0;
  animation: slideInFromTop 0.8s ease-out forwards;
}
.text-glow {
  animation: textGlow 2s ease-in-out infinite;
}
.typewriter-text {
  overflow: hidden;
  border-right: 3px solid var(--united-nations-blue);
  white-space: nowrap;
  animation: typewriter 3s steps(40) 1s both, blink 0.75s step-end infinite;
}
.page-transition {
  animation: pageLoadFade 1s ease-out;
}
.section-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}
.section-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--oxford-blue), var(--yale-blue));
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: all 0.5s ease-out;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-content {
  text-align: center;
  color: var(--white);
  position: relative;
}
.loader-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  animation: pulse 1.5s ease-in-out infinite;
}
.loader-spinner {
  width: 80px;
  height: 80px;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top: 6px solid var(--wanderwise-primary);
  border-right: 6px solid var(--sunset-orange);
  border-radius: 50%;
  animation: wanderSpin 1.2s linear infinite;
  margin: 0 auto 30px;
  position: relative;
}
.loader-spinner::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid transparent;
  border-top: 3px solid var(--wanderwise-secondary);
  border-radius: 50%;
  animation: wanderSpin 0.8s linear infinite reverse;
}
@keyframes wanderSpin {
  0% {
    transform: rotate(0deg);
    box-shadow: 0 0 20px rgba(32, 178, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(142, 45, 226, 0.6);
  }
  100% {
    transform: rotate(360deg);
    box-shadow: 0 0 20px rgba(32, 178, 255, 0.3);
  }
}
.loader-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  gap: 8px;
}
.loader-dot {
  width: 16px;
  height: 16px;
  background: linear-gradient(
    45deg,
    var(--wanderwise-primary),
    var(--wanderwise-secondary)
  );
  border-radius: 50%;
  animation: wanderBounce 1.4s infinite ease-in-out both;
  box-shadow: 0 0 15px rgba(32, 178, 255, 0.4);
}
.loader-dot:nth-child(1) {
  animation-delay: -0.32s;
  background: var(--wanderwise-primary);
}
.loader-dot:nth-child(2) {
  animation-delay: -0.16s;
  background: var(--sunset-orange);
}
.loader-dot:nth-child(3) {
  animation-delay: 0s;
  background: var(--wanderwise-secondary);
}
@keyframes wanderBounce {
  0%,
  80%,
  100% {
    transform: scale(0) translateY(0);
    box-shadow: 0 0 5px rgba(32, 178, 255, 0.2);
  }
  40% {
    transform: scale(1) translateY(-10px);
    box-shadow: 0 0 25px rgba(32, 178, 255, 0.8);
  }
}
.loader-progress-container {
  width: 320px;
  margin: 30px auto 20px;
  position: relative;
}
.loader-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 15px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.loader-progress {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--wanderwise-primary),
    var(--sunset-orange),
    var(--wanderwise-secondary)
  );
  background-size: 200% 100%;
  border-radius: 4px;
  width: 0%;
  animation: progressFlow 2s ease-in-out infinite,
    loadProgress 3s ease-out forwards;
  position: relative;
  overflow: hidden;
}
.loader-progress::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  animation: shimmer 1.5s infinite;
}
@keyframes progressFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
@keyframes loadProgress {
  to {
    width: 100%;
  }
}
.loader-percentage {
  font-family: var(--ff-montserrat);
  font-size: var(--fs-5);
  font-weight: var(--fw-700);
  color: var(--white);
  margin-top: 15px;
  opacity: 0.9;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.loader-text {
  font-family: var(--ff-montserrat);
  font-size: var(--fs-3);
  font-weight: var(--fw-600);
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: wanderPulse 2s infinite, textShimmer 3s linear infinite;
  background: linear-gradient(
    90deg,
    var(--white) 25%,
    var(--sunset-orange) 50%,
    var(--white) 75%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
@keyframes wanderPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}
.page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
}
.loader-message {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-6);
  opacity: 0.8;
  font-style: italic;
  animation: messageFloat 3s ease-in-out infinite;
}
@keyframes messageFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}
.loader-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--wanderwise-primary);
  border-radius: 50%;
  animation: particleFloat 4s linear infinite;
  opacity: 0.6;
}
@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
    transform: scale(1);
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-10vh) scale(0);
    opacity: 0;
  }
}
.loader-option-1 .loader-spinner {
  display: block;
}
.loader-option-2 .loader-dots {
  display: flex;
}
.loader-option-3 .loader-progress-container {
  display: block;
}
.loader-dots,
.loader-progress-container {
  display: none;
}
@media (max-width: 768px) {
  .loader-content {
    padding: 20px;
  }
  .loader-spinner {
    width: 60px;
    height: 60px;
    border-width: 4px;
  }
  .loader-spinner::before {
    width: 30px;
    height: 30px;
    border-width: 2px;
  }
  .loader-progress-container {
    width: 280px;
  }
  .loader-text {
    font-size: var(--fs-4);
    letter-spacing: 1px;
  }
}
@media (max-width: 480px) {
  .loader-spinner {
    width: 50px;
    height: 50px;
  }
  .loader-progress-container {
    width: 240px;
  }
  .loader-percentage {
    font-size: var(--fs-6);
  }
  .loader-text {
    font-size: var(--fs-5);
  }
}
html {
  scroll-behavior: smooth;
}
.go-top {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.go-top.active {
  opacity: 1;
  visibility: visible;
}
.popular-card,
.package-card {
  transition: all 0.3s ease;
}
.popular-card:hover,
.package-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.gallery-image img,
.card-img img,
.card-banner img {
  transition: transform 0.3s ease;
}
.gallery-image:hover img,
.card-img:hover img,
.card-banner:hover img {
  transform: scale(1.05);
}
.hero {
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("./assets/images/hero-banner.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  z-index: -1;
}
.input-field {
  transition: all 0.3s ease;
}
.input-field:focus {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
[data-theme="dark"] {
  --white: hsl(0, 0%, 10%);
  --cultured: hsl(0, 0%, 15%);
  --gainsboro: hsl(0, 0%, 20%);
  --gunmetal: hsl(0, 0%, 85%);
  --black-coral: hsl(0, 0%, 75%);
  --oxford-blue: hsl(208, 97%, 8%);
  --yale-blue: hsl(214, 72%, 25%);
}
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}
.theme-toggle .light-icon {
  display: none;
}
[data-theme="dark"] .theme-toggle .dark-icon {
  display: none;
}
[data-theme="dark"] .theme-toggle .light-icon {
  display: block;
}
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bright-navy-blue);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(100px);
  animation: fabSlideIn 0.5s ease forwards;
}
.fab-btn:nth-child(1) {
  animation-delay: 0.1s;
}
.fab-btn:nth-child(2) {
  animation-delay: 0.2s;
}
.fab-btn:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes fabSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.fab-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.fab-btn:active {
  transform: scale(0.95);
}
main {
  transition: all 0.3s ease;
}
.section-transition {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.section-transition.visible {
  opacity: 1;
  transform: translateY(0);
}
.navbar-link {
  position: relative;
  overflow: hidden;
}
.navbar-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--wanderwise-primary);
  transition: left 0.3s ease;
}
.navbar-link:hover::before,
.navbar-link.active::before {
  left: 0;
}
.fade-content {
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.fade-content.fading {
  opacity: 0.3;
  transform: translateY(5px);
}
.popular-card,
.package-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.popular-card:hover,
.package-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}
.card-img,
.card-banner,
.gallery-image {
  overflow: hidden;
  border-radius: var(--radius-15);
}
.card-img img,
.card-banner img,
.gallery-image img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-img:hover img,
.card-banner:hover img,
.gallery-image:hover img {
  transform: scale(1.1) rotate(2deg);
}
.card-img img,
.card-banner img,
.gallery-image img {
  opacity: 0;
  animation: imageLoad 0.6s ease forwards;
}
@keyframes imageLoad {
  to {
    opacity: 1;
  }
}
body.loading {
  pointer-events: none;
}
body.loading * {
  transition: all 0.3s ease;
}
.preload {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.preload.loaded {
  opacity: 1;
  transform: translateY(0);
}
.btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.btn:active {
  transform: translateY(0) scale(0.98);
  transition: all 0.1s ease;
}
.input-field:focus {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(32, 178, 255, 0.2);
  border-color: var(--wanderwise-primary);
}
.popular-card,
.package-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.popular-card:hover,
.package-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(32, 178, 255, 0.15);
}
.btn {
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}
.btn:hover::before {
  left: 100%;
}
.btn-primary {
  animation: pulse 2s infinite;
}
@keyframes wanderFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(1deg);
  }
  50% {
    transform: translateY(0px) rotate(0deg);
  }
  75% {
    transform: translateY(-5px) rotate(-1deg);
  }
}
@keyframes adventureGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(32, 178, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(142, 45, 226, 0.6);
  }
}
@keyframes textShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
.hero-title {
  margin-bottom: 20px;
  background: linear-gradient(
    90deg,
    var(--white) 25%,
    var(--sunset-orange) 50%,
    var(--white) 75%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 3s linear infinite;
}
.popular-card,
.package-card {
  animation: wanderFloat 6s ease-in-out infinite;
}
.popular-card:nth-child(odd) {
  animation-delay: -2s;
}
.package-card:nth-child(even) {
  animation-delay: -4s;
}
.btn-primary {
  animation: adventureGlow 2s ease-in-out infinite alternate;
}
@media (max-width: 480px) {
  .floating-actions {
    right: 15px;
    bottom: 80px;
  }
  .fab-btn {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .theme-toggle {
    width: 35px;
    height: 35px;
  }
  .loader-percentage {
    font-size: var(--fs-6);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .popular-card,
  .package-card {
    animation: float 6s ease-in-out infinite;
  }
  .popular-card:nth-child(2n) {
    animation-delay: -3s;
  }
  @keyframes float {
    0%,
    100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-10px);
    }
  }
}
@media print {
  .page-loader,
  .floating-actions,
  .go-top,
  .header,
  .footer {
    display: none !important;
  }
  .hero {
    page-break-after: always;
  }
}
button:focus,
a:focus,
input:focus {
  outline: 2px solid var(--bright-navy-blue);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media (prefers-contrast: high) {
  .btn {
    border-width: 3px;
  }
  .card-rating ion-icon {
    filter: contrast(2);
  }
}
.letter-animate {
  overflow: hidden;
  white-space: nowrap;
}
.letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(2rem) scale(0.8) rotateX(90deg);
  text-shadow: 0 0 8px rgba(32, 178, 255, 0.4);
  animation: letterFadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transition: all 0.3s ease;
}
@keyframes letterFadeUp {
  0% {
    opacity: 0;
    transform: translateY(2rem) scale(0.8) rotateX(90deg);
    text-shadow: 0 0 8px rgba(32, 178, 255, 0.4);
  }
  50% {
    opacity: 0.7;
    transform: translateY(0.5rem) scale(1.1) rotateX(45deg);
    text-shadow: 0 0 15px rgba(142, 45, 226, 0.6);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    text-shadow: 0 0 20px rgba(32, 178, 255, 0.3);
  }
}
.letter:nth-child(n) {
  animation-delay: calc(var(--i) * 0.08s);
}
.hero-title .letter {
  animation-duration: 1s;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}
.hero-title .letter:nth-child(n) {
  animation-delay: calc(var(--i) * 0.1s);
}
.section-title .letter {
  animation-duration: 0.7s;
  text-shadow: 0 0 10px rgba(32, 178, 255, 0.3);
}
.card-title .letter {
  animation-duration: 0.6s;
  animation-delay: calc(var(--i) * 0.05s);
}
.letter-animate:hover .letter {
  animation: letterBounce 0.4s ease-in-out;
  animation-delay: calc(var(--i) * 0.03s);
}
@keyframes letterBounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.1);
    text-shadow: 0 0 25px rgba(142, 45, 226, 0.8);
  }
}
.letter-glow .letter {
  text-shadow: 0 0 20px rgba(32, 178, 255, 0.6);
  animation: letterGlow 0.8s ease-out forwards;
}
@keyframes letterGlow {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.5);
    text-shadow: 0 0 5px rgba(32, 178, 255, 0.2);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-5px) scale(1.2);
    text-shadow: 0 0 30px rgba(142, 45, 226, 0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    text-shadow: 0 0 20px rgba(32, 178, 255, 0.6);
  }
}
.letter-slide .letter {
  animation: letterSlide 0.6s ease-out forwards;
}
@keyframes letterSlide {
  0% {
    opacity: 0;
    transform: translateX(-50px) rotateY(90deg);
  }
  60% {
    opacity: 0.8;
    transform: translateX(5px) rotateY(-10deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
  }
}
@media (max-width: 768px) {
  .letter {
    animation-duration: 0.6s;
  }
  .letter:nth-child(n) {
    animation-delay: calc(var(--i) * 0.06s);
  }
  .hero-title .letter:nth-child(n) {
    animation-delay: calc(var(--i) * 0.08s);
  }
}
@media (max-width: 480px) {
  .letter {
    animation-duration: 0.5s;
    transform: translateY(1rem) scale(0.9);
  }
  .letter:nth-child(n) {
    animation-delay: calc(var(--i) * 0.05s);
  }
}
.letter {
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}
.letter-premium .letter {
  animation: letterPremium 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes letterPremium {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.3) rotateZ(-180deg);
    text-shadow: 0 0 0 rgba(32, 178, 255, 0);
  }
  30% {
    opacity: 0.6;
    transform: translateY(10px) scale(1.3) rotateZ(-45deg);
    text-shadow: 0 0 20px rgba(142, 45, 226, 0.7);
  }
  70% {
    opacity: 0.9;
    transform: translateY(-5px) scale(0.9) rotateZ(10deg);
    text-shadow: 0 0 30px rgba(32, 178, 255, 0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateZ(0deg);
    text-shadow: 0 0 15px rgba(32, 178, 255, 0.4);
  }
}
