@media (max-width: 768px) {
  .services-slider {
    flex-wrap: wrap;
  }
  .service {
    flex: 0 0 80%;
    margin: 0 auto 20px;
  }
  .about-content {
    flex-direction: column;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}


header {
  background: #fff;
  border-bottom: 2px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px; /* normal padding */
  transition: all 0.3s ease;
}

header.shrink .navbar {
  padding: 5px 20px; /* smaller padding when shrunk */
}

header.shrink .navbar img {
  height: 40px; /* smaller logo height when shrunk */
  transition: height 0.3s ease;
}


/* Smooth scroll for the whole page */
html {
  scroll-behavior: smooth;
}

/* Offset for sections (assume header is 80px tall) */
section {
  scroll-margin-top: 80px; /* adjust if header is taller */
}

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background: #fff;
  border-bottom: 2px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 10px 20px;
}
.navbar img {
  height: 60px;
}
.nav-links {
  list-style: none;
  display: flex;
}
.nav-links li {
  margin-left: 20px;
}
.nav-links a {
  text-decoration: none;
  color: #0a2d82;
  font-weight: bold;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: #0078ff;
}

/* Home Section with Slider */
#home {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
#home::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  animation: slideShow 25s infinite;
  z-index: -1;
}
.overlay {
  background: rgba(0,0,0,0.5);
  padding: 40px;
  border-radius: 10px;
}
#home h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 15px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
}
#home p {
  font-size: 1.3rem;
  color: #f1f1f1;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Slider Animation */
@keyframes slideShow {
  0% { background-image: url('img/slide1.jpg'); }
  20% { background-image: url('img/slide2.jpg'); }
  40% { background-image: url('img/slide3.jpg'); }
  60% { background-image: url('img/slide4.jpg'); }
  80% { background-image: url('img/slide5.jpg'); }
  100% { background-image: url('img/slide1.jpg'); }
}

/* Sections */
section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}
#services h2, #about h2, #contact h2 {
  text-align: center;
  color: #0a2d82;
  margin-bottom: 30px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.service {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}
.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.service h3 {
  color: #0a2d82;
  margin-bottom: 10px;
}

/* About */
#about p {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Contact */
#contact form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
}
#contact input, #contact textarea {
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
}
#contact button {
  background: #0a2d82;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}
#contact button:hover {
  background: #0078ff;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #f1f1f1;
  margin-top: 40px;
}
footer img {
  height: 40px;
  display: block;
  margin: auto;
}

/* Services Section - Horizontal Slider */
#services {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
}

#services h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #002b5c;
}

.services-slider {
  display: flex;
  gap: 20px;
  padding: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.services-slider::-webkit-scrollbar {
  display: none;
}

.services-strip {
  display: flex;
  animation: scrollServices 40s linear infinite;
}

.service {
  flex: 0 0 250px; /* each service column width */
  margin: 0 10px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;

  display: flex;               /* NEW */
  flex-direction: column;      /* stack image + text vertically */
  justify-content: space-between; /* spread content evenly */
  height: 100%;                /* make it stretch equally */
}

.service img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 15px;
  background: #f9f9f9;
}

.service h3 {
  color: #0a2d82;
  margin-bottom: 10px;
  min-height: 50px; /* keeps titles aligned */
}

.service p {
  flex-grow: 1;          /* makes paragraphs take remaining space */
  text-align: left;      /* looks better for multi-line text */
  line-height: 1.4rem;
}


.service:hover {
  transform: translateY(-5px);
}

.service a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 20px;
}

.service img {
  width: 100%;
  height: 160px; /* fixed height */
  object-fit: contain; /* show full image, add white space if needed */
  border-radius: 8px;
  margin-bottom: 15px;
  background: #f9f9f9; /* optional, makes empty space look clean */
}

.service h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #002b5c;
}

.service p {
  font-size: 0.95rem;
  color: #555;
}


.about-section {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: left;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  max-width: 1100px;
  margin: auto;
}

.about-text {
  flex: 1 1 55%;
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.about-image {
  flex: 1 1 40%;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.contact-form {
  flex: 1;
  min-width: 280px;
}

.contact-info {
  flex: 1;
  min-width: 250px;
}

.social-links {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

.social-links a i {
  font-size: 20px;
}

.social-links .whatsapp {
  background: #25D366;
  color: white;
}

.social-links .messenger {
  background: #0084FF;
  color: white;
}

.social-links a:hover {
  opacity: 0.9;
}


footer {
  background: #0a1f44; /* dark blue */
  color: #fff;
  padding: 40px 20px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  width: auto;
  margin-bottom: 10px;
}

.footer-logo p {
  font-size: 14px;
  color: #ccc;
}

.footer-links h4,
.footer-social h4 {
  margin-bottom: 12px;
  font-size: 16px;
  color: #fff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #fff;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  font-size: 20px;
  color: #ccc;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #25D366; /* green for hover, you can customize */
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 15px;
  font-size: 14px;
  color: #aaa;
}


