/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
  width: 100%;
  background-color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  position: relative; /* important for absolute menu */
}

.logo img {
  height: 30px;
  width: auto;
}

/* HAMBURGER ICON */
.hamburger {
  display: none;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  margin-left: auto; /* pushes to extreme right in flex */
}

/* NAV LINKS (DESKTOP) */
nav {
  /* stays in DOM, but UL is what we show/hide */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #5682B1;
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #000;
  min-width: 160px;
  top: 100%;
  left: 0;
  z-index: 999;
}

.dropdown-content a {
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #333;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ===== CONTACT BUTTON (NAV) ===== */
.contact-btn {
  background-color: #5682B1;
  padding: 8px 18px;
  border-radius: 8px;
  color: white !important;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background-color: #466e95;
}

/* ===== SERVICE SECTION ===== */
.service-section {
  padding: 80px 10%;
}

.service-section h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.service-section .intro {
  color: #ccc;
  margin-bottom: 50px;
  font-size: 1rem;
}

.service-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
}

/* ===== VIDEO GRID ===== */
.video-section {
  width: 100%;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.video-service {
  text-align: center;
  transition: transform 0.3s ease;
}

.video-service:hover {
  transform: scale(1.03);
}

/* For video hover service */
.video-service .media-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
}

.video-service .thumbnail,
.video-service .preview-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
  border-radius: 10px;
}

.video-service .preview-video {
  opacity: 0;
  pointer-events: none;
}

.video-service:hover .preview-video {
  opacity: 1;
}

.video-service:hover .thumbnail {
  opacity: 0;
}

.video-service p {
  margin-top: 10px;
  color: #ccc;
}

/* ===== CONTACT BUTTON MAIN ===== */
.contact-btn-main {
  background-color: #fff;
  color: #000;
  padding: 12px 30px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: block;
  margin: 40px auto 0;
  transition: all 0.3s ease;
}

.contact-btn-main:hover {
  background-color: #5682B1;
  color: #fff;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 25px 0;
  background: #111;
  margin-top: 60px;
  color: #aaa;
  font-size: 0.9rem;
}

.social-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social-links img {
  width: 24px;
  height: 24px;
  opacity: 0.8;
  transition: 0.3s ease;
}

.social-links img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* SERVICE CONTENT RESPONSIVE (unchanged) */
  .service-section {
    padding: 60px 8%;
  }

  .service-section h1 {
    font-size: 1.8rem;
  }

  .contact-btn-main {
    width: 100%;
  }

  /* NAVBAR RESPONSIVE */
  .hamburger {
    display: block; /* show icon on mobile */
  }

  /* Turn menu into dropdown overlay */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 20px;
    background-color: #000;
    padding: 20px 0;
    border-top: 1px solid #1a1a1a;
    display: none; /* hidden by default */
    text-align: center;
  }

  .nav-links.show {
    display: flex; /* toggled class shows menu */
  }

  .dropdown-content {
    position: static;
    background-color: transparent;
    border: none;
  }

  .dropdown-content a {
    padding: 8px 0;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }
}
