* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  flex-wrap: wrap;
}

header .logo {
  font-size: 24px;
  font-weight: bold;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

nav .nav-link:focus {
  outline: 2px solid #007BFF;
  outline-offset: 2px;
}

.mobile-number {
  font-weight: bold;
  color: #ff6600;
  text-decoration: none;
  animation: flashMobile 1.5s infinite ease-in-out;
  cursor: pointer;
  transition: color 0.3s ease;
}

.mobile-number:hover {
  color: #e65c00; /* Slightly darker orange on hover */
  text-decoration: underline;
}

@keyframes flashMobile {
  0%, 100% { opacity: 1; color: #ff6600; }
  50% { opacity: 0.6; color: #ff9933; }
}

/* Ensure mobile number is hidden on mobile screens (as per existing design) */
@media screen and (max-width: 768px) {
  .mobile-number {
    display: none;
  }
}
.slideshow-container {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 1px 1px 5px black;
}

.typewriter {
  font-size: 2em;
  font-weight: bold;
  min-height: 2.5em;
}

.blink-text {
  animation: flash 1s step-start infinite;
}

@keyframes flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.active {
  display: block;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 40px 50px;
  border-radius: 12px;
  max-width: 90%;
  width: 80%;
  min-height: 100px;
  position: relative;
}

.slide-content h2 {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 15px;
  animation: fadeIn 1s ease-in-out forwards;
}

.slide-content h3 {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffcc00;
  animation: fadeIn 1.5s ease-in-out forwards;
}

.slide-content p {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
  color: #fff;
  min-height: 80px;
  will-change: contents;
  margin-bottom: 10px;
  transition: opacity 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.typewriter {
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  border-right: none;
  display: inline-block;
  visibility: hidden;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  user-select: none;
  background-color: rgba(0,0,0,0.4);
  z-index: 998;
}

.prev:focus, .next:focus {
  outline: 2px solid #007BFF;
  outline-offset: 2px;
}

.next {
  right: 0;
}

.cta-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  padding: 12px 24px;
  background-color: #ffcc00;
  color: #000;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s;
  z-index: 999;
}

.cta-button:hover {
  background-color: #e6b800;
}

.section {
  min-height: 100vh;
  padding: 100px 20px 40px;
}

#home, #about, #services, #contact {
  scroll-margin-top: 60px; /* Adjust based on header height */
}

.services-section {
  background: linear-gradient(90deg, #f96d00, #fecd1a, #9be15d);
  padding: 60px 20px;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #111;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  width: 80px;
  height: 3px;
  background-color: #111;
  display: block;
  margin: 10px auto 0;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.service-card {
  background: white;
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  max-width: 300px;
  flex: 1 1 300px;
  text-align: left;
  font-family: Calibri, sans-serif;
  font-size: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.service-card .icon {
  font-size: 36px;
  text-align: center;
  margin-bottom: 10px;
}

.service-card h3 {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  color: #0d1b2a;
  font-family: Calibri, sans-serif;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.service-card ul li {
  font-size: 12px;
  margin-bottom: 10px;
  color: #333;
  font-family: Calibri, sans-serif;
}

.read-more-btn {
  display: inline-block;
  background-color: #ffffff;
  color: #004080;
  padding: 8px 20px;
  font-size: 12px;
  font-family: Calibri, sans-serif;
  border: 2px solid #004080;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.read-more-btn:hover {
  background-color: #004080;
  color: #ffffff;
}

.read-more-container {
  text-align: center;
}

.nav-link {
  color: #000;
  text-decoration: none;
  padding: 10px;
}

.nav-link.active {
  color: #FFD700;
  border-bottom: 2px solid #FFD700;
  font-weight: bold;
}

footer {
  background-color: #222;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
}

footer a {
  color: #ccc;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  header .navbar-nav {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
  }

  header .mobile-number {
    display: none;
  }

  .slideshow-container {
    height: 60vh;
  }

  .slide-content {
    padding: 25px 20px;
    width: 90%;
  }

  .slide-content h2 {
    font-size: 18px;
  }

  .slide-content h3 {
    font-size: 24px;
  }

  .slide-content p {
    font-size: 14px;
    min-height: 40px;
  }

  .typewriter {
    font-size: 16px;
  }

  .cta-button {
    bottom: 10px;
    padding: 8px 16px;
    font-size: 14px;
  }

  #about {
    padding: 40px 10px;
  }

  #about h1 {
    font-size: 24px;
  }

  #about h2 {
    font-size: 16px;
  }

  #about p {
    font-size: 14px;
  }

  #about > div > div {
    flex: 100%;
    min-width: 100%;
  }

  .services-section {
    padding: 40px 10px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .cards {
    flex-direction: column;
  }

  .service-card {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 20px 15px;
  }

  #contact {
    padding: 20px;
  }

  #contact h2, #contact h3 {
    font-size: 18px;
  }

  #contact p, #contact input, #contact textarea, #contact button {
    font-size: 12px;
  }

  #contact iframe {
    height: 200px;
  }

  footer {
    padding: 20px 10px;
    font-size: 12px;
  }
}

@media screen and (max-width: 576px) {
  .slideshow-container {
    height: 50vh;
  }

  .slide-content h2 {
    font-size: 16px;
  }

  .slide-content h3 {
    font-size: 20px;
  }

  .slide-content p {
    font-size: 12px;
  }

  .typewriter {
    font-size: 14px;
  }

  #about h1 {
    font-size: 20px;
  }

  #about h2 {
    font-size: 14px;
  }
}