:root {
  /* Coastal official theme */
  --color-primary: #0f2438;
  --color-primary-soft: #1b3955;
  --color-accent: #0f8f9b;
  --color-accent-strong: #0b6d7c;
  --color-seafoam: #8fe3e7;
  --color-cream: #f2f8fb;
  --color-white: #ffffff;
  --color-gray-100: #f4f8fb;
  --color-gray-150: #eaf1f6;
  --color-gray-200: #d7e1ea;
  --color-gray-500: #648096;
  --color-gray-600: #4b6072;
  --color-gray-800: #183043;
  --color-shadow: rgba(15, 36, 56, 0.12);

  /* Typography */
  --font-heading: "Outfit", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", sans-serif;

  /* Layout */
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 20px 60px -32px rgba(15, 36, 56, 0.28);
  --shadow-card: 0 20px 50px -28px rgba(15, 36, 56, 0.18);
  --shadow-hover: 0 28px 70px -30px rgba(11, 109, 124, 0.35);
}

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

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, #eef5fa 0%, #f8fbfd 48%, #ffffff 100%);
  color: var(--color-gray-800);
  line-height: 1.7;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 120px;
}

h1,
h2,
h3,
h4,
.subtitle {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 800;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  display: block;
}

/* ================= Navbar ================= */
.navbar {
  position: fixed;
  top: 18px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 16px;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  top: 12px;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-radius: 28px;
  background: rgba(11, 27, 42, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(7, 18, 31, 0.12);
}

.navbar.scrolled .nav-container {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 36, 56, 0.08);
  box-shadow: 0 18px 48px rgba(15, 36, 56, 0.14);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-icon::before {
  width: 22px;
  height: 22px;
  left: -2px;
  bottom: -6px;
  border-radius: 0 100% 0 0;
  background: rgba(255, 255, 255, 0.92);
  transform: rotate(12deg);
}

.logo-icon::after {
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.34),
    transparent 55%
  );
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.logo-text strong {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  color: var(--color-white);
  line-height: 1.1;
}

.logo-text span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(242, 248, 251, 0.72);
  white-space: nowrap;
}

.navbar.scrolled .logo-text strong {
  color: var(--color-primary);
}

.navbar.scrolled .logo-text span {
  color: var(--color-gray-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  position: relative;
  padding-bottom: 6px;
}

.navbar.scrolled .nav-links a {
  color: var(--color-primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-seafoam), var(--color-accent));
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--color-seafoam);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--color-accent-strong);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ================= Buttons ================= */
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), #16aab8);
  color: var(--color-white);
  padding: 12px 28px;
  box-shadow: 0 10px 28px rgba(15, 143, 155, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 143, 155, 0.28);
}

.btn-primary.large {
  padding: 16px 38px;
  font-size: 1.02rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  padding: 16px 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(15, 36, 56, 0.12);
  color: var(--color-primary);
  padding: 11px 22px;
  font-size: 0.95rem;
  background: var(--color-white);
}

.btn-outline:hover {
  border-color: transparent;
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-accent-strong)
  );
  color: var(--color-white);
  box-shadow: 0 16px 28px rgba(15, 143, 155, 0.2);
}

