/* CSS Variables */
:root {
  /* Colors */
  --background: hsl(220, 20%, 8%);
  --foreground: hsl(40, 20%, 95%);
  --primary: hsl(45, 90%, 55%);
  --primary-foreground: hsl(220, 20%, 8%);
  --secondary: hsl(220, 15%, 18%);
  --muted: hsl(220, 15%, 20%);
  --muted-foreground: hsl(220, 10%, 60%);
  --border: hsl(220, 15%, 20%);

  /* Gradients */
  --gradient-georgia: linear-gradient(
    135deg,
    hsl(10, 70%, 45%) 0%,
    hsl(25, 80%, 50%) 100%
  );
  --gradient-ukraine: linear-gradient(
    135deg,
    hsl(210, 90%, 50%) 0%,
    hsl(50, 95%, 55%) 100%
  );

  /* Shadows */
  --shadow-glow: 0 0 60px hsl(45 90% 55% / 0.3);

  /* Fonts */
  --font-display: "Outfit", sans-serif;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-display);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(24, 27, 33, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary);
  border-radius: 0.75rem;
}

.train-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary-foreground);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Navigation */
.nav {
  display: none;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-item-active {
  color: var(--foreground);
}

.nav-item-disabled {
  opacity: 0.5;
}

.nav-icon {
  width: 1rem;
  height: 1rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background-color: var(--muted);
  color: var(--muted-foreground);
}

/* Main Content */
.main {
  padding-top: 5rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 3rem 1.5rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 5rem 1.5rem;
  }
}

.hero-subtitle {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    hsl(45, 80%, 65%) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

/* Destinations Section */
.destinations-section {
  padding: 0 1.5rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.destinations-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .destinations-grid {
    gap: 2rem;
  }
}

/* Destination Card */
.destination-card {
  position: relative;
  display: block;
  height: 500px;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  transition: transform 0.5s ease;
  text-decoration: none;
}

@media (min-width: 768px) {
  .destination-card {
    height: 600px;
  }
}

@media (min-width: 1024px) {
  .destination-card {
    height: 70vh;
  }
}

.destination-card:hover {
  transform: scale(1.02);
}

.destination-card-disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.destination-card-disabled:hover {
  transform: none;
}

.card-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}

.destination-card:hover .card-background {
  transform: scale(1.1);
}

.card-background-georgia {
  background: var(--gradient-georgia);
}

.card-background-ukraine {
  background: var(--gradient-ukraine);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.5) 50%,
    var(--background) 100%
  );
  opacity: 0.9;
}

.coming-soon-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
}

.coming-soon-badge span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.card-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 2rem;
}

@media (min-width: 768px) {
  .card-content {
    padding: 3rem;
  }
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background-color: var(--primary);
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.card-icon-disabled {
  background-color: var(--muted);
}

.card-icon-disabled .train-icon {
  color: var(--muted-foreground);
}

.glow {
  box-shadow: var(--shadow-glow);
  animation: pulse-glow 2s infinite;
}

.card-subtitle {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .card-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .card-title {
    font-size: 3.75rem;
  }
}

.card-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  max-width: 28rem;
}

.card-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  color: var(--primary);
  font-size: 1.125rem;
  font-weight: 500;
}

.card-cta-disabled {
  color: var(--muted-foreground);
}

.arrow-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.destination-card:hover .arrow-icon {
  transform: translateX(0.5rem);
}

.card-glow-effect {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.destination-card:hover .card-glow-effect {
  opacity: 1;
}

.card-glow-effect::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--primary) 50%,
    transparent 100%
  );
}

/* Features Section */
.features-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.02);
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item {
  text-align: center;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  background-color: var(--secondary);
  border-radius: 1rem;
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.feature-description {
  color: var(--muted-foreground);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
}

.footer-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Countdown Timer */
.countdown-timer {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.countdown-circle {
  position: relative;
  width: 6rem;
  height: 6rem;
}

.countdown-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.countdown-bg {
  fill: none;
  stroke: var(--muted);
  stroke-width: 4;
}

.countdown-progress {
  fill: none;
  stroke: var(--primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
  filter: drop-shadow(0 0 8px hsl(45 90% 55% / 0.5));
}

.countdown-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.countdown-text {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
  max-width: 7.5rem;
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 40px hsl(45 90% 55% / 0.3);
  }
  50% {
    box-shadow: 0 0 80px hsl(45 90% 55% / 0.5);
  }
}

.fade-in {
  opacity: 0;
  animation: fade-in 0.6s ease forwards;
}

.fade-in-up {
  opacity: 0;
  animation: fade-in-up 0.6s ease forwards;
}

/* Hidden class for timer */
.hidden {
  display: none !important;
}
