/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body font */
body {
  font-family: 'Montserrat', sans-serif;
}

/* Top Header */
.top-header {
  background-color: #538c83; /* Brand Primary */
  color: #ffffff;
  font-size: 14px;
  padding: 10px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slogan {
  font-weight: 500;
  font-size: 14px;
}

.contact-info {
  display: flex;
  gap: 30px;
}

.contact-info span {
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 8px;
}

/* Animate Slogan */
@keyframes slideFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slogan {
  animation: slideFadeIn 1.5s ease-in-out;
}

/* Navbar */
.navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: relative;
  z-index: 999;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  color: #538c83;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li a {
  position: relative;
  text-decoration: none;
  color: #1d2150;
  font-weight: 500;
  padding: 8px 12px;
  transition: color 0.3s ease;
  z-index: 1;
  overflow: hidden;
}

.nav-links li a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: #538c83;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease;
  z-index: -1;
  opacity: 0.2;
}

.nav-links li a:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.nav-links li a:hover {
  color: #538c83;
}

/* Appointment Button */
.nav-links .nav-btn {
  background-color: #538c83;
  color: white;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.nav-links .nav-btn:hover {
  background-color: #3e6b62;
}

/* Dropdown Menu */
.dropdown-menu {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* Dropdown container */
.nav-links li.dropdown {
  position: relative;
}

/* Hide dropdown menu by default */
.nav-links li.dropdown .dropdown-menu {
  position: absolute;
  top: 100%; /* Appear below the navbar */
  left: 0;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  padding: 10px 0;
  min-width: 180px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000; /* Make sure it's above everything */
}

/* Show dropdown on hover */
.nav-links li.dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Dropdown link styles */
.dropdown-menu li a {
  padding: 10px 20px;
  display: block;
  color: #1d2150;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.dropdown-menu li a:hover {
  background-color: #f0f0f0;
  color: #538c83;
}


/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: #1d2150;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 20px;
    width: calc(100% - 40px);
    background-color: #ffffff;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
	list-style: none;
  }

  .nav-links.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('hero.jpeg') no-repeat center center/cover;
  filter: grayscale(100%);
  z-index: 0;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.05) translate(10px, 10px);
  }
}



.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(83, 140, 131, 0.7), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero h1 {
  font-size: 64px;
  font-weight: 900;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 30px;
}

.hero-btn {
  display: inline-block;
  background-color: #538c83;
  color: #fff;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn:hover {
  background-color: #3e6b62;
  box-shadow: 0 0 15px rgba(83, 140, 131, 0.5);
}

#hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Typing effect */
.typing {
  font-size: 36px;
  font-weight: 700;
  color: #1d2150;
  white-space: nowrap;
  overflow: hidden;
  border-right: none;
  width: 0;
  animation: typing 3s steps(30, end) forwards;
  margin-bottom: 10px;
}

@keyframes typing {
  from { width: 0; }
  to { width: 220px; }
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: #538c83; }
}
.logo img {
  height: 40px;
  vertical-align: middle;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
}
@media (max-width: 480px) {
  .modal-content {
    padding: 20px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-content input,
  .modal-content select,
  .modal-content textarea {
    font-size: 16px;
    padding: 12px;
  }

  .modal-content h2 {
    font-size: 20px;
  }

  .submit-btn {
    width: 100%;
    font-size: 16px;
  }
}

.modal-content h2 {
  margin-bottom: 20px;
  color: #538c83;
}

.modal-content label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.submit-btn {
  background-color: #538c83;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #3e6b62;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}
#form-message {
  color: #538c83;
  font-weight: 600;
  margin-bottom: 15px;
}
/* Typing effect container */
.slogan {
  font-weight: 500;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Slogan animation */
.location-text {
  animation: slideFadeIn 2s ease-in-out;
  font-weight: 500;
  font-size: 14px;
}

/* Emergency typing effect on the right */
.emergency-text {
  color: #D22B2B;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  border-right: none; /* Remove cursor */
  width: 0;
  animation: typing-red 2.5s steps(20, end) 2s forwards;
}

@keyframes typing-red {
  from { width: 0; }
  to { width: 130px; } /* Adjust if needed */
}
/* About Section */
.about {
  padding: 80px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  color: #333;
  line-height: 1.7;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.05);
}

/* Typing animation for heading */
.typing-heading {
  font-size: 36px;
  font-weight: 700;
  color: #404042;
  white-space: nowrap;
  overflow: hidden;
  border-right: none;
  width: 0;
  margin: 0 auto 10px;
  animation: typing-heading 3s steps(30, end) forwards, blink-heading 0.7s step-end infinite;
}

@keyframes typing-heading {
  from { width: 0; }
  to { width: 230px; } /* adjust to fit "About MI&T" */
}

@keyframes blink-heading {
  0%, 100% { border-color: transparent; }
  50% { border-color: #538c83; }
}

/* Subheading style */
.about-sub {
  font-size: 16px;
  color: #777;
  margin-bottom: 50px;
}
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.about-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  text-align: left;
}

.about-card:hover {
  transform: translateY(-5px);
}

.about-card h4 {
  font-size: 20px;
  color: #538c83;
  margin-bottom: 10px;
}

.about-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}
.service-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 40px;
}

