/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Loader overlay - full screen */
#loader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease;
}

/* Rotating spinner */
.spinner {
  border: 12px solid #f3f3f3;
  border-top: 12px solid #3498db;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 1.5s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* Loader messages area */
#loader-messages {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

/* Animated message text */
#loader-message {
  font-family: Arial, sans-serif;
  font-size: 18px;
  color: #333;
  margin-bottom: 8px;
  min-height: 24px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s;
}

/* Powered by text */
.powered-by {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #555;
  opacity: 0.7;
}

/* Main content - initially blurred and hidden */
#content {
  filter: blur(8px);
  opacity: 0;
  transition: filter 1s ease, opacity 1s ease;
  pointer-events: none;
}
body, html {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f7fafd;
  color: #222;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  width: 200px;
  height: auto;
}
nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  position: relative;
}
nav a {
  font-weight: 500;
  color: #222;
  transition: color 0.2s;
  position: relative;
}
nav a:hover,
nav a:focus {
  color: #1e90ff;
  outline: none;
}

/* Contact nav with popup submenu */
.nav-contact-wrapper {
  position: relative;
}
.nav-contact-link {
  cursor: pointer;
  user-select: none;
}
.sub-nav-contact {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  background: #1e90ff;
  border-radius: 8px 8px 0 0;
  padding: 0.5rem 0;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(30,144,255,0.3);
  z-index: 200;
}
.sub-nav-contact li {
  list-style: none;
}
.sub-nav-contact li a {
  display: block;
  padding: 0.5rem 1rem;
  color: white;
  font-weight: 600;
  transition: background 0.2s;
}
.sub-nav-contact li a:hover,
.sub-nav-contact li a:focus {
  background: #155fa0;
  outline: none;
}

/* Show submenu on hover */
.nav-contact-wrapper:hover .sub-nav-contact,
.nav-contact-wrapper:focus-within .sub-nav-contact {
  display: block;
}

/* Search Bar */
#search-form {
  display: flex;
  align-items: center;
  background: #f2f6fa;
  border-radius: 20px;
  padding: 2px 6px;
  border: 1px solid #b5d3f5;
  position: relative;
}
#search-input {
  border: none;
  background: transparent;
  outline: none;
  padding: 6px 8px;
  font-size: 1rem;
  width: 120px;
}
#search-form button {
  background: none;
  border: none;
  color: #1e90ff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
}
.autocomplete-items {
  position: absolute;
  top: 38px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border: 1px solid #b5d3f5;
  border-top: none;
  max-height: 180px;
  overflow-y: auto;
  border-radius: 0 0 8px 8px;
}
.autocomplete-items div {
  padding: 8px 12px;
  cursor: pointer;
  background: #fff;
}
.autocomplete-items div:hover,
.autocomplete-items div:focus {
  background: #e3f0ff;
  outline: none;
}
.search-highlight {
  background: yellow;
  color: #222 !important;
  border-radius: 3px;
  padding: 0 2px;
  transition: background 0.2s;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.hero-flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
  z-index: 2;
}
.hero-content {
  max-width: 500px;
  color: #fff;
  z-index: 2;
  position: relative;
}
.hero-content h1,
.hero-content p {
  color: black;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.hero-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  border-radius: 0;
  box-shadow: none;
  filter: brightness(0.6);
  min-height: 400px;
}

/* Buttons */
.btn {
  padding: 0.7rem 1.6rem;
  border-radius: 25px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: inline-block;
  transition: background 0.2s;
  text-decoration: none;
}
.btn.primary {
  background: #1e90ff;
  color: #fff;
}
.btn.primary:hover,
.btn.primary:focus {
  background: #155fa0;
  outline: none;
}
.btn.secondary {
  background: #fff;
  color: #1e90ff;
  border: 1px solid #1e90ff;
}
.btn.secondary:hover,
.btn.secondary:focus {
  background: #e3f0ff;
  outline: none;
}
.btn.tertiary {
  background: #f2f6fa;
  color: #1e90ff;
  border: 1px solid #1e90ff;
}
.btn.tertiary:hover,
.btn.tertiary:focus {
  background: #e3f0ff;
  outline: none;
}

/* Services */
.services {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 2.5rem 0;
}
.service-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(30,144,255,0.05);
  padding: 1.5rem 1.2rem;
  text-align: center;
  flex: 1;
  min-width: 200px;
  transition: transform 0.2s;
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 4px 24px rgba(30,144,255,0.12);
}
.service-card img {
  width: 48px;
  margin-bottom: 0.8rem;
}
.service-card h3 {
  color: #1e90ff;
  margin-bottom: 0.5rem;
}

