:root {
  --primary: #213a5c;
  --accent: #1e90ff;
  --bg: #f6f8fa;
  --white: #fff;
  --shadow: 0 6px 24px rgba(33, 58, 92, 0.1);
  --radius: 10px;
  --transition: 0.5s cubic-bezier(0.5, 1.6, 0.4, 0.7);
  --fs-base: 16px;
  --fs-h1: 2.8rem;
  --fs-h2: 2rem;
  --fs-h2-mobile: 1.4rem;
  --fs-h2-small: 1.1rem;
  --fs-nav: 1rem;
  --fs-btn: 1.1rem;
  --fs-card: 1.04rem;
  --fs-card-mobile: 0.95rem;
  --fs-card-small: 0.9rem;
}

html {
  font-size: var(--fs-base);
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Loader Overlay */
#pageloader-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: #f6f8faee;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.35s;
}
#pageloader-overlay .loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 5px solid #1e90ff;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  margin-bottom: 1.2rem;
}
#pageloader-overlay .loader-message {
  color: #213a5c;
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
#pageloader-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

/* NAVIGATION */
nav {
  width: 100%;
  position: sticky;
  top: 0;
  background: rgba(33, 58, 92, 0.97);
  box-shadow: 0 2px 14px rgba(33, 58, 92, 0.07);
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  position: relative;
}

.logo {
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

nav li {
  margin: 0;
}

nav a {
  color: #f6faff;
  text-decoration: none;
  font-weight: 500;
  font-size: var(--fs-nav);
  letter-spacing: 0.5px;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
}

nav a:hover,
nav a:focus {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px) scale(1.08);
}

/* HERO */
.hero-section {
  position: relative;
  background: linear-gradient(100deg, var(--primary) 65%, var(--accent) 100%);
  color: var(--white);
  text-align: center;
  padding: 4.5rem 1rem 4rem 1rem;
  min-height: 350px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: var(--fs-h1);
  margin: 0 0 1rem 0;
  line-height: 1.1;
  animation: fadeIn 1s both;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #e6eeff;
  letter-spacing: 0.2px;
}

.cta-btn {
  background: var(--accent);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 28px;
  border: none;
  font-size: var(--fs-btn);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(30, 144, 255, 0.13);
  transition: background 0.25s, box-shadow 0.25s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
}

.cta-btn:hover,
.cta-btn:focus {
  background: #2a80e8;
  box-shadow: 0 6px 18px rgba(30, 144, 255, 0.22);
  transform: translateY(-2px) scale(1.07);
}

/* Micro-interactions */
.micro-jump {
  transition: transform 0.14s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.micro-jump.active-micro {
  transform: scale(0.92) rotate(-2deg);
  box-shadow: 0 6px 16px rgba(30, 144, 255, 0.13);
}

/* Service cards micro-interactions */
.micro-card {
  transition: transform 0.13s cubic-bezier(0.68, -0.55, 0.27, 1.55),
    box-shadow 0.18s, background 0.18s;
}
.micro-card.hover-micro,
.micro-card:focus-visible {
  transform: scale(1.045) translateY(-5px) rotate(-1deg);
  box-shadow: 0 16px 32px rgba(30, 144, 255, 0.16);
  background: linear-gradient(103deg, #eaf6ff 70%, #f8fafc 100%);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-bg-shape {
  position: absolute;
  bottom: -60px;
  right: -110px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 40% 40%, #dbeafe 0%, #1e90ff22 100%);
  opacity: 0.45;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0 0 0;
  width: 100%;
}

/* SERVICES */
.services-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 2.5rem auto;
  padding: 1rem 2%;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
  animation: slideUp 1.2s cubic-bezier(0.5, 1.6, 0.4, 0.7) both;
}

.services-section h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 2.2rem;
  font-size: var(--fs-h2);
  letter-spacing: 1px;
  color: var(--primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
  padding: 0.5rem 0 2rem 0;
}

.service-card {
  background: linear-gradient(105deg, #f8fafc 70%, #eaf6ff 100%);
  background-size: 200% 200%;
  background-position: left center;
  border-radius: 8px;
  box-shadow: 0 3px 16px rgba(30, 144, 255, 0.1);
  padding: 2.3rem 1rem 1.2rem 1rem;
  text-align: center;
  font-size: var(--fs-card);
  font-weight: 500;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition),
    box-shadow 0.4s ease, background-position 0.4s ease;
  cursor: default;
  will-change: opacity, transform;
  position: relative;
  overflow: hidden;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card i {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.service-card:hover,
.service-card:focus-visible {
  background-position: right center;
  box-shadow: 0 8px 22px rgba(30, 144, 255, 0.15);
}

.service-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* CONTACT */
.contact-section {
  background: var(--white);
  width: 100%;
  max-width: 600px;
  margin: 2.5rem auto 2.5rem auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.2rem 2.2rem 2.2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeIn 1.2s both;
}

.contact-section h2 {
  margin-top: 0;
  color: var(--primary);
  font-size: var(--fs-h2);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.6rem;
  padding: 0rem 2rem;
}

.contact-form label {
  text-align: left;
  font-weight: 500;
  color: #213a5c;
}

.contact-form input,
.contact-form textarea {
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid #d0d7de;
  border-radius: 5px;
  background: #f8fafc;
  color: #213a5c;
  resize: none;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 6px #1e90ff33;
}

.form-action-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
  justify-content: flex-start;
  margin-top: 0.5em;
}

/* Loader for Form */
.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 5px solid #1e90ff;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 12px;
  position: relative;
}

#formSubmitBtn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Success/error message styling for form status */
.success {
  color: #15a34a;
  font-weight: 700;
  font-size: 1.03em;
}
.error {
  color: #e53935;
  font-weight: 700;
  font-size: 1.03em;
}

.whatsapp-fab {
  position: fixed; /* Keeps it fixed on screen */
  bottom: 2.5rem;
  left: 2.2rem;
  z-index: 9999;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.15rem;
  box-shadow: 0 2px 8px #213a5c44;
  transition: background 0.18s, transform 0.14s;
  border: none;
  outline: none;
  text-decoration: none;
}

/* Hover effect */
.whatsapp-fab:hover,
.whatsapp-fab:focus {
  background: #128c7e;
  transform: scale(1.12);
  color: #fff;
}

/* Tooltip message on hover */
.whatsapp-fab::after {
  content: "Chat with us";
  position: absolute;
  left: 110%;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.whatsapp-fab:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}

/* Responsive for max-width: 700px */
@media (max-width: 700px) {
  .whatsapp-fab {
    bottom: 2rem;
    left: 1.5rem;
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }
}

/* Responsive for max-width: 650px */
@media (max-width: 650px) {
  .whatsapp-fab {
    bottom: 1.6rem;
    left: 1rem;
    width: 44px;
    height: 44px;
    font-size: 1.7rem;
  }
}

/* Responsive for max-width: 480px (most phones) */
@media (max-width: 480px) {
  .whatsapp-fab {
    bottom: 1.2rem;
    left: 0.8rem;
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
  }
}

#backToTop.micro-jump.active-micro {
  transform: scale(0.88) translateY(-3px);
}

