/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: var(--primary-light);
}

:root {
  --primary-color: #00677C;
  --primary-dark: #004E5C;
  --primary-light: #E6F2F4;
  --text-color: #222;
  --bg-color: #f9f9f9;
}

/* ===== Navigation Bar ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--primary-light);
  flex-wrap: wrap;
  position: relative;
  z-index: 1000;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  user-select: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin-right: 0.5rem;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  font-weight: 500;
  padding: 0.4rem 1.0rem;
  border-radius: 4px;
  display: inline-block;
  text-align: center;
  min-width: 100px;
  transition: all 0.3s ease;
  background-color: var(--primary-color);
  border: 1px solid transparent;
}

.nav-links li a:hover {
  background-color: var(--primary-dark);
  color: white;
  border: 1px solid var(--primary-dark);
}

/* ===== Hero Section ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
  background-color: var(--primary-light); 
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background-color: var(--primary-light);
}

.image-slider {
  width: 100%;
  height: 90%;
  max-width: 800px;
  height: 600px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  border-radius: 16px;
}

.slide.active {
  opacity: 1;
}

.what-i-do-wrapper {
  padding: 1rem;
  text-align: center;
  background-color: var(--primary-light);
}

.what-i-do-wrapper h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.service {
  text-align: center;
}

.service img {
  width: 110px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.service p {
  margin-top: 0.5rem;
  font-weight: bold;
  font-size: 12px;
  color: var(--primary-dark);
}

.hero-right {
  background-color: var(--primary-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.hero-right .profile-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 0rem;
}

.hero-right h1 {
  font-size: 2.2rem;
  color: var(--primary-dark);
  margin-bottom: 0;
}

.hero-right p.subtitle {
  font-size: 1.1rem;
  margin-bottom: 2.0rem;
  max-width: 100%;
  font-weight: bold;
}

.hero-right p.About {
  font-size: 1.1rem;
  margin-top: 2.0rem;
  margin-bottom: 2.0rem;
  max-width: 100%;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.btn,
.btn-outline {
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s;
}

.btn {
  background-color: var(--primary-color);
  color: #fff;
}

.btn:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-light);
}
/* ===== latest update ===== */

.latest-update {
  margin: 3rem auto;
  padding: 1.5rem;
  max-width: 800px;
  background-color: #f0fbfc;
  border-left: 5px solid var(--primary-color);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.latest-update h2 {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.update-box p {
  margin: 0.5rem 0;
  color: var(--text-color);
}

.read-more-btn {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1.25rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.read-more-btn:hover {
  background-color: var(--primary-dark);
}

.latest-update .date {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}





/* ===== Footer ===== */
footer {
  text-align: left;
  padding: 1rem;
  background-color: var(--primary-light);
  font-size: 1rem;
  color: black;
}

/* ===== Responsive Layout ===== */
@media (max-width: 800px) {
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-right {
    order: 1;
    padding: 1.5rem;
  }

  .hero-left {
    order: 2;
  }

  .image-slider {
    height: 250px;
    width: 90%;
    max-width: 500px;
    margin: 1rem auto;
    display: block;
  }

  .slide {
    object-fit: contain;
    width: 100%;
    height: 100%;
  }

  .service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 90%;
    margin: 0 auto;
  }

  .service {
    flex: 0 1 calc(33.33% - 1rem);
    text-align: center;
  }

  .service img {
    width: 80px;
    height: auto;
  }

  .hero-right .profile-photo {
    width: 140px;
    height: 140px;
  }

  .hero-right h1 {
    font-size: 1.8rem;
  }

  .hero-right p {
    font-size: 1rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 1rem 0;
    border-top: 2px solid var(--primary-dark);
    z-index: 1000;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    color: white;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
  }

  .nav-links li a:hover {
    background-color: var(--primary-dark);
  }

  .nav-links.nav-open {
    display: flex;
  }

  .logo img {
    height: 40px;
  }
}
