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

body {
  font-family: 'Arial', 'Helvetica', sans-serif;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #2c3e50;
  overflow-x: hidden;
  position: relative;
}

/* Subtle animated grid background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(90deg, rgba(100, 100, 100, 0.02) 1px, transparent 1px),
    linear-gradient(0deg, rgba(100, 100, 100, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 40s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(60px, 60px);
  }
}

.content-wrapper {
  position: relative;
  z-index: 1;
}

/* Header with Navigation and Branding */
header {
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-branding {
  flex: 1;
  min-width: 200px;
}

.site-title a {
  text-decoration: none;
  font-size: 2rem;
  font-weight: 900;
  color: #2c3e50;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
}

.site-title a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3498db;
  transition: width 0.3s ease;
}

.site-title a:hover::after {
  width: 100%;
}

.site-title a:hover {
  color: #3498db;
}

.site-tagline {
  font-size: 0.85rem;
  color: #95a5a6;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* Navigation Menu */
#menu {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

#menu ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

#menu li {
  margin: 0 1rem;
  font-size: 1rem;
  line-height: 2.5rem;
  position: relative;
}

#menu li::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #3498db;
  transition: width 0.4s ease;
}

#menu li:hover::after {
  width: 100%;
}

#menu a {
  text-decoration: none;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#menu li:hover a {
  color: #3498db;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 249, 249, 0.9) 100%);
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  color: #2c3e50;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 12px;
  position: relative;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: #3498db;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #7f8c8d;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 2rem;
}

/* SVG Skyline - minimal and clean */
.skyline-svg {
  width: 100%;
  height: 120px;
  margin-top: 3rem;
  opacity: 0.4;
}

/* City Gallery - Masonry Grid Layout */
.city-gallery {
  max-width: 1600px;
  margin: 3rem auto;
  padding: 0 2rem 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

/* City Card with proper z-index */
.city-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  isolation: isolate;
  z-index: 1;
}

.city-card:hover {
  transform: translateY(-20px);
  z-index: 10;
}

/* Clean white border with subtle shadow */
.card-container {
  display: flex;
  flex-direction: column;
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.city-card:hover .card-container {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Subtle accent line on top */
.accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  z-index: 3;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.city-card:hover .accent-line {
  transform: scaleX(1);
}

/* Image Container - Clean, no heavy overlay */
.city-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 12px;
}

/* Portrait orientation - manually add this class to portrait images */
.city-image-wrapper.portrait {
  aspect-ratio: 3/4;
}

/* Very light vignette only */
.city-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
      transparent 30%,
      rgba(0, 0, 0, 0.05) 100%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.city-card:hover .city-image-wrapper::before {
  opacity: 0.2;
}

.city-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  filter: saturate(1.1) contrast(1.05);
}

.city-card:hover .city-image {
  transform: scale(1.08);
  filter: saturate(1.2) contrast(1.08);
}

/* City Info Overlay - Fixed z-index */
.city-info {
  position: relative;
  padding: 2.5rem;
  z-index: 5;
  background: linear-gradient(to top,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.85) 60%,
      transparent 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 0 0 12px 12px;
  transform: translateY(calc(100% - 100px));
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.city-card:hover .city-info {
  transform: translateY(0);
}

.city-name {
  font-size: 2.2rem;
  font-weight: 900;
  color: #2c3e50;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 0.3rem 0;
  transition: all 0.3s ease;
}

.city-card:hover .city-name {
  color: #3498db;
}

.city-country {
  font-size: 0.9rem;
  color: #95a5a6;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}

.city-description {
  color: #7f8c8d;
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 400;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.city-card:hover .city-description {
  opacity: 1;
  transform: translateY(0);
}

/* Minimal corner indicator */
.corner-indicator {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-top: 2px solid rgba(52, 152, 219, 0.3);
  border-right: 2px solid rgba(52, 152, 219, 0.3);
  z-index: 4;
  transition: all 0.4s ease;
  border-radius: 0 8px 0 0;
}

.city-card:hover .corner-indicator {
  width: 50px;
  height: 50px;
  border-color: rgba(52, 152, 219, 0.8);
}

/* Footer with Language Selector */
footer {
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 3rem 2rem;
  margin-top: 4rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-title {
  font-size: 1.2rem;
  color: #2c3e50;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

#langlist {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(248, 249, 250, 0.9);
  border-radius: 50px;
  padding: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
}

#langlist li {
  display: inline-block;
  list-style: none;
  margin: 0.3rem;
  padding: 0.7rem 1.3rem;
  border-radius: 30px;
  transition: all 0.3s ease;
}

#langlist a {
  text-decoration: none;
  color: #7f8c8d;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-weight: 600;
}

#langlist .highlight {
  background: #3498db;
}

#langlist .highlight a {
  color: #ffffff;
  font-weight: bold;
}

#langlist li:not(.highlight):hover {
  background: rgba(52, 152, 219, 0.1);
}

#langlist li:not(.highlight):hover a {
  color: #3498db;
}

.footer-credits {
  color: #95a5a6;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-top: 2rem;
  font-weight: 400;
}

.footer-credits strong {
  color: #2c3e50;
  font-weight: 900;
}

/* Responsive Design */
@media screen and (max-width: 968px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
  }

  .site-branding {
    margin-bottom: 1rem;
  }

  #menu {
    justify-content: center;
  }

  #menu ul {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
  }

  .hero-title {
    font-size: 3rem;
    letter-spacing: 6px;
  }

  .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 3px;
  }

  .city-card {
    height: 450px;
  }

  .city-name {
    font-size: 2rem;
  }
}

@media screen and (max-width: 600px) {
  .site-title a {
    font-size: 1.5rem;
  }

  .site-tagline {
    font-size: 0.75rem;
  }

  #menu li {
    margin: 0 0.5rem;
    font-size: 0.85rem;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: 4px;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 2px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .city-card {
    height: 400px;
  }

  .city-name {
    font-size: 1.8rem;
  }

  .city-info {
    padding: 2rem;
    transform: translateY(calc(100% - 90px));
  }
}
