/* Custom Styles */
@import url('fonts.css');

:root {
  --primary-color: #0077A7;
  /* Teal */
  --primary-hover-color: #20292f;
  --text-dark: #0a2540;
  /* Dark Blue */
  --text-light: #54595F;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-dark);
}

/* Utilities */
.text-primary-custom {
  color: var(--primary-color) !important;
}

.letter-spacing-2 {
  letter-spacing: 2px;
}

.btn,
[class*="btn-"] {
  background-color: #1a1a1a;
  background-image: url('../img/but0bhf.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 40px;
  border-radius: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover,
[class*="btn-"]:hover {
  color: #fff;
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Header */
header {
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
  left: 0;
  transition: all 0.3s ease;
}

.navbar-brand img {
  height: 45px;
  transition: height 0.3s ease;
}

.navbar {
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.07);
  padding: 10px 0;
  transition: all 0.3s ease;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  padding: 8px 14px !important;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.nav-link.active,
.nav-link:hover {
  color: var(--primary-color) !important;
}

header.scrolled .nav-link {
  color: var(--text-dark) !important;
}

header.scrolled .nav-link.active,
header.scrolled .nav-link:hover {
  color: var(--primary-color) !important;
}

/* Top wrap (logo + mobile toggler row) */
.top-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

@media (min-width: 992px) {
  .top-wrap {
    width: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    margin-top: 60px;
  }
}

/* Animated hamburger */
#mobile-toggle {
  border: none;
  padding: 6px 8px;
  background: transparent;
  box-shadow: none !important;
  outline: none;
}

.animated-icon1 {
  width: 22px;
  height: 16px;
  position: relative;
  display: inline-block;
}

.animated-icon1 span {
  display: block;
  background: var(--text-dark);
  height: 2px;
  width: 100%;
  border-radius: 2px;
  transition: all 0.35s ease;
  position: absolute;
}

.animated-icon1 span:nth-child(1) { top: 2px; }
.animated-icon1 span:nth-child(2) { top: 12px; }

.navbar-toggler:not(.collapsed) .animated-icon1 span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.navbar-toggler:not(.collapsed) .animated-icon1 span:nth-child(2) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Nav CTA button */
.btn-nav-cta {
  display: inline-block;
  background: var(--primary-color);
  color: #fff !important;
  padding: 9px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn-nav-cta:hover {
  background: var(--primary-hover-color);
  color: #fff !important;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 100px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Video Background */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 20, 40, 0.5) 0%, rgba(0, 40, 80, 0.3) 100%);
  z-index: 1;
}

.hero-section .container {
  z-index: 3;
  position: relative;
}

/* Hero Title */
.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

/* Hero Description */
.hero-description {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 30px;
}

/* Shape Divider */
.hero-shape-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
}

.hero-shape-divider svg,
.hero-shape-divider img {
  width: calc(100% + 1.3px);
  height: 100px;
  display: block;
  transform: rotate(180deg);
}


@media (max-width: 991px) {
  .hero-title {
    font-size: 42px;
  }
}

@media (max-width: 767px) {
  .hero-section {
    min-height: 85vh;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-description {
    font-size: 14px;
  }

}

/* About Section */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/wave-bg-isolated.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.about-section .container {
  position: relative;
  z-index: 1;
}

/* About Statistics */
.about-stats-row {
  padding-top: 60px;
  margin-top: 60px !important;
}

.stat-item {
  display: flex;
  flex-direction: column;
  /* Number on top, title below */
  text-align: center;
}

.stat-number {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
}

.stat-number.tours {
  color: #5379FE;
}

.stat-number.customers {
  color: #682FDE;
}

.stat-number.places {
  color: #0DB9C6;
}

.stat-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 10px;
}

.about-section img {
  max-width: 100%;
  /* Add subtle shadow or styling if needed */
}

.icon-box img {
  opacity: 0.8;
}

/* Equipment Section */
.equipment-section {
  position: relative;
  padding: 160px 0;
  background: linear-gradient(90deg, #ebfbff 30%, #ffffff 100%);
  overflow: hidden;
}

.equipment-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/wave-bg-isolated.png');
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.2;
  pointer-events: none;
}

.equipment-title {
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3);
}

.equipment-feature-item h5 {
  font-size: 1.1rem;
  color: #1e293b;
}

.equipment-feature-item p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.enjoy-diving-bg-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  width: 100%;
}

