/* ------------------ Global Styles ------------------ */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  margin: 0;
  color: #fff;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  background-attachment: fixed;
}

h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #fff;
}

/* ------------------ Container ------------------ */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 20px;
}

/* ------------------ Header & Navigation ------------------ */
.header {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;
  margin-right: 10px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  transition: all 0.3s ease-in-out;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #00bcd4;
}

/* ------------------ Hero Section ------------------ */
#hero {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-image.active {
  opacity: 1;
}
.tooltip-text {
  position: absolute;
  bottom: 125%; /* Above the trigger */
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.modal-trigger:hover .tooltip-text,
.modal-trigger.active .tooltip-text {
  opacity: 1;
}

.hero-content {
  position: absolute;
  width:80%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  color: #fff;
  padding: 0 1rem 2rem;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-block;
  background: #00bcd4;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.cta-button:hover {
  background: #0097a7;
}
/* ------------------ Services Section ------------------ */
/* .container {
  
  padding: 60px 20px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  text-align: center;
} */

h3 {
  font-size: 2rem;
  color: #f0f4ff;
  margin-bottom: 40px;
  font-family: 'Segoe UI', sans-serif;
  letter-spacing: 1px;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.service-card {
  background: linear-gradient(135deg, #4d6ab8, #e0f7fa);
  border-radius: 12px;
  padding: 30px;
  width: 280px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #a8c6db, #f195b4);
}

.service-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 70%);
  transform: rotate(45deg);
  transition: opacity 0.2s ease;
  opacity: 0;
  color: #cbd2e5;
}

.service-card:hover::after {
  opacity: 1;  
}

.service-card h4 {
  font-size: 1.4rem;
  color: #0077b6;
  margin-bottom: 15px;
  font-weight: 600;
}

.service-card p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.service-card:hover p {
  color: #111212;
  font-weight: bold;
}

/* ------------------ Team Section ------------------ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ------------------ Contact Button ------------------ */
.contact-button-wrapper {
  text-align: center;
  margin: 40px 0;
}

.tooltip-term {
  position: relative;
  cursor: pointer;
  font-weight: bold;
  display: inline-block;
}

.tooltip-box {
  display: none;
  position: absolute;
  top: 1.5rem;
  left: 0;
  z-index: 10;
  background-color: #263238;
  color: #f0f0f0;
  padding: 1rem;
  border-radius: 8px;
  width: 300px;
  font-size: 0.9rem;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.tooltip-term.active .tooltip-box {
  display: block;
}

dialog.modal {
  padding: 0;
  border: none;
  background: transparent;
  width: 90%;
  max-width: 600px;
}

/* (First) modal-content style */
.modal-content {
  background-color: #263238;
  color: #f0f0f0;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  font-family: 'Roboto', sans-serif;
  position: relative;
}

.close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: #0056b3;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

#contact .contact-button {
  margin-top: 10px;
}

.about-content {
  max-width: 800px;
  margin: auto;
  text-align: left;
  line-height: 1.8;
  color: #fff;
}

.about-content h4 {
  margin-top: 2rem;
  color: #00bcd4;
}

.about-content ul {
  list-style: none;
  padding-left: 0;
}

.about-content li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.about-content li::before {
  content: "✔️";
  position: absolute;
  left: 0;
}

/* ------------------ Contact Modal ------------------ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* (Second) modal-content style (overrides above for contact modal) */
.modal .modal-content {
  background-color: rgba(15, 32, 39, 0.95);
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  position: relative;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  max-height: 80vh;
  overflow-y: auto;
  scroll-behavior: smooth;
}

dialog.dialog-modal {
  display: none;
  padding: 0;
  border: none;
  background: transparent;
  width: 90%;
  max-width: 600px;
  overflow-y: auto;
  z-index: 2000;
}

dialog.dialog-modal[open] {
  display: flex;
  justify-content: center;
  align-items: center;
}

dialog.dialog-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

/* Dialog modal content */
dialog.dialog-modal .modal-content {
  background-color: #263238;
  color: #f0f0f0;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  font-family: 'Roboto', sans-serif;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* ------------------ Contact Form ------------------ */
.contact-form-container form {
  display: flex;
  flex-direction: column;
}

.contact-form-container label {
  margin-bottom: 5px;
  font-weight: bold;
}

.contact-form-container input,
.contact-form-container textarea {
  margin-bottom: 15px;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form-container button {
  background-color: #00bcd4;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.contact-form-container button:hover {
  background-color: #0097a7;
}

/* ------------------ Footer ------------------ */
#contact {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
}

#contact a {
  color: #00bcd4;
  text-decoration: none;
}

#contact p {
  margin: 0.5rem 0;
}

/* ------------------ Responsive ------------------ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h2 {
    font-size: 2rem;
  }
}

.modal[hidden] {
  display: none !important;
}

/* ------------------ Mobile Navigation ------------------ */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}



@media (max-width: 768px) {
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(15, 32, 39, 0.95);
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: all 0.3s ease-in-out;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 20px 0;
  }

  .nav-links a {
    font-size: 1.5rem;
    color: #00bcd4;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 1001;
  }
}

/* Thank You Modal */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  animation: fadeIn 0.5s ease-in-out;
  position: relative; /* for close button positioning */
}

.modal-content h3 {
  margin-bottom: 15px;
  font-size: 1.8rem;
  color: #333;
}

.modal-content p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: #555;
}

.modal-content .highlight {
  font-weight: bold;
  color: #ff9800;
}

/* Scoped popup button only */
.modal-content .cta-button {
  display: inline-block;
  background: #ff9800;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.modal-content .cta-button:hover {
  background: #e68900;
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}


