:root {
  --bg-base: #020611;
  --bg-layer: #060f1e;
  --bg-card: rgba(9, 16, 32, 0.78);
  --text-primary: #f9fbff;
  --text-muted: rgba(249, 251, 255, 0.7);
  --accent: #9e7bff;
  --accent-secondary: #6eaaff;
  --accent-tertiary: #ffe483;
  --border-color: rgba(255, 255, 255, 0.12);
  --blur: 24px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow-lg: 0 30px 65px rgba(8, 14, 34, 0.55);
  --shadow-soft: 0 15px 35px rgba(6, 12, 28, 0.4);
  --transition: all 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  margin: 0;
}

a {
  color: var(--accent);
  transition: var(--transition);
  text-decoration: none;
}

a:hover {
  color: var(--accent-tertiary);
  opacity: 0.9;
}

p {
  color: var(--text-muted);
}

img {
  max-width: 100%;
  height: auto;
}

.app-body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(111, 48, 255, 0.22), transparent 55%),
    radial-gradient(circle at 20% 20%, rgba(255, 123, 229, 0.2), transparent 45%),
    var(--bg-base);
}

.app-body::before,
.app-body::after {
  content: '';
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

.app-body::before {
  background: rgba(255, 123, 229, 0.45);
  top: -120px;
  right: -120px;
}

.app-body::after {
  background: rgba(65, 105, 255, 0.45);
  bottom: -160px;
  left: -60px;
}

.app-surface {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.glass-nav {
  background: rgba(4, 9, 22, 0.75) !important;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(var(--blur));
  border-radius: var(--radius-md);
  margin: 1.2rem auto 0;
  width: calc(100% - 2rem);
  box-shadow: var(--shadow-soft);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.navbar-brand img {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.nav-link {
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted) !important;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transform: translateY(4px);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--text-primary) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: translateY(0);
}

.navbar-toggler {
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

.hero {
  padding: 6rem 0 4rem;
}

.hero-card {
  background: rgba(5, 10, 25, 0.78);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(var(--blur));
  padding: 3rem 3.5rem;
}

.hero-text {
  max-width: 640px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.2;
}

.hero-title .accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-img {
  width: 100%;
  max-width: 520px;
}

.section {
  padding: 4.5rem 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.95rem;
}

.section-heading::before {
  content: '';
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--text-muted));
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-description {
  max-width: 640px;
  color: var(--text-muted);
}

.tour-table-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: linear-gradient(135deg, rgba(158, 123, 255, 0.12), rgba(14, 24, 52, 0.95));
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
}

.tour-table-card .table-modern {
  margin-bottom: 0;
}

.table-modern {
  --table-border: rgba(255, 255, 255, 0.08);
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-striped-color: var(--text-primary);
  --bs-table-hover-color: var(--text-primary);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
  --bs-table-color: var(--text-muted);
  background: transparent;
  color: var(--text-muted);
}

.table-modern thead th {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  background: linear-gradient(120deg, rgba(158, 123, 255, 0.3), rgba(110, 170, 255, 0.25));
  border-bottom: 1px solid var(--table-border);
  border-top: none;
}

.table-modern tbody tr {
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition);
}

.table-modern tbody tr + tr {
  border-top: 1px solid var(--table-border);
}

.table-modern tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.table-modern tbody td {
  border: none;
  padding: 0.85rem 0.75rem;
}

.table-modern tbody td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.table-modern tbody td:nth-child(2) {
  color: var(--text-primary);
}

.table-modern tbody td:nth-child(3),
.table-modern tbody td:nth-child(4),
.table-modern tbody td:nth-child(5) {
  color: var(--text-primary);
}

.glass-panel,
.card,
.accordion-item,
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-soft);
  color: var(--text-primary);
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-header {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-body {
  color: var(--text-muted);
}

.card-size {
  width: 310px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
}

.thumbnail-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: center;
  align-items: center;
}

.thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.card:hover .thumbnail-wrapper img {
  transform: scale(1.08);
}

.card-body {
  text-align: center;
  padding: 1.25rem;
}

.card-body p:last-child {
  margin-bottom: 0;
}

.badge-pill {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-gradient {
  border-radius: 999px;
  padding: 0.75rem 1.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  color: #040915;
  box-shadow: 0 12px 35px rgba(255, 123, 229, 0.35);
  background: linear-gradient(120deg, var(--accent), var(--accent-secondary));
  transition: var(--transition);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  color: #03060f;
  box-shadow: 0 18px 35px rgba(110, 170, 255, 0.35);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.accordion-button {
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--accent);
}

.accordion-item {
  border-color: transparent;
}

.timeline {
  position: relative;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  padding-left: 70px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}

.timeline-icon {
  position: absolute;
  left: -58px;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.timeline-content {
  padding-left: 0.5rem;
}

.timeline-content img {
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.video-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 15, 0.75);
  z-index: -1;
}

.masonry-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

.lazy-image {
  width: 100%;
  display: block;
  min-height: 180px;
  background: rgba(255, 255, 255, 0.04);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lazy-image.loaded {
  min-height: 0;
  opacity: 1;
}

.text-shadow {
  text-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
}

.card .btn {
  --bs-btn-color: var(--text-primary);
  --bs-btn-hover-color: var(--text-primary);
  --bs-btn-active-color: var(--text-primary);
}

.card .card-body .card-title {
  color: var(--text-primary) !important;
  text-shadow: 0 8px 25px rgba(0, 0, 0, 0.55);
}

.modal-fullscreen .modal-content {
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  max-height: 100%;
}

.modal-body-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#modalImage {
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  display: block;
  margin: auto;
}

footer {
  background: rgba(4, 9, 22, 0.75);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -20px 45px rgba(3, 7, 17, 0.6);
  backdrop-filter: blur(var(--blur));
  color: var(--text-muted);
}

footer p {
  margin: 0;
  color: var(--text-muted);
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition);
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 1200px) {
  .masonry-grid {
    column-count: 3;
  }
}

@media (max-width: 992px) {
  .hero {
    padding-top: 4.5rem;
  }

  .hero-card {
    padding: 2.25rem;
  }
}

@media (max-width: 768px) {
  .masonry-grid {
    column-count: 2;
  }

  .glass-nav {
    width: 100%;
    border-radius: 0;
    margin: 0;
  }

  .hero-card {
    padding: 2rem;
  }
}

@media (max-width: 576px) {
  .masonry-grid {
    column-count: 1;
  }
}