/* ================= Hero Section ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 152px 24px 108px;
  overflow: hidden;
  background-color: var(--color-primary);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../static/3.jpg");
  background-size: cover;
  background-position: center center;
  z-index: 1;
  animation: scaleBg 20s ease-in-out infinite alternate;
}

@keyframes scaleBg {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.05);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 18% 22%,
      rgba(143, 227, 231, 0.18),
      transparent 32%
    ),
    linear-gradient(
      120deg,
      rgba(7, 21, 33, 0.58) 0%,
      rgba(11, 30, 47, 0.76) 40%,
      rgba(10, 25, 39, 0.92) 100%
    );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: end;
  gap: 44px;
}

.hero-copy {
  max-width: 720px;
  color: var(--color-cream);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(242, 248, 251, 0.9);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: 1.04;
  margin-bottom: 24px;
  color: var(--color-white);
  letter-spacing: -0.04em;
}

.hero h1 .highlight {
  background: linear-gradient(120deg, #b9fbff, #49d3dc 52%, #8fe3e7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.06rem, 2vw, 1.22rem);
  color: rgba(242, 248, 251, 0.85);
  max-width: 640px;
  margin-bottom: 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-tags span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

.hero-panel {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(11, 28, 44, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--color-white);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.panel-label {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: rgba(143, 227, 231, 0.92);
  margin-bottom: 18px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.metric-item {
  padding: 16px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-item strong {
  display: block;
  font-size: 1.2rem;
  font-family: var(--font-heading);
  margin-bottom: 6px;
}

.metric-item span {
  display: block;
  color: rgba(242, 248, 251, 0.7);
  font-size: 0.86rem;
}

.hero-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.hero-list li {
  position: relative;
  padding-left: 18px;
  color: rgba(242, 248, 251, 0.82);
  font-size: 0.96rem;
}

.hero-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-seafoam), #2fd2d5);
  transform: translateY(-50%);
}

/* ================= Overview Strip ================= */
.overview-strip {
  position: relative;
  z-index: 5;
  max-width: 1280px;
  margin: -54px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.overview-item {
  padding: 30px 30px 28px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(15, 36, 56, 0.08);
  border-bottom: 1px solid rgba(15, 36, 56, 0.08);
  box-shadow: var(--shadow-card);
}

.overview-item:first-child {
  border-left: 1px solid rgba(15, 36, 56, 0.08);
  border-radius: 28px 0 0 28px;
}

.overview-item:last-child {
  border-right: 1px solid rgba(15, 36, 56, 0.08);
  border-radius: 0 28px 28px 0;
}

.overview-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.36rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.overview-item p {
  color: var(--color-gray-600);
  font-size: 0.95rem;
}

/* ================= Routes Section ================= */
.routes-section {
  padding: 128px 24px 110px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 62px;
}

.subtitle {
  letter-spacing: 0.24em;
  color: var(--color-accent);
  font-size: 0.86rem;
  display: inline-block;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  color: var(--color-primary);
  margin-bottom: 22px;
}

.divider {
  width: 68px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-seafoam), var(--color-accent));
  margin: 0 auto;
  border-radius: 999px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.route-card {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  border: 1px solid rgba(215, 225, 234, 0.84);
  opacity: 0;
  transform: translateY(30px);
}

.route-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-seafoam), var(--color-accent));
  z-index: 2;
}

.route-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.route-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  background-color: var(--color-gray-150);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.route-card:hover .card-image img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(15, 36, 56, 0.82);
  color: var(--color-cream);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.card-content {
  padding: 28px 20px 26px;
}

.card-content h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.card-content p {
  color: var(--color-gray-600);
  font-size: 0.95rem;
  margin-bottom: 24px;
  min-height: 50px;
}

/* ================= About Section ================= */
.about-section {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(15, 36, 56, 0.04) 0%,
    rgba(255, 255, 255, 0.92) 26%,
    rgba(255, 255, 255, 1) 100%
  );
  padding: 120px 24px;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -200px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(143, 227, 231, 0.22) 0%,
    rgba(143, 227, 231, 0) 70%
  );
  pointer-events: none;
}

.about-container {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  margin: 12px 0 22px;
}

.about-text .lead {
  font-size: 1.18rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 14px;
}

.about-text p {
  color: var(--color-gray-600);
  margin-bottom: 28px;
  max-width: 620px;
}

.features-list {
  list-style: none;
  display: grid;
  gap: 18px;
}

.features-list li {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  border: 1px solid rgba(215, 225, 234, 0.8);
  box-shadow: 0 18px 40px -32px rgba(15, 36, 56, 0.32);
  opacity: 0;
  transform: translateX(-20px);
  transition: var(--transition-smooth);
}

.features-list li.visible {
  opacity: 1;
  transform: translateX(0);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(15, 143, 155, 0.15),
    rgba(143, 227, 231, 0.28)
  );
  color: var(--color-accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.features-list h4 {
  font-size: 1.08rem;
  margin-bottom: 5px;
}

.features-list p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.about-image-wrapper {
  position: relative;
  border-radius: 36px;
  background: linear-gradient(
    145deg,
    var(--color-primary),
    var(--color-primary-soft)
  );
  padding: 26px;
  border: 1px solid rgba(15, 36, 56, 0.08);
  box-shadow: var(--shadow-soft);
}

.about-image {
  background-color: var(--color-gray-150);
  border-radius: var(--radius-md);
  height: 520px;
  background-image:
    linear-gradient(180deg, rgba(12, 28, 43, 0.08), rgba(12, 28, 43, 0.26)),
    url("../static/2.jpg");
  background-size: cover;
  background-position: center;
}

.experience-badge {
  position: absolute;
  bottom: -22px;
  left: -16px;
  background: rgba(255, 255, 255, 0.96);
  padding: 22px 28px;
  border-radius: 22px;
  box-shadow: 0 20px 46px rgba(15, 36, 56, 0.16);
  display: flex;
  align-items: center;
  gap: 14px;
}

.experience-badge .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-accent);
  font-family: var(--font-heading);
}

