@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap");
:root {
  --blue: #062f4f;
  --blue-light: #0d4f7c;
  --light-blue: #70a2c5;
  --silver: #c0c0c0;
  --silver-dark: #2d3e50;
  --white: #ffffff;
  --accent-gold: #d4af37;
  --gold: #d4af37; /* added for consistency */
  --bg-light: #e9ecef;
  --max-width: 1100px;

  /* Nautical port & starboard logo */
  --port: #e30613;
  --port-light: #ff2b38;
  --starboard: #00994c;
  --starboard-light: #00cc66;
  --black: #000000;
}

html,
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

* {
  max-width: 100vw;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Rajdhani", sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.8s ease;
}
body.loaded {
  opacity: 1;
}

.container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ============================================= */
/*  TYPOGRAPHY                                   */
/* ============================================= */
h1,
h2,
h3,
h4 {
  font-family: "Rajdhani", serif;
  color: var(--black);
}

.small {
  font-size: 1.8rem;
}

h1 {
  font-family: "Rajdhani", sans-serif; /* you wanted Open Sans for hero */
  font-weight: 400;
  color: white;
  text-shadow: 3px 0 9px #000000ff, 2px 2px 2px #707070;
  letter-spacing: -1px;
  line-height: 1.5;
  text-align: left;
  align-self: flex-start;
  margin-left: 0;
}

h2 {
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  margin-bottom: 50px;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 6px;
  background: linear-gradient(to right, var(--port), var(--starboard));
  margin: 20px auto 0;
  border-radius: 3px;
}

.text-highlight {
  color: var(--starboard-light);
  text-align: left;
  align-self: flex-start;
}
.hero-text {
  text-shadow: 3px 0 9px #000000ff, 2px 2px 2px #707070;
  text-align: left;
  align-self: flex-start;
}
/* Logo text styles – Port & Starboard variants */
.logo-text {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

@media (max-width: 960px) {
  /* Remove the left push on mobile */
  .topbar .logo-text {
    margin-left: 0 !important;
  }

  /* Center the logo and keep hamburger on the right */
  .topbar-inner {
    justify-content: space-between; /* keeps hamburger right */
    padding: 0 -10%; /* consistent padding */
  }

  /* Optional: slightly smaller logo on mobile for breathing room */
  .logo-text {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }
}

.logo-num {
  margin: 0 8px; /* perfect space around the "2" */
  font-size: 0.92em; /* slightly smaller for balance */
  opacity: 0.95;
}

.logo-yachting {
  margin-left: 14px; /* clean space before "Yachting" */
  font-weight: 500;
  font-size: 0.82em; /* slightly smaller and lighter */
  letter-spacing: 1.5px;
}

/* Desktop – generous spacing */
@media (min-width: 961px) {
  .logo-text {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .logo-num {
    margin: 0 12px;
  }

  .logo-yachting {
    margin-left: 20px;
    font-size: 0.78em;
  }
}

/* Mobile – tighter but still beautiful */
@media (max-width: 960px) {
  .logo-text {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .logo-num {
    margin: 0 0px;
  }

  .logo-yachting {
    margin-left: 10px;
    font-size: 0.85em;
  }
}

.logo-text.port {
  color: var(--port) !important;
}

.logo-text.starboard {
  color: var(--starboard) !important;
}

.logo-text.large {
  font-size: 3rem;
}

.logo-text:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
  color: var(--port);
}
.section-header-green {
  text-align: center;
  margin-bottom: 40px;
  color: var(--starboard);
}

/* ============================================= */
/*  TOPBAR & NAVIGATION                          */
/* ============================================= */
/* ============================================= */
/*  TOPBAR & NAVIGATION – ALWAYS VISIBLE + TRANSLUCENT → SOLID */
/* ============================================= */
header.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 45px 8% 0;
  background: transparent;
  z-index: 1200;
  transition: all 0.4s ease;
}

.black {
  color: black !important;
}

.black:hover {
  color: var(--port-light) !important;
}

/* When scrolled → solid white */
.topbar.scrolled {
  padding: 16px 5%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar .logo-text {
  margin-left: 0; /* no negative margin anywhere */
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: white; /* base for "Yachting" and plain text */
  transition: color 0.4s ease;
}

/* TEXT COLOR – WHITE ON HERO, BLUE/BLACK WHEN SCROLLED */
.topbar .nav-links a,
.topbar .dropdown-toggle,
.topbar .get-quote-btn {
  color: white;
  transition: color 0.4s ease;
}

.topbar .logo-text.port {
  color: var(--port) !important; /* red C stays red */
}
.topbar .logo-text.starboard {
  color: var(--starboard) !important; /* green C stays green */
}

/* WHEN SCROLLED – SWITCH TO DARK */
.topbar.scrolled .nav-links a,
.topbar.scrolled .dropdown-toggle {
  color: var(--blue);
}

.topbar.scrolled .logo-text {
  color: black;
}
.topbar.scrolled .logo-text.port {
  color: var(--port) !important;
}
.topbar.scrolled .logo-text.starboard {
  color: var(--starboard) !important;
}

/* Get a Quote button – white outline on hero, blue when scrolled */
.topbar .get-quote-btn {
  border: 2px solid white;
}

.topbar.scrolled .get-quote-btn {
  border-color: var(--starboard);
  color: var(--black);
}

.topbar.scrolled .get-quote-btn:hover {
  background: var(--starboard-light);
  color: white;
}

@media (max-width: 960px) {
  .topbar-inner {
    padding-left: 0%;
    padding-right: 5%;
    justify-content: center; /* centers logo */
    gap: 20px;
  }

  .hamburger {
    position: absolute;
    right: 5%;
    color: white;
    transition: color 0.3s ease;
  }

  .topbar.scrolled .hamburger {
    color: var(--black);
  }

  .topbar .logo-text {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }
}

/* LOCATION BAR – SUBTLE, BELOW NAVBAR */
.location-bar {
  position: fixed;
  top: 90px; /* adjust based on your navbar height (~80-100px) */
  left: 0;
  right: 0;
  background: transparent;
  z-index: 1100;
  pointer-events: none; /* doesn't block clicks */
  transition: opacity 0.5s ease;
  text-align: center;
}

.location-bar p {
  text-shadow: 3px 0 9px #000000ff, 2px 2px 2px #707070;
  color: white;
  text-align: left;
  align-self: flex-start;
}

/* Fade out when scrolled */
.location-bar.fade-out {
  opacity: 0;
}

/* Desktop navigation */
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--blue);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--port-light);
}