#backToTop {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.4rem;
  box-shadow: 0 2px 8px rgba(33, 58, 92, 0.11);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
  display: flex;
  align-items: center;
  justify-content: center;
}
#backToTop:hover {
  background: #2a80e8;
  box-shadow: 0 6px 18px rgba(30, 144, 255, 0.18);
  transform: scale(1.07);
}
#backToTop i {
  font-size: 1.4rem;
}

footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 1.1rem 0 0.5rem 0;
  width: 100%;
  font-size: 1rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 -2px 8px rgba(33, 58, 92, 0.06);
  animation: fadeIn 1s 0.6s both;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-links {
  margin-bottom: 0.5em;
}
.footer-links a {
  color: #e9f3ff;
  margin: 0 0.5rem;
  text-decoration: none;
  font-size: 1.1em;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-links i {
  font-size: 1.2em;
  vertical-align: middle;
}
.footer-links a:hover,
.footer-links a:focus {
  color: var(--accent);
  outline: none;
}

/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.2s forwards;
}
.slide-up {
  opacity: 0;
  animation: slideUp 1.2s 0.2s forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(64px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------- MEDIA QUERIES ----------- */

/* 900px and below: */
@media (max-width: 900px) {
  html {
    font-size: 15px;
  }
  .nav-container,
  .services-section,
  .contact-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .services-section {
    max-width: 98vw;
  }
  .services-grid {
    gap: 1rem;
  }
  .hero-section {
    padding: 3.2rem 0.8rem 3rem 0.8rem;
  }
  .hero-section h1 {
    font-size: 2.1rem;
  }
  .services-section h2,
  .contact-section h2 {
    font-size: var(--fs-h2-mobile);
  }
  .service-card {
    font-size: var(--fs-card-mobile);
    padding: 1.7rem 0.8rem 1rem 0.8rem;
  }
  .service-card i {
    font-size: 1.8rem;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 0.98rem;
    padding: 0.7rem 1rem;
  }
}

/* 600px and below: */
@media (max-width: 600px) {
  html {
    font-size: 14px;
  }
  .nav-container {
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.6rem 0.5rem;
  }
  .nav-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 0.4rem;
    background: none;
    z-index: 101;
  }
  nav ul {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: rgba(33, 58, 92, 0.97);
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 152px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 2px 14px rgba(33, 58, 92, 0.09);
    padding: 0.6rem 0.4rem;
  }
  nav ul.open {
    display: flex;
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
  .services-section,
  .contact-section {
    padding: 1.2rem 0.4rem;
    font-size: 0.98rem;
  }
  .hero-section {
    padding: 2.1rem 0.4rem 2rem 0.4rem;
  }
  .hero-section h1 {
    font-size: 1.3rem;
  }
  .whatsapp-fab {
    bottom: 1.1rem;
    left: 1rem;
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
  }
  .footer-links a {
    font-size: 1em;
  }
}

/* 480px and below: */
@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .services-section h2,
  .contact-section h2 {
    font-size: var(--fs-h2-small);
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .service-card {
    font-size: var(--fs-card-small);
    padding: 1.2rem 0.5rem 0.8rem 0.5rem;
  }
  .service-card i {
    font-size: 1.2rem;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 0.92rem;
    padding: 0.55rem 0.6rem;
  }
  .footer-links a {
    font-size: 0.96em;
  }
  .whatsapp-fab {
    width: 36px;
    height: 36px;
    font-size: 1.08rem;
    left: 0.6rem;
    bottom: 0.7rem;
  }
}