.experience-badge .text {
  font-size: 0.98rem;
  color: var(--color-gray-600);
  font-weight: 500;
  max-width: 70px;
  line-height: 1.3;
}

.about-floating-card {
  position: absolute;
  right: -10px;
  bottom: 34px;
  max-width: 240px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(9, 28, 44, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--color-white);
  box-shadow: 0 20px 42px rgba(8, 19, 31, 0.22);
}

.about-floating-card span {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: rgba(143, 227, 231, 0.84);
  margin-bottom: 8px;
}

.about-floating-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
}

/* ================= Footer ================= */
.footer {
  background:
    radial-gradient(
      circle at top left,
      rgba(143, 227, 231, 0.12),
      transparent 28%
    ),
    linear-gradient(135deg, #0c1d2d 0%, #10263a 55%, #15324a 100%);
  color: var(--color-cream);
  padding: 84px 24px 24px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto 54px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
}

.footer-info h3 {
  color: var(--color-white);
  font-size: 1.45rem;
  margin-bottom: 14px;
}

.footer-info p {
  color: rgba(242, 248, 251, 0.68);
  max-width: 460px;
}

.footer-contact h4 {
  color: var(--color-seafoam);
  margin-bottom: 20px;
  font-size: 1.06rem;
}

.footer-contact p {
  color: rgba(242, 248, 251, 0.86);
  margin-bottom: 10px;
}

.footer-contact a {
  color: var(--color-white);
}

.footer-contact a:hover {
  color: var(--color-seafoam);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: rgba(242, 248, 251, 0.52);
  font-size: 0.9rem;
}

/* ================= Animations ================= */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity, transform;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

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

/* ================= Responsive ================= */
@media (max-width: 1100px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 680px;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 142px;
    padding-bottom: 88px;
  }

  .overview-strip {
    margin-top: -34px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .overview-item,
  .overview-item:first-child,
  .overview-item:last-child {
    border: 1px solid rgba(15, 36, 56, 0.08);
    border-radius: 24px;
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .experience-badge {
    left: 24px;
    bottom: 24px;
  }

  .about-floating-card {
    right: 24px;
    bottom: 24px;
  }
}

@media (max-width: 640px) {
  .navbar {
    top: 12px;
    padding: 0 12px;
  }

  .nav-container {
    padding: 16px 18px;
    gap: 16px;
    flex-wrap: wrap;
  }

  .logo-text span {
    letter-spacing: 0.12em;
    font-size: 0.68rem;
  }

  .nav-contact {
    width: 100%;
  }

  .nav-contact .btn-primary {
    width: 100%;
    padding: 12px 20px;
  }

  .hero {
    padding: 134px 20px 78px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 3.5rem);
  }

  .hero-tags {
    gap: 10px;
  }

  .hero-tags span {
    width: 100%;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary.large,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .hero-panel {
    padding: 24px 20px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .overview-strip {
    padding: 0 20px;
    margin-top: -24px;
  }

  .routes-section,
  .about-section,
  .footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cards-grid {
    gap: 22px;
  }

  .card-image {
    height: 230px;
  }

  .features-list li {
    padding: 20px 18px;
  }

  .about-image-wrapper {
    padding: 18px;
  }

  .about-image {
    height: 420px;
  }

  .experience-badge {
    position: static;
    margin-top: 18px;
    width: fit-content;
  }

  .about-floating-card {
    position: static;
    max-width: none;
    margin-top: 14px;
  }

  .footer-bottom {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }

  .hero-bg,
  .fade-in-up,
  .route-card,
  .features-list li,
  .card-image img,
  .btn-primary,
  .btn-secondary,
  .btn-outline {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .fade-in-up,
  .route-card,
  .features-list li {
    opacity: 1 !important;
  }
}
