/* ----- Base Styles ----- */
:root {
  --primary-color: #00296b; /* Navy Blue */
  --accent-color: #ef233c; /* Vibrant Red */
  --neutral-100: #ffffff;
  --neutral-200: #f8f9fa;
  --neutral-900: #2b2d42;

  --text-base: 1.25rem; /* 20px */
  --line-height: 1.35; /* 135% */
  --radius: 0.5rem;
}

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

/* Add to existing CSS */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Adjust based on your navbar height */
}
@media (min-width: 768px) {
  html {
    scroll-padding-top: 80px; /* Adjust for desktop navbar height */
  }
  .nav-link {
    padding: 1rem 0;
  }
  .service-cta {
    padding: 1.5rem;
  }
}

body {
  font-family: "Arial", sans-serif;
  padding-top: 80px;
  background: var(--neutral-100);
  overflow-x: hidden;
}

@media (max-width: 767px) {
  body {
    padding-top: 70px;
  }
}

/* ----- Navbar Styles ----- */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: var(--neutral-100);
  /* box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1); */
  padding: 1rem 0;
}
.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  height: 100%; /* Match navbar height */
}

.logo-img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .logo-img:hover {
    transform: scale(1.03);
  }
}

/* Desktop Menu */
.desktop-menu {
  display: none; /* Hidden on mobile */
}
.desktop-menu .nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  color: var(--neutral-900);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-cta {
  background: var(--accent-color);
  color: var(--neutral-100) !important;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(239, 35, 60, 0.3);
}

/* Mobile Hamburger */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: none;
  z-index: 1001;
}

.hamburger-line {
  width: 30px;
  height: 3px;
  background: var(--primary-color);
  transition: all 0.3 ease;
}

/* Mobile Menu (Hidden by default) */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: var(--neutral-100);
  padding: 6rem 2rem;
  transition: left 0.3s ease;
}
.mobile-menu .nav-links {
  display: grid;
  gap: 2rem;
  list-style: none;
}

.mobile-menu .nav-link {
  font-size: 1.2rem; /* Slightly larger for touch targets */
  padding: 0.5rem 0;
}

/* Active state for mobile menu */
.mobile-menu.active {
  left: 0;
}

/* Media Queries for Desktop */

@media (max-width: 1024px) {
  .desktop-menu {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}
@media (min-width: 768px) {
  body {
    padding-top: 60px;
  }
  .desktop-menu {
    display: block; /* Show desktop menu */
  }

  .hamburger {
    display: none; /* Hide hamburger on desktop */
  }

  .mobile-menu {
    display: none; /* Hide mobile menu on desktop */

    .navbar {
      padding: 1rem 3rem;
    }

    .logo-img {
      height: 35px;
      max-width: 120px;
    }
  }
}

/* ----- Hero Section ----- */
.hero {
  background: var(--neutral-100);
  padding: 2rem 0;
  min-height: calc(100vh - 80px); /* Full height minus navbar */
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  height: 100%;
}

.hero-content {
  order: 2;
}

.hero-illustration {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  height: 400px; /* Fixed height for illustration area */
}

.hero-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  animation: float 3s ease-in-out infinite;
}

.hero-headline {
  font-family: "Montserrat", sans-serif;
  font-size: 5rem;
  font-weight: 1700;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 2rem;
  max-width: 25ch;
  position: relative;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 0.5px solid rgba(0, 41, 107, 0.15); /*Very light border*/
  border-radius: calc(var(--radius) * 1.5); /* Slightly larger radius */
  background: linear-gradient(
    to right,
    rgba(0, 41, 107, 0.05) 0%,
    rgba(0, 41, 107, 0.01) 100%
  );
  backdrop-filter: blur(2px);
  margin-bottom: 2.5rem; /* Increased spacing */
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--neutral-900);
  margin-bottom: 2.5rem;
  max-width: 60ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* CTA Buttons */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2rem;
  border-radius: var(--radius);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.primary-cta {
  background: var(--accent-color);
  color: var(--neutral-100);
  box-shadow: 0 4px 6px rgba(239, 35, 60, 0.1);
}

.secondary-cta {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 41, 107, 0.2);
}

.primary-cta:hover {
  box-shadow: 0 5px 15px rgba(239, 35, 60, 0.3);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: 1000;
  }
}