/* Dropdown – About */
.dropdown {
  position: relative;
}
.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
}
.dropdown-toggle i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}
.dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}
.dropdown-toggle::after {
  content: "";
  font-size: 0.7rem;
  transition: transform 0.3s;
}
.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  min-width: 320px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 16px 0;
  z-index: 1000;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(8px);
}

.dropdown-section {
  padding: 8px 20px;
  border-bottom: 1px solid #eee;
}
.dropdown-section:last-of-type {
  border-bottom: none;
}

.dropdown-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--port-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 8px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #000000; /* black underline as requested */
  display: inline-block;
}

.dropdown-section a {
  display: block;
  padding: 10px 0;
  color: var(--blue);
  font-size: 0.98rem;
}
.dropdown-section a:hover {
  color: var(--port);
  padding-left: 8px;
}

.dropdown-footer {
  padding: 12px 20px 8px;
  text-align: center;
  border-top: 1px solid #eee;
  margin-top: 8px;
}
.view-all {
  font-weight: 600;
  color: var(--starboard);
}
.view-all:hover {
  color: var(--port-light);
}

.mobile-menu {
  position: fixed;
  top: 110px;
  left: 5%;
  right: 5%;
  max-width: 400px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1100;
}
.mobile-menu.open {
  max-height: 800px;
}
.mobile-menu a,
.mobile-menu .dropdown-toggle {
  display: block;
  padding: 16px 24px;
  color: var(--blue);
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.desktop-nav {
  display: flex;
  gap: 34px;
  align-items: center;
}
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--blue);
}

