@font-face {
  font-family: 'Handwritten';
  src: url('assets/Handwrittendemo-1Gq4M.otf') format('opentype');
}

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

body {
  background: #FFFFFF;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
overflow-x: hidden;
}

/* Header */
header {
  background: #fafafa;
  padding: 16px 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header nav {
  display: flex;
  align-items: center;
}
.logo {
  color: #000000;
  font-size: 35px;
  font-weight: bold;
  font-family: 'Handwritten', cursive;
  font-size: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-divider {
  margin: 0 8px;
  color: #999;
  font-weight: normal;
}
.country-name {
  font-size: 14px;
  font-weight: normal;
  color: #666;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.logo a {
  display: inline-flex;
  align-items: center;
  gap: 14px; 
  text-decoration: none;
  color: inherit;
}
.logo-icon {
  width: 65px;
  height: auto;
  display: inline-block;
}

@media (max-width: 600px) {
  .logo-icon { width: 28px; }
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}
nav a {
  color: #000000;
  text-decoration: none;
  font-size: 18px;
  transition: opacity 0.3s ease;
}
nav a:hover {
  opacity: 0.7;
}

.page {
  min-height: 100vh;
  padding: 36px 18px; 
  display: block;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 28px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh; 
}
.hero h1 {
  font-size: 48px;
  color: #1E3A5F;
  margin-bottom: 8px;
  font-family: 'Handwritten', cursive;
  font-size: 150px;
  font-weight: normal;
}
.hero p {
  color: #555;
  font-size: 16px;
}

/* Globe */
.globe-container {
  position: relative;
  width: 100%;
  max-width: 1200px; 
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0 10px 0; 
  margin: 0 auto;
  margin-bottom: 80px; 
  transform-origin: center center;
  will-change: transform;
}
#globe {
  width: 400px;
  height: auto;
  max-width: 90vw;
  display: block;
  margin: 0 auto;
}

/* Scroll Section */
.scroll-section {
  height: 200vh;
}

/* Country Maps Section */
.maps-section {
  position: relative;
  padding: 40px 20px;
  margin-top: 40px; 
  margin-bottom: 400px;
  height: auto;
  min-height: 400px;
}
.countries-intro {
  max-width: 900px;
  margin: 0 auto 60px auto;
  text-align: center;
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
}
.countries-intro h2 {
  font-family: 'Handwritten', cursive;
  color: #1E3A5F;
  font-size: 80px;
  font-weight: normal;
  margin-bottom: 16px;
}
.countries-tagline {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.countries-ps {
  color: #999;
  font-size: 14px;
  font-style: italic;
}
.map-card {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
}
.map-card img {
  width: 200px;
  height: auto;
  object-fit: contain;
}

  /* Minimal large-screen tweak: reduce gap between France and Japan maps */
  @media (min-width: 1290px) {
    /* move the France image slightly right and the Japan image slightly left */
    .map-france {
      position: relative;
      left: 50px; /* small inward nudge */
    }
    .map-japan {
      position: relative;
      right: 80px; /* small inward nudge */
    }
    .map-usa {
      position: relative;
      left: 30px;
    }
    .map-india {
      position: relative;
      right: 75px;
    }

  .globe-container {
  position: relative;
  width: 100%;
  max-width: 1200px; 
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 70px 0 10px 0; 
  margin: 0 auto;
  margin-bottom: 80px; 
  transform-origin: center center;
  will-change: transform;
}
#globe {
  width: 600px;
  height: auto;
  max-width: 90vw;
  display: block;
  margin: 0 auto;
}
.hero {
  text-align: center;
  padding: 28px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh; 
}
.hero h1 {
  font-size: 55px;
  color: #1E3A5F;
  margin-bottom: 8px;
  font-family: 'Handwritten', cursive;
  font-size: 150px;
  font-weight: normal;
}
.hero p {
  color: #555;
  font-size: 24px;
}

  }

/* Map Sizes */
.map-card img.map-usa {
  width: 340px;
  max-width: 90vw;
}
.map-card img.map-france {
  width: 250px;
  max-width: 90vw;
}
.map-card img.map-india {
  width: 280px;
  max-width: 90vw;
}
.map-card img.map-japan {
  width: 300px;
  max-width: 90vw;
}

.map-card:has(.map-france) {
  z-index: 10;
}
.map-card:has(.map-japan) {
  z-index: 5;
}
.map-card:has(.map-usa) {
  z-index: 3;
}
.map-card:has(.map-india) {
  z-index: 2;
}

/* Map hover effect */
.map-card img:hover {
  filter: drop-shadow(0 0 18px #1E3A5F) brightness(1.08);
  transform: scale(1.08);
  transition: transform 0.2s, filter 0.2s;
  cursor: pointer;
}

/* Passport layout */
.passport-content {
  display: flex;
  gap: 32px;
  align-items: center;
  max-width: 1000px; 
  margin: 0 auto; 
}
.passport-left {
  flex: 0 0 380px; 
  display: flex;
  justify-content: flex-start;
  position: relative;
}
.passport-right {
  flex: 1;
}
.passport-image {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  margin: 0;
}

#passport h2 {
  font-family: 'Handwritten', cursive;
  color: #1E3A5F;
  font-size: 80px;
  font-weight: normal;
  margin-bottom: 12px;
}
#passport {
  display: flex;
  align-items: center;    
  justify-content: center; 
  padding: 60px 18px;
  scroll-margin-top: 30px; 
}