/* Replace previous 500px media query with this */
@media (max-width: 500px) {
  .hero {
    min-height: 80vh;
    padding: 1rem 0 2rem;
  }

  .hero-headline {
    font-size: 2.2rem !important;
    line-height: 1.2;
    margin-left: 0;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
    border: none;
    background: none;
    backdrop-filter: none;
  }

  .hero-cta-group {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .cta-button {
    width: 100% !important;
    justify-content: center;
    padding: 1.2rem !important;
    font-size: 1rem;
    text-align: center;
    white-space: normal;
  }

  .hero-illustration {
    height: 200px !important;
    margin: 1rem 0;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .hero-container {
    padding: 0 1rem;
    gap: 0 !important;
  }
}

/* Fix for 540px range */
@media (min-width: 501px) and (max-width: 767px) {
  .hero {
    min-height: 80vh;
    padding-top: 2rem;
  }

  .hero-headline {
    font-size: 3rem !important;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    max-width: 15ch;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 500px;
  }

  .cta-button {
    width: 100% !important;
  }

  .hero-illustration {
    height: 300px !important;
    margin-top: 1rem;
  }
}

@media (max-width: 767px) {
  .cta-button {
    padding: 1rem 1.5rem !important;
    font-size: 0.9rem;
  }

  .hero-cta-group {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
  }

  .cta-button {
    flex: 1 1 45% !important;
    min-width: 140px;
    max-width: 100%;
    padding: 0.8rem 0.5rem !important;
    font-size: 0.85rem;
    text-align: center;
  }
}

/* Fix for 1024px range */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-container {
    align-items: flex-start;
    padding-top: 2rem;
  }

  .hero-headline {
    font-size: 3.8rem !important;
    max-width: 20ch;
    margin-bottom: 1.5rem;
  }

  .hero-cta-group {
    flex-wrap: nowrap;
    gap: 1.5rem;
    width: 90%;
  }

  .cta-button {
    flex: 1;
    min-width: auto;
    padding: 1.25rem 1.5rem !important;
    justify-content: center;
  }

  .hero-illustration {
    height: 450px !important;
    margin-top: -2rem;
  }

  .hero-content {
    padding-right: 2rem;
  }
}

/* For extremely narrow devices */
@media (max-width: 350px) {
  .hero-headline {
    font-size: 2rem !important;
  }

  .cta-button {
    padding: 1rem !important;
    font-size: 0.95rem;
  }
}

/* Responsive Design */
@media (min-width: 768px) {
  .hero-container {
    flex-direction: row-reverse;
    align-items: center;
    gap: 4rem;
    grid-template-columns: 1fr 1fr;
  }

  .hero-content {
    flex: 1;
    order: 1;
  }

  .hero-illustration {
    /* flex: 1;
    order: 2; */
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-headline {
    font-size: 3.5rem;
  }
}
@media (max-width: 767px) {
  .hero-container {
    grid-template-rows: auto 400px;
  }
  .hero-headline {
    padding: 0.5rem 1rem;
    margin-left: -1rem; /* Compensate for mobile padding */
    font-size: 3rem !important;
    line-height: 1.15;
    margin-bottom: 1.5rem;
  }
  .hero-illustration {
    order: 2;
    height: 300px; /* Reduced height for mobile */
  }
  .hero {
    min-height: 90vh; /* Adjust for mobile navbar */
    padding-top: 2rem;
  }

  .hero-content {
    order: 1;
    padding-bottom: 2rem;
  }
}
/* Fix for 1024px range */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-container {
    align-items: flex-start;
    padding-top: 2rem;
  }

  .hero-headline {
    font-size: 3.8rem !important;
    max-width: 20ch;
    margin-bottom: 1.5rem;
  }

  .hero-cta-group {
    flex-wrap: nowrap;
    gap: 1.5rem;
    width: 90%;
  }

  .cta-button {
    flex: 1;
    min-width: auto;
    padding: 1.25rem 1.5rem !important;
    justify-content: center;
  }

  .hero-illustration {
    height: 450px !important;
    margin-top: -2rem;
  }

  .hero-content {
    padding-right: 2rem;
  }
}

/* Constrain maximum illustration size */
@media (min-width: 1200px) {
  .hero-illustration {
    max-width: 800px;
  }
}
@media (min-width: 1024px) {
  .hero-headline {
    font-size: 4rem;
  }
}

@media (max-width: 400px) {
  /* Adjust font sizes for very small screens */
  .hero-headline {
    font-size: 1.8rem !important;
    padding: 0.5rem !important;
  }

  .cta-button {
    font-size: 0.8rem;
    padding: 0.7rem 0.4rem !important;
  }
}

/* ----- About Section ----- */
.about {
  padding: 6rem 0;
  background: var(--neutral-100);
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 3rem;
}

.about-intro {
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--neutral-900);
  max-width: 90ch;
  margin: 0 auto 4rem;
  text-align: center;
}

