@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --bg-1: #0b1a2b;
  --bg-2: #0f263f;
  --bg-3: #142b44;
  --bg-image: url("images/port-amsterdam.jpg");
  --panel: rgba(20, 32, 48, 0.85);
  --panel-strong: rgba(27, 40, 56, 0.95);
  --text: #f0f0f0;
  --muted: #c9d4df;
  --accent: #f39c12;
  --accent-2: #29b6f6;
  --ring: rgba(243, 156, 18, 0.5);
  --shadow-strong: 0 18px 45px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, rgba(6, 12, 22, 0.78) 0%, rgba(16, 30, 48, 0.92) 100%),
    var(--bg-image),
    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-3) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

main {
  flex: 1;
}

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.04), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.03), transparent 30%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.03), transparent 35%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 8px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}


html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="light"] body {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(236, 240, 246, 0.92) 100%),
    var(--bg-image),
    linear-gradient(135deg, #eaf0f7 0%, #f6f7fb 100%);
  color: #1d2430;
}

html[data-theme="light"] section,
html[data-theme="light"] .site-header,
html[data-theme="light"] .ship-card,
html[data-theme="light"] .blog-card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .comparison-table,
html[data-theme="light"] .modal-content {
  background-color: rgba(255, 255, 255, 0.85);
  color: #1d2430;
  box-shadow: 0 10px 25px rgba(21, 33, 53, 0.15);
}

html[data-theme="light"] .viewer-section,
html[data-theme="light"] .viewer-controls {
  background-color: rgba(255, 255, 255, 0.82);
  color: #1d2430;
}

html[data-theme="light"] .viewer-stage {
  background: linear-gradient(180deg, rgba(246, 248, 252, 0.95), rgba(230, 236, 244, 0.95));
}

html[data-theme="light"] .ship-desc,
html[data-theme="light"] .blog-card p,
html[data-theme="light"] .comparison-table td {
  color: #364152;
}

html[data-theme="light"] .menu a,
html[data-theme="light"] .filter-btn,
html[data-theme="light"] .ship-select,
html[data-theme="light"] .search-input {
  color: #1d2430;
}

html[data-theme="light"] .filter-btn.active {
  color: #1d2430;
}


.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #f39c12;
  color: #0b1a2b;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  z-index: 200;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


.site-header {
  background-color: var(--panel-strong);
  padding: 18px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-header h1 {
  font-family: 'Cinzel', serif;
  text-align: center;
  margin-bottom: 6px;
  font-size: 2.4rem;
  color: var(--accent);
}

.main-nav {
  display: flex;
  justify-content: center;
}

.menu {
  background-color: transparent;
  display: flex;
  justify-content: center;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  gap: 30px;
}

.menu a {
  color: #f0f0f0;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s ease;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
}

.menu a:hover,
.menu a:focus {
  color: #f39c12;
  text-shadow: 0 0 8px #f39c12;
  background-color: rgba(243, 156, 18, 0.1);
  outline: 2px solid #f39c12;
  outline-offset: 2px;
}


section {
  padding: 64px 0;
  margin: 24px 0;
  border-radius: 28px;
  width: 100%;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  background-color: rgba(16, 26, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(5px);
}

.section-head {
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.section-lead {
  text-align: center;
  color: var(--muted);
  margin-bottom: 26px;
}


h1, h2, h3 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

h1, h2 {
  color: var(--accent);
  font-size: 2.5rem;
}

h3 {
  color: #e1e1e1;
  font-size: 1.3rem;
}

p {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

a {
  color: var(--accent-2);
  transition: 0.3s ease;
  text-decoration: underline;
}

a:hover,
a:focus {
  color: #f39c12;
  text-shadow: 0 0 5px #f39c12;
  outline: none;
}


.hero-section {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(27, 40, 56, 0.9) 0%, rgba(20, 43, 68, 0.92) 100%);
  border: 1px solid rgba(243, 156, 18, 0.2);
}

.hero-section::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(41, 182, 246, 0.35), transparent 70%);
  opacity: 0.6;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-kicker {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(243, 156, 18, 0.8);
  margin-bottom: 0;
}

.hero-section h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-section p {
  font-size: 1.3rem;
  color: var(--muted);
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn.primary {
  background: linear-gradient(135deg, #f39c12, #f6b73c);
  color: #0b1a2b;
  box-shadow: 0 12px 25px rgba(243, 156, 18, 0.3);
}

.cta-btn.ghost {
  border: 2px solid rgba(243, 156, 18, 0.5);
  color: var(--accent);
}

.cta-btn:hover,
.cta-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(243, 156, 18, 0.35);
}

/* Viewer Section */
.viewer-section {
  background: linear-gradient(135deg, rgba(18, 30, 46, 0.92), rgba(14, 24, 38, 0.88));
}

.ships-3d-section {
  background: linear-gradient(135deg, rgba(12, 24, 38, 0.92), rgba(10, 18, 30, 0.9));
}

.ship-card.is-3d-card {
  border: 1px solid rgba(41, 182, 246, 0.4);
  box-shadow: 0 12px 24px rgba(41, 182, 246, 0.15);
}

.ship-card.is-3d-card .gallery-btn {
  background: rgba(41, 182, 246, 0.2);
  border-color: rgba(41, 182, 246, 0.6);
  color: #cfeeff;
}

.viewer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 26px;
  align-items: stretch;
}

.viewer-stage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 28, 42, 0.9), rgba(8, 14, 24, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-strong);
  aspect-ratio: 16 / 9;
  --spot-x: 50%;
  --spot-y: 50%;
  --viewer-tilt: 0deg;
  touch-action: none;
  cursor: grab;
}

