/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; 
}

body {
  font-family: "Lato", sans-serif;
  background: #f5f7fa;
  color: #333;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
  color: #000;
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

.logo .logo-text {
  font-size: 24px;
  font-weight: 900;
  font-family: 'GFS Didot', serif;
  color: #000;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

.nav-links a:hover {
  color: #277182;
  background: rgba(0, 115, 230, 0.1);
}

.nav-links a.active {
  color: #fff;
  background: #277182;
}

.menu-icon {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

/* ===== MOBILE MENU ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    width: 80%;
    text-align: center;
    animation: slideDown 0.3s ease;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-icon {
    display: block;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ===== HERO SECTION ===== */
.hero-container {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.hero-text-container {
  position: relative;
  color: #fff; 
  text-align: center;
  width: 80%; 
  z-index: 1;
  padding: 20px;
}

.hero-title {
  font-size: 3.5em; 
  font-weight: bold;
  margin-bottom: 15px;
  margin-top: 100px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: 1.5em; 
  margin-bottom: 25px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.hero-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: #277182;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

.hero-button:hover {
  background-color: #1a5263;
}

@media (max-width: 768px) {
  .hero-container {
    height: 600px;
  }
  .hero-title {
    font-size: 2.5em;
    margin-top: 100px;
  }
  .hero-subtitle {
    font-size: 1.2em;
  }
  .hero-button {
    font-size: 1em;
    padding: 10px 20px;
    margin-top: 35px;
  }
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 80px 5%;
  background-color: #fff;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-content {
  flex: 1;
  min-width: 300px;
}

.about-content h2 {
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #277182;
}

.about-content p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #555;
}

.about-content .subtitle {
  color: #000000;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 10px;
}

@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: 50px 5%;
  padding-bottom: 100px;
  background-color: #dddddd;
  text-align: center;
}

.services-section h2 {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 15px;
  margin-top: 15px;
  color: #277182;
}

.services-section .subtitle {
  color: #000000;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 20px;
}

.service-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center cards in last row */
  gap: 35px;
  margin-top: 60px;
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1 1 calc(30.33% - 20px); /* 3 per row */
  max-width: calc(30.33% - 20px);
  min-width: 280px;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px #29798b;
}

.service-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.service-card-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card-content h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #29798b;
}

.service-card-content p {
  font-size: 16px;
  color: #181717;
}

/* Tablet: 2 cards per row */
@media (max-width: 992px) {
  .service-card {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

/* Mobile: 1 card per row */
@media (max-width: 576px) {
  .service-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

section {
  scroll-margin-top: 100px; /* Adjust based on navbar height */
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 120px 20px 50px;
}

.contact-container {
  display: flex;
  background: #fff;
  width: 100%;
  max-width: 1100px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-text {
  flex: 1;
  padding: 40px;
  background: #277182;
  color: #fff;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-text h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: 700;
}

.contact-text p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 25px;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1em;
  margin-bottom: 15px;
}

.contact-info i {
  font-size: 1.2em;
}

.contact-card {
  flex: 1;
  padding: 40px;
  text-align: center;
}

.contact-card h2 {
  font-size: 28px;
  margin-bottom: 8px;
  color: #000;
}

.contact-card p {
  color: #555;
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
  .contact-text {
    border-radius: 15px 15px 0 0;
  }
  .contact-card {
    border-radius: 0 0 15px 15px;
  }
}

/* ===== FORM INPUTS ===== */
.contact-form .form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.input-group {
  position: relative;
  flex: 1;
}

.input-group.full-width {
  width: 100%;
}

.input-group i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #29798b;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px 12px 12px 38px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group textarea {
  resize: none;
  margin-top: 15px;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #277182;
  box-shadow: 0 0 5px rgba(39, 113, 130, 0.3);
  outline: none;
}

/* ===== SUBMIT BUTTON ===== */
.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(to right, #277182, #777d83);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
  margin-top: 20px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(to right, #277182, #777d83);
}

/* ===== SCROLL TO TOP ===== */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #277182;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-to-top.show {
  display: flex;
  opacity: 1;
}

.scroll-to-top:hover {
  transform: scale(1.1);
}

/* ===== FOOTER ===== */
.footer {
  background-color: #277182;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-top: 50px;
}

#services::before {
    content: "";
    display: block;
    height: 40px;   /* adjust stop distance */
    margin-top: -40px;
}

