:root {

  /**
   * colors
   */

  --united-nations-blue: hsl(214, 56%, 58%);
  --bright-navy-blue: hsl(214, 57%, 51%);
  --spanish-gray: hsl(0, 0%, 60%);
  --black-coral: hsl(225, 8%, 42%);
  --oxford-blue: hsl(208, 97%, 12%);
  --yale-blue: hsl(214, 72%, 33%);
  --blue-ncs: hsl(197, 100%, 36%);
  --gunmetal: hsl(206, 34%, 20%);
  --gainsboro: hsl(0, 0%, 88%);
  --cultured: hsl(0, 0%, 98%);
  --white: hsl(0, 0%, 100%);
  --black: hsl(0, 0%, 0%);
  --onyx: hsl(0, 0%, 25%);
  --jet: hsl(0, 0%, 20%);

  /**
   * typography
   */

  --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
   */

  --transition: 0.25s ease-in-out;

  /**
   * spacing
   */

  --section-padding: 60px;

  /**
   * border-radius
   */

  --radius-15: 15px;
  --radius-25: 25px;

}

*{
    margin: 0;
    padding: 0;
    max-width: 99vw;
}

.popular { padding-block: var(--section-padding); }
.h1,
.h2,
.h3 {
  font-weight: var(--fw-800);
  font-family: var(--ff-montserrat);
  text-transform: uppercase;
}
.container { padding-inline: 15px; }
.h1 {
  color: var(--white);
  font-size: var(--fs-1);
}

.section-text {
  color: var(--bright-navy-blue);
  margin-bottom: 30px;
}

.h2,
.h3 { color: var(--gunmetal); }

.h2 { font-size: var(--fs-2); }

.h3 {
  font-size: var(--fs-3);
  font-weight: var(--fw-700);
}

.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: var(--transition);
}
.btn-primary {
  background: var(--bright-navy-blue);
  border-color: var(--bright-navy-blue);
}

.btn-primary:is(:hover, :focus) {
  background: var(--yale-blue);
  border-color: var(--yale-blue);
}

.btn-secondary { border-color: var(--white); }

.btn-secondary:is(:hover, :focus) { background: hsla(0, 0%, 100%, 0.1); }


/*
CSS FOR NAV

*/
header{
  position: relative;
  width:100vw;
  height:10vh;
   position : sticky;
  z-index: 99;
  top:0;

}
nav{
  background-color: white;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
 
}
nav ul{
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
nav li{
  height: 50px;
}
nav a{
  height: 100%;
  padding: 0 30px;
  text-decoration: none;
  display: flex;
  align-items: center;
  color: black;
}
nav a:hover{
  background-color: #f0f0f0;
}
nav li:first-child{
  margin-right: auto;
}

.sidebar{
  position: fixed;
  top: 0; 
  right: 0;
  height: 100vh;
  width: 250px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  list-style: none;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.sidebar li{
  width: 100%;
}
.sidebar a{
  width: 100%;
}
.menu-button{
  display: none;
}
@media(max-width: 800px){
  .hideOnMobile{
    display: none;
  }
  .menu-button{
    display: block;
  }
}
@media(max-width: 400px){
  .sidebar{
    width: 100%;
  }
}


/*
BACKGROUND IMAGE.
*/
#corbett-resorts{
  width:100%;
  height :  40vh;
  position : relative;


}
#corbett-resorts img{
object-fit: cover;
height: 100%;
width: 100%;
filter: brightness(50%);
}
#corbett-resorts div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bright-navy-blue);
  font-family: 'Courier New', Courier, monospace;
  font-size: 40px;
  font-weight: 800;
  text-align: center;
}

@media screen and (max-width: 720px) {
  #corbett-resorts div {
    font-size: 20px;
  }
}

/* 
WHY SECTION 

*/
/* why sectiojn*/

#why-section {
 
   
  overflow: hidden;
  }

#heading-why {
    text-align: center;
    margin-bottom: 3rem;
    color : var(--bright-navy-blue)
}

#heading-why h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1.5px;
}

.section-subtitle {
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
    color: #343030;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.container{
    text-align: center;
}

#triple-box {
    width: 100%;
    min-height: 60vh; /* More flexible height */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
}

#triple-box .box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: space-between;
    width: 22%;
    max-width: 400px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

#triple-box .box .image{
    width : 100%;
    height:70%;
    overflow: hidden;
    object-fit: cover;
}
#triple-box .box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
#triple-box .box .content{
  margin-top:1rem;
    display: flex;
    color: var(--bright-navy-blue);
       font-family: "Cal Sans", sans-serif;
    font-weight: 300;
  font-style: normal;
    flex-direction: column;
    justify-content: center;
    gap:1rem;
    align-items: center;
}
#triple-box .box .content h3{
    text-transform: capitalize;
    word-spacing: 0.2rem;
    letter-spacing: 0.05rem;
}


#triple-box .box:hover {
    transform: translateY(-10px);
}




/* Responsive Design */
@media (max-width: 768px) {
  #triple-box .box .content{
    margin-top: 0.5rem;
  }
    #triple-box {
        flex-direction: column;
        min-height: auto;
    }

    #triple-box .box {
        width: 80%;
        height: 300px;
        margin: 1rem 0;
    }

    #heading-why h1 {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}