/* Mobile navigation */
@media (max-width: 960px) {
  .nav-links > *:not(.hamburger) {
    display: none; /* hide all links except hamburger */
  }
  .desktop-nav {
    display: none;
  }
  .hamburger {
    display: block !important;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--blue);
    right: 40px;
  }
  .mobile-menu {
    position: fixed;
    top: 110px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    z-index: 1100;
  }
  .mobile-menu.open {
    max-height: 700px;
  }
  .mobile-menu a,
  .mobile-menu .dropdown-toggle {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
    color: var(--blue);
  }
  .logo img {
    height: 30px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    filter: brightness(1.1) contrast(1.05);
    /* margin-left: auto; */
  }
}

/* ============================================= */
/*  HERO                                         */
/* ============================================= */
.hero {
  height: 100vh;
  min-height: 680px;
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45)),
    url("./media/YachtImg1.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* pushes everything left */
  padding-left: 12%; /* extra left margin for breathing room */
  padding-right: 9%;
  text-align: left;
  color: white;
}

.hero-content {
  max-width: 820px; /* limits width so it doesn't stretch */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* left-align all children */
  justify-content: center;
  gap: 36px;
  text-align: left;
  margin-left: 0; /* ensure no auto margin */
}

.hero-content .btn {
  min-width: 260px;
  padding: 18px 48px;
  font-size: 1.2rem;
}
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 600; /* semi-bold like your site */
  font-size: 0.9375rem; /* text-sm ≈ 15px */
  line-height: 1;
  height: 44px; /* h-10 = 40px + padding → 44px feels perfect */
  padding: 0 28px; /* px-6 ≈ 28px */
  border-radius: 9999px; /* rounded-full */
  border: 2px solid white;
  background: transparent;
  color: white;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.btn:hover {
  background: white;
  color: var(--blue); /* dark blue text when filled */
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}
.btn.secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}
.secondary:hover {
  background: white;
  color: var(--port);
}

/* Perfect Tailwind-like white-outline button (used for "Get a Quote" and any future buttons) */
.btn-modern-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Increased gap for more space */
  white-space: nowrap;
  font-weight: 600; /* semi-bold like your site */
  font-size: 1.125rem; /* Same size as btn-hero-red */
  line-height: 1.2; /* Same line height as btn-hero-red */
  height: 56px; /* Same height as btn-hero-red */
  padding: 0 40px; /* Same padding as btn-hero-red */
  border-radius: 9999px; /* rounded-full */
  border: 2px solid white;
  background: transparent;
  color: white;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  margin-top: 20px; /* Added margin to push it down on mobile */
}

/* Hover + Focus states */
.btn-modern-outline:hover {
  background: white;
  color: var(--blue); /* dark blue text when filled */
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}

.btn-modern-outline:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* Disabled state (if you ever need it) */
.btn-modern-outline:disabled,
.btn-modern-outline.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Optional: make SVG icons inside behave nicely */
.btn-modern-outline svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  pointer-events: none;
}

.btn-hero-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* gap-2 */
  white-space: nowrap;
  font-weight: 600; /* font-semibold */
  font-size: 1.125rem; /* text-lg ≈ 18px */
  line-height: 1.2;
  height: 56px; /* h-14 = 56px */
  padding: 0 40px; /* px-10 ≈ 40px */
  border-radius: 9999px; /* rounded-full */
  background: var(--port); /* bg-port */
  color: white; /* text-white */
  box-shadow: 0 12px 30px rgba(227, 6, 19, 0.4); /* shadow-button */
  text-decoration: none;
  cursor: pointer;
  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

/* Hover state */
.btn-hero-red:hover {
  background: var(--port-light); /* hover:bg-port-light */
  transform: translateY(-4px); /* hover:-translate-y-1 */
  box-shadow: 0 20px 40px rgba(227, 6, 19, 0.5);
}

/* Focus accessibility */
.btn-hero-red:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.4);
}

.btn-hero-red:disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* Icons inside the button */
.btn-hero-red svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 16px 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}
.hero-content p {
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  margin: 20px 0 32px;
  opacity: 0.95;
}

