/* --- CSS Variables & Reset --- */
:root {
  --primary-color: #0f172a; /* Dark Navy */
  --accent-color: #0ea5e9; /* Ocean Blue */
  --bg-color: #ffffff;
  --bg-secondary: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: "Manrope", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
  cursor: pointer;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
}

/* --- Utility Classes --- */
.container {
  width: 80%;
  margin: auto;
  padding: 0 20px;
}
.hidden {
  display: none !important;
}
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

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

/* --- Navigation --- */
nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #e2e8f0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -1px;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}
.nav-links a:hover {
  color: var(--accent-color);
}

.nav-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.2s;
}
.nav-btn:hover {
  transform: scale(1.05);
  background-color: var(--accent-color);
}

/* --- Page: HOME --- */
.hero {
  position: relative;
  background-image: url("../images/hero.png");
  background-size: cover;
  background-position: center;
  height: 600px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  padding: 60px;
  color: white;
  margin-top: 20px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.7) 0%,
    rgba(15, 23, 42, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 550px;
}
.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.btn-cta {
  display: inline-block;
  background-color: white;
  color: var(--primary-color);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.section-header {
  text-align: center;
  margin: 80px 0 50px;
}
.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.boat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}
.card-image {
  height: 220px;
  width: 100%;
  object-fit: cover;
}
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.card-details {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.price-block strong {
  display: block;
  font-size: 1.5rem;
  color: var(--accent-color);
  font-weight: 800;
  line-height: 1;
}
.view-btn {
  color: var(--primary-color);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.view-btn:hover {
  color: var(--accent-color);
}

/* --- Page: ABOUT US --- */
.about-section {
  padding: 60px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-text h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
}
.about-text p {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 1.1rem;
}
.about-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* --- Page: BOAT DETAILS --- */
.details-container {
  padding: 40px 0 80px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-weight: 600;
  color: var(--text-muted);
}
.back-link:hover {
  color: var(--accent-color);
}

.details-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}
.details-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.details-info h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--primary-color);
}
.details-price {
  font-size: 2rem;
  color: var(--accent-color);
  font-weight: 800;
  margin-bottom: 30px;
}

.specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}
.spec-item {
  background: var(--bg-secondary);
  padding: 15px;
  border-radius: var(--radius-md);
}
.spec-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.spec-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.book-btn {
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  padding: 18px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 20px;
}
.book-btn:hover {
  background-color: var(--accent-color);
}

/* --- Footer --- */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0 20px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 15px;
}
.footer-brand p {
  color: var(--text-light);
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 700;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col a {
  color: var(--text-light);
}
.footer-col a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero {
    height: 400px;
    padding: 30px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .about-section,
  .details-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .details-img {
    height: 300px;
  }
}
