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

:root {
  --navy: #001f3f;
  --navy-deep: #00111f;
  --blue: #00b4d8;
  --blue-light: #90e0ef;
  --gold: #f4a900;
  --white: #ffffff;
  --gray: #94a3b8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--white);
  background: var(--navy-deep);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(0,17,31,0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0,180,216,0.1);
}
.nav-container {
  max-width: 1300px; margin: 0 auto; padding: 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--white);
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 20px; letter-spacing: 2px;
}
.logo-ship { font-size: 28px; filter: drop-shadow(0 0 12px rgba(0,180,216,0.8)); }
.nav-menu { display: flex; list-style: none; gap: 36px; align-items: center; }
.nav-menu a {
  text-decoration: none; color: rgba(255,255,255,0.7);
  font-weight: 500; font-size: 15px;
  transition: all 0.3s; position: relative;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--blue-light); }
.nav-menu a.active::after {
  content: ''; position: absolute;
  bottom: -8px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 12px var(--gold);
}
.btn-nav {
  background: linear-gradient(135deg, var(--blue), var(--blue-light)) !important;
  color: var(--navy-deep) !important;
  padding: 10px 24px; border-radius: 10px;
  font-weight: 700 !important;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0,180,216,0.4);
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,180,216,0.7); }
.btn-nav.active::after { display: none; }
.menu-toggle {
  display: none; background: none; border: none;
  font-size: 24px; color: var(--white); cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  max-width: 1400px; margin: 0 auto;
  padding: 140px 40px 60px;
  overflow: hidden; z-index: 2;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100vw; height: 100%;
  z-index: -2;
  background-image: url('images/hero-ship.jpg');
  background-size: cover; background-position: center;
  animation: shipSway 12s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100vw; height: 100%;
  z-index: -1;
  background: linear-gradient(90deg,
    rgba(0,11,20,0.92) 0%,
    rgba(0,17,31,0.75) 35%,
    rgba(0,17,31,0.4) 60%,
    rgba(0,17,31,0.15) 100%
  );
}
@keyframes shipSway {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1.05); }
  25% { transform: translateX(-50%) translateY(-6px) scale(1.05); }
  50% { transform: translateX(-50%) translateY(3px) scale(1.05); }
  75% { transform: translateX(-50%) translateY(-3px) scale(1.05); }
}
.hero-content { position: relative; z-index: 3; animation: fadeInUp 1.2s ease; }

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

.hero-badge {
  display: inline-block; padding: 10px 22px;
  background: rgba(0,180,216,0.12);
  color: var(--blue-light);
  border: 1px solid rgba(0,180,216,0.4);
  border-radius: 40px; font-size: 12px;
  font-weight: 600; letter-spacing: 2px;
  margin-bottom: 32px; text-transform: uppercase;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,180,216,0.2);
  animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 4px 24px rgba(0,180,216,0.2); }
  50% { box-shadow: 0 4px 32px rgba(0,180,216,0.5); }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 92px; font-weight: 900;
  line-height: 0.95; letter-spacing: -2px;
  margin-bottom: 24px;
  display: flex; flex-direction: column;
  position: relative; padding-left: 4px;
}
.title-line1 {
  color: var(--blue-light);
  text-shadow: 0 0 60px rgba(0,180,216,0.7), 0 6px 30px rgba(0,0,0,0.9);
}
.title-line2 {
  background: linear-gradient(135deg, var(--white) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 8px 30px rgba(0,180,216,0.6));
}

.hero-divider {
  width: 100px; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 24px;
  box-shadow: 0 0 15px var(--gold);
  animation: dividerPulse 4s ease-in-out infinite;
}

@keyframes dividerPulse {
  0%, 100% { width: 100px; opacity: 1; }
  50% { width: 140px; opacity: 0.8; }
}

.hero-subtitle {
  font-size: 22px; color: var(--blue-light);
  font-weight: 400; margin-bottom: 28px;
  font-family: 'Playfair Display', serif;
  font-style: italic; letter-spacing: 0.5px;
  text-shadow: 0 3px 20px rgba(0,0,0,0.9);
}
.hero-desc {
  font-size: 16px; color: rgba(255,255,255,0.85);
  margin-bottom: 32px; max-width: 520px;
  line-height: 1.75;
  text-shadow: 0 2px 15px rgba(0,0,0,0.9);
}
.hero-desc strong { color: var(--blue-light); font-weight: 600; }
.hero-desc em { color: var(--gold); font-style: italic; }