/* Footer */
footer {
  background: #fafafa;
  color: #000000;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Map slider styles */
.map-slider {
  max-width: 1100px;
  margin: 30px auto 60px auto;
  padding: 20px;
}
.slider {
  position: relative;
  overflow: visible; /* show neighboring cards */
  border-radius: 12px;
  background: transparent; /* keep page background */
}
.slides {
  display: flex;
  gap: 40px;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  align-items: center;
  padding: 40px 24px 140px 24px; /* give room for lifted center card and controls below */
}
.slide {
  flex: 0 0 280px;
  width: 280px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transform-origin: center center;
  transition: transform 0.55s ease, filter 0.55s ease;
  cursor: pointer;
  z-index: 1;
}
.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 240px;
  border-radius: 8px;
  z-index: 0;
}
.slide:nth-child(1)::before { background-color: #d4e8f0; }
.slide:nth-child(2)::before { background-color: #ffd9a8; }
.slide:nth-child(3)::before { background-color: #c9b8f0; }
.slide:nth-child(4)::before { background-color: #a8f0e0; }
.slide:nth-child(5)::before { background-color: #f0d4a8; }
.slide img {
  width: 70%;
  height: 200px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  display: block;
}
.slide .caption {
  text-align: center;
  padding: 12px 6px 0 6px;
  color: #111;
  font-size: 13px;
  line-height: 1.3;
}
.slide.active {
  transform: translateY(-12px) scale(1.08);
  z-index: 10;
}
.slide.prev, .slide.next {
  transform: translateY(0) scale(0.95);
  filter: brightness(0.98);
}

.slider .prev, .slider .next {
  position: absolute;
  bottom: 24px;
  border: none;
  background: rgba(30,58,95,0.9);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.slider .prev { right: 78px; z-index: 20; }
.slider .next { right: 18px; z-index: 20; }
.slider .dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 22px;
  display: flex;
  gap: 10px;
  z-index: 20;
}
.slider .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.12);
  cursor: pointer;
  opacity: 0.75;
}
.slider .dot.active { background: #ffffff; opacity: 1; box-shadow: 0 2px 6px rgba(0,0,0,0.18); }

/* Keyboard focus styles */
.slider:focus { outline: 3px solid rgba(30,58,95,0.06); }

/* Smooth Carousel (Smooothy-inspired) */
.smooth-carousel {
  position: relative;
  width: 100%;
  max-width: 1700px;
  margin: 40px auto;
  padding: 20px;
  margin-bottom: 0;
  padding-bottom: 0;
}

.slider-container {
  display: flex;
  gap: 24px;
  overflow: visible;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  padding: 40px 60px 80px 20px;
  align-items: center;
}

.carousel-slide {
  flex: 0 0 280px;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.55s ease, filter 0.55s ease;
  z-index: 1;
  text-decoration: none;
  color: inherit;
  padding: 20px;
}

.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0; 
  width: 280px;
  height: 400px;
  border-radius: 10px;
}

.carousel-slide:nth-child(1)::before { background: linear-gradient(to top, #808080, #fafafa); }
.carousel-slide:nth-child(2)::before { background: linear-gradient(to top, #808080, #fafafa); }
.carousel-slide:nth-child(3)::before { background: linear-gradient(to top, #808080, #fafafa); }
.carousel-slide:nth-child(4)::before { background: linear-gradient(to top, #808080, #fafafa); }
.carousel-slide:nth-child(5)::before { background: linear-gradient(to top, #808080, #fafafa); }

.carousel-slide img {
  width: 80%;
  max-width: 240px;
  height: 240px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
  display: block;
}

.carousel-slide h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1E3A5F;
  text-align: center;
  margin-bottom: 6px;
  position: relative;
  z-index: 3;
}

.carousel-slide h3::before {
  content: attr(data-number) ' - ';
}

.carousel-slide p {
  font-size: 15px;
  font-weight: 600;
  color: #555;
  text-align: center;
  line-height: 1.4;
  padding: 0 8px;
}

.carousel-slide.active {
  transform: translateY(-16px) scale(1.08);
  z-index: 10;
}

.carousel-slide.prev,
.carousel-slide.next {
  transform: scale(1);
  filter: brightness(0.97);
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #1E3A5F;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: background 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: #284a6f;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-dots {
  position: static;
  bottom: auto;
  left: auto;
  transform: none;
  display: flex;
  gap: 10px;
  z-index: 20;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin-top: 0;
  width: 100%;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: #1E3A5F;
  opacity: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border-color: #1E3A5F;
}

.smooth-carousel:focus { outline: none; }
