/* ==== RESET & BASE STYLES ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f9fb;
  color: #333;
  line-height: 1.6;
}

/* ==== HEADER ==== */
header {
  background: #1a2a6c;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
  margin-bottom: 10px;
  font-size: 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  background: #4facfe;
}

/* ==== HERO SECTION ==== */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(120deg, #4facfe, #00f2fe);
  color: white;
  border-radius: 8px;
  margin-bottom: 30px;
}

.hero p {
  margin-top: 10px;
  font-size: 1.1rem;
}

/* ==== SECTION HEADINGS ==== */
h2 {
  color: #1a2a6c;
  margin-bottom: 20px;
  text-align: center;
}

/* ==== SERVICE CARDS SECTION ==== */
.services-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  padding: 0 20px;
}

.service-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding-bottom: 20px;
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card h3 {
  margin: 15px 0 10px;
  color: #1a2a6c;
}

.service-card p {
  padding: 0 15px;
  color: #555;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* ==== CONTACT FORM ==== */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

form label {
  font-weight: bold;
}

form input, form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
}

form button {
  background: #1a2a6c;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background: #4facfe;
}

/* ==== GALLERY SECTION ==== */
.gallery {
  margin-top: 40px;
  text-align: center;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.image-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.image-grid img:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* ==== ANIMATIONS ==== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==== BACK TO TOP BUTTON ==== */
#topBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  background-color: #1a2a6c;
  color: white;
  border: none;
  padding: 12px 16px;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: none;
}

#topBtn:hover {
  background-color: #4facfe;
}

/* ==== FOOTER ==== */
footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  background: #1a2a6c;
  color: white;
  font-size: 0.9rem;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .hero {
    padding: 40px 10px;
  }

  .services-section,
  .image-grid {
    padding: 0 10px;
  }

  form {
    padding: 15px;
  }
}
<!-- Back to top button -->
<button onclick="scrollToTop()" id="topBtn" title="Go to top">↑</button>

<script>
  // Scroll to top button
  const topBtn = document.getElementById("topBtn");
  window.onscroll = function () {
    topBtn.style.display = (window.scrollY > 200) ? "block" : "none";
  };
  function scrollToTop() {
    window.scrollTo({ top: 0, behavior: 'smooth' });
  }

  // Fade-in animation on scroll
  const faders = document.querySelectorAll('.fade-in');
  const appearOptions = { threshold: 0.2 };
  const observer = new IntersectionObserver((entries, observer) => {
    entries.forEach(entry => {
      if (!entry.isIntersecting) return;
      entry.target.classList.add('visible');
      observer.unobserve(entry.target);
    });
  }, appearOptions);
  faders.forEach(el => observer.observe(el));
</script>

/* ===== Top right contact + icons ===== */
.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.site-title {
  font-size: 2rem;
  color: #fff;
  margin: 0;
}

.top-right-corner {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.email-link {
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.15);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.email-link:hover {
  background: rgba(255,255,255,0.3);
}

.social-icons {
  display: flex;
  gap: 8px;
}

.social-icons a img {
  width: 22px;
  height: 22px;
  filter: brightness(1.2);
  transition: transform 0.2s ease;
}

.social-icons a:hover img {
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .top-right-corner {
    align-items: center;
    text-align: center;
  }
}