/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}



/* Hero Section with Image and Overlay */
.hero {
  height: 60vh;
  background: url('/images/services_bg.webp') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.hero h1 {
  color: white;
  font-size: 3.5em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px; /* Reduced from 60px */
}

/* Exclusive Services */
.exclusive-services {
  text-align: center;
}

.exclusive-services h2 {
  font-size: 2.5em;
  color: #666666;
  margin-bottom: 20px;
}

.exclusive-services p {
  font-size: 1.2em;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

/* Service Cards */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px; /* Reduced from 60px */
}

.service-card {
  perspective: 1000px;
  -webkit-perspective: 1000px; /* Safari Fix */
}

.card-inner {
  position: relative;
  width: 100%;
  height: 280px;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
  -webkit-transform-style: preserve-3d; /* Safari Fix */
  transform: translateZ(0);  /* Trigger Hardware Acceleration */
  -webkit-transform: translateZ(0);
}

.service-card:hover .card-inner,
.service-card.flip-active .card-inner { /* Also handle flip-active class for tap-to-flip */
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg); /* Safari Fix */
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden; /* Safari Fix */
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card-front {
  background-color: #EAEAEA; /* Softer color */
  color: #333;
  display: flex;
  flex-direction: column;
}

.card-front .icon {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.card-front h3 {
  font-size: 1.5em;
}

.card-back {
  background-color: #f5f7fa;
  color: #333;
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg); /* Safari Fix */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden; /* Safari Fix */
}


/* CTA Section */
.cta-section {
  text-align: center;
  padding: 50px;
  background-color: #00BFA6;
  color: white;
}

.cta-section h2 {
  font-size: 2.5em;
  margin-bottom: 30px;
}

.cta-btn {
  display: inline-block;
  padding: 15px 40px;
  background-color: white;
  color: #00BFA6;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.cta-btn:hover {
  background-color: #00BFA6;
  color: white;
  border: 2px solid white; /* White border on hover */
}

/* Tap to Flip for Mobile & Tablets */
.tap-hint {
  font-size: 0.7em; /* Smaller font size */
  color: #555;
  position: absolute;
  bottom: 10px; /* Positioned at the bottom */
  right: 10px; /* Positioned at the right */
  opacity: 0.6;
  text-align: right;
}

/* Only show "Tap to Flip" on touch-enabled devices */
@media (hover: none) and (pointer: coarse) {
  .tap-hint {
    display: block;
  }
}

@media (hover: hover) and (pointer: fine) {
  .tap-hint {
    display: none;
  }
}

/* iPads (Portrait and Landscape) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .service-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }

  .hero h1 {
    font-size: 2.5em;
  }

  .exclusive-services h2 {
    font-size: 2em;
  }

  .cta-section {
    padding: 40px;
  }

  .tap-hint {
    font-size: 0.8em;
  }
}

/* iPhones and Small Devices */
@media only screen and (max-width: 767px) {
  .hero h1 {
    font-size: 2em;
  }

  .exclusive-services h2 {
    font-size: 1.8em;
  }

  .service-list {
    grid-template-columns: 1fr; /* One card per row */
    gap: 20px;
  }

  .card-inner {
    height: 240px;
  }

  .tap-hint {
    font-size: 0.8em;
  }

  .cta-section h2 {
    font-size: 2em;
  }

  .cta-btn {
    font-size: 1.2em;
    padding: 10px 30px;
  }
}

/* iPad Pro (Large Tablets) */
@media only screen and (min-width: 1025px) and (max-width: 1366px) {
  .service-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .hero h1 {
    font-size: 3em;
  }

  .exclusive-services h2 {
    font-size: 2.2em;
  }

  .cta-section h2 {
    font-size: 2.5em;
  }

  .cta-btn {
    font-size: 1.4em;
    padding: 12px 40px;
  }
}

/* Extra Small Screen Adjustments */
@media (max-width: 480px) {
  .hero {
    height: 40vh;
  }

  .hero h1 {
    font-size: 2em;
  }

  .cta-section h2 {
    font-size: 1.8em;
  }

  .cta-btn {
    font-size: 1.1em;
    padding: 10px 25px;
  }
}

/* Visual Divider Section */
.divider-section {
  padding: 40px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.divider-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #cbd5e1 50%, transparent 100%);
}

.divider-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.divider-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #0ea5e9 50%, transparent 100%);
  position: relative;
}

.divider-line::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 4px;
  background: #0ea5e9;
  border-radius: 2px;
}

.divider-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
  animation: float 3s ease-in-out infinite;
  position: relative;
}

.divider-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.2;
  animation: pulse 2s ease-in-out infinite;
}

.divider-text {
  text-align: center;
  min-width: 200px;
}

.divider-text h3 {
  font-size: 1.5em;
  color: #1e293b;
  margin-bottom: 8px;
  font-weight: 600;
}

.divider-text p {
  font-size: 0.9em;
  color: #64748b;
  margin: 0;
}

/* Hover effect for divider section */
.divider-section:hover .divider-icon {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.4);
}

.divider-section:hover .divider-line {
  background: linear-gradient(90deg, transparent 0%, #0284c7 50%, transparent 100%);
}

/* Responsive adjustments for divider */
@media (max-width: 768px) {
  .divider-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .divider-line {
    width: 100px;
    height: 1px;
  }
  
  .divider-icon {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }
  
  .divider-text h3 {
    font-size: 1.2em;
  }
  
  .divider-text p {
    font-size: 0.8em;
  }
}

/* New changes */
body {
  background-color: #f8fafc;
  scroll-behavior: smooth;
}
.service-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}
.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
}
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}
.service-icon {
  transition: all 0.4s ease;
}
.feature-item {
  position: relative;
  padding-left: 2rem;
}
.feature-item:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: #0ea5e9;
}
.cta-gradient {
  background: linear-gradient(135deg, #0c4a6e 0%, #0ea5e9 100%);
}