.floating-diver-container {
  position: relative;
  z-index: 1;
}

.floating-diver {
  animation: float-2 5s ease-in-out infinite;
}

@keyframes float-2 {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-30px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Testimonials Section */

/* Blog Section */
.blog-section .card {
  transition: transform 0.3s ease;
}

.blog-section .card:hover {
  transform: translateY(-5px);
}

/* Footer */
footer a {
  color: #54595F;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #6EC1E4;
}

/* Team Section */
.team-section {
  background-image: url('../img/splash.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}

.team-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.team-img-container {
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
}

.team-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card img {
  transform: scale(1);
  transition: transform 0.5s ease;
  width: 100%;
}

.team-card:hover img {
  transform: scale(1.1);
}

.team-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  transition: all 0.3s ease;
}

.team-role {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 5px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.team-name {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Gradient Overlay on bottom of image for text readability */
.team-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0.6;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.team-card:hover::after {
  opacity: 0.8;
  transition: all 0.3s ease;
}

.team-card:hover .team-role {
  opacity: 1;
  transform: translateY(0);
}

.cave-diving-content-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* The text "WATER FILLED CAVES" background */
  background-image: url('../img/ksjdvkdvlg.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  min-height: 480px;
  /* Increased height to show full text bg */
  width: 100%;
}

.cave-main-img {
  max-width: 85%;
  height: auto;
  transition: transform 0.5s ease;
  position: relative;
  z-index: 2;
}

.cave-diving-content-wrapper:hover .cave-main-img {
  transform: translateY(-10px);
}

.btn-pill-custom:hover {
  color: #fff;
}

/* Decorative Shapes for First Experience */
.first-exp-img-wrapper {
  position: relative;
  padding: 30px;
  display: inline-block;
}

/* Light blue squares */
.dec-shape {
  position: absolute;
  background-color: #dbe9f9;
  /* Color match from observation */
  border-radius: 30px;
  z-index: 1;
}

.shape-1 {
  width: 140px;
  height: 140px;
  top: 0;
  right: 0;
  transform: rotate(15deg);
}

.shape-2 {
  width: 100px;
  height: 100px;
  bottom: 0;
  left: 40px;
  transform: rotate(-10deg);
}

.first-exp-img-wrapper img {
  position: relative;
  z-index: 2;
  border-radius: 40px;
}

@media (max-width: 991px) {

  .cave-diving-content-wrapper {
    min-height: 300px;
  }

  .ps-lg-5,
  .pe-lg-5 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .first-exp-img-wrapper {
    margin-top: 40px;
    text-align: center;
    padding: 10px;
  }

  .shape-1,
  .shape-2 {
    display: none;
    /* Hide decorative shapes on mobile to prevent overflow */
  }
}

/* Blog Section Styles */
.blog-section h2 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 2px;
}

.blog-card {
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.blog-img-container {
  height: 240px;
  overflow: hidden;
}

.blog-img-container img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-container img {
  transform: scale(1.05);
}

.blog-card .card-body {
  padding: 30px;
}

.blog-card .card-title {
  font-size: 20px;
  line-height: 1.4;
  min-height: 56px;
  /* Ensure 2 lines alignment */
}

.blog-card .card-title a {
  transition: color 0.3s ease;
}

.blog-card .card-title a:hover {
  color: var(--primary-color) !important;
}

.btn-read-more-blog {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  transition: all 0.3s ease;
  /* Reset base btn styles - this is a text link, not a pill button */
  background-color: transparent;
  background-image: none;
  border-radius: 0;
  padding: 0;
}

.btn-read-more-blog:hover {
  color: #0A2540;
  letter-spacing: 0.5px;
  opacity: 1;
  transform: none;
}

.btn-read-more-blog i {
  transition: transform 0.3s ease;
}

.btn-read-more-blog:hover i {
  transform: translateX(5px);
}

/* Contact Form 7 — Footer CTA */
.cta-section .wpcf7-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: flex-start;
  max-width: 720px;
  margin: 0 auto;
}

.cta-section .wpcf7-form p {
  margin: 0;
  flex: 1 1 200px;
}

.cta-section .wpcf7-form p label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cta-section .wpcf7-form p label br {
  display: none;
}

/* Textarea and submit rows take full width */
.cta-section .wpcf7-form p:has(textarea),
.cta-section .wpcf7-form p:has(input[type="submit"]) {
  flex: 1 1 100%;
}

.cta-section .wpcf7-form p:has(input[type="submit"]) {
  text-align: center;
}

.cta-section .wpcf7-form input[type="text"],
.cta-section .wpcf7-form input[type="email"],
.cta-section .wpcf7-form input[type="tel"],
.cta-section .wpcf7-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 13px 22px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.cta-section .wpcf7-form textarea {
  border-radius: 16px;
  resize: none;
  min-height: 120px;
}

.cta-section .wpcf7-form input[type="text"]::placeholder,
.cta-section .wpcf7-form input[type="email"]::placeholder,
.cta-section .wpcf7-form input[type="tel"]::placeholder,
.cta-section .wpcf7-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.cta-section .wpcf7-form input[type="text"]:focus,
.cta-section .wpcf7-form input[type="email"]:focus,
.cta-section .wpcf7-form input[type="tel"]:focus,
.cta-section .wpcf7-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.18);
}

.cta-section .wpcf7-form input[type="submit"] {
  background: #fff;
  color: var(--primary-color);
  border: none;
  border-radius: 50px;
  padding: 14px 48px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.cta-section .wpcf7-form input[type="submit"]:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

.cta-section .wpcf7-not-valid-tip {
  color: #ffcdd2;
  font-size: 12px;
  margin-top: 4px;
  padding-left: 12px;
}

.cta-section .wpcf7-response-output {
  width: 100%;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
  margin-top: 8px !important;
}

/* CTA Section */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  margin-top: 0;
}

.cta-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Testimonials Section */
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '\f10d';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 3rem;
  color: rgba(74, 107, 224, 0.08);
  position: absolute;
  top: 20px;
  right: 25px;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar {
  width: 70px;
  height: 70px;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  padding: 2px;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-quote p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-light);
}

