/* ============================================================
   Sirrihatt Subsea Services – main.css
   All custom styles. Tailwind handles utilities via CDN.
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* ---------- Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Exo 2', sans-serif;
}

/* ---------- Partner logo marquee ---------- */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  width: max-content;   /* let content determine width */
  will-change: transform;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* ---------- Product card hover ---------- */
.product-card {
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ---------- Service card hr accent ---------- */
.service-card hr {
  border-color: #3b82f6;
  border-top-width: 2px;
}

/* ---------- Back-to-top button ---------- */
#backToTopBtn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#backToTopBtn.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Nav link active / hover ---------- */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ---------- Modal transition ---------- */
[x-cloak] { display: none !important; }

/* ---------- Stats bar ---------- */
#stats {
  background-color: #e5e7eb;
}

/* ---------- Contact form inputs ---------- */
.contact-input {
  background: transparent;
  border: 1px solid #4b5563;
  color: white;
  border-radius: 0.375rem;
  padding: 0.75rem;
  width: 100%;
  transition: border-color 0.2s ease;
}

.contact-input::placeholder {
  color: #9ca3af;
}

.contact-input:focus {
  outline: none;
  border-color: #3b82f6;
}