/* HERO TEXT – INDIVIDUAL LINE REVEAL FROM LEFT */
.reveal-line {
  display: block;
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-content.active .reveal-line {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delays for each line */
.hero-content.active .reveal-line:nth-child(1) {
  transition-delay: 0.3s;
}
.hero-content.active .reveal-line:nth-child(2) {
  transition-delay: 0.6s;
}
.hero-content.active .reveal-line:nth-child(3) {
  transition-delay: 0.9s;
}
.hero-content.active .reveal-line:nth-child(4) {
  transition-delay: 1.2s;
}

/* HERO BUTTONS – REVEAL FROM BOTTOM */
.reveal-btn {
  display: block;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-content.active .reveal-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger the two buttons after the text */
.hero-content.active .reveal-btn:nth-child(1) {
  transition-delay: 1.5s;
}
.hero-content.active .reveal-btn:nth-child(2) {
  transition-delay: 1.7s;
}

@media (max-width: 1600px) {
  .hero-content h1 {
    font-size: clamp(2.5rem, 4.5vw, 3rem);
  }
}

@media (max-width: 800px) {
  .hero {
    padding-left: 6%;
    padding-right: 6%;
  }

  .hero-content h1 {
    font-size: clamp(2.4rem, 7vw, 4rem);   /* prevents massive text */
    line-height: 1.15;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-left: 5%;
    padding-right: 5%;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ============================================= */
/*  SECTIONS                                     */
/* ============================================= */
.intro,
.course-details,
.slider-section,
.testimonials,
.contact,
.credentials {
  padding: 100px 5%;
  background: white;
}

.intro {
  background: var(--bg-light);
  text-align: center;
}

/* Panels  */
.intro {
  background: var(--bg-light);
  text-align: center;
}
.credentials {
  background: white;
  text-align: center;
}

/* Panels */
.intro .panel {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 36px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.black-text {
  color: black;
}

.reveal-group > * {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-group.active > * {
  opacity: 1;
  transform: translateX(0);
}

.reveal-group > *:nth-child(1) {
  transition-delay: 0.1s;
}
.reveal-group > *:nth-child(2) {
  transition-delay: 0.25s;
}
.reveal-group > *:nth-child(3) {
  transition-delay: 0.4s;
}
.reveal-group > *:nth-child(4) {
  transition-delay: 0.55s;
}
.reveal-group > *:nth-child(5) {
  transition-delay: 0.7s;
}
.reveal-group > *:nth-child(6) {
  transition-delay: 0.85s;
}
.reveal-group > *:nth-child(7) {
  transition-delay: 1s;
}

/* Headings */
.intro h2 {
  font-family: "Playfair Display", serif;
  color: var(--blue);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;

  /* White offset behind letters */
  position: relative;
  display: inline-block;
}

.intro h2::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  color: black;
  z-index: -1;
  opacity: 0.95;
  transform: translate(2px, 2px); /* little white shadow */
}

/* Paragraphs */
.intro p {
  font-size: 1.3rem;
  color: var(--black);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .intro .panel {
    padding: 30px;
  }

  .intro h2 {
    font-size: 2rem;
  }
}

.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 100px 5%;
  align-items: center;
  background: var(--bg-light);
}

/* Left-side image */
.intro-image {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border-radius: 20px;
  overflow: hidden; /* ensures rounded corners clip the video */
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  position: relative;
}

.intro-image video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* same as background cover */
  position: absolute;
  top: 0;
  left: 0;
}

/* Right-side text panel – uses your existing panel style */
.intro-split .panel {
  background: rgba(255, 255, 255, 0.75);
  padding: 48px 36px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  color: black;
}

/* Typography */
.intro-split h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--blue);
  text-shadow: none;
}

.intro-split p {
  margin-bottom: 18px;
  font-size: 1.2rem;
  line-height: 1.65;
}

.intro-split ul {
  margin: 18px 0;
  padding-left: 0;
  list-style: none;
}

.intro-split ul li {
  margin-bottom: 10px;
  font-size: 1.15rem;
  position: relative;
  padding-left: 30px;
}

.intro-split ul li::before {
  content: "✔";
  color: var(--starboard);
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 0;
}

.intro-split .tagline {
  font-weight: 600;
  margin-top: 20px;
  font-size: 1.25rem;
  color: var(--port);
}

/* Mobile responsive */
@media (max-width: 900px) {
  .intro-split {
    grid-template-columns: 1fr;
  }

  .intro-image {
    min-height: 280px;
  }
}

/* MOBILE: Center logo when navbar is mobile */
@media (max-width: 960px) {
  .topbar .logo-text {
    margin-left: 0; /* removes the left push */
    margin-right: auto; /* centers it with flex */
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .topbar-inner {
    justify-content: center; /* centers logo + hamburger together */
    gap: 20px; /* nice space between logo and hamburger */
  }

  .hamburger {
    position: absolute;
    right: 5%; /* pushes hamburger to far right */
    color: white; /* white on hero */
    transition: color 0.3s ease;
  }

  .topbar.scrolled .hamburger {
    color: var(--blue); /* turns blue/black when scrolled */
  }
}

/* Course cards */
/* SIGNATURE SERVICES – B&W BACKGROUND + CHECKMARKS */
.services {
  padding: 100px 5%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
    /* Dark overlay for readability */ url("./media/background-profile.webp")
      center/cover no-repeat fixed; /* Your B&W image */
  background-attachment: fixed; /* Parallax-like scroll from C2C hero */
  color: white;
}
.services .container {
  position: relative;
  z-index: 2;
}
.services h2 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 50px;
}
.service-card {
  background: rgba(255, 255, 255, 0.97);
  color: var(--blue);
  padding: 48px 32px; /* much more internal space */
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  transition: all 0.4s ease;
  height: 100%; /* makes all cards same height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.service-card i {
  font-size: 4rem;
  color: var(--starboard);
  margin-bottom: 28px;
}
.service-card h3 {
  color: var(--port);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .services {
    padding: 100px 5%;
    background-attachment: scroll; /* fixes performance */
  }

  .services-grid {
    gap: 48px 24px; /* even more vertical space */
  }

  .service-card {
    padding: 56px 36px; /* feels luxurious on phones */
    border-radius: 28px;
  }

  .service-card i {
    font-size: 4.5rem;
    margin-bottom: 32px;
  }

  .service-card h3 {
    font-size: 1.7rem;
  }

  .checkmark-list li {
    font-size: 1.1rem;
    padding-left: 36px;
    margin-bottom: 16px;
  }
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 64px 40px;
  }

  .service-card i {
    font-size: 5rem;
  }
}