.service-category {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(83, 140, 131, 0.15);
}

.service-category h3 {
  font-size: 20px;
  color: #538c83;
  font-weight: 700;
  margin-bottom: 15px;
}

.service-category ul {
  list-style: disc inside;
  padding-left: 0;
}

.service-category ul li {
  font-size: 15px;
  color: #555;
  margin-bottom: 10px;
}
.services {
  position: relative;
  background: none;
  padding: 80px 20px;
  text-align: center;
  color: #808080; /* Optional: improves readability */
  z-index: 1;
}

.services::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: none; /* Optional overlay for contrast */
  z-index: -1;
}
/* === WhatsApp Button === */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #1ebe5d;
  transform: scale(1.1);
}
/* Footer Styles */
.site-footer {
  background-color: #2d3032;
  color: white;
  padding: 60px 20px 20px;
  font-size: 14px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.site-footer h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #a3c6c4;
}

.footer-about p,
.footer-contact p {
  line-height: 1.7;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #a3c6c4;
}

.footer-contact i {
  margin-right: 8px;
  color: #a3c6c4;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  color: #ccc;
}
.contact-section {
  background-color: #f9f9f9;
  padding: 80px 20px;
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.05);
  text-align: left;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .submit-btn {
  background-color: #538c83;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.contact-form .submit-btn:hover {
  background-color: #3e6b62;
}
.social-icons {
  margin-top: 15px;
  text-align: center;
}

.social-icons a {
  display: inline-block;
  color: #a3c6c4;
  font-size: 18px;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #ffffff;
}
.map-section {
  background-color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.map-section h3 {
  font-size: 28px;
  color: #538c83;
  margin-bottom: 40px;
}

.map-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.map-item {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.map-item h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
}

@media (max-width: 768px) {
  .map-container {
    grid-template-columns: 1fr;
  }
}
.specialist-section {
  background-color: #f9f9f9;
  padding: 80px 20px;
  text-align: center;
}

.specialist-card {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1000px;
  margin: 40px auto 0;
  background-color: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.05);
  align-items: center;  
  position: relative;
  overflow: visible;
}

.specialist-photo {
  position: relative;
  width: 320px;
  height: auto;
  margin-top: -60px; /* pulls image above card */
  z-index: 2;
}

.specialist-photo img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  position: relative;
  z-index: 3;
}

.photo-shape-bg {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at 30% 30%, #a3c6c4 0%, #538c83 70%);
  border-radius: 20% 80% 60% 40% / 40% 30% 70% 60%;
  z-index: 1;
  filter: blur(12px);
  opacity: 0.6;
}
@keyframes floatShape {
  from {
    transform: scale(1) rotate(0deg);
  }
  to {
    transform: scale(1.05) rotate(5deg);
  }
}

.specialist-info {
  flex: 1;
  text-align: left;
}

.specialist-info h3 {
  font-size: 24px;
  color: #538c83;
  margin-bottom: 15px;
}

.specialist-info p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .specialist-card {
    flex-direction: column;
    text-align: center;
  }

  .specialist-info {
    text-align: center;
  }
}
.email-link {
  color: #538c83;
  font-weight: 600;
  text-decoration: none;
}

.email-link:hover {
  text-decoration: underline;
}

.view-profile-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #538c83;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.view-profile-btn:hover {
  background-color: #3e6b62;
}
.qual-line {
  font-size: 13px;
  color: #555;
  margin: 2px 0 8px;
  font-weight: 500;
  line-height: 1.4;
}
#specialist-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.specialist-section {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.specialist-card {
  position: relative;
  z-index: 2;
}
#referral-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
