/* Custom-Style CSS for BESTEC Marine Engineering */

:root {
  --primary-navy: #092a4b;
  --primary-blue: #1c64a1;
  --accent-blue: #22b6ef;
  --accent-red: #e30613;
  --accent-gold: #ffc107;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Header & Topbar */
.top-bar-bg {
  background-color: #092a4b;
}

.nav-link {
  position: relative;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #1c64a1;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background-color: #1c64a1;
  border-radius: 2px;
}

/* Dropdown Menu */
.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hero Section */
.home-hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #092a4b;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 7s ease-out;
  transform: scale(1.05);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.home-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(9, 42, 75, 0.88) 0%, rgba(9, 42, 75, 0.65) 60%, rgba(0, 0, 0, 0.75) 100%);
  z-index: 2;
}

.home-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.home-hero-title {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.home-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.home-hero-btn--discover {
  background: linear-gradient(135deg, #1c64a1 0%, #0d47a1 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-hero-btn--discover:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  color: #ffffff;
}

.home-hero-btn--contact {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.home-hero-btn--contact:hover {
  background: #ffffff;
  color: #092a4b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Service Cards */
.service-card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e1;
}

.service-image-box {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: #092a4b;
}

.service-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-image-box img {
  transform: scale(1.08);
}

.service-copy {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-badge.blue {
  background-color: #eff6ff;
  color: #2563eb;
}

.icon-badge.green {
  background-color: #ecfdf5;
  color: #059669;
}

.icon-badge.yellow {
  background-color: #fefce8;
  color: #d97706;
}

.icon-badge.cyan {
  background-color: #ecfeff;
  color: #0891b2;
}

.icon-badge.indigo {
  background-color: #eef2ff;
  color: #4f46e5;
}

.icon-badge.emerald {
  background-color: #f0fdf4;
  color: #16a34a;
}

.icon-badge.amber {
  background-color: #fffbeb;
  color: #b45309;
}

.icon-badge.red {
  background-color: #fef2f2;
  color: #dc2626;
}

.service-link {
  color: #1c64a1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  transition: all 0.2s ease;
}

.service-link:hover {
  color: #2563eb;
  transform: translateX(4px);
}

/* Parallax Stats */
.parallax-hero-section {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  padding: 1.75rem 1rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Why Choose Us Feature Cards */
.about-feature {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}

.about-feature:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Marquee Slider */
.client-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1.5rem 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.client-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}

.client-marquee-track:hover {
  animation-play-state: paused;
}

.client-marquee-slide {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
}

.cert-card {
  height: 90px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(20%);
  background: #ffffff;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.cert-card:hover {
  filter: grayscale(0%);
  transform: scale(1.08);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  border-color: #3b82f6;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Back to top button */
#backToTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1c64a1;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#backToTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#backToTopBtn:hover {
  background: #2563eb;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

/* WhatsApp Floating Button */
#whatsappFloatingBtn {
  position: fixed;
  bottom: 85px;
  right: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  z-index: 99;
  transition: all 0.3s ease;
}

#whatsappFloatingBtn:hover {
  background: #20ba59;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}