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

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

header.hero {
  background: linear-gradient(135deg, #234e70, #406882);
  color: #fff;
  padding: 4em 1em;
  text-align: center;
}

.hero-content h1 {
  font-size: 3em;
  margin-bottom: 0.2em;
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: 1em;
}

nav {
  background-color: #1e3d59;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  padding: 1em;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

nav a:hover {
  background-color: #163448;
}

main {
  padding: 2em 1em;
  max-width: 1100px;
  margin: auto;
}

.section {
  margin-bottom: 3em;
}

.section.light {
  background-color: #ffffff;
  padding: 2em;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
  color: #234e70;
}

ul {
  list-style: none;
  padding-left: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em;
  margin-top: 1.5em;
}

.service-box {
  background-color: #e4edf2;
  padding: 1.5em;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.2s ease;
}

.service-box:hover {
  transform: translateY(-5px);
}

.service-box h3 {
  margin-bottom: 0.5em;
  color: #1e3d59;
}

.btn {
  display: inline-block;
  background-color: #1e81b0;
  color: white;
  padding: 0.75em 1.5em;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
  margin-top: 1em;
}

.btn:hover {
  background-color: #166194;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em;
  margin-top: 1.5em;
  justify-items: center;
}

.gallery img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


footer {
  background-color: #234e70;
  color: white;
  text-align: center;
  padding: 1.5em;
  margin-top: 2em;
  font-size: 0.9em;
}

.gallery img:hover,
.gallery img:focus-visible {
  transform: scale(1.05);
  opacity: 0.95;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery img:active {
  animation: pop 0.3s ease;
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
