/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
:root{
  --bg: #f2f6fc;
  --card: #ffffff;
  --primary: #1f3b73;
  --accent: #3b5998;
  --muted: #6b7280;
  --glass: rgba(255,255,255,0.6);
}
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg), #edf3fb 120%);
  color: #222;
  line-height: 1.75;
  padding: 28px;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Header */
header {
  text-align: center;
  padding: 46px 22px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 14px;
  margin-bottom: 36px;
  box-shadow: 0 8px 30px rgba(31,59,115,0.18);
  transform-origin:center;
  animation: headerPop 700ms cubic-bezier(.2,.9,.3,1);
}
header h1 {
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  margin-bottom: 8px;
  letter-spacing: 0.4px;
}
header p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  opacity: 0.96;
}

/* Section Cards (base) */
section {
  background: var(--card);
  margin: 28px auto;
  padding: 22px;
  border-radius: 14px;
  max-width: 1600px;
  box-shadow: 0 6px 20px rgba(18,38,63,0.06);
  transition: transform 320ms ease, box-shadow 320ms ease;
  animation: fadeUp 700ms ease both;
  overflow: hidden;
  position: relative;
}

/* Slight glass accent band */
section::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, rgba(59,89,152,0.95), rgba(31,59,115,0.85));
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  opacity: 0.08;
  pointer-events: none;
}

/* Hover lift */
section:hover {
  transform: translateY(-8px) scale(1.002);
  box-shadow: 0 18px 40px rgba(18,38,63,0.12);
}

/* Two-column content inside section */
.section-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

/* Headings */
section h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--primary);
  position: relative;
  z-index: 2;
}
section h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  margin: 10px auto 0;
  border-radius: 3px;
}

/* Paragraphs */
section p {
  font-size: clamp(0.98rem, 1.6vw, 1.06rem);
  color: #374151;
  text-align: left;
  margin-top: 10px;
}

/* Image box */
.img-wrap {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(31,59,115,0.06);
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(255,255,255,0.02));
}
.img-wrap img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center;
  transition: transform 450ms cubic-bezier(.2,.9,.3,1), filter 350ms ease;
  will-change: transform;
}
.img-wrap:hover img {
  transform: scale(1.04) rotate(-0.2deg);
  filter: saturate(1.05) contrast(1.02);
}

/* Text content box */
.content {
  padding: 6px 2px;
}

/* Alternating layout on larger screens: left-right zigzag */
@media (min-width: 880px) {
  .section-inner {
    grid-template-columns: 48% 52%;
    gap: 32px;
  }
  /* Default: image left, text right */
  section:nth-of-type(odd) .img-wrap { order: 1; }
  section:nth-of-type(odd) .content { order: 2; }

  /* Even sections: image right, text left */
  section:nth-of-type(even) .img-wrap { order: 2; }
  section:nth-of-type(even) .content { order: 1; }

  /* Make images slightly taller */
  .img-wrap img { height: 100%; object-fit: cover; display:block; }
  .img-wrap { min-height: 210px; }
}

/* Small screens: stack with image on top */
@media (max-width: 879px) {
  .section-inner { grid-template-columns: 1fr; }
  .img-wrap { width: 100%; }
  section { padding: 18px; }
}

/* Contact Info (centered card) */
#contact address {
  text-align: center;
  font-style: normal;
  margin-top: 12px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--muted);
}

/* CTA Button (floating style inside CTA section if present) */
.cta {
  text-align: center;
  padding-top: 6px;
}
.cta .btn {
  display: inline-block;
  background: linear-gradient(90deg, #4b6cb7, #182848);
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(29,53,110,0.18);
  transform: translateY(0);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.cta .btn:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 44px rgba(29,53,110,0.22);
}

/* Footer */
footer {
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-top: 40px;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(31,59,115,0.12);
}

/* Roadmap / Timeline component */
.roadmap {
  padding: 24px;
  background: linear-gradient(180deg, rgba(59,89,152,0.03), rgba(31,59,115,0.02));
  border: 1px dashed rgba(31,59,115,0.06);
}
.roadmap .roadmap-list {
  display: grid;
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}
.roadmap-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  background: rgba(255,255,255,0.8);
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(12,34,60,0.04);
  border-left: 4px solid var(--accent);
}
.roadmap-item .dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(31,59,115,0.12);
}
.roadmap-item h4 {
  margin-bottom: 6px;
  font-size: 1.05rem;
  color: #123057;
}
.roadmap-item p {
  color: #455569;
  font-size: 0.98rem;
}

/* Tiny decorative floating shapes (subtle) */
.decor {
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59,89,152,0.12), rgba(31,59,115,0.06));
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}
.decor.top-left { left: -22px; top: -18px; transform: rotate(-8deg); }
.decor.bottom-right { right: -18px; bottom: -18px; transform: rotate(12deg); }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes headerPop {
  from { opacity: 0; transform: translateY(-16px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}