.testimonial-card h5 {
  color: var(--text-dark);
  font-size: 1rem;
}

.testimonial-card .text-muted.small {
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.testimonial-stars {
  color: #f5a623;
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.cta-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(4, 21, 39, 0.6);
  z-index: 1;
}

.cta-section h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 6px;
  line-height: 50px;
  color: #fff;
  margin-bottom: 2rem !important;
}

.cta-section p.lead {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: #fff;
  margin-bottom: 3rem !important;
}

.btn-cta:hover {
  color: #fff;
}

/* Footer Styles */
.site-footer {
  background-color: #EBFBFF;
  /* Exact pale blue from demo */
  color: #54595F;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  position: relative;
  overflow: hidden;
}

.site-footer h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.63px;
  line-height: 1.2;
  color: #0A2540;
  margin-bottom: 25px;
}

.site-footer h6 {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.25px;
  line-height: 1.2;
  color: #0A2540;
}

.site-footer .container {
  position: relative;
  z-index: 2;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #0A2540;
  color: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 14px;
}

.social-link:hover {
  background-color: #6EC1E4;
  color: #fff;
  transform: translateY(-3px);
}

.newsletter-form .form-control {
  background-color: #fff;
  border-radius: 30px 0 0 30px;
  padding: 0 25px;
  height: 55px;
  font-size: 14px;
  border: none;
  color: #54595F;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.newsletter-form .btn-subscribe {
  border-radius: 0 30px 30px 0;
  padding: 0 35px;
  height: 55px;
}

.newsletter-form .btn-subscribe:hover {
  color: #fff;
}

.copyright-bar {
  border-top: 1px solid rgba(10, 37, 64, 0.08);
  padding-top: 30px;
  margin-top: 60px;
}

.copyright-bar a {
  color: #54595F;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.copyright-bar a:hover {
  color: #6EC1E4;
}

/* Shape Divider Styles */
.shape-divider-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
  transform: scaleY(-1);
}

.shape-divider-top svg,
.shape-divider-top img {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

.shape-divider-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
  transform: scaleY(-1);
}

