/* Global Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  background-color: #f0f4f8;
  color: #333;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Navigation */
.navbar {
  position: relative;
  width: 100%;
  z-index: 999;
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

/* Scroll to top button */
#btn-up {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  padding: 12px 15px;
  background-color: #0077cc;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#btn-up:hover {
  background-color: #005fa3;
  transform: translateY(-3px);
}

#btn-up i {
  font-size: 1.2rem;
}

/* Logo */
.logo img {
  height: 70px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

/* Header Contact */
.header-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #001f3f;
}

.header-contact .contact-details {
  display: flex;
  flex-direction: column;
}

.header-contact a,
.header-contact span {
  text-decoration: none;
  color: #001f3f;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.header-contact a:hover {
  color: #0077cc;
}

.header-contact a.phone i {
  margin-right: 5px;
  color: #25D366;
}

.header-contact .address i {
  margin-right: 5px;
}

.header-contact a.whatsapp i {
  font-size: 1.25rem;
  color: #25D366;
  transition: transform 0.3s ease;
}

.header-contact a.whatsapp:hover i {
  transform: scale(1.1);
}

/* Navigation Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

.nav-links a {
  text-decoration: none;
  color: #001f3f;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-links a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0077cc;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #0077cc;
}

.nav-links a:hover:after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  background: #001f3f;
  height: 3px;
  width: 25px;
  margin-bottom: 5px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* === Hero Slider === */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  object-fit: cover;
}

.hero-slider .slide.active {
  opacity: 1;
}

/* Hero Content */
.hero-content {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.cta {
  display: inline-block;
  background: #0074D9;
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
  border: 2px solid transparent;
}

.cta:hover {
  background: transparent;
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta i {
  margin-left: 8px;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: #001f3f;
  background-image: linear-gradient(135deg, #001f3f 0%, #003366 100%);
}

.services h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.8rem;
  color: #fff;
  position: relative;
  padding-bottom: 15px;
}

.services h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #0077cc;
  border-radius: 2px;
}

.service-items {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.service-item {
  flex: 1 1 280px;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 1.2rem;
  background: rgba(0, 119, 204, 0.2);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  text-align: center;
  margin: 0 auto 1.5rem;
}

.service-item h3 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.5rem;
}

.service-item p {
  font-size: 1rem;
  color: #d1e8ff;
  line-height: 1.7;
}

/* Routes Section */
.routes {
  padding: 5rem 0;
  background-color: #f7fafc;
  position: relative;
  overflow: hidden;
}

.routes h2 {
  text-align: center;
  font-size: 2.8rem;
  color: #001f3f;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 15px;
}

.routes h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #0077cc;
  border-radius: 2px;
}

.map-image {
  margin-bottom: 3rem;
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-width: 900px;
  margin: 0 auto 3rem;
}

.map-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.map-image:hover img {
  transform: scale(1.03);
}

.route-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.route-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.route-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: #0077cc;
}

.route-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.route-card h3 {
  font-size: 1.4rem;
  color: #0074D9;
  margin-bottom: 1rem;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.route-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.route-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  transition: transform 0.4s ease;
}

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

.route-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.route-suggestion {
  background: rgba(0, 119, 204, 0.1);
  padding: 0.5rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #0077cc;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.route-suggestion i {
  font-size: 1rem;
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Lightbox for Route Details */
.route-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
  justify-content: center;
  align-items: flex-start; /* Changed to top alignment */
  padding: 20px 0; /* Added padding */
  overflow-y: auto; /* Enable scrolling */
}

.lightbox-content {
  background: #fff;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  border-radius: 8px;
  position: relative;
  color: #333;
  max-height: 85vh; /* Limit height */
  overflow-y: auto; /* Enable internal scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
  margin: auto; /* Center vertically */
}

.close-lightbox {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  background: rgba(255,255,255,0.8);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.close-lightbox:hover {
  background: #0077cc;
  color: white;
  transform: rotate(90deg);
}

.route-warning {
  margin-top: 2rem;
  padding: 1.2rem;
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1rem;
  max-width: 800px;
  margin: 3rem auto 0;
}

.route-warning i {
  font-size: 1.4rem;
  color: #ffc107;
}

/* About Section */
.about {
  padding: 6rem 0;
  background-color: #003366;
  background: linear-gradient(135deg, #002b55 0%, #001f3f 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.about h2 {
  text-align: center;
  margin-bottom: 3.5rem;
  font-size: 2.8rem;
  position: relative;
  padding-bottom: 15px;
}

.about h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #0077cc;
  border-radius: 2px;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1;
  min-width: 300px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #d1e8ff;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-text strong {
  color: #fff;
}

.about-image {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease;
}

.about-image:hover {
  transform: scale(1.03);
}

.about-image img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.1);
}

/* Gallery Section */
.gallery {
  padding: 6rem 0;
  background-color: #001f3f;
  position: relative;
}

.gallery h2 {
  text-align: center;
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 3.5rem;
  position: relative;
  padding-bottom: 15px;
}

.gallery h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #0077cc;
  border-radius: 2px;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 180px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.4s ease;
}

