@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

/* Make sure body and html take full screen width/height */
html, body {
  width: 100%;
  overflow-x: hidden;
  background: transparent;
}

body {
    margin: 0;
    font-family: Poppins, sans-serif;
}

.header {
    background-color: transparent;
    padding: 10px 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header.scrolled {
    backdrop-filter: blur(5px);
    background-color: transparent;
}

/* Navbar */
.navbar {
  display: flex;
  flex-direction: row;
  position: static;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  gap: 30px;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #ccc;
}

.hamburger {
  display: none;
}

.background {
    background-image: url('labuan2.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease-in-out;
}

.background h1 {
    color: #ffffff;
    font-size: 6em;
    text-align: center;
    margin: 0;
}

.background p {
    color: #ffffff;
    text-align: center;
    font-size: 2.5em;
    font-weight: bold;
    margin-top: 1px;
    padding: 0 20px;
}

.second-background {
    background-image: url('labuan2.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease-in-out;
    margin: 0;
    padding: 0; /* Fixed: removed quote */
}

.second-background h2 {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

.second-background p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2em;
    font-weight: lighter;
    color: #ffffff;
    margin-top: 0;
    text-align: center;
    line-height: 1.6;
    max-width: 800px;
    padding: 0 20px;
}

.abouts {
    background: white;
    padding: 20px;
    font-size: 1.2em;
    line-height: 1.6;
}

.page2 {
    text-align: center;
    padding: 20px;
}

.destinations {
    margin-top: 0;
    padding-top: 0;
    text-align: center;
    padding: 20px;
    background: white;
}

.destinations .title {
    font-size: 2.5em;
    margin-top: 10px;
    margin-bottom: 30px;
    color: #333;
}

.gallery {
    display: flex; /* Fixed: changed from display: wrap */
    flex-wrap: wrap;
    /* grid-template-columns: repeat(3, 1fr); */ /* Removed: conflicts with flexbox */
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    justify-content: center;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-item p {
    margin-top: 10px;
    font-size: 1em;
    color: #333;
}

.hidden {
    display: none;
}

.view-all-btn {
    margin-top: 20px;
    padding: 10px 20px;
    font-family: Poppins, sans-serif;
    font-size: 1.2em;
    color: #333;
    background-color: #ffffff;
    border: 1px solid #333;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.view-all-btn:hover {
    background-color: #4e4e4e;
    color: #ffffff;
}

.trip-options {
    text-align: center;
    padding: 0;
    margin-top: 30px;
}

.trip-options .title {
    font-size: 2.5em;
    font-weight: bold;
    margin-top: 20px;
    color: #000000;
}

.trip-options .gallery {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-top: 20px;
}

.trip-options .gallery-item {
    text-align: center;
}

.trip-options .gallery-item img {
    width: 350px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.trip-options .gallery-item p {
    margin-top: 10px;
    font-size: 1em;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: #555;
}

a:visited {
    color: inherit;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5em;  
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn.left-btn {
    left: 10px;
}

.scroll-btn.right-btn {
    right: 10px;
}

.scroll-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.rental-motor .title {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 30px;
    padding-bottom: 20px;
}

.rental-motor .gallery-item {
    text-align: center;
}

.rental-motor .gallery-item img {
    display: block;
    margin: 0 auto;
    box-shadow: none;
    border: none;
}

.call-to-action {
    color: #333;
    border: 1px solid #333;
    text-align: center;
    padding: 40px 20px;
    margin: 40px auto;
    border-radius: 10px;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.call-to-action h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.call-to-action p {
    font-size: 1em;
    margin-bottom: 15px;
}

.cta-btn {
    display: inline-block;
    color: #333;
    border: 1px solid #333;
    padding: 8px 16px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-btn:hover {
    background-color: #333;
    color: #ffffff;
}

.footer {
    background-color: #161616;
    color: #fff;
    height: 25vh;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Fixed: changed from align-items:first baseline */
    text-align: center;
    margin-top: 50px;
}

.footer p {
    font-size: 1.2em;
    margin: 0;
    margin-top: 30px;
}

/* MOBILE STYLES - adjust below 768px */
@media (max-width: 768px) {
  .navbar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 45%;
    height: 100vh;
    background: white;
    padding: 80px 30px 30px 30px;
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }
  
  .navbar.show {
    transform: translateX(0);
  }
  
  .navbar a {
    color: #333;
    text-decoration: none;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .navbar a:hover {
    color: #333;
    background-color: white;
    border-radius: 5px;
    padding-left: 10px;
  }
  
  .navbar a:last-child {
    border-bottom: none;
  }
  
  /* Overlay background */
  .navbar::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  
  .navbar.show::before {
    opacity: 1;
  }
  
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 2000;
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
  }
  
  .hamburger.hidden {
    opacity: 0;
    pointer-events: none;
  }
  
  .hamburger-img {
    width: 32px;
    height: 32px;
    display: block;
  }
  
  .hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: #ffffff;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
  }
  
  .hamburger.black span {
    background: #111 !important;
  }

  .background h1 {
    font-size: 3em;
    padding: 0 10px;
  }

  .background p {
    font-size: 1.2em;
    padding: 0 10px;
  }

  .second-background h2 {
    font-size: 2em;
    padding: 0 10px;
  }

  .second-background p {
    font-size: 1em;
    padding: 0 10px;
  }

  .gallery {
    flex-direction: row;
    gap: 30px;
  }

  .gallery-item img {
    width: 90%;
    max-width: 150px;
  }

  .trip-options .title,
  .destinations .title,
  .rental-motor .title {
    font-size: 1.2em;
    padding: 0 10px;
  }

  .trip-options h2 {
    font-size: 1em;
    padding: 0 10px;
  }

  .trip-options h3 {
    font-size: 0.8em;
    padding: 0 10px;
  }

  .trip-options .gallery-item img {
    width: 150px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }

  .call-to-action {
    padding: 20px 10px;
    margin: 20px 10px;
  }

  .cta-btn {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    height: auto;
    padding: 20px 10px;
  }

  .footer p {
    font-size: 0.8em;
    margin-top: 10px;
  }
}