:root {
  --primary-color: #4f46e5;
  --primary-light: #14315d;
  --white: #ffffff;
  --gray-light: #f5f7fa;
  --gray-dark: #6b7280;
}

body {
  font-family: "Nunito Sans", sans-serif !important;
  background-color: var(--gray-light);
  position: relative;
  overflow-x: hidden;
}

/* Vector Background Elements */
.vector-bg {
  position: absolute;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

.vector-1 {
  top: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="%234F46E5" d="M100 0a100 100 0 1 0 100 100A100 100 0 0 0 100 0zm0 180a80 80 0 1 1 80-80 80 80 0 0 1-80 80z"/></svg>');
  background-repeat: no-repeat;
  animation: float 8s ease-in-out infinite;
}

.vector-2 {
  bottom: 15%;
  right: 8%;
  width: 400px;
  height: 400px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="%234F46E5" d="M100 0a100 100 0 1 0 100 100A100 100 0 0 0 100 0zm0 180a80 80 0 1 1 80-80 80 80 0 0 1-80 80z"/></svg>');
  background-repeat: no-repeat;
  animation: float 10s ease-in-out infinite reverse;
}

.vector-3 {
  top: 60%;
  left: 20%;
  width: 200px;
  height: 200px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><rect fill="%234F46E5" width="200" height="200" rx="20"/></svg>');
  background-repeat: no-repeat;
  animation: float 7s ease-in-out infinite 2s;
}

.vector-splash {
  top: 60%;
  left: 20%;
  width: 200px;
  height: 200px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="%234F46E5" d="M100 20c30 0 60 20 70 50 10 30 0 60-20 80-20 20-50 30-80 20-30-10-50-40-40-70 10-30 40-50 70-80z"/><path fill="%238B5CF6" d="M30 80c10-20 30-30 50-20 20 10 30 30 20 50-10 20-30 30-50 20-20-10-30-30-20-50z"/><path fill="%23A78BFA" d="M150 120c10 20 0 40-20 50-20 10-40 0-50-20-10-20 0-40 20-50 20-10 40 0 50 20z"/></svg>');
  background-repeat: no-repeat;
  animation: float 7s ease-in-out infinite 2s;
  color: var(--primary-color);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.services-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section-title p {
  color: var(--gray-dark);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(79, 70, 229, 0.1);
  position: relative;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.3);
}

.card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(79, 70, 229, 0.1),
    rgba(79, 70, 229, 0.3)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .card-image::after {
  opacity: 1;
}

.card-content {
  padding: 25px;
  position: relative;
  background: white;
  z-index: 2;
}

.card-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.card-content p {
  color: var(--gray-dark);
  margin-bottom: 20px;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.read-more i {
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: var(--primary-light);
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: var(--white);
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: translateY(50px);
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--gray-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--primary-color);
  background-color: rgba(79, 70, 229, 0.1);
}

.modal-header {
  margin-bottom: 30px;
}

.modal-header h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.modal-content p {
  color: var(--gray-dark);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-features {
  margin-top: 30px;
}

.service-features h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.features-list {
  list-style-type: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.features-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: var(--gray-dark);
}

.features-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .services-container {
    grid-template-columns: 1fr;
  }

  .modal-container {
    padding: 30px 20px;
  }

  .features-list {
    grid-template-columns: 1fr;
  }

  .vector-1,
  .vector-2,
  .vector-3 {
    display: none;
  }
}

/* Footer Styles (unchanged from your original) */
.premium-footer {
  position: relative;
  background-color: #1f1f2e;
  color: white;
  padding-top: 80px;
  margin-top: 80px;
}
