/* Custom animation for fade-in effect */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 15s ease-in-out;
}

/* Video loading style */
.video-container video {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.video-container video.loaded {
    opacity: 1;
}

/* Shape at the bottom of hero section */
.hero-bottom-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Lazy loading styling */
.lazy-loader {
    display: none;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in-left {
    opacity: 0;
    animation: fadeInLeft 10s forwards;
}

.fade-in-right {
    opacity: 0;
    animation: fadeInRight 10s forwards;
}


/* Define the carousel container to hide overflow */
.carousel-container {
    width: 100%;
    background-color: white;
    overflow: hidden;
}

/* Style for the carousel items wrapper */
.carousel-items {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* Each individual item occupies 33.333% of the container width (3 items visible) */
.carousel-item {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 5px 4px rgba(0, 0, 0, 0.06); /* Box shadow */
    position: relative;
    padding: 3cap; /* Space around each item */
}

/* Remove background and add consistent margins */
.carousel-container {
    background: none; /* Remove background */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Make the images centered and consistent in size */
.carousel-item img {
    border-radius: 0.5rem;
    width: 100%;
    height: auto; /* Make sure the image scales properly */
}

/* Adjust hover effect for the image titles */
.carousel-item .group:hover .absolute {
    opacity: 1;
}


.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.top-0 {
    top: 0;
}

.top-4 {
    top: 1rem;
}

.top-8 {
    top: 2rem;
}

.left-0 {
    left: 0;
}

.left-4 {
    left: 1rem;
}

.left-8 {
    left: 2rem;
}

.transform {
    transform: translate(0, 0);
}

.translate-x-2 {
    transform: translateX(0.5rem);
}

.translate-y-2 {
    transform: translateY(0.5rem);
}

.rounded-lg {
    border-radius: 0.75rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.w-80 {
    width: 20rem;
}

.pl-10 {
    padding-left: 2.5rem;
}

.bg-red-600:hover {
    background-color: #d32f2f;
}

.hover\:bg-red-700:hover {
    background-color: #b71c1c;
}

.carousel {
    position: relative;
    height: 350px; /* Adjust height for larger images */
}

@media (min-width: 768px) {
    .carousel {
        height: 600px; /* Larger height for tablet and desktop */
    }
}

.image-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    opacity: 100; /* Initially hidden */
    margin-left: 120px;
}

.image-item img {
    width: 60%;
    height: 80%;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 2); /* Softer shadow */
}

/* Positioning for the overlapping effect */
.image-item:nth-child(1) {
    z-index: 3;
    transform: translate(20px, 30px) scale(1);
}

.image-item:nth-child(2) {
    z-index: 3;
    transform: translate(40px, 50px) scale(1.05);
}

.image-item:nth-child(3) {
    z-index: 2;
    transform: translate(60px, 70px) scale(1.05);
}

/* Active class for showing the image */
.image-item.active {
    opacity: 1; /* Fully visible */
    transform: scale(1).3; /* Normal size */
    z-index: 5; /* Bring to the front */
}

/* Leaving class for hiding the image */
.image-item.leaving {
    opacity: 100; /* Fade out */
    transform: scale(0.9); /* Scale down slightly */
}

/* Animation for mobile */
@media (max-width: 768px) {
    .image-item {
        height: auto;
        width: 500px;
        margin-left: 40px;
    }

    .image-item:nth-child(1),
    .image-item:nth-child(3) {
        transform: scale(0.85); /* Smaller scale for mobile */
    }

    .image-item.active {
        transform: scale(1); /* Keep normal size */
    }
}

/* CSS for Wheel Rotation */
@keyframes roll {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.wheel-animate {
    animation: roll 5s linear infinite;
}

/* General Scroll Animations */
.scroll-animation {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scroll-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

#wheel {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -4px;
    width: 10px;
    height: 10px;
}

  /* Add necessary styles for mobile and hover effects */
  #mobile-menu {
    display: none;
}

@media (min-width: 1024px) {
    #mobile-menu {
        display: block;
    }
}

.fade-in {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Base style for all logos */
.certification-logo {
    height: 50px; /* Even larger logos for extra large screens */
    width: 70px;
    transition: transform 0.3s ease-in-out;
}

/* Hover effect for logos */
.certification-logo:hover {
    transform: scale(1.1); /* Slightly enlarges the logo on hover */
}

/* Tablet and medium screen sizes */
@media (min-width: 768px) {
    .certification-logo {
        height: 50px; /* Even larger logos for extra large screens */
        width: 70px;
    }
}

/* Desktop and larger screens */
@media (min-width: 1024px) {
    .certification-logo {
        height: 100px; /* Even larger logos for extra large screens */
        width: 150px;
    }
}

/* Extra large screens */
@media (min-width: 1280px) {
    .certification-logo {
        height: 100px; /* Even larger logos for extra large screens */
        width: 150px;
        opacity: 50;
    }
}

 /* Custom CSS */
.swiper-slide {
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0.5;
    transform: scale(0.8);
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1.2);
}

.swiper-wrapper {
    width: 100%;
    height: max-content !important;
    padding-bottom: 64px !important;
    position: relative;
}

.swiper-pagination-bullet {
    background: #4f46e5;
}

@media (max-width: 768px) {
    .swiper-slide img {
        height: 48vh; /* Adjusts for smaller screens */
    }
}

/* Loader styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it covers other elements */
}

/* Spinner styles */
.spinner {
    border: 8px solid rgba(0, 123, 255, 0.3); /* Light blue */
    border-top: 8px solid #007bff; /* Dark blue */
    border-radius: 50%;
    width: 50px; /* Spinner size */
    height: 50px; /* Spinner size */
    animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide the loader by default */
.hidden {
    display: none;
}


/* Loader styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it covers other elements */
}

/* Spinner styles */
.spinner {
    border: 8px solid rgba(0, 123, 255, 0.3); /* Light blue */
    border-top: 8px solid #007bff; /* Dark blue */
    border-radius: 50%;
    width: 50px; /* Spinner size */
    height: 50px; /* Spinner size */
    animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide the loader by default */
.hidden {
    display: none;
}


/* Loader styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it covers other elements */
}

/* Spinner styles */
.spinner {
    border: 8px solid rgba(0, 123, 255, 0.3); /* Light blue */
    border-top: 8px solid #007bff; /* Dark blue */
    border-radius: 50%;
    width: 50px; /* Spinner size */
    height: 50px; /* Spinner size */
    animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide the loader by default */
.hidden {
    display: none;
}/* Loader styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it covers other elements */
}

/* Spinner styles */
.spinner {
    border: 8px solid rgba(0, 123, 255, 0.3); /* Light blue */
    border-top: 8px solid #007bff; /* Dark blue */
    border-radius: 50%;
    width: 50px; /* Spinner size */
    height: 50px; /* Spinner size */
    animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide the loader by default */
.hidden {
    display: none;
}


/* Loader styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it covers other elements */
}

/* Spinner styles */
.spinner {
    border: 8px solid rgba(0, 123, 255, 0.3); /* Light blue */
    border-top: 8px solid #007bff; /* Dark blue */
    border-radius: 50%;
    width: 50px; /* Spinner size */
    height: 50px; /* Spinner size */
    animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide the loader by default */
.hidden {
    display: none;
}


/* Scroll to Top Button Styling */
#scrollToTopBtn {
    display: none; /* Initially hidden */
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
    background-color: #001e56; /* Gray-800 */
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

#scrollToTopBtn:hover {
    background-color: #5c0101; /* Gray-700 */
}


@media (max-width: 640px) { /* Mobile view */
    #menuList a {
        color: black; /* Set text color to black on mobile */
    }
}