/* About */
.about {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin: 2.5rem 0;
}
.about-img {
  width: 250px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(30,144,255,0.08);
}
.about-content h2 {
  color: #1e90ff;
  margin-bottom: 0.8rem;
}
.about-content p {
  margin-bottom: 1rem;
}

/* Scrollable testimonials container */
.scrollable-testimonials {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

/* Testimonial card styled like service cards */
.testimonial-card {
  flex: 0 0 280px; /* fixed width */
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(30,144,255,0.05);
  padding: 1.5rem 1.2rem;
  text-align: center;
  transition: transform 0.2s;
  cursor: grab;
}

.testimonial-card:hover,
.testimonial-card:focus-within {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 4px 24px rgba(30,144,255,0.12);
}

.testimonial-avatars {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.main-avatar {
  width: 56px;
  height: 56px;
  border: 2px solid #1e90ff;
}

blockquote {
  font-style: italic;
  color: #333;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  min-height: 80px;
}

.testimonial-name {
  display: block;
  color: #1e90ff;
  font-weight: 600;
  font-size: 1rem;
}

/* Hide scrollbar for WebKit browsers */
.scrollable-testimonials::-webkit-scrollbar {
  height: 8px;
}
.scrollable-testimonials::-webkit-scrollbar-track {
  background: transparent;
}
.scrollable-testimonials::-webkit-scrollbar-thumb {
  background-color: rgba(30,144,255,0.4);
  border-radius: 4px;
}

/* Optional: scrollbar styling for Firefox */
.scrollable-testimonials {
  scrollbar-width: thin;
  scrollbar-color: rgba(30,144,255,0.4) transparent;
}

/* Video Testimonials Section */
.video-testimonials {
  margin: 3rem 0;
  text-align: center;
  position: relative;
}
.video-testimonials h2 span {
  color: #1e90ff;
}
.video-carousel {
  position: relative;
  overflow: hidden;
}
.video-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1rem;
  padding: 1rem 0;
  outline: none;
}
.video-item {
  min-width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(30,144,255,0.1);
  padding: 1rem;
  flex-shrink: 0;
}
.video-item video {
  width: 100%;
  border-radius: 8px;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30,144,255,0.8);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  user-select: none;
}
.carousel-btn.prev {
  left: 0;
}
.carousel-btn.next {
  right: 0;
}
.carousel-btn:hover,
.carousel-btn:focus {
  background: #155fa0;
  outline: none;
}

/* Contact */
.contact-section {
  background: visible;
  padding: 2.5rem 0;
  position: relative;
  overflow: hidden;
}
.contact-img img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.contact-flex {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  justify-content: flex-start;
}
.contact-form {
  flex: 0 0 350px;
  background: visible;
  padding: 1.5rem 1.8rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(30,144,255,0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(8px);
}
.contact-form h2 {
  color: #1e90ff;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #b5d3f5;
  font-size: 1rem;
  resize: none;
}
.contact-form textarea {
  min-height: 80px;
}

/* Footer */
.footer-columns {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
  padding: 2rem 0 1rem 0;
  background: #1e90ff;
  color: #fff;
}
.footer-col {
  flex: 1;
  min-width: 180px;
}
.footer-col h4 {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  color: #fff;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover,
.footer-col ul li a:focus {
  color: #e3f0ff;
  outline: none;
}
.footer-social a img {
  width: 28px;
  margin-right: 0.8rem;
  vertical-align: middle;
}
.sub-footer {
  background: #1876c1;
  color: #e3f0ff;
  padding: 0.8rem 0;
  font-size: 0.95rem;
}
.sub-footer-right {
  text-align: right;
}

/* Responsive */
@media (max-width: 900px) {
  .about,
  .contact-flex,
  .services,
  .footer-columns {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }
  
  .contact-flex {
    align-items: center;
    justify-content: center;
  }
  .contact-form {
    flex: 1 1 100%;
  }
}
@media (max-width: 600px) {
  .hero-flex {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1rem;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-img {
    position: relative;
    width: 100%;
    height: auto;
    filter: none;
    margin-top: 1rem;
  }
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .video-wrapper {
    min-width: 100%;
    overflow-x: scroll;
  }
  .video-item {
    min-width: 280px;
  }
  .testimonial-slider {
    overflow-x: scroll;
  }
}
