/* ==========================================================================
   RAPIDCAT REDESIGNED MODERN DESIGN SYSTEM & STYLESHEET
   Hydrodynamic Water Effects, Parallax, Propeller Engine, & Ocean Intro
   ========================================================================== */

/* 1. ROOT DESIGN TOKENS */
:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);

  /* Color Palette - Marine Luxury Dark with Cyan & Emerald Neon Highlights */
  --color-navy-950: #070b14;
  --color-navy-900: #0c1322;
  --color-navy-850: #111a2e;
  --color-navy-800: #17233d;
  
  --color-cyan-300: #67e8f9;
  --color-cyan-400: #22d3ee;
  --color-cyan-500: #06b6d4;
  
  --color-emerald-300: #6ee7b7;
  --color-emerald-400: #34d399;
  --color-emerald-500: #10b981;
  
  --color-blue-400: #60a5fa;
  --color-blue-500: #3b82f6;
  --color-blue-600: #2563eb;
  
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;

  /* Glassmorphism & Elevation */
  --glass-bg: rgba(12, 19, 34, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: 0 0 35px rgba(34, 211, 238, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* 2. BASE STYLES & RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--color-slate-100);
  background-color: var(--color-navy-950);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--color-navy-950);
  line-height: 1.6;
}

.font-heading {
  font-family: var(--font-heading);
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* 3. UTILITY CLASSES */
.bg-navy-950 { background-color: var(--color-navy-950); }
.bg-navy-900 { background-color: var(--color-navy-900); }
.bg-navy-850 { background-color: var(--color-navy-850); }
.text-navy-950 { color: var(--color-navy-950); }

.text-cyan-300 { color: var(--color-cyan-300); }
.text-cyan-400 { color: var(--color-cyan-400); }
.text-cyan-500 { color: var(--color-cyan-500); }

.bg-cyan-500\/10 { background-color: rgba(6, 182, 212, 0.1); }
.bg-cyan-500\/20 { background-color: rgba(6, 182, 212, 0.2); }
.border-cyan-500\/20 { border-color: rgba(6, 182, 212, 0.2); }
.border-cyan-500\/30 { border-color: rgba(6, 182, 212, 0.3); }
.border-cyan-500\/40 { border-color: rgba(6, 182, 212, 0.4); }

.text-emerald-300 { color: var(--color-emerald-300); }
.text-emerald-400 { color: var(--color-emerald-400); }
.text-emerald-500 { color: var(--color-emerald-500); }

.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1); }
.bg-emerald-500\/20 { background-color: rgba(16, 185, 129, 0.2); }
.border-emerald-500\/20 { border-color: rgba(16, 185, 129, 0.2); }
.border-emerald-500\/30 { border-color: rgba(16, 185, 129, 0.3); }

.text-blue-300 { color: var(--color-blue-400); }
.text-blue-400 { color: var(--color-blue-400); }

.text-slate-200 { color: var(--color-slate-200); }
.text-slate-300 { color: var(--color-slate-300); }
.text-slate-400 { color: var(--color-slate-400); }
.text-slate-500 { color: var(--color-slate-500); }

.bg-radial-vignette {
  background: radial-gradient(circle at center, transparent 30%, rgba(7, 11, 20, 0.85) 90%);
}

/* 4. KEYFRAME ANIMATIONS */
@keyframes pulseSlow {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(1.08); }
}

@keyframes subtleZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes spinPropeller {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinPropellerReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes waveDrift {
  0% { transform: translateX(0) translateZ(0) scaleY(1); }
  50% { transform: translateX(-25%) translateZ(0) scaleY(0.85); }
  100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
}

@keyframes waterDropPulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 0.3; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes bubbleFloat {
  0% { transform: translateY(100%) translateX(0); opacity: 0; }
  20% { opacity: 0.7; }
  80% { opacity: 0.8; }
  100% { transform: translateY(-120%) translateX(15px); opacity: 0; }
}

@keyframes waterJetFlow {
  0% { transform: scaleX(0.8) scaleY(1); opacity: 0.7; }
  50% { transform: scaleX(1.1) scaleY(1.2); opacity: 0.95; }
  100% { transform: scaleX(0.8) scaleY(1); opacity: 0.7; }
}

@keyframes oceanGlow {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(34, 211, 238, 0.4)); }
  50% { filter: drop-shadow(0 0 35px rgba(52, 211, 153, 0.7)); }
}

.animate-pulse-slow {
  animation: pulseSlow 8s ease-in-out infinite;
}

.animate-subtle-zoom {
  animation: subtleZoom 20s ease-in-out infinite alternate;
}

.animate-modal-in {
  animation: modalFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-propeller {
  animation: spinPropeller 0.4s linear infinite;
  transform-origin: 0px 0px;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.4));
}

.animate-propeller-fast {
  animation: spinPropeller 0.15s linear infinite;
  transform-origin: 0px 0px;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.7));
}