.checkmark-list {
  text-align: left;
  list-style: none;
  padding: 0;
}
.checkmark-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--silver-dark);
}
.checkmark-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--starboard-light);
  font-weight: bold;
  font-size: 1.2rem;
}

/* HERO CTA – C2C-STYLE SECONDARY BUTTON */
.btn.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.2;
  height: 56px;
  padding: 0 40px;
  border-radius: 9999px;
  border: 2px solid white;
  background: transparent;
  color: white;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.15);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.25);
}

.btn.secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4);
}

.btn.secondary:disabled,
.btn.secondary.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.get-quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.2;
  height: 56px;
  padding: 0 40px;
  border-radius: 9999px;
  border: 2px solid black; /* Changed to black outline */
  background: transparent;
  color: white;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.15);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.get-quote-btn:hover {
  background: var(--starboard); /* No background change */
  text-decoration: solid;
  color: white !important; /* Change text color to port red */
  border: 2px solid transparent; /* Remove black outline on hover */
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.25);
}

.get-quote-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.3);
}

/* FOOTER CAPTAIN'S LOG – C2C BLOG TEASER */
.captains-log {
  flex: 1;
  min-width: 300px;
  text-align: right;
  padding: 20px 0;
}
.captains-log h4 {
  margin-bottom: 8px;
  color: var(--starboard);
}
.captains-log a:hover {
  color: var(--port-light);
  text-decoration: underline;
}