.viewer-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.2), transparent 45%);
  opacity: 0.8;
  pointer-events: none;
}

.viewer-stage img,
.viewer-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.viewer-stage img {
  object-fit: cover;
  transform: scale(1.02) rotate(var(--viewer-tilt));
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: saturate(1.05) contrast(1.05);
}

.viewer-stage canvas {
  display: block;
}

.viewer-stage.is-3d img {
  display: none;
}

.viewer-stage.is-3d:active {
  cursor: grabbing;
}

.viewer-hud {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 16, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  z-index: 2;
}

.viewer-hud span:last-child {
  color: var(--muted);
  font-weight: 600;
}

.viewer-controls {
  background: rgba(10, 16, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}

.viewer-actions {
  display: flex;
  gap: 12px;
}

.viewer-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(243, 156, 18, 0.5);
  background: rgba(243, 156, 18, 0.15);
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.viewer-btn.secondary {
  background: rgba(41, 182, 246, 0.14);
  border-color: rgba(41, 182, 246, 0.5);
  color: #cfeeff;
}

.viewer-btn:hover,
.viewer-btn:focus {
  background: rgba(243, 156, 18, 0.3);
  border-color: #f39c12;
  outline: none;
}

.viewer-btn.secondary:hover,
.viewer-btn.secondary:focus {
  background: rgba(41, 182, 246, 0.3);
  border-color: #29b6f6;
}

.viewer-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.viewer-field label {
  font-weight: 600;
  color: var(--muted);
}

.viewer-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.viewer-desc {
  color: var(--muted);
  font-size: 0.98rem;
}

.viewer-status {
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 18px;
  margin: 0;
}

.viewer-loader {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.viewer-progress {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.viewer-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(41, 182, 246, 0.2), rgba(41, 182, 246, 0.8));
  transition: width 0.2s ease;
}

.hero-badges {
  list-style: none;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-badges li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(243, 156, 18, 0.3);
  background: rgba(243, 156, 18, 0.08);
}


.cards-container {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  justify-content: center;
  padding: 0;
}

.ship-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.ship-card:hover,
.ship-card:focus {
  transform: translateY(-7px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
  border: 2px solid #f39c12;
  outline: none;
}

.ship-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.05);
}

.ship-card:hover img,
.ship-card:focus img {
  transform: scale(1.05);
}

.ship-card:focus {
  outline: 2px solid #f39c12;
  outline-offset: 2px;
}


.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.card-header h3 {
  flex: 1;
  margin: 0;
}

.rating {
  color: var(--accent);
  font-size: 1.1rem;
}

