/* Header Styling */
.modern-header {
  background-color: whitesmoke;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.logo {
  height: 38px;
}

nav {
  margin-left: 3rem;
  display: flex;
  gap: 3.5rem;
  flex-grow: 1;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #0b0101 !important;
  font-weight: bold !important;
  font-size: 0.95rem;
  position: relative;
  padding: 0.75rem 1rem;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #007bff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: #007bff;
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.enquiry-button {
  background: rgb(30, 126, 158);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  min-width: auto;
  margin: 0 0.5rem;
}

.enquiry-icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .header-container {
      padding: 0.75rem 1rem;
      flex-wrap: wrap;
  }

  nav {
      order: 3;
      width: 100%;
      justify-content: center;
      margin-left: 0;
      margin-top: 1rem;
  }
}

/*phone styling*/
.phone-dropdown {
  position: relative;
  cursor: pointer;
  
  
}

.dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 5px;
  padding: 1rem;
  z-index: 1001;
  margin-top: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: none;
}
.phone-icon {
  font-size: 20px;
  color: #1a4f7c;
  transition: transform 0.3s ease;
}
.phone-icon:hover {
  transform: scale(1.1);
}
.phone-dropdown.active .dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-actions {
  display: none;
}

.whatsapp-link {
  display: flex;
  align-items: center;
}

.whatsapp-icon {
  font-size: 26px;
  color: #25D366;
  transition: transform 0.3s ease;
}

.whatsapp-icon:hover {
  transform: scale(1.1);
}

.phone-dropdown {
  position: relative;
  cursor: pointer;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 5px;
  padding: 1rem;
  z-index: 1001;
  margin-top: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: none;
}

.phone-dropdown.active .dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-item {
  padding: 0rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-item h3 {
  color: black;
  font-size: 1rem;
  margin: 0;
  font-weight: bolder;
  font-family: 'Times New Roman', Times, serif;
}

.contact-item p {
  color: rgb(52, 51, 51);
  font-size: 0.875rem;
  margin: 0.25rem 0 0;
  font-weight: 500;
  font-family: 'Times New Roman', Times, serif;
}

@media (max-width: 768px) {
  .dropdown-content {
      right: 50%;
      transform: translateX(50%);
  }
}

/*country*/
.map-dropdown {
  position: relative;
  cursor: pointer;
  margin-left: 0.5rem;
  display: flex;
  align-items: center;
}

.country-content {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 1rem 0.5rem;
  z-index: 1001;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: none;
}

.map-dropdown.active .country-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.country-item {
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s;
  text-decoration: none;
  color: inherit;
}

.country-item:hover {
  background-color: #f5f5f5;
}

.country-item img {
  width: 30px;
  height: 20px;
  object-fit: cover;
}

/* Modal Styling */
/* Modal Styling */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  position: relative;
  margin: 20px;
  max-height: 90vh;
  overflow-y: auto;
}

.close {
  position: absolute;
  top: 0.2rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.form-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

/* Ensure modal title is centered and styled properly */
.modal-content h2 {
  text-align: center;
  color: #1a365d;
  margin-bottom: 0.5rem;
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  flex: 1;
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #1a365d;
  font-weight: 500;
}

.required {
  color: #dc2626;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

.submit-button {
  width: 100%;
  background: #2563eb;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-button:hover {
  background: #1d4ed8;
}

/* Responsive Design */
@media (max-width: 640px) {
  .form-row {
      flex-direction: column;
      gap: 0;
  }

  .modal-content {
      padding: 1.5rem;
  }
}

/* Show Modal */
.modal.active {
  display: flex;
}

/* Required field asterisk */
.required {
  color: #DC2626;
  margin-left: 2px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1rem;
  /* Add some spacing above the checkbox group */
}

.checkbox-group input[type="checkbox"] {
  margin: 0;
  width: 20px;
  height: 20px;
}

.checkbox-group label {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

.video-section {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-section video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.services-section {
  padding: 100px 0;
  background-color: #f5f5f7;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-container {
  position: relative;
  z-index: 1;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  padding: 4rem 2rem;
}

.services-header {
  text-align:right;
position: relative;
}

.services-header p {
  color: whitesmoke;
    text-shadow: none;
    font-weight: 400;
    font-size: 25px;
}
.services-header h2 {
  color: whitesmoke;
    text-shadow: none;
    font-weight: 700;
    font-size: 45px;
}

.services-container {
  background: transparent;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  padding: 20px;
}

.service-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  height: auto; /* Allow natural height */
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}
.video-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 20px;
}
.video-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.video-content p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}


.service-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.service-link i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.service-link:hover {
  color: #1d4ed8;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .services-section {
      padding: 60px 0;
  }

  .services-header h2 {
      font-size: 2rem;
  }

  .services-header p {
      font-size: 1.1rem;
  }

  .services-grid {
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      padding: 10px;
  }

  .service-card {
      padding: 25px;
  }
}