#triple-box .box {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#heading-why h1::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #ffffff;
    margin: 1rem auto;
}







/*

FOOTER


*/
  #formOverlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100vh;
      background-color: rgba(0, 0, 0, 0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      display: none;
    }

    /* Form Container */
    .form-container {
      background-color: white;
      padding: 2rem;
      border-radius: 16px;
      width: 90%;
      max-width: 400px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .form-container h2 {
      margin-top: 0;
      color: #003366; /* bright navy */
      text-align: center;
    }
.form-container h4 {
      margin-top: 1em;

      color: #003366; /* bright navy */
      text-align: center;
    }

    .form-group {
      margin-bottom: 1rem;
    }

    .form-group label {
      display: block;
      margin-bottom: 0.4rem;
      font-size: 0.95rem;
      color: #333;
    }

    .form-group input, .form-group select {
      width: 100%;
      padding: 0.6rem;
      border: 1px solid #ccc;
      border-radius: 8px;
      font-size: 1rem;
    }

    .form-group input:focus, .form-group select:focus {
      outline: none;
      border-color: #0050b3;
      box-shadow: 0 0 0 2px rgba(0, 80, 179, 0.2);
    }

    .form-buttons {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      margin-top: 1.5rem;
    }

    .form-buttons button {
      flex: 1;
      padding: 0.7rem;
      border: none;
      border-radius: 8px;
      font-size: 1rem;
      cursor: pointer;
      transition: background-color 0.2s;
    }

    .submit-btn {
      background-color: #0050b3;
      color: white;
    }

    .submit-btn:hover {
      background-color: #003d99;
    }

    .close-btn {
      background-color: #e0e0e0;
      color: #333;
    }

    .close-btn:hover {
      background-color: #cfcfcf;
    }

    @media (max-height: 500px) {
      .form-container {
        height: 90vh;
        overflow-y: auto;
      }
    }

    /* Footer */
    .footer {
      background: var(--gunmetal);
      color: var(--cultured);
      padding-top: 4rem;
    }

    .footer-top .container {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 2rem;
      padding: 0 2rem 3rem;
      max-width: 1200px;
      margin: 0 auto;
    }
    .footer-brand,
    .footer-contact,
    .footer-form {
      flex: 1;
      min-width: 250px;
    }

    /* Brand */
    .footer-brand .logo img {
      max-width: 160px;
      display: block;
      margin-bottom: 1rem;
    }
    .footer-brand p {
      font-size: 0.9rem;
      line-height: 1.5;
      color: var(--spanish-gray);
    }

    /* Contact */
    .footer-contact h4 {
      font-family: var(--ff-montserrat);
      font-size: 1.2rem;
      margin-bottom: 1rem;
      color: var(--white);
      position: relative;
    }
    .footer-contact h4::after {
      content: '';
      position: absolute;
      left: 0; bottom: -0.25rem;
      width: 40px; height: 3px;
      background: var(--white);
    }
    .footer-contact ul {
      list-style: none;
    }
    .contact-item {
      display: flex;
      align-items: center;
      font-size: 0.9rem;
      margin: 0.75rem 0;
      color: var(--cultured);
    }
    .contact-item ion-icon {
      font-size: 1.2rem;
      color: var(--white);
      margin-right: 0.75rem;
    }
    .contact-item a,
    .contact-item address {
      color: inherit;
      text-decoration: none;
      transition: var(--transition);
    }
    .contact-item a:hover {
      color: var(--white);
    }

    /* Newsletter */
    .footer-form p {
      font-size: 0.9rem;
      color: var(--spanish-gray);
    }
    .footer-form {
      text-align: right;
    }
    .form-wrapper {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      margin-top: 0.5rem;
    }
    .input-field {
      flex: 1;
      min-width: 200px;
      padding: 0.75rem 1.5rem;
      border-radius: 50px;
      border: none;
      background: var(--white);
      color: #333;
      font-family: inherit;
    }
    .btn-secondary {
      padding: 0.75rem 1.5rem;
      border-radius: 50px;
      border: 2px solid var(--white);
      background: transparent;
      color: var(--white);
      font-family: var(--ff-montserrat);
      font-weight: var(--fw-600);
      cursor: pointer;
      transition: var(--transition);
    }
    .btn-secondary:hover {
      background: var(--white);
      color: var(--gunmetal);
    }

    /* Bottom Bar */
    .footer-bottom {
      border-top: 1px solid #2a2a2a;
      padding: 2rem 2rem;
    }
    .footer-bottom .container {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      max-width: 1200px;
      margin: 0 auto;
    }
    .footer-bottom p {
      font-size: 0.85rem;
      color: var(--spanish-gray);
    }
    .footer-bottom a {
      font-size: 0.85rem;
      color: var(--spanish-gray);
      text-decoration: none;
      margin-left: 1rem;
      transition: var(--transition);
    }
    .footer-bottom a:hover {
      color: var(--white);
    }

    /* Responsive */
    @media (max-width: 768px) {
      .footer-top .container {
        flex-direction: column;
        align-items: center;
      }
      .footer-contact {
        padding-left: 0;
      }
      .footer-form {
        text-align: center;
      }
    }
    @media (max-width: 480px) {
      .form-wrapper {
        flex-direction: column;
      }
      .btn-secondary {
        width: 100%;
      }
      .footer-bottom .container {
        flex-direction: column;
      }
    }