/* ===== BASIC RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #121212;
  color: #f1f1f1;
}

/* ===== CONTAINER ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 12px 60px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 300px;
  height: auto;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-size: 1.6rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
}

#menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 30px;
  margin: 0;
}

#menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
}

#menu li a:hover {
  color: #00bcd4;
}

#menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}

/* ===== HERO VIDEO SECTION ===== */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-top: 80px; /* Offset for fixed header */
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover; /* keeps aspect ratio */
  transform: translate(-50%, -50%);
  z-index: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 20px;
}

.hero-content h2 {
  font-size: 2.8rem;
  line-height: 1.2;
}

.hero-content span {
  color: #1bae4b;
}

.hero-content p {
  margin: 20px 0;
  font-size: 1.1rem;
}

.btn,
.btn-outline {
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 10px;
  display: inline-block;
}

.btn {
  background: #1bae4b;
  color: #fff;
}

.btn:hover {
  background: #1bae4b;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #000;
}

/* ===== SECTIONS ===== */
.section {
  padding: 4rem 0;
  text-align: center;
}

.section.dark {
  background: #1a1a1a;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section p {
  color: #ccc;
  max-width: 700px;
  margin: auto;
}

/* ===== GRID / CARDS ===== */
.grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.card,
.box {
  background: #222;
  padding: 2rem;
  border-radius: 10px;
  transition: transform 0.3s, background 0.3s;
}

.card:hover,
.box:hover {
  transform: translateY(-5px);
  background: #2f2f2f;
}

/* ===== SERVICES CAROUSEL ===== */
.carousel {
  position: relative;
  overflow: hidden;
  width: 90%;
  margin: 40px auto 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.8s ease-in-out;
  will-change: transform;
}

.card {
  min-width: 300px;
  height: 400px;
  margin: 0 15px;
  background: #1e1e1e;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
  transform: scale(1.07);
  box-shadow: 0 0 25px #5cc073;
}

.card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
  text-align: center;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #fff;
}

.card-content p {
  color: #ccc;
  font-size: 0.9rem;
}

/* ===== FIXED HORIZONTAL CAROUSEL ARROWS ===== */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  line-height: 45px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.nav-btn:hover {
  background: #1bae4b;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

@media (max-width: 768px) {
  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    line-height: 40px;
  }
  .prev {
    left: 5px;
  }
  .next {
    right: 5px;
  }
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2rem;
  background: #111;
  color: #777;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .logo-img {
    width: 200px;
  }

  .hero {
    height: 75vh;
    margin-top: 70px;
  }

  .hero-content h2 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .carousel .card {
    min-width: 260px;
    height: auto;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 12px 20px;
  }

  .logo-img {
    width: 160px;
  }

  /* Navbar toggle fix */
  #menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    width: 180px;
  }

  #menu.open {
    display: flex;
  }

  #menu-btn {
    display: block;
  }

  .hero {
    height: 70vh;
  }

  .hero-content {
    padding: 10px;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .btn,
  .btn-outline {
    padding: 10px 22px;
    font-size: 0.9rem;
  }

  .carousel .card {
    min-width: 85%;
    height: auto;
    margin: 0 10px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 1rem;
  }

  footer {
    padding: 1.5rem;
    font-size: 0.9rem;
  }
}

/* ====== CONTACT FORM ====== */ 
.contact-form { 
  max-width: 500px; 
  margin: 2rem auto 0; 
  display: flex; 
  flex-direction: column; 
  gap: 1rem; 
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
} 

.contact-form input,
.contact-form textarea { 
  padding: 0.8rem; 
  border: none; 
  border-radius: 5px; 
  background: #2a2a2a; 
  color: #fff; 
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
} 

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1px solid #1bae4b;
  background: #222;
}

.contact-form button { 
  background: #8b5cf6; 
  border: none; 
  padding: 0.9rem; 
  color: #000; 
  font-weight: 600;
  border-radius: 5px; 
  cursor: pointer; 
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
} 

.contact-form button:hover { 
  background: #1bae4b; 
  color: #fff;
  transform: translateX(4px);
}

/* ====== POPUP MESSAGE ====== */
.popup-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-50px);
  background: #222;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  font-size: 1rem;
  font-weight: 500;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 9999;
  pointer-events: none;
}

.popup-message.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.popup-message.success {
  background: #1bae4b;
  color: #fff;
}

.popup-message.error {
  background: #ff4d4d;
  color: #fff;
}

/* ===== RESPONSIVE CONTACT FORM FIX ===== */
@media (max-width: 768px) {
  .contact-form {
    width: 100%;
    padding: 1.5rem;
    margin-top: 1.5rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
  }

  .contact-form button {
    font-size: 1rem;
  }

  #contact h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  #contact .container {
    width: 95%;
  }
}

#contact.section.dark {
  background: #161616;
  padding: 3.5rem 0;
}

/* ====== FOOTER ====== */ 
footer 
{ 
  text-align: center; 
  padding: 2rem; 
  background: #111; 
  color: #777; 
}