@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --bg-color: #E0E9FF;
  --button-bg-color: #31437C;
  --main-text-color: #030033;
  --text-color-1: #FFFFFF;
  --text-muted: #31437C;
  --heading1: 3.815rem;
  --heading2: 2.441rem;
  --heading5: 1.563rem;
  --base-font: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  scroll-behavior: smooth;
  scroll-snap-type: mandatory;
}

button {
  background-color: var(--button-bg-color);
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  color: var(--text-color-1);
  font: inherit;
}

a {
  color: var(--main-text-color);
  text-decoration: none;
}

body {
  width: 100%;
  background-color: var(--bg-color);
  color: var(--main-text-color);
  overflow-x: hidden;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding-inline: 1.5rem;
  width: 100%;
  position: relative;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

.logo span {
  font-size: var(--heading5);
  font-weight: 600;
}

#hamburger {
  display: none;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-color);
  z-index: 1002;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger img {
  width: 32px;
  height: 32px;
}

nav ul {
  display: flex;
  gap: 5rem;
}

nav ul li {
  list-style-type: none;
  font-weight: 500;
}

.hero {
  padding-block: 160px 80px;
}

.hero h1 {
  font-size: clamp(1.5rem, 3vw, var(--heading1));
  color: var(--main-text-color);
}

.hero p {
  font-size: var(--heading5);
}

.hero .content {
  max-width: 800px;
}

.content p {
  margin-top: 1.2rem;
  font-size: clamp(1rem, 1.5vw, var(--heading5));
  font-weight: 500;
  color: var(--text-muted);
}

.content button {
  font-size: var(--base-font);
  margin-top: 2.2rem;
}

.blob {
  width: 800px;
  height: 780px;
  background: linear-gradient(180deg, #E0E9FF 0%, #255C85 100%);
  border-radius: 50%;
  filter: blur(100px);
  position: absolute;
  top: 0;
  right: 5%;
  z-index: -1;
}

.hero-image {
  margin-top: 6rem;
}

.hero-image img {
  border-radius: 12px;
  width: 100%;
  height: auto;
}

.services {
  position: relative;
  padding: 80px 0;
  background-color: var(--bg-color);
  text-align: center;
}

.services h2 {
  font-size: var(--heading5);
  color: var(--main-text-color);
  margin-bottom: 0.5rem;
}

.services .subtext {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.service-card img {
  display: block;
  width: 50%;
  margin: 0 auto;
  border-radius: 24px;
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.2));
}

.service-card h3 {
  font-size: 1.25rem;
  margin-top: 1rem;
  color: var(--main-text-color);
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact .right {
  background-color: #255C85;
  margin-top: 80px;
  padding: 2rem 4rem;
  border-radius: 8px;
  width: 50%;
  margin: 0 auto;
  margin-block: 80px;
}

.right h2 {
  font-size: 1.5rem;
}

.right h2 span {
  font: inherit;
  color: var(--text-color-1);
}

input, label {
  font: inherit;
}

.right p {
  color: #92AEC2;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.input {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.input label {
  color: var(--text-color-1);
  margin-bottom: 0.4rem;
}

.input input, select, textarea {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  outline: none;
  resize: none;
}

.submit input {
  background-color: var(--button-bg-color);
  color: var(--text-color-1);
  cursor: pointer;
}

footer {
  background-color: #255C85;
  height: auto;
  /* padding: 0rem 1rem; */
}

footer img {
  margin-top: -5px;
  margin-bottom: 2rem;
  width: 100%;
}

.footer-info {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-info div {
  flex: 1 1 100%;
  color: var(--text-color-1);
  opacity: 0.6;
  padding-bottom: 1rem;
}

.footer-info div h3 {
  margin-bottom: 0.4rem;
}

.footer-info div ul li {
  list-style-type: none;
  margin-bottom: 0.4rem;
}

.footer-info div ul li a {
  color: inherit;
}

a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .container {
    padding-inline: 1rem;
  }
  .header-content {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .service-card {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .logo span{
    font-size: 1.2rem;
  }
  .hamburger {
    display: block;
  }
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: #fff;
    padding: 4rem 2rem;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    z-index: 1000;
  }
  nav ul {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
  }
  #hamburger:checked ~ label.hamburger + nav {
    right: 0;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero-image {
    margin-top: 2rem;
  }
  .content button {
    width: 100%;
    padding: 12px;
  }
  .contact .right {
    width: 100%;
    padding: 1.5rem 1rem;
  }
  .footer-info div {
    flex: 1 1 100%;
  }
}

@media (max-width: 500px) {
  .container {
    width: 100%;
    padding: 0.5rem;
  }
  .service-card {
    padding: 1rem;
  }
  .content button {
    padding: 0.75rem;
  }
}


#thank-you-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 0, 51, 0.6); /* semi-dark based on main-text-color */
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  color: var(--main-text-color);
  padding: 2rem;
  border-radius: 1rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content h3 {
  font-size: var(--heading5);
  margin-bottom: 0.5rem;
  color: var(--button-bg-color);
}

.modal-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.modal-content button {
  background-color: var(--button-bg-color);
  color: var(--text-color-1);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  transition: background 0.3s ease;
}

.modal-content button:hover {
  background-color: #1f2e5e;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#submit-btn {
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #1f2e5e; /* adjust to your theme */
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;
}

#submit-btn.sending {
  opacity: 0.7;
  pointer-events: none;
}

.btn-text::after {
  content: '';
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 8px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  visibility: hidden;
}

#submit-btn.sending .btn-text::after {
  visibility: visible;
}

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