/* Gallery Video Styles */
.gallery-video {
  max-width: 800px;
  margin: 0 auto 3rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-video video {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-video:hover video {
  transform: scale(1.02);
}

.video-caption {
  text-align: center;
  margin-top: 10px;
  color: #d1e8ff;
  font-style: italic;
}

/* Lightbox Video Styles */
.lightbox-video-container {
  display: none;
  max-width: 90%;
  max-height: 80vh;
}

.lightbox-video {
  max-width: 100%;
  max-height: 80vh;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0,0,0,0.8);
  z-index: 9999;
  flex-direction: column;
}

.lightbox-image {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
}

.lightbox .close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.lightbox-nav span {
  font-size: 3rem;
  color: white;
  cursor: pointer;
  padding: 0 1rem;
  user-select: none;
}

/* Sempati 1 Section */
.sempati1-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
  position: relative;
}

.sempati1-section h2 {
  text-align: center;
  font-size: 2.8rem;
  color: #003366;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 15px;
}

.sempati1-section h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #0077cc;
  border-radius: 2px;
}

.yacht-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 4rem;
}

.yacht-image {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.yacht-image:hover {
  transform: scale(1.03);
}

.yacht-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yacht-details {
  flex: 1;
  min-width: 300px;
}

.yacht-details h3 {
  margin-top: 1.5rem;
  color: #0077cc;
  font-size: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.yacht-details ul {
  list-style: none;
  margin-bottom: 2rem;
}

.yacht-details li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1.05rem;
}

.yacht-details li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: #0077cc;
  font-size: 1.2rem;
}

.yacht-details li strong {
  color: #003366;
  display: inline-block;
  width: 140px;
}

.yacht-features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.feature {
  flex: 1;
  min-width: 250px;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature i {
  font-size: 2.8rem;
  color: #0077cc;
  margin-bottom: 1.2rem;
}

.feature h4 {
  font-size: 1.3rem;
  color: #003366;
  margin-bottom: 0.8rem;
}

.feature p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.yacht-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.yacht-gallery .gallery-item {
  border-radius: 10px;
  overflow: hidden;
  height: 220px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.yacht-gallery .gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.yacht-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.yacht-gallery .gallery-item:hover img {
  transform: scale(1.1);
}

.cta-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta.secondary {
  background: #fff;
  color: #0077cc;
  border: 2px solid #0077cc;
}

.cta.secondary:hover {
  background: #0077cc;
  color: #fff;
}

/* Footer */
footer {
  background-color: #001a35;
  color: #fff;
  padding: 2.5rem 0;
  text-align: center;
  font-size: 1rem;
  position: relative;
}

footer p {
  margin: 0.5rem 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============= RESPONSIVE ADJUSTMENTS ============= */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .nav-links {
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 0;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 1.5rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero {
    height: 85vh;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .service-items {
    gap: 1.5rem;
  }
  
  .yacht-showcase {
    flex-direction: column;
  }
  
  .cta-container {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-container .cta {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  /* Lightbox adjustments */
  .route-lightbox {
    align-items: flex-start;
    padding-top: 40px;
  }
  
  .lightbox-content {
    padding: 1.5rem;
    width: 95%;
    max-height: 85vh;
  }
  
  .close-lightbox {
    top: 0.8rem;
    right: 0.8rem;
    font-size: 1.8rem;
    width: 35px;
    height: 35px;
  }
  
  #routeDetailText h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
  }
  
  #routeDetailText p {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .logo img {
    height: 50px;
  }
  
  .hero {
    height: 80vh;
  }
  
  .hero-content {
    bottom: 60px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .cta {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
  }
  
  .service-item {
    padding: 1.5rem 1rem;
  }
  
  .routes h2,
  .services h2,
  .about h2,
  .gallery h2 {
    font-size: 2.2rem;
  }
  
  .route-list {
    grid-template-columns: 1fr;
  }
  
  /* Lightbox adjustments */
  .lightbox-content {
    padding: 1.2rem 1rem;
    border-radius: 8px;
  }
  
  .close-lightbox {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
  }
  
  #routeDetailText h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  #routeDetailText p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  /* Lightbox adjustments for small screens */
  .lightbox-content {
    padding: 1.2rem 1rem;
    max-height: 80vh;
  }
  
  .close-lightbox {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
  }
  
  #routeDetailText h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  #routeDetailText p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) and (max-height: 700px) {
  .lightbox-content {
    max-height: 82vh;
    padding: 1rem 0.8rem;
  }
  
  .close-lightbox {
    top: 0.3rem;
    right: 0.3rem;
    font-size: 1.3rem;
    width: 28px;
    height: 28px;
  }
  
  #routeDetailText h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }
  
  #routeDetailText p {
    font-size: 0.85rem;
  }
}

/* Landscape orientation fix */
@media (max-width: 768px) and (orientation: landscape) {
  .lightbox-content {
    max-height: 75vh;
  }
}

/* Ensure lightboxes appear above other content */
.lightbox, 
.route-lightbox {
  z-index: 10000;
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
  overflow: hidden;
}