.shape-divider-bottom svg,
.shape-divider-bottom img {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

/* Ensure Button is clickable */
.btn-cta {
  position: relative;
  z-index: 5;
}

/* Responsive */
@media (max-width: 991px) {
  .cta-section h2 {
    font-size: 32px;
    line-height: 1.3;
    letter-spacing: 3px;
  }
}

@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }

  .site-footer {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .site-footer .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }

  .newsletter-form {
    max-width: 100%;
  }

  .social-icons {
    justify-content: center;
    margin-bottom: 30px;
  }

  .copyright-bar {
    text-align: center;
    margin-top: 40px;
  }

  .copyright-bar .text-md-end {
    text-align: center !important;
    margin-top: 15px;
  }

  .copyright-bar ul li {
    margin: 0 8px;
  }

  /* Blog section mobile fix */
  .blog-section .row.g-4 {
    --bs-gutter-x: 1rem;
  }

  /* Equipment section mobile */
  .equipment-section {
    padding: 100px 0;
  }

  /* CTA section mobile */
  .cta-section {
    padding: 80px 0;
  }

  .cta-section h2 {
    font-size: 24px;
    letter-spacing: 2px;
    line-height: 1.3;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.animate-on-scroll.fade-up {
  transform: translateY(50px);
}

.animate-on-scroll.fade-left {
  transform: translateX(-50px);
}

.animate-on-scroll.fade-right {
  transform: translateX(50px);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translate(0, 0);
}

/* Navbar shrink */
header.scrolled .navbar {
  background-color: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 4px 0;
}

header.scrolled .navbar-brand img {
  height: 35px;
}

/* Hero title reveal */
.title-reveal {
  animation: titleSlideIn 1s ease forwards;
}

@keyframes titleSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
    letter-spacing: 8px;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 1px;
  }
}

/* Blog cards stagger */
.blog-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.blog-card.blog-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Wave icon spin on hover */
.wave-spin {
  animation: waveSpin 0.6s ease;
}

@keyframes waveSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.2);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* Social icon bounce */
.bounce-in {
  animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.25);
  }

  50% {
    transform: scale(0.9);
  }

  70% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Team card tilt transition */
.team-card {
  transition: transform 0.3s ease;
}

/* Team card clickable overlay */
.team-card-clickable {
  cursor: pointer;
}

.team-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 150, 199, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
  z-index: 3;
}

.team-card-overlay i {
  font-size: 2rem;
  color: #fff;
}

.team-card-clickable:hover .team-card-overlay {
  opacity: 1;
}

/* Team member modal */
.team-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.team-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}

.team-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.team-modal-backdrop.is-open .team-modal {
  transform: translateY(0);
}

.team-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0;
}

.team-modal-close:hover {
  color: #000;
}

.team-modal-body {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.team-modal-img-wrap {
  flex: 0 0 200px;
}

.team-modal-img-wrap img {
  width: 200px;
  height: 240px;
  object-fit: cover;
}

.team-modal-text {
  flex: 1;
}

@media (max-width: 576px) {
  .team-modal-body {
    flex-direction: column;
  }

  .team-modal-img-wrap,
  .team-modal-img-wrap img {
    width: 100%;
    height: 220px;
  }
}

/* Back to top button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #1a1a1a;
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background-color: #6EC1E4;
  transform: translateY(-3px);
}

/* Button magnetic hover reset */
.btn {
  transition: all 0.3s ease, transform 0.15s ease;
}

/* ========================================
   PAGE HERO SECTION (Blog, etc.)
   ======================================== */
.page-hero-section {
  background-color: #ebfbff;
  padding: 150px 0 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero-bg-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../img/wave-bg-isolated.png');
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.15;
  pointer-events: none;
}

.page-hero-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.page-breadcrumb {
  font-size: 14px;
  color: var(--text-light);
  position: relative;
  z-index: 1;
  margin-top: 12px;
}

.page-breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-breadcrumb a:hover {
  color: var(--primary-color);
}

@media (max-width: 767px) {
  .page-hero-section {
    padding: 110px 0 80px;
  }

  .page-hero-title {
    font-size: 32px;
    letter-spacing: 1px;
  }
}

/* ========================================
   BLOG LISTING PAGINATION
   ======================================== */
.blog-pagination {
  display: flex;
  justify-content: center;
}

.blog-pagination ul.page-numbers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-pagination li {
  display: inline-flex;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  background: #f0f4ff;
  text-decoration: none;
  transition: all 0.3s ease;
  background-image: none;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background-color: var(--primary-color);
  background-image: none;
  color: #fff;
  opacity: 1;
  transform: none;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
}

.lang-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-list li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  overflow: hidden;
  opacity: 0.55;
  filter: grayscale(40%);
}

