body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #1f2937;
  line-height: 1.6;
  padding-top: 90px; /* match navbar height */
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}


.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 1440px) {

  .hero h1 {
    font-size: 60px;
  }

  .hero p {
    font-size: 18px;
  }

  .section {
    padding: 100px 0;
  }

}

/* NAVBAR */

.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  z-index: 1000;

  padding: 40px 0; /* makes navbar taller */
}




.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #1f2937;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.3px;
}

.navbar nav a.btn-primary {
  background: #1e3a8a;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 17px;
}

/* HERO */

.hero {
  padding: 140px 0 120px;
  text-align: center;
  background: 
    linear-gradient(rgba(248,250,252,0.8), rgba(238,242,255,0.7)),
    url("bg.webp");
  background-size: cover;
  background-position: center 40%;
  
}


.hero h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 60px;
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero h1 span {
  color: #2563eb;
  font-style: normal;
}

@media (min-width: 1440px) {
  .hero h1 { font-size: 70px; }
}

@media (max-width: 1024px) {
  .hero h1 { font-size: 48px; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 36px; letter-spacing: 0.3px; }
}



.hero p {
  max-width: 650px;
  margin: 0 auto 30px auto;
  color: #4b5563;
}

.hero-buttons {
  margin-top: 30px;
}

.btn-primary {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
  transition: 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
}


.btn-outline {
  border: 2px solid #1e3a8a;
  padding: 10px 23px;
  text-decoration: none;
  border-radius: 6px;
  margin-left: 10px;
  color: #1e3a8a;
}

/* SECTIONS */

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header p {
  color: #6b7280;
  margin-top: 10px;
}

.light {
  background: #e5e7eb;
}

/* SERVICES GRID */
.container {
  max-width: 1200px;   /* control desktop width */
  margin: 0 auto;      /* center it */
  padding: 0 20px;     /* breathing space */
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}



.card {
  padding: 28px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: 4px solid #2563eb;
  transition: 0.3s;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.card.blue { border-top-color: #3b82f6; }
.card.green { border-top-color: #10b981; }
.card.red { border-top-color: #ef4444; }
.card.orange { border-top-color: #f59e0b; }

.card i {
  width: 28px;
  height: 28px;
  color: #2563eb;
  margin-bottom: 15px;
}
.card-link {
  text-decoration: none;
  color: inherit;
}

.card-link:hover .card {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.card p {
  margin-bottom: 20px;
  color: #4b5563;
}

.learn-more {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  transition: 0.3s;
}



.card-link:hover .card {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card-link {
  display: flex;
}

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
}






/* WHY SECTION */

.why-item h4 {
  margin-bottom: 8px;
}

.why-item p {
  color: #6b7280;
  font-size: 14px;
}

/* CONTACT */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-section {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  padding: 99px 0;
  color: white;
  background:
  linear-gradient(rgba(15,23,42,0.85), rgba(15,23,42,0.85)),
  url("contact.jpg");
background-size: cover;
background-position: center;
}

.contact-info h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.contact-info p {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
}

.contact-detail {
  margin-top: 20px;
}

.contact-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}


.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
  resize: none;
 
}

.form textarea{
 height: 140px;
 resize: none;
}

.form button {
  width: 100%;
}

/* FOOTER */

.footer {
  background: linear-gradient(180deg, #1e3a8a, #172554);
  color: #ffffff;
  padding: 50px 0 20px;   /* reduced from 90px */
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;   /* reduced from 50px */
}

.footer h4 {
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 600;
  position: relative;   /* ADD THIS */
}

.footer h4::after {
  content: "";
  width: 40px;
  height: 3px;
  background: #3b82f6;
  position: absolute;
  bottom: -8px;
  left: 0;
  border-radius: 2px;
}

.footer p {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 12px;
}

.footer a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s ease;
}

.footer a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 35px;   /* reduced from 60px */
  padding-top: 15px;
  font-size: 12px;
  color: #94a3b8;
}


/* LOGO */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 130px;
  width: auto;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .why-grid,
  .contact-wrapper,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 34px;
  }

  .nav-content {
    flex-direction: column;
    gap: 15px;
  }
}

.service-hero-bg {
  padding: 140px 0 100px;
  text-align: center;
  background:
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url("services2.jpeg") no-repeat center;
  background-size: cover;
  background-position: center 10%;
  color: white;
}

.service-hero-bg h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.service-hero-bg p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
  opacity: 0.9;
}

.small-hero {
  padding: 80px 0;
  background: #f3f4f6;
  text-align: center;
}
.small-hero h1 {
  max-width: 800px;
  margin: 0 auto;
}

.small-hero p {
  max-width: 600px;
  margin: 20px auto 0 auto;
}


.service-category {
  margin-bottom: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid #e5e7eb;
}

.service-category {
  background: #f2f2f2;
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.service-category h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #1e3a8a;
  position: relative;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.service-grid ul {
  list-style: none;
  padding: 0;
}

.service-grid li {
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
  font-size: 15px;
}

.service-grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: bold;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header p {
  max-width: 600px;
  margin: 15px auto 0 auto;
  color: #6b7280;
}

/* SERVICE HERO */

.service-hero {
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

.service-hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.service-tagline {
  max-width: 750px;
  margin: 0 auto;
  color: #4b5563;
  font-size: 17px;
}

/* SERVICE CONTENT */

.service-content {
  padding: 80px 0;
}

.service-block {
  margin-bottom: 70px;
  padding: 35px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.service-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.07);
}

.service-block h2 {
  margin-bottom: 25px;
  color: #1e3a8a;
}

/* LIST STYLE */

.service-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px 30px;
}

.service-list li {
  position: relative;
  padding-left: 22px;
  color: #4b5563;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: bold;
}


.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.why-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.why-icon {
  width: 28px;
  height: 28px;
  background: #1e3a8a;
  color: white;
  font-size: 14px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-item h4 {
  margin: 0 0 8px 0;
}

.why-item p {
  margin: 0;
  color: #6b7280;
}
.stats-box {
  background: linear-gradient(90deg, #eef2ff, #e0f2fe);
  padding: 50px;
  border-radius: 16px;
  display: flex;
  justify-content: space-around;
  text-align: center;
  width: 100%;
}


.stats-box h3 {
  font-size: 32px;
  color: #2563eb;
}

/* MODAL */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;

  color: #1f2937; /* ADD THIS */
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 22px;
  cursor: pointer;
}

@keyframes fadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


.cta-full {
  margin-top: -60px;
  padding-bottom: 40px;
}

.cta-full .btn-primary {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* ===== Loading Overlay ===== */
#loadingOverlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-logo {
  width: 90px;
  z-index: 2;
}

/* Rotating ring */
.spinner-ring {
  position: absolute;
  width: 160px;
  height: 160px;
  animation: rotateRing 2.5s linear infinite;
}

.spinner-ring div {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #2563eb;
  border-radius: 50%;
}

/* Position dots around circle */
.spinner-ring div:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.spinner-ring div:nth-child(2) { bottom: 0; left: 50%; transform: translateX(-50%); }
.spinner-ring div:nth-child(3) { left: 0; top: 50%; transform: translateY(-50%); }

@keyframes rotateRing {
  100% { transform: rotate(360deg); }
}

/* ===================== */
/* TABLET (1024px) */
/* ===================== */
@media (max-width: 1024px) {

  .hero h1 {
    font-size: 42px;
  }

  .footer-grid {
    gap: 30px;
  }

}

/* ===================== */
/* MOBILE (768px) */
/* ===================== */
@media (max-width: 768px) {

  .hero {
    padding: 100px 0 70px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 14px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }


  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

}