@media (max-width: 480px) {
  .services-header h2 {
      font-size: 1.8rem;
  }

  .services-grid {
      grid-template-columns: 1fr;
  }

  .service-card {
      padding: 20px;
  }
}



/* Service Details Modal Styles */
.service-detail-modal {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 15px;
}

.service-detail-modal .modal-content {
  padding: 0;
}

.service-detail-content {
  padding: 30px;
  width: 100%;
}

.service-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px;
  background: linear-gradient(135deg, #1a4f7c 0%, #2563eb 100%);
  color: white;
  border-radius: 10px;
  margin: -30px -30px 30px -30px;
}

.service-header .service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.service-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.service-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.key-features, .service-benefits, .service-process {
  margin-bottom: 30px;
}

.features-list, .benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-item, .benefit-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feature-item i, .benefit-item i {
  color: #2563eb;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.process-steps {
  margin-top: 20px;
  position: relative;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 20px;
  position: relative;
}

.step-number {
  width: 30px;
  height: 30px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.service-modal-body .enquiry-button {
  width: 100%;
  padding: 15px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-top: 30px;
}

.service-modal-body .enquiry-button:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}


/* Updated Service Card Styles */
.service-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  height: auto; /* Allow natural height */
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Fixed Image Container Styles */
.service-image-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.service-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image {
  transform: scale(1.1);
}

.service-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

/* Service Icon Styles */
.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-icon i {
  font-size: 24px;
  color: #2563eb;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: #2563eb;
}

.service-card:hover .service-icon i {
  color: white;
}

/* Service Content Styles */
.service-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  font-size: 1.5rem;
  color: #1a365d;
  margin-bottom: 15px;
  font-weight: 600;
}

.service-content p {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px;
  }
  
  .service-image-container {
    padding-bottom: 66.67%; /* 3:2 aspect ratio for mobile */
  }
  
  .service-content h3 {
    font-size: 1.3rem;
  }
  
  .service-content p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .service-image-container {
    padding-bottom: 75%; /* 4:3 aspect ratio for small mobile */
  }
  
  .service-content {
    padding: 20px 15px;
  }
}



/* Modern Footer */
.modern-footer {
  background: #1a1a1a;
  color: #fff;
  padding: 4rem 2rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-section h3 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  color: #fff;
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-icon:hover {
  color: #fff;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul a {
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  text-align: center;
  color: #666;
}


.hero-section {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-section video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.services-header {
  position: relative;
  z-index: 2;
  text-align: center;
}

.services-header h2 {
  font-size: 5rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px #fff;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
      text-shadow: 0 0 10px rgba(255,255,255,0.2),
                   0 0 20px rgba(255,255,255,0.2),
                   0 0 30px rgba(255,255,255,0.2);
  }
  to {
      text-shadow: 0 0 20px rgba(255,255,255,0.4),
                   0 0 30px rgba(255,255,255,0.4),
                   0 0 40px rgba(255,255,255,0.4);
  }
}

.services-header h2::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  color: #1a4f7c;
  -webkit-text-stroke: 0px;
  overflow: hidden;
  animation: animate 6s linear infinite;
}

@keyframes animate {
  0%, 10%, 100% {
      width: 0;
  }
  70%, 90% {
      width: 100%;
  }
}

.animated-text {
  color: white;
  font-size: 1.5rem;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.5s;
}