.lang-list li a img {
  width: 24px;
  height: auto;
  display: block;
}

.lang-list li a:hover {
  opacity: 1;
  filter: none;
  border-color: var(--primary-color);
}

.lang-list li.current a {
  opacity: 1;
  filter: none;
  border-color: var(--primary-color);
  background: rgba(0, 123, 255, 0.06);
}

.about-img-main {
  object-fit: cover;
}

/* Why Us section */
.why-us-section {
  background-color: var(--primary-bg-color);
  position: relative;
}

.why-us-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-us-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

.why-us-icon .dashicons {
  width: auto;
  height: auto;
}

/* Gallery section */
.about-gallery-section .gallery-item {
  position: relative;
}

/* Gallery lightbox */
.gallery-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1090;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.gallery-lightbox-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}

.gallery-lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-inner img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.gallery-lightbox-backdrop.is-open .gallery-lightbox-inner img {
  transform: scale(1);
}

.gallery-lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  line-height: 1;
  transition: background 0.2s;
  z-index: 1;
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Gallery marquee (auto-scroll) */
.gallery-marquee {
  overflow: hidden;
}

.gallery-marquee-track {
  display: flex;
  width: max-content;
  animation: gallery-scroll 30s linear infinite;
}

.gallery-marquee:hover .gallery-marquee-track {
  animation-play-state: paused;
}

.gallery-marquee-item {
  flex-shrink: 0;
}

@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.about-gallery-section .gallery-img {
  transition: transform 0.4s ease;
  display: block;
}

.about-gallery-section .gallery-item:hover .gallery-img {
  transform: scale(1.06);
}

@media (max-width: 767px) {
  .about-img-main { height: 220px; }
  .about-gallery-section .gallery-img { height: 180px !important; }
}

/* Blog filter bar */
.blog-cat-pill {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-dark);
  background: #f0f8ff;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.blog-cat-pill:hover,
.blog-cat-pill.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.blog-search-wrap {
  display: flex;
  border: 2px solid #d1e9f7;
  border-radius: 50px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.25s ease;
}

.blog-search-wrap:focus-within {
  border-color: var(--primary-color);
}

.blog-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 18px;
  font-size: 0.9rem;
  background: transparent;
}

.blog-search-btn {
  background: var(--primary-color);
  border: none;
  color: #fff;
  padding: 8px 18px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.blog-search-btn:hover {
  background: var(--primary-dark, #0693b5);
}

/* Blog pagination */
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 3px;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-dark);
  background: #f0f8ff;
  transition: all 0.25s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--primary-color);
  color: #fff;
}

.blog-pagination .page-numbers.dots {
  background: transparent;
  cursor: default;
}

@media (max-width: 767px) {
  .blog-cat-pills { gap: 8px !important; }
  .blog-cat-pill { font-size: 0.8rem; padding: 5px 14px; }
}

/* ========================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ======================================== */

/* Stats numbers on mobile: 3-column layout needs smaller text */
@media (max-width: 767px) {
  .stat-number {
    font-size: 38px;
  }

  .about-stats-row {
    padding-top: 30px;
    margin-top: 30px !important;
  }

  /* Services section images on mobile */
  .cave-diving-content-wrapper {
    min-height: 240px;
    padding: 1.5rem !important;
  }

  .first-exp-img-wrapper {
    margin-top: 20px;
  }

  /* Why Us section padding */
  .why-us-card {
    padding: 1.5rem !important;
  }

  /* Team modal better spacing on small screens */
  .team-modal {
    padding: 1.25rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .stat-number {
    font-size: 32px;
  }

  .hero-title {
    font-size: 28px;
  }

  .page-hero-title {
    font-size: 26px;
    letter-spacing: 0.5px;
  }

  .cta-section h2 {
    font-size: 22px;
    letter-spacing: 1px;
  }

  /* Prevent CTA form overflowing */
  .cta-section .wpcf7-form {
    padding: 0 0.5rem;
  }

  /* Nav CTA button full-width on mobile */
  .btn-nav-cta {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
  }
}