.animate-propeller-rev {
  animation: spinPropellerReverse 0.4s linear infinite;
  transform-origin: 0px 0px;
  filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.4));
}

.animate-propeller-rev-fast {
  animation: spinPropellerReverse 0.15s linear infinite;
  transform-origin: 0px 0px;
  filter: drop-shadow(0 0 12px rgba(52, 211, 153, 0.7));
}

.animate-water-jet {
  animation: waterJetFlow 0.8s ease-in-out infinite;
}

/* Vertical Input Slider CSS for Dual Marine Binnacle */
input[type=range].vertical-slider {
  writing-mode: bt-lr;
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.animate-ocean-glow {
  animation: oceanGlow 4s ease-in-out infinite;
}

/* 5. FILTER TABS STYLING */
.filter-tab {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-slate-300);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.filter-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-tab.active {
  background: linear-gradient(135deg, var(--color-cyan-400), var(--color-emerald-400));
  color: var(--color-navy-950);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
  font-weight: 700;
}

/* 6. BOAT CARDS & HOVER ELEVATION */
.boat-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.boat-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(34, 211, 238, 0.15);
}

/* 7. PARALLAX FLOATING ELEMENTS */
.parallax-layer {
  transition: transform 0.1s cubic-bezier(0, 0, 0.2, 1);
  will-change: transform;
}

.parallax-text-bg {
  position: absolute;
  font-family: var(--font-heading);
  font-size: clamp(4rem, 15vw, 16rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  line-height: 0.8;
  letter-spacing: -0.05em;
}

/* 8. WATER WAVE DIVIDER ANIMATION */
.wave-divider-wrap {
  position: relative;
  width: 100%;
  height: 60px;
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
}

.wave-svg-layer {
  position: absolute;
  left: 0;
  width: 200%;
  height: 100%;
  background-repeat: repeat-x;
  animation: waveDrift 14s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
  transform: translate3d(0, 0, 0);
}

.wave-layer-1 {
  opacity: 0.35;
  animation-duration: 9s;
}

.wave-layer-2 {
  opacity: 0.6;
  animation-duration: 15s;
  animation-direction: reverse;
}

/* 9. WATER CANVAS PARTICLES & RIPPLES */
#water-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* 10. OCEAN & LOGO INTRO OVERLAY */
#ocean-intro-overlay {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s ease;
}

#ocean-intro-overlay.intro-warp-out {
  transform: scale(1.04);
  filter: blur(4px);
  opacity: 0;
}

#ocean-intro-overlay.intro-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-water-caustics {
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.15) 0%, rgba(7, 11, 20, 0.95) 75%);
}

.intro-ripple-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(34, 211, 238, 0.4);
  animation: waterDropPulse 3s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

/* 11. MOTOR & PROPELLER TELEMETRY HUD */
.propeller-blade {
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.6));
}

/* Realistic Marine Binnacle Throttle Box */
.binnacle-housing {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), 0 10px 25px rgba(0, 0, 0, 0.5);
}

.throttle-lever-track {
  position: relative;
  width: 100%;
  height: 80px;
  background: radial-gradient(circle at 50% 120%, #1e293b, #090e17);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
}

.throttle-lever-arm {
  position: absolute;
  bottom: 8px;
  width: 32px;
  height: 58px;
  background: linear-gradient(to right, #94a3b8, #f8fafc, #64748b);
  border-radius: 8px 8px 4px 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  cursor: grab;
  transition: left 0.05s ease-out;
}

.throttle-lever-arm:active {
  cursor: grabbing;
}

.throttle-knob {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 26px;
  background: linear-gradient(135deg, #334155, #0f172a);
  border: 1.5px solid #64748b;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.throttle-trim-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 14px;
  background: #22d3ee;
  border-radius: 3px;
  box-shadow: 0 0 6px #22d3ee;
}

.throttle-detent-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.throttle-detent-dot.active {
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee;
}

/* 12. CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-navy-950);
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 5px;
  border: 2px solid var(--color-navy-950);
}

::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* 13. ENGINE SELECTOR TABS & MOTOR MATRIX CARDS */
.engine-select-tab, .motor-brand-tab, .motor-hp-tab {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-slate-300);
  border-color: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.engine-select-tab:hover, .motor-brand-tab:hover, .motor-hp-tab:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-1px);
}

.engine-select-tab.active, .motor-brand-tab.active, .motor-hp-tab.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(16, 185, 129, 0.25));
  border-color: var(--color-cyan-400);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.25);
}

.motor-card {
  background: rgba(12, 19, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.motor-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.motor-card.active {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(7, 11, 20, 0.98));
  border-color: var(--card-accent, #22d3ee) !important;
  box-shadow: 0 0 20px var(--card-glow, rgba(34, 211, 238, 0.3));
}


