:root {
  --primary-color: #e60012; /* Mitsubishi Red */
  --secondary-color: #2d2d2d; /* Darker Gray */
  --bg-color: #ffffff; /* White */
  --text-color: #333333;
  --accent-color: #f8f8f8;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

.svc-section {
  padding: 50px 20px;
  background: linear-gradient(180deg, var(--accent-color), var(--bg-color));
  position: relative;
}

.svc-container {
  max-width: 1400px;
  margin: 0 auto;
}

.svc-header {
  text-align: center;
  margin-bottom: 70px;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 0.8s ease forwards;
}

.svc-headline {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.divider {
  width: 100px;
  height: 5px;
  background: var(--primary-color);
  margin: 0 auto 20px;
  border-radius: 5px;
  transform: scaleX(0);
  animation: scaleIn 1s ease forwards 0.3s;
}

.svc-subheadline {
  font-size: 1.3rem;
  color: var(--text-color);
  opacity: 0.7;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.svc-card {
  background: var(--bg-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 0.8s ease forwards;
  animation-delay: calc(var(--card-delay) * 0.2s);
}

.svc-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.svc-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.svc-card:hover .svc-image {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.svc-content {
  padding: 50px; /* Set padding to 50px */
  position: relative;
}

.svc-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--primary-color);
  transition: var(--transition);
}

.svc-card:hover .svc-content::before {
  width: 100%;
}

.svc-content h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.svc-content p {
  font-size: 1rem;
  color: var(--text-color);
  opacity: 0.85;
  margin-bottom: 20px;
  font-weight: 300;
}

.svc-content ul {
  list-style: none;
  margin-bottom: 25px;
}

.svc-content ul li {
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInList 0.6s ease forwards;
  animation-delay: calc(var(--list-delay) * 0.15s);
}

.svc-content ul li::before {
  content: "\f058";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 1rem;
}

.svc-book-now {
  display: inline-flex;
  align-items: center;
  padding: 12px 30px;
  background: var(--primary-color); /* Red background */
  color: var(--bg-color); /* White text */
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none; /* No border */
}

.svc-book-now::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.svc-book-now:hover::before {
  width: 200px;
  height: 200px;
}

.svc-book-now:hover {
  background: var(--bg-color); /* White background on hover */
  color: var(--primary-color); /* Red text on hover */
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(51, 51, 51, 0.3);
}

/* CTA Section */
.svc-cta-section {
  padding: 80px 20px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--bg-color);
  text-align: center;
  margin-top: 50px;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 0.8s ease forwards 0.5s;
}

.svc-cta-headline {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.svc-cta-subheadline {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
  font-weight: 300;
}

.svc-cta-button {
  display: inline-flex;
  align-items: center;
  padding: 14px 40px;
  background: var(--bg-color); /* White background */
  color: var(--primary-color); /* Red text */
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none; /* No border */
}

.svc-cta-button:hover {
  background: var(--primary-color); /* Red background on hover */
  color: var(--bg-color); /* White text on hover */
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.svc-cta-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.svc-cta-button:hover::before {
  width: 200px;
  height: 200px;
}

/* Modal */
.svc-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.svc-modal.show {
  display: flex;
  opacity: 1;
}

.svc-modal-content {
  background: var(--bg-color);
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  padding: 30px;
  position: relative;
  transform: scale(0.7);
  animation: modalPop 0.4s ease forwards;
}

.svc-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
}

.svc-modal-close:hover {
  color: var(--primary-color);
}

.svc-modal h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-align: center;
}

.svc-modal form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.svc-modal input,
.svc-modal select,
.svc-modal textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: "Roboto", sans-serif;
  transition: border-color 0.3s ease;
}

.svc-modal input:focus,
.svc-modal select:focus,
.svc-modal textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.svc-modal textarea {
  resize: vertical;
  min-height: 100px;
}

.svc-modal button {
  padding: 12px;
  background: var(--primary-color);
  color: var(--bg-color);
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.svc-modal button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  to {
    transform: scaleX(1);
  }
}

@keyframes slideInList {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes modalPop {
  to {
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .svc-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .svc-headline {
    font-size: 2.8rem;
  }

  .svc-image {
    height: 200px;
  }

  .svc-content {
    padding: 40px; /* Slightly reduced for smaller screens */
  }

  .svc-cta-headline {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .svc-section {
    padding: 70px 15px;
  }

  .svc-header {
    margin-bottom: 50px;
  }

  .svc-headline {
    font-size: 2.3rem;
  }

  .svc-subheadline {
    font-size: 1.1rem;
  }

  .svc-grid {
    grid-template-columns: 1fr;
  }

  .svc-image {
    height: 250px;
  }

  .svc-content {
    padding: 30px; /* Adjusted for smaller screens */
  }

  .svc-content h3 {
    font-size: 1.6rem;
  }

  .svc-content p {
    font-size: 0.95rem;
  }

  .svc-content ul li {
    font-size: 0.9rem;
  }

  .svc-book-now {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .svc-cta-section {
    padding: 60px 15px;
  }

  .svc-cta-headline {
    font-size: 1.8rem;
  }

  .svc-cta-subheadline {
    font-size: 1rem;
  }

  .svc-modal-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .svc-headline {
    font-size: 2rem;
  }

  .svc-image {
    height: 200px;
  }

  .svc-content {
    padding: 25px; /* Further adjusted for very small screens */
  }

  .svc-content h3 {
    font-size: 1.4rem;
  }

  .svc-content p {
    font-size: 0.9rem;
  }

  .svc-content ul li {
    font-size: 0.85rem;
  }

  .svc-cta-headline {
    font-size: 1.6rem;
  }

  .svc-modal h3 {
    font-size: 1.5rem;
  }

  .svc-modal input,
  .svc-modal select,
  .svc-modal textarea,
  .svc-modal button {
    font-size: 0.9rem;
  }
}
