/* ========== BASE STYLES ========== */
body {
  margin: 0;
  font-family: 'Open Sans', 'Segoe UI', Roboto, sans-serif;
  background-color: #f2f7f9;
  color: #2c2c2c;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: #002b45;
}

i {
  color: #007c9d;
  font-size: 1.2rem;
  margin-right: 10px;
}

/* ========== HEADER ========== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  color: #fff;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  margin: 0;
  padding: 0;
  font-size: 1.8rem;
  margin-left: 220px;
  line-height: 1;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #00bcd4;
}

.logo {
  height: 60px;
  margin-right: 20px;
  vertical-align: middle;
}

/* ========== SECTION DEFAULTS ========== */
section:not(#home) {
  padding: 60px 40px;
  max-width: 1200px;
  margin: auto;
  background-color: #ffffff;
  margin-bottom: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

section h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  font-weight: 700;
  border-left: 6px solid #00bcd4;
  padding-left: 15px;
}

section h3 {
  font-size: 1.6rem;
  color: #005b7f;
  margin-top: 40px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
}

section h2 i,
section h3 i {
  color: #00bcd4;
}

ul {
  list-style: none;
  padding-left: 0;
}

li:not(nav li) {
  text-align: center;
  width: 100%;
}

/* ========== FOOTER ========== */
footer {
  background-color: #002b45;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* ========== HOME VIDEO SECTION ========== */
.video-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  background: transparent;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0,43,69, 0.6);
  padding: 40px;
  border-radius: 12px;
  max-width: 900px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.overlay-panel h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: #ffffff;
}

.overlay-panel p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.6;
}

.overlay-panel i {
  color: #00bcd4;
  margin-right: 10px;
  font-size: 1.2rem;
}

/* ========== ABOUT SECTION ========== */
#about {
  position: relative;
  z-index: 3;
  padding: 100px 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  color: #ffffff;
  background: url('images/service1.jpg') no-repeat center center;
  background-size: cover;
  border-radius: 8px;
}

#about::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,43,69, 0.6);
  z-index: -1;
  border-radius: 8px;
}

/* ========== SERVICES SECTION ========== */
#services {
  position: relative;
  z-index: 3;
  padding: 100px 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  color: #ffffff;
  background:
    linear-gradient(rgba(0,43,69,0.6), rgba(0,43,69,0.6)),
    url('images/services7.jpg') no-repeat center center;
  background-size: cover;
  border-radius: 8px;
}

#services ul {
  padding-left: 20px;
  margin-bottom: 30px;
  text-align: left;
}

#services p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.6;
}

#services i {
  color: #00bcd4;
  margin-right: 8px;
}

/* ========== SLIDESHOW ========== */
.slideshow {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 9;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  opacity: 0;
  animation: fadeSlide 18s infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 3s; }
.slide:nth-child(3) { animation-delay: 6s; }
.slide:nth-child(4) { animation-delay: 12s; }
.slide:nth-child(5) { animation-delay: 15s; }
.slide:nth-child(6) { animation-delay: 18s; }

@keyframes fadeSlide {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  25%  { opacity: 1; }
  30%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  header h1 {
    margin-left: 0;
    margin-top: 10px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .video-overlay {
    padding: 20px;
  }

  section {
    padding: 40px 20px;
  }

  .slideshow {
    max-width: 100%;
  }

  #services {
    background:
      linear-gradient(rgba(0,43,69,0.7), rgba(0,43,69,0.7)),
      url('images/services7.jpg') no-repeat center center;
    background-size: cover;
  }
}

/* ABOUT section: white text only, keep icons default */
#about h2,
#about h3,
#about p,
#about ul,
#about li {
  color: #ffffff;
}

/* SERVICES section: white text only, keep icons default */
#services h2,
#services h3,
#services h4,
#services p,
#services ul,
#services li {
  color: #ffffff;
}