@keyframes fadeUp {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.header-underline {
  width: 0;
  height: 3px;
  background: #1a4f7c;
  margin: 2rem auto 0;
  animation: expand 1s ease forwards 1s;
}

@keyframes expand {
  to {
      width: 200px;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  opacity: 0;
  animation: fadeIn 1s ease forwards 2s;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid white;
  border-radius: 15px;
  position: relative;
  margin-bottom: 10px;
}

.wheel {
  width: 4px;
  height: 8px;
  background: white;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 8px;
  border-radius: 2px;
  animation: scroll 1.5s ease infinite;
}

@keyframes scroll {
  0% {
      transform: translate(-50%, 0);
      opacity: 1;
  }
  100% {
      transform: translate(-50%, 20px);
      opacity: 0;
  }
}

@keyframes fadeIn {
  to {
      opacity: 1;
  }
}

@media (max-width: 768px) {
  .services-header h2 {
      font-size: 3rem;
  }
  
  .animated-text {
      font-size: 1.2rem;
      padding: 0 20px;
  }
}


/* Mobile Navigation Improvements */
@media (max-width: 992px) {
  .header-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 15px;
    justify-content: space-between;
    position: relative;
  }
  
  /* Logo and hamburger on top row */
  .logo { 
    order: 1; 
    flex: 0 0 auto;
  }
  
  .center-contact-actions { 
    order: 2; 
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 10px;
  }
  
  .mobile-menu-toggle { 
    order: 3; 
    flex: 0 0 auto;
  }
  
  /* Enquiry and flag below on second row */
  .enquiry-button { 
    order: 4; 
    margin-top: 10px;
    margin-left: auto;
  }
  
  .map-dropdown { 
    order: 5; 
    margin-top: 10px;
    margin-left: 10px;
  }
  
  /* Force second row for small devices */
  @media (max-width: 576px) {
    .logo, .center-contact-actions, .mobile-menu-toggle {
      flex-basis: auto;
    }
    
    .enquiry-button, .map-dropdown {
      flex-basis: auto;
      margin-top: 10px;
    }
    
    /* Force line break after hamburger menu */
    .mobile-menu-toggle::after {
      content: "";
      width: 100%;
      display: block;
      order: 3;
    }
    
    /* Adjust nav positioning for the new header height */
    nav {
      top: 100px; /* Increased to accommodate the two-row header */
    }
  }
}

/* Very small screens adjustments */
@media (max-width: 400px) {
  .header-container {
    padding: 8px 10px;
    row-gap: 8px;
  }
  
  .enquiry-button, .map-dropdown {
    margin-top: 5px;
  }
  
  .logo {
    height: 30px;
  }
  
  .whatsapp-icon {
    font-size: 20px;
  }
  
  .phone-icon {
    font-size: 16px;
  }
  
  .enquiry-button {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
  }
  
  .enquiry-icon {
    width: 12px;
    height: 12px;
  }
  
  .map-dropdown .icon {
    width: 18px;
    height: 18px;
  }
}

/* Desktop vs Mobile Layout */
@media (min-width: 993px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    nav {
        display: flex;
        margin-left: 3rem;
        gap: 2rem;
        flex-grow: 1;
    }
}

/* Tablet & Mobile Layout */
@media (max-width: 992px) {
    .header-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }
    
    /* Mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: #1a4f7c;
        order: 2; /* Place hamburger icon at the end */
        position: relative;
        z-index: 1100;
    }
    
    /* Navigation menu on mobile */
    nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 75px;
        left: 0;
        background-color: #1a4f7c;
        z-index: 1000;
        margin-left: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    /* Contact actions positioning */
    .center-contact-actions {
        order: 2; /* Place contact icons after logo */
        margin-left: auto;
        margin-right: 1rem;
    }
    
    /* Header elements arrangement */
    .logo { order: 1; }
    .mobile-menu-toggle { order: 2; }
    .center-contact-actions { order: 3; }
    .enquiry-button { order: 4; }
    .map-dropdown { order: 5; }
    
    /* Update layout for map and contact info on mobile */
    .layout-container {
        flex-direction: column;
        padding: 0.5rem;
        margin-top: 80px;
    }
    
    .map-container {
        display: none; /* Hide map on mobile as requested */
    }
    
    .contact-info {
        width: 100%;
        max-width: 100%;
        visibility: visible;
        opacity: 1;
        transform: none;
    }
}

/* Mobile Menu Toggle Button - Fixed Styles */
.mobile-menu-toggle {
  display: none; /* Hide by default on desktop */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.8rem;
  color: #1a4f7c;
  transition: color 0.3s ease;
  z-index: 1100;
}

.mobile-menu-toggle:hover {
  color: #007bff;
}

