/* ============================
   Country Modern Components
============================= */

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(245, 241, 232, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--color-stone);
  z-index: var(--z-fixed);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-medium);
  border-bottom-color: var(--color-sage);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-moss);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--color-bark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-sage);
  transition: width 0.3s ease;
}

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

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

/* Hero Section */
.hero {
  height: 70vh;
  background: linear-gradient(135deg, rgba(122, 155, 118, 0.7), rgba(168, 197, 209, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  margin-top: 70px;
  border-bottom: 4px solid var(--color-sage);
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slideshow img.active {
  opacity: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(122, 155, 118, 0.7), rgba(168, 197, 209, 0.6));
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  animation: fadeInUp 1s ease;
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  opacity: 0.95;
  font-weight: 500;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--color-cream);
  color: var(--color-moss);
  box-shadow: var(--shadow-medium);
  border: 2px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
  background: white;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--color-moss);
}

/* Quick Links Cards */
.quick-links {
  max-width: 1200px;
  margin: -60px auto 0;
  padding: 0 2rem 4rem;
  position: relative;
  z-index: 10;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.country-card {
  background: white;
  border-radius: 8px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid var(--color-stone);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.country-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-sage);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.country-card:hover::before {
  transform: scaleX(1);
}

.country-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
  border-color: var(--color-sage);
}

.card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: var(--color-sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-moss);
}

.card-description {
  color: var(--color-bark);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Featured Image Section */
.featured-image-section {
  position: relative;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.featured-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(74, 103, 65, 0.9), transparent);
  padding: 3rem 2rem;
  color: white;
  text-align: center;
}

.featured-overlay h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.featured-overlay p {
  font-size: 1.1rem;
  opacity: 0.95;
}

/* Image Gallery Grid */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-medium);
  z-index: 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Weather Widget */
.weather-widget {
  text-align: center;
  padding: 2rem;
}

.weather-temp {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-moss);
  margin-bottom: 0.5rem;
}

.weather-condition {
  font-size: 1.1rem;
  color: var(--color-bark);
  margin-bottom: 0.5rem;
}

.weather-note {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Footer */
footer {
  background: var(--color-moss);
  color: var(--color-cream);
  text-align: center;
  padding: 3rem 2rem;
  border-top: 4px solid var(--color-sage);
}

footer::before {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-cream);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
  opacity: 0.5;
}

footer p {
  opacity: 0.9;
}

footer a {
  color: var(--color-cream);
  text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .nav-links {
    display: none;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .image-gallery {
    grid-template-columns: 1fr;
  }
}
