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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #222;
  line-height: 1.6;
}

/* FULLSCREEN LOADER */


#loader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #001f33;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: auto; /* during loading should block interaction */
}


/* SHIP */
.loader-ship {
  width: 220px;
  animation: shipRock 2s ease-in-out infinite;
  z-index: 10;
  filter: drop-shadow(0px 0px 20px rgba(0, 150, 255, 0.7));
}

/* ROCKING ANIMATION */
@keyframes shipRock {
  0%   { transform: translateY(0px) rotate(0deg); }
  25%  { transform: translateY(-5px) rotate(2deg); }
  50%  { transform: translateY(0px) rotate(0deg); }
  75%  { transform: translateY(5px) rotate(-2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* WAVES ANIMATION */
.waves {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 120px;
  background: rgba(0, 150, 255, 0.4);
  opacity: 0.7;
  filter: blur(10px);
  animation: waveMove 5s linear infinite;
}

@keyframes waveMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* LOADING TEXT */
.loading-text {
  margin-top: 15px;
  color: #8fd4ff;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 1px;
  animation: fadeBlink 1.5s infinite ease-in-out;
}

@keyframes fadeBlink {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

/* when JS fades out, also remove pointer-events */
#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/*-----Navbar base---------*/
/* HEADER */
header {
  background-color: #002b70;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  position: fixed;
  top: 0;
  z-index: 1000;
  width:100%;
}

.header-logo{
    width: 90px;
    height:80px;
    border-radius: 15%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

header .logo{
  font-size: 1.3rem;
  font-weight: bold;
  margin-left: 10px;
}


header nav ul{
  list-style: none;
  display:flex;
  align-items: center;
  gap: 25px;
  padding: 5px 0;
  font-weight: bold;
  margin-left: 10px;
}

header nav ul li{
  position: relative;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s ease-in-out;
}

header nav a:hover{
  color: #00aaff;
  text-decoration: underline;  
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 1px;
}

/*--------Navbar drop down menu style-------*/
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 15px;
}
nav ul li{
  position: relative;
}

nav ul li a{
  text-decoration: none;
  color: white;
  font-weight: 500;
  padding: 10px;
  transition: color 0.3s, background-color 0.3s ease;
}

nav ul li a:hover{
  color:#00aaff
}

/*------dropdown counter-------*/
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  color: #000;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  min-width: 380px;
  z-index: 1000;
  display: flex;
  gap: 40px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none; /* Prevent hovering before animation */
}

/* show dropdown on hover-------*/
.dropdown:hover .dropdown-content {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* columns inside dropdown---------*/
.dropdown-column{
  display:flex;
  flex-direction: column;
  gap:5px;
}

.dropdown-column h4{
  margin-bottom:10px;
  color:#002b70;
  font-size: 14px;
  font-weight: bold;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 4px;
}

.dropdown-column a{
  text-decoration: none;
  color:#333;
  font-size: 4px 0;
  transition:color 0.3s ease;
  font-weight: normal;
}

.dropdown-column a:hover{
  color:#00aaff;
}

/*------Hover indication --------*/
.dropdown > a::after{
  content: ' ▼';
  font-size: 12px;
}

/*------hamburger menu-----*/
/* ===========================================
   📱 MOBILE OPTIMIZED STYLES (Below 768px)
   ADD THIS AT END OF YOUR CSS FILE
=========================================== */

@media (max-width: 768px) {

  /* ===== HEADER ===== */
  header {
    padding: 12px 18px;
    flex-direction: column;
    text-align: center;
  }

  .header-logo {
    width: 70px;
    height: 60px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
    padding: 12px 0;
    background: #003366;
    border-radius: 6px;
  }

  nav ul li a {
    padding: 10px;
    font-size: 1rem;
  }

  /* Dropdown – mobile */
  .dropdown-content {
    position: static;
    width: 100%;
    display: none;
    background: #002b70 !important;
    box-shadow: none;
    padding: 10px 0;
    transform: translateY(0);
    opacity: 1;
  }

  .dropdown-content.active {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
  }

  .dropdown-column a {
    color: #fff !important;
    font-size: 0.95rem;
  }

  .dropdown-column a:hover {
    color: #00aaff !important;
  }

  /* ===== HERO SECTION ===== */
  .hero {
    height: 75vh;
    padding-top: 40px;
  }

  .hero-content h1 {
    font-size: 1.9rem;
  }

  .hero-content p {
    font-size: 1rem;
    padding: 0 12px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* ===== SERVICES ===== */
  .services {
    padding: 3rem 1rem;
  }

  .service-container {
    flex-direction: column;
    align-items: center;
  }

  .service-box {
    width: 100%;
    max-width: 350px;
  }

  /* ===== ABOUT ===== */
  .about {
    padding: 3rem 1.2rem;
  }

  .about p {
    font-size: 1rem;
  }

  /* ===== GALLERY ===== */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    max-width: 95%;
    margin: auto;
  }

  /* ===== CONTACT ===== */
  .contact-wrapper {
    flex-direction: column;
    padding: 1rem;
  }

  .contact-info,
  .quote-form {
    width: 100%;
    max-width: 420px;
  }

  /* ===== LOADER ===== */
  #loader {
    background: #001b2b;
  }

  .loader-ship {
    width: 140px;
  }

  .waves {
    height: 80px;
    filter: blur(6px);
  }

  .loading-text {
    font-size: 18px;
  }

  /* ===== FOOTER ===== */
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .footer-map iframe {
    height: 200px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ===========================================
   📱 EXTRA SMALL DEVICES (below 420px)
=========================================== */

@media (max-width: 420px) {

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .header-logo {
    width: 60px;
    height: 52px;
  }

  nav ul {
    padding: 8px 0;
  }

  .service-box {
    padding: 1.2rem;
  }

  .about p {
    font-size: 0.9rem;
  }

  .quote-form {
    padding: 1.3rem;
  }
}

/* HERO */
.hero {
  height: 100vh;
  position: relative;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  width:100%; 
}

/*-----slideshow container-----*/
.slideshow{
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
 z-index:0;
 overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fadeslide 48s infinite;
  transition: opacity 1.5s ease-in-out;
}

/* Each slide will get its own delay so they play in sequence */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 6s; }
.slide:nth-child(3) { animation-delay: 12s; }
.slide:nth-child(4) { animation-delay: 18s; }
.slide:nth-child(5) { animation-delay: 24s; }
.slide:nth-child(6) { animation-delay: 30s; }
.slide:nth-child(7) { animation-delay: 36s; }
.slide:nth-child(8) { animation-delay: 42s; }

/* Keyframes for smoother fading */
@keyframes fadeslide {
  0% { opacity: 0; }
  5% { opacity: 1; }   /* fade in */
  25% { opacity: 1; }  /* stay visible */
  30% { opacity: 0; }  /* fade out */
  100% { opacity: 0; } /* stay hidden until next turn */
}

.overlay {
  position: absolute;
  top:0;
  left:0;
  background: rgba(0, 0, 50, 0.6);
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index:1;
}

.hero-content {
  text-align: center;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  background-color: #00aaff;
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background-color: #0088cc;
}

/* SERVICES */
.services {
  background: #f5f8ff;
  text-align: center;
  padding: 4rem 2rem;
}

.services h2 {
  color: #002b70;
  margin-bottom: 2rem;
  font-size: 2rem;
}

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

.service-box {
  background: white;
  border: 1px solid #d0e0ff;
  border-radius: 10px;
  width: 300px;
  padding: 1.5rem;
  text-align: left;
  transition: 0.3s;
}

.service-box:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 50, 0.1);
}

.service-box h3 {
  color: #002b70;
  margin-bottom: 1rem;
}

/* ABOUT */
.about {
  background-color: #002b70;
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: auto;
}

.about h2 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.about p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* GALLERY */
.gallery {
  padding: 4rem 2rem;
  text-align: center;
}

.gallery h2 {
  color: #002b70;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
  border: 2px solid #d0e0ff;
  transition: 0.3s;
}

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

/* CONTACT */
.contact {
  background: #f5f8ff;
  text-align: center;
  padding: 4rem 2rem;
}

.contact-wrapper{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 2rem;

}

.contact-info{
    background: #002b70;
    color: white;
    padding: 2rem;
    border-radius: 8px;
    width:300px;
    text-align: left;
    line-height: 1.8;
    box-shadow:0 4px 10px rgba(0,0,50,0.1);
}

.quote-form{
    background: white;
    border: 1px solid #d0e0ff;
    border-radius: 8px;
    padding: 2rem;
    width: 350px;
    box-shadow:0 4px 10px rgba(0,0,50,0.1);
}

.quote-form h3{
    color: #002b70;
    margin-bottom: 1rem;
}

.form-group{
    margin-bottom: 1rem;
}

.quote-form input, .quote-form textarea{
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition:0.3s;
}

.quote-form input:focus, .quote-form textarea:focus{
    border-color: #00aaff;
    box-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
}

.quote-form button{
    background-color: #00aaff;
    color: white;
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition:0.3s;
    width: 100%;

}

.quote-form button:hover{
    background-color: #0088cc;
}

/*--------Mobile------*/
@media(max-width:768px){
    .contact-wrapper{
        flex-direction: column;
        align-items: center;
    }

    .contact-info, .quote-form{
        width: 100%;
        max-width:400px;
    }
}

.contact h2 {
  color: #002b70;
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 1rem;
  margin: 0.5rem 0;
}



/*-------------Enable click open dropdowns on mobiele---------*/
.dropdown-content.active {
  display: flex !important;
  opacity: 1 !important;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown > a::after {
  content: '▾';
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.dropdown-content.active ~ a::after {
  transform: rotate(180deg);
}

/* ----------------------FOOTER -----------*/
footer {
   position: relative;
  background: linear-gradient(
      rgba(0, 10, 30, 0.8),
      rgba(0, 10, 30, 0.75)
    ),
    url('../pics/footer-bg.jpg') no-repeat center center/cover;
  color: #fff;
  padding:140px 6%;
  font-family: 'Poppins', sans-serif;
  background-size: cover;
  background-attachment: fixed;
  overflow: hidden;
}

.footer::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), transparent);
}

.footer-container{
  display: flex;
  gap: 32px;
  align-items: flex-start;        /* align top of columns */
  justify-content: space-between;
  flex-wrap: nowrap;              /* keep side-by-side on desktop */
  max-width: 1200px;
  margin: 0 auto;
}

/* Each column: allow shrink/grow but keep min width */
.footer-column {
  flex: 1 1 180px;                /* grow, shrink, base 180px */
  min-width: 160px;
}

/* Make the map column a bit narrower */
.footer-map {
  flex: 0 0 260px;                /* fixed width for map column */
}


.footer-column h3{
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 14px;
  border-bottom: 2px solid rgba(0,85,170,0.12);
  display: inline-block;
  padding-bottom: 6px;
}


.footer-column ul{
list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li{
   margin-bottom: 10px;
}

.footer-column ul li a{
  color: #cfd8e6;
  text-decoration: none;
  transition: color .2s ease, transform .15s ease;

}

.footer-column ul li a:hover{
   color: #00aaff;
  transform: translateX(6px);
}

.address p{
  color: #c7d2e6;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* style the iframe nicely */
.footer-map iframe {
  width: 100%;
  height: 140px;
  border-radius: 8px;
  border: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* social icons */
.social-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: middle;
  filter: brightness(0) invert(1); /* white icon */
}

/* divider and bottom row */
.footer hr {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 28px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 6px;
  color: #c7d2e6;
  font-size: 0.9rem;
}


.footer-bottom strong {
  color: #00aaff;
}

/* responsive: stack columns on narrow screens */
@media (max-width: 980px) {
  .footer-container {
    flex-wrap: wrap;
    gap: 20px;
  }
  .footer-column { flex: 1 1 45%; min-width: 200px; }
  .footer-map { flex: 1 1 100%; }
  .footer-social { flex: 1 1 45%; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
}

/* small screens */
@media (max-width: 520px) {
  .footer-column { flex: 1 1 100%; min-width: 100%; }
  .footer-map iframe { height: 180px; }
}