@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: block; /* Show on mobile */
    order: 2;
  }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    padding: 1rem 0;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }
  
  nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    z-index: 1000;
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    display: block;
  }
  
  .header-container {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 1rem;
  }
  
  /* Fix dropdown positioning for mobile */
  .phone-dropdown .dropdown-content,
  .map-dropdown .country-content {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1200;
    margin-top: 0.5rem;
  }
  
  /* Ensure proper display order of elements */
  .logo { order: 1; }
  .mobile-menu-toggle { order: 2; }
  .center-contact-actions { order: 3; }
  .enquiry-button { order: 4; }
  .map-dropdown { order: 5; }
}

/* Center contact actions - positioned between logo and hamburger */
.center-contact-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: auto;
  margin-right: 1rem;
}

/* Flag/country dropdown styling */
.map-dropdown {
  position: relative;
  cursor: pointer;
  margin-left: 0.5rem;
  display: flex;
  align-items: center;
}

/* Adjust header container for better spacing */
.header-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .header-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
  }
  
  /* Order elements for mobile */
  .logo { order: 1; }
  .center-contact-actions { order: 2; }
  .mobile-menu-toggle { order: 3; }
  .enquiry-button { order: 4; margin-top: 10px; margin-left: auto; }
  .map-dropdown { order: 5; margin-top: 10px; margin-left: 10px; }
  
  /* Make hamburgur menu visible */
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1a4f7c;
    padding: 0.5rem;
  }
  
  /* Style navigation for mobile */
  nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 105px;
    left: 0;
    right: 0;
    background-color: whitesmoke;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  
  nav.active {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
  }
  
  .nav-link {
    text-align: center;
    padding: 0.75rem 1rem;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  
  /* Adjust for smaller screens */
  @media (max-width: 576px) {
    .whatsapp-icon {
      font-size: 22px;
    }
    
    .phone-icon {
      font-size: 18px;
    }
    
    .center-contact-actions {
      gap: 1rem;
    }
    
    .enquiry-button {
      padding: 0.25rem 0.5rem;
      font-size: 0.85rem;
    }
    
    .enquiry-icon {
      width: 14px;
      height: 14px;
    }
  }
}

/* Fix horizontal scrolling on mobile by adding viewport adjustments */
html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Make all containers respect viewport width */
.header-container,
.services-container,
.services-grid,
.footer-content,
.modal-content,
.hero-section,
.service-card {
  max-width: 100%;
  box-sizing: border-box;
}

/* Responsive image handling */
img {
  max-width: 100%;
  height: auto;
}

/* Mobile responsiveness improvements */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
  }
  
  .hero-section {
    height: auto;
    min-height: 70vh;
  }
  
  .service-image-container {
    height: auto;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }
  
  .service-card {
    margin: 0 10px;
  }
  
  .services-header h2 {
    font-size: 2.5rem;
  }
  
  /* Center text in footer for mobile */
  .footer-section {
    text-align: center;
  }
  
  /* Center social icons */
  .social-links {
    justify-content: center;
  }
}

/* Small screen specific fixes */
@media (max-width: 576px) {
  .services-header h2 {
    font-size: 2rem;
  }
  
  .animated-text {
    font-size: 1rem;
  }
  
  .header-underline {
    width: 150px;
  }
  
  /* Ensure enquiry modal fits on small screens */
  .modal-content {
    margin: 10px;
    padding: 15px;
  }
  
  /* Fix service cards sizing */
  .service-card {
    margin: 0 5px;
    padding: 15px;
  }
  
  /* Ensure hamburger menu has proper spacing */
  .mobile-menu-toggle {
    margin-right: 5px;
  }
  
  /* Better spacing for contact elements */
  .center-contact-actions {
    margin-right: 5px;
  }
}

/* Center contact actions - positioned between logo and hamburger */
.center-contact-actions {
  display: none; /* Hidden by default on desktop */
}