@media (min-width: 641px) { /* Desktop view */
    #menuList a {
        color: white; /* Set text color to white on desktop */

    }
}

/* Ensure that the buttons are responsive */
@media (max-width: 640px) { /* Mobile view */
    #slider-button-left,
    #slider-button-right {
        width: 36px; /* Smaller width */
        height: 36px; /* Smaller height */
    }

    #slider-button-left svg,
    #slider-button-right svg {
        height: 2rem; /* Adjust SVG size */
        width: 2rem; /* Adjust SVG size */
    }
}

@media (min-width: 641px) { /* Desktop view */
    #slider-button-left,
    #slider-button-right {
        width: 40px; /* Adjust size as needed */
        height: 40px; /* Adjust size as needed */
    }
}



/* Certification Logos Styling */
.certification-logos {
    position: absolute;
    bottom: 180px; /* Adjust bottom distance from page */
    right: 7px;   /* Adjust right distance from page */
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;    /* Adjust space between logos */
    z-index: 30;
}

/* Logo Sizing */
.cert-logo {
    width: 80px; /* Control width of logos */
    height: auto;
    transition: transform 0.3s ease; /* Optional hover effect */
}

/* Optional: Hover effect for logos */
.cert-logo:hover {
    transform: scale(1.1); /* Slightly increase size on hover */
}