/* Mobile tweaks for new elements */
@media (max-width: 960px) {
  .services {
    background-attachment: scroll; /* Disable parallax on mobile for performance */
  }
  .checkmark-list li {
    padding-left: 20px;
    font-size: 0.95rem;
  }
  .captains-log {
    text-align: center;
    min-width: auto;
    order: -1; /* Move to top on mobile */
  }
}

/* Slider */
.slider-section {
  padding: 120px 5%;
  background: var(--blue);
  color: white;
}

.slider-section h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--white);
}

.slider-section h2 {
  font-size: 3rem;
  margin-bottom: 20px; /* Increased bottom gap */
  color: var(--white);
  text-align: center; /* Center align text */
  font-family: "Rajdhani", sans-serif; /* Set font to Rajdhani */
}

.slider-container {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.slide-item video {
  width: 100%;
  height: clamp(280px, 65vh, 560px);
  object-fit: cover;
  display: block;
}

/* Fallback image inside video tag (for very old browsers) */
.slide-item video + img {
  display: none; /* hidden unless video fails */
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform: translateX(0); /* ← this line fixes the “half slide” bug */
}

.slide-item {
  min-width: 100%;
  flex: 0 0 100%; /* forces exactly one slide visible */
  position: relative;
}
.slide-item img {
  width: 100%;
  height: clamp(280px, 65vh, 560px);
  object-fit: cover;
  display: block;
}
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px;
  background: linear-gradient(transparent, rgba(6, 47, 79, 0.95));
  color: white;
}
.slider-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  backdrop-filter: blur(1px);
  color: white;
  border: 2px solid white;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: 0.3s;
}
#prevBtn {
  left: 20px;
}
#nextBtn {
  right: 20px;
}
.slider-nav button:hover {
  background: white;
  color: var(--blue);
}

/* Testimonials */
/* TESTIMONIALS – NO MORE CHOPPED TEXT */
.testimonials-box {
  max-width: 960px;
  margin: 60px auto 0;
  background: var(--bg-light);
  border-radius: 20px;
  padding: 60px 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.testimonials-slides {
  display: flex;
  width: 100%;
  transform: translateX(0);
  transition: transform 0.6s ease;
}

.testimonial {
  min-width: 100%;
  padding: 0 60px;
  box-sizing: border-box;
  overflow: hidden;
}

.testimonial p {
  font-style: italic;
  font-size: clamp(1.1rem, 4vw, 1.3rem);
  line-height: 1.8;
  margin-bottom: 24px;
  color: #333;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.testimonials h2 {
  font-size: 3rem;
  margin-bottom: 20px; /* Increased bottom gap */
  color: var(--black);
  text-align: center; /* Center align text */
  font-family: "Rajdhani", sans-serif; /* Set font to Rajdhani */
}

.testimonial .who {
  font-weight: 700;
  color: var(--port-light);
  font-size: 1.1rem;
}

.test-nav {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.testimonials-button {
  padding: 14px 36px;
  border-radius: 50px;
  background: var(--port);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.testimonials-button:hover {
  background: var(--port-light);
  transform: translateY(-3px);
}

/* ============================================= */
/*  TEAM SECTION – PORTHOLE STYLE CIRCULAR PORTRAITS */
/* ============================================= */
.team-section {
  padding: 120px 5%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
    url("./media/SailingYacht.webp") center/cover no-repeat fixed;
  background-attachment: fixed;
  color: white;
  text-align: center;
}

.team-section p {
  color: white;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 60px 40px;
  margin-top: 40px;
  justify-items: center;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s ease;
}

.team-card:hover {
  transform: translateY(-12px);
}

.porthole {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid #d4af37; /* gold/brass frame */
  box-shadow: 0 0 0 4px #b08d2a,
    /* inner brass ring */ 0 12px 30px rgba(0, 0, 0, 0.25); /* deep shadow for depth */
  background: #062f4f; /* dark blue backup if image fails */
  margin-bottom: 24px;
}

.porthole img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.team-card:hover .porthole img {
  transform: scale(1.08);
}

/* Name & Role */
.team-card h3 {
  font-size: 1.6rem;
  color: var(--bg-light);
  margin-bottom: 8px;
  font-weight: 700;
}

.team-card p {
  font-size: 1.1rem;
  color: var(--port);
  font-weight: 600;
}

/* Mobile – extra space */
@media (max-width: 640px) {
  .porthole {
    width: 180px;
    height: 180px;
    border: 6px solid #d4af37;
  }

  .team-grid {
    gap: 50px;
  }
}

/* Credentials */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}
.doc-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: var(--blue);
  border: 2px solid transparent;
  transition: all 0.4s;
}
.doc-card:hover {
  transform: translateY(-10px);
  border-color: var(--port-light);
  box-shadow: 0 20px 40px rgba(139, 0, 0, 0.15);
}
.doc-icon {
  width: 60px;
  margin-bottom: 16px;
  opacity: 0.8;
}
.doc-card h4 {
  color: var(--port);
  margin: 12px 0 8px;
}
.download-btn {
  margin-top: 16px;
  color: var(--starboard);
  font-weight: 600;
}

/* Contact */
.contact {
  padding: 120px 5%;
  background: var(--blue);
  color: white;
  text-align: center;
}

.contact h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.contact .contact-info {
  font-size: 1.3rem;
  margin: 30px 0 50px;
  line-height: 1.8;
}

.contact .contact-info b {
  color: var(--starboard);
}

.contact form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.contact input,
.contact textarea {
  padding: 18px 20px;
  border-radius: 12px;
  border: none;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue);
  width: 100%;
}