/* Media query for mobile view with fixes for horizontal scrolling */
@media (max-width: 992px) {
  /* Hide the regular contact actions on mobile */
  .contact-actions {
    display: none;
  }
  
  /* Show the centered contact actions on mobile */
  .center-contact-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
  
  /* Restructure header for improved mobile layout */
  .header-container {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto;
    gap: 8px;
    padding: 8px 15px;
    width: 100%;
    align-items: center;
  }
  
  /* First row: Logo, Contact Icons, Hamburger Menu */
  .logo { 
    grid-column: 1;
    grid-row: 1;
    max-width: 120px;
  }
  
  .mobile-menu-toggle { 
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  
  /* Second row: Enquiry Button and Flag positioned below logo */
  .enquiry-button { 
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin-top: 5px;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
  }
  
  .map-dropdown { 
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    margin-top: 5px;
  }
  
  /* Navigation menu (when active) */
  nav {
    grid-column: 1 / span 3;
    grid-row: 3;
    margin-top: 5px;
    display: none;
    flex-direction: column;
    width: 100%;
  }
  
  nav.active {
    display: flex;
  }
  
  .nav-link {
    text-align: center;
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
}

/* Ensure proper styling for the centered icons */
.center-contact-actions .whatsapp-icon,
.center-contact-actions .phone-icon {
  font-size: 26px;
}

.center-contact-actions .phone-dropdown,
.center-contact-actions .whatsapp-link {
  position: relative;
}

/* Ensure dropdown appears correctly in the new position */
.center-contact-actions .dropdown-content {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
}

/* Small screen optimization */
@media (max-width: 576px) {
  .header-container {
    gap: 5px;
    padding: 5px 10px;
  }
  
  /* Reduce space between rows */
  .enquiry-button,
  .map-dropdown {
    margin-top: 3px;
  }
  
  /* Make buttons smaller */
  .enquiry-button {
    font-size: 0.85rem;
    padding: 0.2rem 0.4rem;
  }
  
  .enquiry-icon {
    width: 12px;
    height: 12px;
  }
  
  /* Smaller icons for very small screens */
  .center-contact-actions .whatsapp-icon {
    font-size: 24px;
  }
  
  .center-contact-actions .phone-icon {
    font-size: 22px;
  }
  
  /* Ensure navigation is properly positioned */
  nav {
    margin-top: 3px;
  }
}

/* Fix for mobile service card display */
@media (max-width: 992px) {
  /* Main layout fixes for smaller screens */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px;
  }
  
  /* Fix for video aspect ratio on smaller screens */
  .hero-section video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Service card improvements */
  .service-card {
    display: flex;
    flex-direction: column;
    height: auto;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  /* Image container spacing and aspect ratio */
  .service-image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.67%; /* 3:2 aspect ratio for tablets */
    overflow: hidden;
  }
  
  /* Ensure image fills container properly */
  .service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Fix icon positioning */
  .service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
  }
  
  .service-content {
    padding: 20px 15px;
  }
  
  .service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
}

/* Extra small devices (phones) */
@media (max-width: 576px) {
  .services-header h2 {
    font-size: 2rem;
  }
  
  .animated-text {
    font-size: 1rem;
    padding: 0 15px;
  }
  
  .service-image-container {
    padding-bottom: 75%; /* 4:3 aspect ratio for phones */
  }
  
  .service-card {
    margin: 0 auto 15px;
    width: 100%;
    max-width: 100%;
  }
  
  .service-content {
    padding: 15px 12px;
  }
  
  .service-content h3 {
    font-size: 1.2rem;
  }
  
  .service-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  .service-link {
    font-size: 0.9rem;
  }
}

/* Mobile Responsive Header Styles */
@media (max-width: 992px) {
  /* Order elements for mobile */
  .logo { order: 1; }
  .center-contact-actions { order: 2; }
  .mobile-menu-toggle { order: 3; }
  .enquiry-button { order: 4; }
  .map-dropdown { order: 5; }
  
  /* Make sure contact icons are visible */
  .center-contact-actions {
    margin-left: auto;
    margin-right: 1rem;
    display: flex;
  }
  
  /* Hide desktop contact actions on mobile */
  .contact-actions {
    display: none;
  }
  
  /* Ensure enquiry button is properly sized */
  .enquiry-button {
    padding: 0.25rem 0.6rem;
    font-size: 0.9rem;
  }
  
  .enquiry-icon {
    width: 16px;
    height: 16px;
  }
}

/* Very small devices */
@media (max-width: 576px) {
  .header-container {
    padding: 0.5rem 0.75rem;
  }
  
  .enquiry-button {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    gap: 0.5rem;
  }
  
  .enquiry-icon {
    width: 14px;
    height: 14px;
  }
  
  .map-dropdown .icon {
    width: 20px;
    height: 20px;
  }
  
  .center-contact-actions {
    gap: 0.8rem;
  }
  
  .whatsapp-icon {
    font-size: 22px;
  }
  
  .phone-icon {
    font-size: 18px;
  }
}
/* Toast notification styling */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #1a4f7c;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  font-family: Arial, sans-serif;
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.hidden {
  display: none;
}