.ship-desc {
  font-size: 0.95rem;
  color: #d0d0d0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.ship-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  text-align: left;
}

.stat {
  padding: 6px;
  background-color: rgba(243, 156, 18, 0.1);
  border-left: 3px solid #f39c12;
  border-radius: 4px;
}

.stat-label {
  font-weight: bold;
  color: #f39c12;
}

.gallery-btn {
  background-color: rgba(41, 182, 246, 0.2);
  border: 2px solid var(--accent-2);
  color: var(--accent-2);
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  margin-top: auto;
}

.gallery-btn:hover,
.gallery-btn:focus {
  background-color: var(--accent-2);
  color: #0b1a2b;
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}


.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.blog-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.blog-card:hover,
.blog-card:focus {
  border-color: #f39c12;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(243, 156, 18, 0.2);
  outline: none;
}

.blog-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.blog-card p {
  flex-grow: 1;
  font-size: 0.95rem;
  color: #d0d0d0;
  margin-bottom: 15px;
}

.blog-link {
  color: #3498db;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-link:hover {
  color: #f39c12;
  text-decoration: underline;
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.stat-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(243, 156, 18, 0.3);
  border-radius: 8px;
  padding: 20px;
}

.stat-card h3 {
  margin-top: 0;
  color: #f39c12;
  border-bottom: 2px solid #f39c12;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.chart {
  min-height: 200px;
}


.comparison-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
  padding: 20px;
  background-color: rgba(243, 156, 18, 0.05);
  border: 1px solid rgba(243, 156, 18, 0.3);
  border-radius: 8px;
}

.selector-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.selector-group label {
  font-weight: bold;
  color: #f39c12;
  font-size: 0.95rem;
}