.hero-stats {
  display: flex; gap: 36px;
  margin-bottom: 32px; padding: 20px 0;
  border-top: 1px solid rgba(0,180,216,0.3);
  border-bottom: 1px solid rgba(0,180,216,0.3);
}
.stat { display: flex; flex-direction: column; }
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 30px; font-weight: 700;
  color: var(--white); line-height: 1;
  text-shadow: 0 3px 20px rgba(0,0,0,0.9);
  transition: all 0.3s;
}
.stat:hover .stat-value { color: var(--blue-light); transform: scale(1.05); }
.stat-value span {
  font-size: 15px; color: var(--blue-light);
  margin-left: 4px;
  font-family: 'Inter', sans-serif;
}
.stat-label {
  font-size: 11px; color: rgba(255,255,255,0.65);
  text-transform: uppercase; letter-spacing: 2px;
  margin-top: 8px; font-weight: 600;
}
.hero-rating { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.stars { font-size: 18px; filter: drop-shadow(0 0 10px rgba(244,169,0,0.9)); }
.rating-text {
  font-size: 14px; color: rgba(255,255,255,0.75);
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}
.hero-price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 32px; }
.price {
  font-family: 'Playfair Display', serif;
  font-size: 52px; font-weight: 700;
  color: var(--white);
  text-shadow: 0 0 40px rgba(0,180,216,0.8), 0 6px 30px rgba(0,0,0,0.9);
}
.price-detail {
  font-size: 14px; color: rgba(255,255,255,0.7);
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== PRODUCT CARD ===== */
.hero-product {
  position: relative; z-index: 3;
  display: flex; justify-content: center; align-items: center;
  animation: fadeInRight 1.4s ease;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

.product-card {
  position: relative; width: 100%; max-width: 620px;
  padding: 32px 28px; border-radius: 32px;
  background: linear-gradient(135deg, rgba(0,180,216,0.08) 0%, rgba(0,17,31,0.5) 50%, rgba(0,180,216,0.05) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,180,216,0.35);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 100px rgba(0,180,216,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
  animation: productFloat 6s ease-in-out infinite;
  overflow: visible;
  transition: all 0.4s ease;
}
.product-card:hover {
  border-color: rgba(0,180,216,0.7);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 150px rgba(0,180,216,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
  transform: translateY(-6px);
}
.product-card::before {
  content: ''; position: absolute;
  inset: -2px; border-radius: 34px; padding: 2px;
  background: linear-gradient(135deg, rgba(0,180,216,0.9), rgba(144,224,239,0.3), rgba(244,169,0,0.7), rgba(0,180,216,0.9));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderRotate 4s linear infinite;
  pointer-events: none; z-index: 0;
}

@keyframes borderRotate {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 200%; }
}

.product-card::after {
  content: ''; position: absolute;
  inset: 0; border-radius: 32px;
  pointer-events: none;
  background-image: 
    radial-gradient(circle 8px at 0% 0%, rgba(0,180,216,1), transparent 60%),
    radial-gradient(circle 8px at 100% 0%, rgba(0,180,216,1), transparent 60%),
    radial-gradient(circle 8px at 0% 100%, rgba(0,180,216,1), transparent 60%),
    radial-gradient(circle 8px at 100% 100%, rgba(0,180,216,1), transparent 60%);
  z-index: 1;
  animation: cornerPulse 3s ease-in-out infinite;
}

@keyframes cornerPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes productFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.product-card img {
  position: relative; z-index: 2;
  width: 100%; max-width: 100%; height: auto;
  margin: 0 auto; display: block;
  background: transparent; border-radius: 20px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.7)) drop-shadow(0 0 40px rgba(0,180,216,0.2));
  transition: transform 0.5s ease;
}
.product-card:hover img { transform: scale(1.03); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: 16px 36px;
  border-radius: 12px; font-weight: 600;
  text-decoration: none; transition: all 0.3s ease;
  font-size: 16px; cursor: pointer;
  border: none; font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--navy-deep); font-weight: 700;
  box-shadow: 0 8px 32px rgba(0,180,216,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,180,216,0.8);
}
.btn-secondary {
  background: rgba(255,255,255,0.08); color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: var(--blue-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,180,216,0.4);
}
.btn-large { padding: 20px 52px; font-size: 18px; }

/* ============================================ */
/* ===== SECTION TITLES — СВІТЛІ + GLOW ===== */
/* ============================================ */

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -1px;
  color: #ffffff;
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.9),
    0 0 40px rgba(144, 224, 239, 0.8),
    0 0 80px rgba(0, 180, 216, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.9);
  position: relative;
  z-index: 10;
  padding: 8px 24px;
}

.section-subtitle {
  text-align: center;
  font-size: 17px;
  margin-bottom: 60px;
  font-style: italic;
  position: relative;
  z-index: 10;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.95),
    0 0 20px rgba(0, 0, 0, 0.7);
}

/* Центрування */
.features .container,
.gallery .container,
.specs .container {
  text-align: center;
}

/* ===== FEATURES ===== */
.features {
  position: relative;
  padding: 140px 0 120px;
  background: linear-gradient(180deg, 
    #00111f 0%, 
    #0a1929 30%,
    #1a3a5c 70%,
    #102a44 100%
  );
  z-index: 2;
  margin-top: -1px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 5;
}
.feature-card {
  padding: 44px 32px; background: var(--white);
  border-radius: 24px; text-align: center;
  transition: all 0.4s ease;
  border: 1px solid rgba(0,61,122,0.08);
  box-shadow: 0 4px 20px rgba(0,61,122,0.06);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,61,122,0.15);
  border-color: rgba(0,180,216,0.3);
}
.feature-icon {
  font-size: 56px; margin-bottom: 24px;
  display: inline-block;
  filter: drop-shadow(0 8px 16px rgba(0,180,216,0.3));
  transition: transform 0.4s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.15) rotate(5deg); }
