html { scroll-behavior: smooth; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f5f8fc;
  color: #222;
  line-height: 1.6;
}

/* ---------- HEADER ---------- */
header {
  background: #0b2c4d;
  color: #fff;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  font-size: 0.85rem;
  background: #081f36;
  flex-wrap: wrap;
  gap: 10px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
}

nav h1 {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  color: #4da3ff;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 40px 20px;
  color: #fff;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* cover viewport while preserving aspect */
  z-index: 0;
}

/* gradient overlay to keep text readable */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(11,44,77,0.65), rgba(11,44,77,0.65));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.hero p {
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  background: #4da3ff;
  color: #fff;
  padding: 12px 26px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
}

/* ---------- SECTIONS ---------- */
section {
  padding: 70px 20px;
  max-width: 1200px;
  margin: auto;
}

/* Why Us */
.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.why h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.why ul li {
  list-style: none;
  margin-bottom: 12px;
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}

.service-card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.service-card h4 {
  color: #0b2c4d;
  margin-bottom: 10px;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
  margin: 0 20px;
}

.gallery-item {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* keeps consistent preview ratio */
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* image & video should cover the item area */
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  cursor: zoom-in;
}

/* Contact Box */
.contact-box {
  background: #0b2c4d;
  color: #fff;
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
}

/* Appointment */
.appointment {
  background: #eef4fb;
}

.appointment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.appointment form {
  display: grid;
  gap: 15px;
}

.appointment input,
.appointment select,
.appointment textarea {
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* WhatsApp */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  padding: 14px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Footer */
footer {
  background: #081f36;
  color: #fff;
  padding: 60px 20px 30px;
}

.footer-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

footer p,
footer li {
  color: #cbd5e1;
  font-size: 0.95rem;
}

footer ul {
  list-style: none;
  line-height: 2;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  padding: 20px;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-inner img,
.lightbox-inner video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 6px;
  z-index: 2100;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .why,
  .appointment-grid {
    grid-template-columns: 1fr;
  }

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

  /* Mobile: slide-in right panel with blur */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 320px;
    max-width: 80%;
    padding: 60px 20px;
    gap: 20px;
    background: rgba(8,31,54,0.45); /* translucent so backdrop-filter can blur */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateX(100%); /* hidden by default */
    transition: transform 300ms ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.25);
    z-index: 1000;
  }

  .nav-links a {
    color: #fff;
    font-size: 1.05rem;
    padding: 8px 0;
  }

  .nav-links.active {
    transform: translateX(0); /* slide in */
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 1100; /* ensure toggle stays above the panel when closed */
  }
}

@media (max-width: 600px) {
  .gallery {
    gap: 10px;
    margin: 0 12px;
  }
}
