/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background: linear-gradient(to right, #fdfdfd, #ffffff);
  padding: 60px 20px 30px;
  text-align: center;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: #111;
}

p {
  max-width: 700px;
  margin: 0 auto 20px;
  font-size: 1rem;
  color: #555;
  text-align: center;
}

/* Section */
section {
  padding: 40px 20px;
}

h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: #222;
}

/* Carousel */
.carousel {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 10px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 10px;
  scroll-padding-right: 10px;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start; /* Make sure images don't disappear at edges */
}

.carousel::-webkit-scrollbar {
  height: 10px;
}

.carousel::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 6px;
}

/* Images */
.carousel img {
  height: 250px;
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.carousel img:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  background: #fff;
  color: #777;
  margin-top: 40px;
  box-shadow: 0 -1px 5px rgba(0,0,0,0.05);
}

footer a {
  color: #007acc;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }

  .carousel img {
    height: 200px;
    max-width: 100%;
    width: auto;
  }

  .close {
    font-size: 1.5rem;
    top: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .carousel img {
    height: auto;
    max-height: 180px;
    width: auto;
    max-width: 90%;
  }
}