.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px; color: var(--navy);
  margin-bottom: 14px; font-weight: 700;
}
.feature-card p { color: var(--gray); font-size: 15px; line-height: 1.7; }

/* ===== GALLERY ===== */
.gallery {
  padding: 140px 0 120px;
  background: linear-gradient(180deg,
    #102a44 0%,
    #0a1929 20%,
    #001f3f 50%,
    #0a1929 80%,
    #00111f 100%
  );
  position: relative;
  overflow: hidden;
  margin-top: -1px;
}

.gallery .container { position: relative; z-index: 5; }

.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px; gap: 16px;
  position: relative;
  z-index: 5;
}
.gallery-item {
  overflow: hidden; border-radius: 16px;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,180,216,0.2);
  position: relative;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(0,180,216,0.2) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.6s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,180,216,0.3);
  border-color: rgba(0,180,216,0.5);
}
.gallery-item:hover img { transform: scale(1.08); }

/* ===== SPECS ===== */
.specs {
  position: relative;
  padding: 140px 0 120px;
  background: linear-gradient(180deg,
    #00111f 0%,
    #0a1929 30%,
    #102a44 70%,
    #001f3f 100%
  );
  margin-top: -1px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}
.spec-item {
  padding: 48px 32px;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border-radius: 20px;
  border-left: 4px solid var(--blue);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,61,122,0.05);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.spec-item::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(0,180,216,0.15), transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
  transition: all 0.4s ease;
}
.spec-item:hover::before {
  width: 180px; height: 180px;
}
.spec-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,180,216,0.2);
  border-left-color: var(--gold);
}
.spec-label {
  font-size: 13px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 14px;
}
.spec-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

/* ===== CTA ===== */
.cta {
  padding: 140px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white); text-align: center;
  position: relative; overflow: hidden;
  margin-top: -1px;
}

.cta::before {
  content: '⛵'; position: absolute;
  font-size: 600px; opacity: 0.04;
  right: -100px; top: -100px;
  transform: rotate(-15deg);
  animation: shipRotate 20s ease-in-out infinite;
}

@keyframes shipRotate {
  0%, 100% { transform: rotate(-15deg) translateY(0); }
  50% { transform: rotate(-12deg) translateY(-20px); }
}

.cta .container { position: relative; z-index: 2; }
.cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 52px; margin-bottom: 20px;
  color: var(--white);
  text-shadow: 0 0 40px rgba(0, 180, 216, 0.6);
}
.cta p { font-size: 18px; opacity: 0.85; margin-bottom: 36px; }
.cta-buttons { margin-bottom: 24px; }
.cta .btn-primary {
  background: linear-gradient(135deg, var(--gold), #d99400);
  color: var(--navy-deep);
  box-shadow: 0 8px 32px rgba(244,169,0,0.5);
}
.cta .btn-primary:hover { box-shadow: 0 16px 48px rgba(244,169,0,0.7); }
.cta-note { font-size: 14px; opacity: 0.7; margin-top: 20px; color: var(--blue-light); }

/* ===== FOOTER ===== */
.footer { background: #000a12; color: var(--white); padding: 80px 0 30px; position: relative; z-index: 2; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px; margin-bottom: 50px;
}
.footer-col h4 {
  color: var(--blue-light); margin-bottom: 20px;
  font-size: 16px; letter-spacing: 1px;
  font-family: 'Playfair Display', serif;
}
.footer-col p { color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a {
  color: rgba(255,255,255,0.5);
  text-decoration: none; font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--blue-light); }
.footer-bottom {
  border-top: 1px solid rgba(0,180,216,0.15);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding: 120px 20px 60px; }
  .hero-content { margin: 0 auto; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-rating, .hero-price, .hero-buttons, .hero-stats { justify-content: center; }
  .hero-divider { margin-left: auto; margin-right: auto; }
  .hero-title { font-size: 72px; }
  .product-card { max-width: 520px; padding: 24px 20px; }
}

@media (max-width: 968px) {
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 40px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(0,17,31,0.98);
    flex-direction: column; padding: 24px; gap: 20px;
    display: none;
    border-bottom: 1px solid rgba(0,180,216,0.3);
    backdrop-filter: blur(20px);
  }
  .nav-menu.active { display: flex; }
  .section-title { font-size: 32px; padding: 6px 16px; }
  .hero-title { font-size: 56px; letter-spacing: -2px; }
  .hero-subtitle { font-size: 19px; }
  .price { font-size: 44px; }
  .cta h2 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-bottom { justify-content: center; text-align: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.large { grid-column: span 2; grid-row: span 1; }
  .product-card { max-width: 440px; padding: 20px 16px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 42px; letter-spacing: -1.5px; }
  .product-card { padding: 16px 12px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-item.large { grid-column: span 1; grid-row: span 1; }
  .btn { width: 100%; text-align: center; }
  .specs-grid { grid-template-columns: 1fr; }
}