/* Adjust logo size for mobile screens */
@media (max-width: 640px) { /* You can adjust this breakpoint as needed */
    .cert-logo {
        width: 60px; /* Reduce width for mobile screens */
    }
}

/* Optional: Hover effect for logos */
.cert-logo:hover {
    transform: scale(1.1); /* Slightly increase size on hover */
}





/* Adjust the size of the navigation buttons */
.swiper-button-next, .swiper-button-prev {
    color: #1E3A8A; /* Blue-900 */
    font-size: 24px;
}

.swiper-slide {
    width: auto;
}


.logo-light {
    filter: brightness(0) saturate(100%) invert(100%);
    transition: filter 0.3s ease, font-weight 0.3s ease; /* Transition for smooth change */
    font-weight: bold; /* Thicker appearance */
}

.logo-dark {
    filter: brightness(0) saturate(100%) invert(0%);
    transition: filter 0.3s ease, font-weight 0.3s ease; /* Transition for smooth change */
    font-weight: normal; /* Normal appearance */
}


  /* Add a border radius to all service boxes */
  .service-box {
    border-radius: 35px; /* Adjust the radius as needed */
  }


  /* our vessels */

    .vessel-section {
    padding: 6rem 2rem;
    background: #f7f8fa;
    font-family: 'DM Sans', sans-serif;
  }
  .vessel-section .inner {
    max-width: 1400px;
    margin: 0 auto;
  }
  .vessel-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
  }
  @media (max-width: 768px) {
    .vessel-card {
      grid-template-columns: 1fr;
    }
    .slider-panel {
      min-height: 320px !important;
    }
  }

  /* ── Slider ── */
  .slider-panel {
    position: relative;
    overflow: hidden;
    background: #0d1f35;
    border-radius: 16px;
    min-height: 600px;
  }
  .slides-track {
    display: flex;
    height: 100%;
    min-height: 600px;
    transition: transform 0.55s cubic-bezier(0.77,0,0.175,1);
  }
  .slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
  }
  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(5,25,50,0.55) 0%, transparent 80%);
  }
  .slide-label {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(0,0,0,0.45);
    border: 0.5px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 11px;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 10;
  }
  .slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
  }
  .slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
  }
  .slider-dots .dot.active {
    background: #ffffff;
    transform: scale(1.3);
  }
  .slider-arrows {
    position: absolute;
    bottom: 12px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 10;
  }
  .arrow-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 0.5px solid rgba(255,255,255,0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 18px;
    line-height: 1;
  }
  .arrow-btn:hover {
    background: rgba(255,255,255,0.25);
  }
  .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,0.75);
    width: 0%;
    z-index: 10;
  }

  /* ── Content ── */
  .content-panel {
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
  }
  .arrow-callout {
    position: absolute;
    top: 1.8rem;
    left: -3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: none;
    z-index: 5;
  }
  .arrow-callout-text {
    font-family: 'Caveat', cursive;
    font-size: 1.05rem;
    color: #7a1212;
    white-space: nowrap;
    margin-left: 4rem;
    margin-bottom: -4px;
    transform: rotate(-5deg);
    display: block;
    opacity: 0.85;
  }
  .arrow-callout img {
    width: 140px;
    mix-blend-mode: multiply;
    opacity: 0.75;
    transform: rotate(8deg);
    animation: arrow-float 3.2s ease-in-out infinite;
  }
  @keyframes arrow-float {
    0%, 100% { transform: rotate(8deg) translateY(0px); }
    50%       { transform: rotate(8deg) translateY(-7px); }
  }
  .eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #2a7fff;
    font-weight: 600;
    margin: 0 0 14px 0;
  }
  .vessel-title {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 1rem 0;
  }
  .vessel-desc {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
  }
  .feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: #1e293b;
  }
  .feature-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e6f1fb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .feature-icon i {
    font-size: 12px;
    color: #185fa5;
  }
  .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0d1f35;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
    width: fit-content;
  }
  .cta-btn:hover {
    background: #1a3557;
    transform: translateY(-1px);
  }
  .cta-btn i {
    font-size: 15px;
  }


  /* our client */

  .clients-section {
      padding: 5rem 1.5rem 3rem;
      text-align: center;
      background: #fff;
    }
    .clients-section h2 {
      font-size: 2.2rem;
      font-weight: 700;
      color: #111;
      margin-bottom: 0.75rem;
    }
    .clients-section p {
      font-size: 1.05rem;
      color: #666;
      max-width: 560px;
      margin: 0 auto 0;         /* no bottom margin — stage handles spacing */
      line-height: 1.6;
    }

    .arc-stage {
      position: relative;
      width: 100%;
      max-width: 1200px;
      height: 800px;            /* tighter height — arcs sit near the top */
      margin: 0 auto;
      overflow: visible;
      bottom: 250px;
    }
    .arc-svg {
      position: absolute;
      top: 0; left: 0;          /* no top offset — arcs start immediately */
      width: 100%; height: 100%;
    }

    .logo-dot {
      position: absolute;
      transform: translate(-50%, -50%);
    }
    .logo-img-wrap {
      width: 88px;
      height: 48px;
      background: #fff;
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      opacity: 0;
      transform: scale(0.5);
      transition: opacity 0.45s ease, transform 0.45s ease;
      box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }
    .logo-img-wrap.visible {
      opacity: 1;
      transform: scale(1);
    }
    .logo-img-wrap img {
      width: 80px;
      height: 42px;
      object-fit: contain;
      padding: 3px;
    }

    .dot-marker {
      position: absolute;
      width: 9px;
      height: 9px;
      background: #bbb;
      border-radius: 50%;
      transform: translate(-50%, -50%);
      transition: background 0.3s, box-shadow 0.3s;
    }
    .dot-marker.lit {
      background: #1D9E75;
      box-shadow: 0 0 0 4px rgba(29,158,117,0.18);
    }

  /* ── Mobile responsive: fleet section ── */
  @media (max-width: 1023px) {
    .vessel-section {
      padding: 3rem 1rem;
    }
    .content-panel {
      padding: 2rem 1.25rem;
    }
    .arrow-callout {
      display: none;
    }
  }

  /* ── Mobile responsive: clients logo grid ── */
  .clients-mobile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 480px;
    margin: 2rem auto 0;
    padding: 0 1rem;
  }
  @media (min-width: 480px) {
    .clients-mobile-grid {
      grid-template-columns: repeat(4, 1fr);
      max-width: 600px;
    }
  }
  .cmg-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }
  .cmg-item img {
    width: 100%;
    max-width: 72px;
    height: 36px;
    object-fit: contain;
  }