.contact textarea {
  min-height: 140px;
  resize: vertical;
}

.contact button {
  padding: 18px 40px;
  border-radius: 50px;
  background: var(--port);
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  justify-self: center;
  min-width: 240px;
}

.contact button:hover {
  background: white;
  color: var(--blue);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .contact {
    padding: 100px 5%;
  }
  .contact h2 {
    font-size: 2.5rem;
  }
  .contact input,
  .contact textarea,
  .contact button {
    font-size: 1rem;
    padding: 16px;
  }
}

/* Footer */
footer {
  background: linear-gradient(180deg, #03121a, var(--blue));
  color: #dfe9ef;
  padding: 60px 6% 30px;
}
.socials a {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.socials a:hover {
  background: var(--port);
  color: var(--black);
  transform: translateY(-5px);
}

/* ============================================= */
/*  ANIMATIONS                                   */
/* ============================================= */
.reveal-left,
.reveal-right,
.reveal-up {
  opacity: 0;
  transform: translateX(-80px);
  transition: all 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal-right {
  transform: translateX(80px);
}
.reveal-up {
  transform: translateY(60px);
}
.reveal-left.active,
.reveal-right.active,
.reveal-up.active {
  opacity: 1;
  transform: translate(0);
}

/* Card stagger */
.course-grid .course-card:nth-child(1) {
  transition-delay: 0.1s;
}
.course-grid .course-card:nth-child(2) {
  transition-delay: 0.25s;
}
.course-grid .course-card:nth-child(3) {
  transition-delay: 0.4s;
}
.course-grid .course-card:nth-child(4) {
  transition-delay: 0.55s;
}

/* Hero text fade-in */
.hero-content > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}
.hero-content.active > * {
  opacity: 1;
  transform: translateY(0);
}
.hero-content.active p {
  transition-delay: 0.3s;
}
.hero-content.active h1 {
  transition-delay: 0.5s;
}
.hero-content.active .btn {
  transition-delay: 0.1s;
}

/* Wave divider */
.wave svg path {
  fill: var(--bg-light);
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .btn {
    padding: 20px 40px;
  }
  .course-card {
    padding: 36px 24px;
  }
  .slider-nav button {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
}
/* FLOATING WHATSAPP BUBBLE */
.whatsapp-bubble {
  text-decoration: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 64px;
  height: 64px;
  background: #25d366; /* Official WhatsApp green */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  background: #128c7e; /* Darker green on hover */
}

/* Subtle pulse animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Mobile – slightly smaller */
@media (max-width: 640px) {
  .whatsapp-bubble {
    width: 56px;
    height: 56px;
    font-size: 32px;
    bottom: 20px;
    right: 20px;
  }
}