.card-container {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

.about-card {
  background: var(--neutral-200);
  border-radius: var(--radius);
  padding: 3rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.card-icon i {
  color: var(--neutral-100);
  font-size: 1.8rem;
}

.card-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.card-text {
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--neutral-900);
}

/* Animations */
.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-card:hover .card-icon {
  transform: scale(1.1);
  background: var(--accent-color);
}

/* Entrance Animations */
@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-card {
  animation: cardEntrance 0.6s ease forwards;
  opacity: 0;
}

.vision-card {
  animation-delay: 0.2s;
}
.mission-card {
  animation-delay: 0.4s;
}

/* Responsive Design */
@media (min-width: 768px) {
  .card-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .about-intro {
    font-size: 1.3rem;
  }
}

@media (max-width: 767px) {
  .about-card {
    text-align: center;
    padding: 2rem;
  }
  .card-icon {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3.5rem;
  }

  .about-card {
    padding: 4rem;
  }
}

/* Application Form Modal */
.form-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  animation: modalFadeIn 0.3s ease;
}

.form-modal.visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  max-width: 600px;
  margin: 2rem auto;
  background: var(--neutral-100);
  border-radius: var(--radius);
  padding: 2.5rem;
  padding-top: 3.5rem;
  top: 60px;
  transform: translateY(0);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--neutral-200);
}

.modal-container::-webkit-scrollbar {
  width: 8px;
}

.modal-container::-webkit-scrollbar-track {
  background: var(--neutral-200);
}

.modal-container::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 20px;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--neutral-900);
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--accent-color);
}

.modal-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.modal-content {
  padding: 2rem 0;
  min-height: 300px;
}

.application-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: grid;
  gap: 0.75rem;
}
textarea {
  padding: 1rem;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  font-size: 1rem;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.3s ease;
}

textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 41, 107, 0.1);
}
label {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  color: var(--neutral-900);
}

input,
select {
  padding: 1rem;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 41, 107, 0.1);
}

/* Input animations */
input,
select,
textarea {
  transition: all 0.3s ease;
}
input:not(:focus):not(:placeholder-shown):invalid,
select:invalid {
  animation: shake 0.3s ease;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
}

input:valid,
select:valid,
textarea:valid {
  border-color: #00cc66;
}
.radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.submit-btn {
  background: var(--accent-color);
  color: var(--neutral-100);
  padding: 1.25rem 2rem;
  border: none;
  border-radius: var(--radius);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(239, 35, 60, 0.3);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .modal-container {
    width: 90%;
    padding: 1.5rem;
    margin: 1rem auto;
  }

  .modal-title {
    font-size: 2rem;
  }

  .radio-group {
    flex-direction: column;
  }
}

/* Form Validation Styles */
input:invalid,
select:invalid {
  border-color: var(--accent-color);
}

.form-note {
  font-size: 0.9rem;
  color: var(--neutral-900);
  opacity: 0.8;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

/* Longer dropdown list */
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300296b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

/* Mobile Optimization */
@media (max-width: 480px) {
  .modal-container {
    padding: 1.5rem;
    width: 95%;
  }

  .modal-title {
    font-size: 1.75rem;
  }

  input,
  select {
    padding: 0.8rem;
  }
}

/* Success Modal Styles */
.success-modal {
  display: none;
}

.success-modal.visible {
  display: block;
}

.success-icon {
  text-align: center;
  margin: 2rem 0;
}

.success-icon i {
  font-size: 4rem;
  color: #00cc66;
}

.success-message {
  font-size: 1.1rem;
  line-height: 1.4;
  text-align: center;
  max-width: 35ch;
  margin: 0 auto;
  color: var(--neutral-900);
}

/* Loading State */
.submit-btn.loading {
  opacity: 0.8;
  pointer-events: none;
}

.submit-btn.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Success/Error Modal Shared Styles */
.success-modal,
.error-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
}

.success-modal.visible,
.error-modal.visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-icon i {
  font-size: 4rem;
  color: var(--accent-color);
}

.ok-button {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius);
  margin: 2rem auto 0;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.ok-button:hover {
  transform: translateY(-2px);
}

.hidden {
  display: none;
  visibility: hidden;
}

/* ----- Services Section ----- */
.services {
  padding: 4rem 0;
  background: var(--neutral-200);
}

.services-grid {
  display: grid;
  gap: 2rem;
  margin: 4rem 0;
}

.service-card {
  background: var(--neutral-100);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  -webkit-transform: translateY(-5px);
  transform: translateY(-5px);
}

.service-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.card-header {
  margin-bottom: 2rem;
  text-align: center;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.service-card:hover .card-icon {
  transform: rotate(15deg) scale(1.1);
}

.card-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  color: var(--neutral-900);
  margin-bottom: 1rem;
}

.service-list {
  list-style: none;
  margin: 2rem 0;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  padding: 0.8rem;
  background: rgba(0, 41, 107, 0.03);
  border-radius: calc(var(--radius) / 2);
}

