/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #0a2540;
  color: white;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar .nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.navbar .nav-links a {
  color: white;
  text-decoration: none;
}

.burger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 1s ease-in-out;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #0a2540;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

/* Sections */
.section {
  padding: 4rem 2rem;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #0a2540;
}

/* Grid Layout */
.grid {
  display: grid;
  gap: 2rem;
}

.services {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.categories {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Card */
.card {
  background: white;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 320px;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.card:hover {
  transform: translateY(-5px);
}

.card:hover .preview {
  transform: translateY(0);
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 200px;
}

.carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 8px;
}

.carousel-img.active {
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 6px 10px;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}

/* Modal Styles */
#imgModal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

#imgModal img {
  margin: 5% auto;
  display: block;
  max-width: 80%;
  max-height: 80vh;
  border-radius: 10px;
}

#imgModal .close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* CTA */
.cta {
  background: #0a2540;
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.cta .btn {
  background: white;
  color: #0a2540;
}

/* Footer */
footer {
  padding: 1rem;
  background: #eaeaea;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #0a2540;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .burger {
    display: block;
  }
}