.ship-select {
  padding: 10px 12px;
  background-color: rgba(27, 40, 56, 0.8);
  color: #f0f0f0;
  border: 2px solid rgba(243, 156, 18, 0.5);
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ship-select:hover,
.ship-select:focus {
  border-color: #f39c12;
  background-color: rgba(27, 40, 56, 0.95);
  box-shadow: 0 0 8px rgba(243, 156, 18, 0.3);
  outline: none;
}

.ship-select option {
  background-color: #0b1a2b;
  color: #f0f0f0;
}

.reset-btn {
  padding: 10px 20px;
  background-color: rgba(231, 76, 60, 0.7);
  border: 2px solid #e74c3c;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  align-self: flex-end;
}

.reset-btn:hover,
.reset-btn:focus {
  background-color: #e74c3c;
  box-shadow: 0 0 8px rgba(231, 76, 60, 0.5);
  outline: none;
}


.comparison-table-container {
  display: none;
  margin-bottom: 30px;
  overflow-x: auto;
  border-radius: 8px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background-color: rgba(27, 40, 56, 0.8);
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.comparison-table thead {
  background-color: rgba(243, 156, 18, 0.15);
  border-bottom: 2px solid #f39c12;
}

.comparison-table th {
  padding: 15px;
  color: #f39c12;
  font-weight: bold;
  text-align: left;
  border-right: 1px solid rgba(243, 156, 18, 0.3);
}

.comparison-table th:last-child {
  border-right: none;
}

.comparison-table td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(243, 156, 18, 0.2);
  border-right: 1px solid rgba(243, 156, 18, 0.2);
  color: #d0d0d0;
}

.comparison-table td:last-child {
  border-right: none;
}

.comparison-table tbody tr:hover {
  background-color: rgba(243, 156, 18, 0.08);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}


.search-section {
  text-align: center;
}

.results-count {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 20px;
}

.search-input {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(243, 156, 18, 0.3);
  border-radius: 6px;
  color: #f0f0f0;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #f39c12;
  outline: none;
  box-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background-color: rgba(243, 156, 18, 0.1);
  border: 2px solid rgba(243, 156, 18, 0.5);
  color: var(--accent);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.filter-btn:hover {
  background-color: rgba(243, 156, 18, 0.3);
  border-color: #f39c12;
}

.filter-btn.active {
  background-color: var(--accent);
  color: #0b1a2b;
  box-shadow: 0 0 15px rgba(243, 156, 18, 0.5);
}

.filter-btn:focus {
  outline: 2px solid #f39c12;
  outline-offset: 2px;
}


*:focus-visible {
  outline: 2px solid #f39c12;
  outline-offset: 2px;
}


.contact-section {
  text-align: center;
}

.contact-section h2 {
  margin-bottom: 20px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.contact-links a {
  display: inline-block;
  padding: 12px 24px;
  background-color: rgba(52, 152, 219, 0.2);
  border: 2px solid #3498db;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-decoration: none;
}

.contact-links a:hover,
.contact-links a:focus {
  background-color: #3498db;
  transform: scale(1.05);
  text-shadow: none;
}


footer {
  text-align: center;
  padding: 20px;
  background-color: #1b2838;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  background-color: rgba(27, 40, 56, 0.95);
  padding: 30px;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  animation: slideIn 0.3s ease;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #f39c12;
  background: none;
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.close-btn:hover,
.close-btn:focus {
  color: #e67e22;
  outline: 2px solid #f39c12;
  outline-offset: 2px;
}

.gallery-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.gallery-carousel img {
  max-width: 75vw;
  max-height: 70vh;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(8, 14, 24, 0.6);
  animation: fadeIn 0.3s ease;
}

.carousel-btn {
  background-color: rgba(243, 156, 18, 0.2);
  border: 2px solid #f39c12;
  color: #f39c12;
  font-size: 24px;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-btn:hover,
.carousel-btn:focus {
  background-color: #f39c12;
  color: #0b1a2b;
  outline: 2px solid #e67e22;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


@media (max-width: 1024px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }

  section {
    padding: 40px 0;
    margin: 20px 0;
  }

  .site-header h1 {
    font-size: 2rem;
  }

  .comparison-selector {
    grid-template-columns: 1fr;
  }

  .reset-btn {
    align-self: flex-start;
  }

  .viewer-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }

  h1, h2 {
    font-size: 1.8rem;
  }

  .hero-section h2 {
    font-size: 1.8rem;
  }

  .cards-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .ship-card {
    padding: 15px;
  }

  .ship-card img {
    height: 200px;
  }

  .menu {
    gap: 12px;
    flex-wrap: wrap;
  }

  .menu a {
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  .filter-buttons {
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .filter-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  section {
    padding: 32px 0;
    margin: 14px 0;
    border-radius: 20px;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .contact-links a {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .viewer-controls {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .site-header h1 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  h1, h2 {
    font-size: 1.3rem;
  }

  .hero-section h2 {
    font-size: 1.3rem;
  }

  .hero-section {
    padding: 20px 15px;
  }

  p {
    font-size: 0.95rem;
  }

  .cards-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ship-card {
    padding: 12px;
    gap: 10px;
  }

  .ship-card img {
    height: 150px;
    border-radius: 8px;
  }

  .card-header {
    flex-direction: column;
    gap: 8px;
  }

  .rating {
    font-size: 0.9rem;
  }

  .ship-desc {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .ship-stats {
    gap: 6px;
    font-size: 0.85rem;
  }

  .stat {
    padding: 5px;
    border-left: 2px solid #f39c12;
  }

  .gallery-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .menu {
    flex-direction: column;
    gap: 8px;
  }

  .menu a {
    font-size: 0.75rem;
    padding: 6px 10px;
    margin: 0;
  }

  .filter-buttons {
    gap: 6px;
    flex-wrap: wrap;
  }

  .filter-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .search-input {
    font-size: 0.95rem;
    padding: 10px;
  }

  section {
    padding: 18px 10px;
    margin: 12px auto;
    border-radius: 8px;
  }

  .contact-links {
    gap: 8px;
    flex-direction: column;
  }

  .contact-links a {
    width: 100%;
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .blog-card {
    padding: 15px;
  }

  .blog-card h3 {
    font-size: 1.1rem;
  }

  .blog-card p {
    font-size: 0.9rem;
  }

  .modal-content {
    width: 95%;
    max-height: 80vh;
  }

  .gallery-carousel img {
    max-height: 60vh;
  }

  
  .comparison-selector {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .reset-btn {
    align-self: flex-start;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 8px;
  }
}