.service-list i {
  color: var(--accent-color);
  min-width: 25px;
}

.service-cta {
  width: 100%;
  background: none;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.service-cta:hover {
  background: var(--primary-color);
  color: var(--neutral-100);
}

.services-cta {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem 0;
  background: var(--neutral-100);
  border-radius: var(--radius);
}

.cta-text {
  font-size: 1.5rem;
  color: var(--neutral-900);
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .services {
    padding: 5rem 0;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .card-title {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .service-card {
    padding: 2rem;
  }
}

@media (max-width: 767px) {
  .service-card {
    margin-bottom: 1.5rem;
  }

  .service-list li {
    font-size: 1.1rem;
  }
}

/* Illustration Styles */
.icon-wrapper {
  position: relative;
  display: inline-block;
}

.card-illustration {
  width: 80px;
  height: 80px;
  object-fit: contain;
  opacity: 0.9;
  transition: transform 0.4s ease;
}

.animated-illustration {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.illustration-frame {
  padding: 1rem;
  background: rgba(0, 41, 107, 0.05);
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.service-card:hover .animated-illustration {
  transform: translateY(-5px) rotate(-5deg);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.15));
}

/* Hide FA icon when using illustrations */
.icon-wrapper .card-icon {
  display: none;
}

/* Fallback for illustration missing */
.no-illustration .icon-wrapper .card-icon {
  display: block;
}

/* ----- Contact Section ----- */
.contact {
  padding: 4rem 0;
  background: var(--neutral-100);
  border-top: 1px solid rgba(0, 41, 107, 0.1);
}
.contact-grid {
  display: grid;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto; /* Completed margin declaration */
  padding: 0 2rem;
}

.contact-info {
  padding: 2rem;
}

.contact-form {
  background: var(--neutral-200);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 41, 107, 0.05);
}

.contact-subtitle {
  font-size: 1.4rem;
  line-height: 1.35;
  color: var(--neutral-900);
  margin: 2rem 0 3rem;
  max-width: 55ch;
}

.contact-details {
  display: grid;
  gap: 2.5rem;
  margin: 3rem 0;
}

.contact-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.8rem;
  color: var(--accent-color);
  min-width: 40px;
  padding-top: 0.5rem;
}

.detail-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-text p {
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--neutral-900);
}

.contact-text a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-text a:hover {
  color: var(--accent-color);
}

.form-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.form-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.form-subtitle {
  font-size: 1.2rem;
  color: var(--neutral-900);
  max-width: 50ch;
  margin: 0 auto;
}

.contact-cta {
  border-top: 2px solid rgba(0, 41, 107, 0.1);
  padding-top: 3rem;
  margin-top: 2rem;
  text-align: center;
}

.cta-note {
  font-size: 1.1rem;
  color: var(--neutral-900);
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    padding: 0;
  }

  .contact-info {
    padding: 0 2rem 0 0;
  }

  .contact-form {
    padding: 4rem 3rem;
  }
}
@media (min-width: 768px) {
  .contact {
    padding: 5rem 0;
  }
}
@media (max-width: 768px) {
  .contact-item {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-icon {
    padding-top: 0;
  }

  .form-title {
    font-size: 1.8rem;
  }

  .contact-form {
    margin-top: 2rem;
  }
}

/* Form Field Styles */
.application-form {
  display: grid;
  gap: 1.5rem;
}

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

.application-form input,
.application-form select,
.application-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  font-size: 1rem;
}

.application-form .submit-btn {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.5rem;
}

/* ----- Footer Styles ----- */
.footer {
  background: var(--primary-color);
  color: var(--neutral-100);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  max-width: 350px;
}

.footer-logo {
  width: 120px;
  margin-bottom: 1.5rem;
}

.footer-tagline {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

.social-link {
  font-size: 1.4rem;
  color: var(--neutral-100);
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--accent-color);
}

.footer-heading {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.footer-link {
  color: var(--neutral-100);
  text-decoration: none;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.footer-link:hover {
  opacity: 1;
  color: var(--accent-color);
  padding-left: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  opacity: 0.9;
}

.contact-item i {
  width: 25px;
  color: var(--accent-color);
}

.contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  padding-top: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.copyright-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.developer-credit {
  font-size: 0.9rem;
  opacity: 0.7;
  color: var(--neutral-100);
}
.copyright {
  font-size: 0.9rem;
  opacity: 0.7;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.legal-link {
  color: var(--neutral-100);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.legal-link:hover {
  color: var(--accent-color);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .footer {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .contact-item {
    justify-content: center;
  }

  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  /* Fix footer overflow */
  .footer-grid,
  .footer-bottom {
    width: 100%;
    padding: 0 1rem;
    overflow-x: hidden;
  }
}
