:root {
  --brand-blue: #173b80;
  --brand-indigo: #1e3c72;
  --brand-gold: #f5a623;
  --ink-700: #2a2a2a;
  --ink-500: #555;
  --panel: #ffffff;
  --panel-soft: #f6faff;
}

/* ====== Global Styles ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--ink-700);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(245, 166, 35, 0.12), transparent 60%),
    radial-gradient(800px 400px at 100% 0%, rgba(23, 59, 128, 0.10), transparent 60%),
    linear-gradient(180deg, #f8faff 0%, #f0f6ff 60%, #e8f2ff 100%) fixed;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  border-radius: 12px;
}

section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: auto;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

section::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(closest-side, rgba(23, 59, 128, 0.08), transparent 70%);
  filter: blur(2px);
  border-radius: 50%;
  pointer-events: none;
}

section::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(closest-side, rgba(245, 166, 35, 0.10), transparent 70%);
  filter: blur(1px);
  border-radius: 50%;
  pointer-events: none;
}

h1,
h2,
h3 {
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: 0.2px;
}

h2 {
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 4px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--brand-gold), #f6b24f 60%, rgba(245, 166, 35, 0.2));
  box-shadow: 0 4px 10px rgba(245, 166, 35, 0.35);
}

p {
  margin-bottom: 15px;
  color: var(--ink-500);
}

/* ====== Navbar & Sidebar ====== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(130%) blur(6px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  box-shadow: 0 6px 20px rgba(23, 59, 128, 0.08);
}

.navbar img {
  height: 48px;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
}

.navbar a {
  font-weight: 500;
  color: #1e3c72;
  transition: color 0.2s ease, transform 0.2s ease;
}

.navbar a:hover {
  color: #f5a623;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(23, 59, 128, 0.15);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hamburger:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.hamburger svg {
  width: 22px;
  height: 22px;
  color: #173b80;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 998;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 290px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sidebar .close-btn {
  background: #f3f6ff;
  border: 1px solid rgba(23, 59, 128, 0.15);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sidebar nav a {
  display: block;
  padding: 12px 12px;
  border-radius: 10px;
  color: #173b80;
  font-weight: 500;
}

.sidebar nav a:hover {
  background: #f7f9ff;
  color: #f5a623;
}

.sidebar-open .sidebar {
  transform: translateX(0%);
}

.sidebar-open .sidebar-overlay {
  opacity: 1;
  visibility: visible;
}

/* ====== Hero Section ====== */
.hero {
  background: radial-gradient(1000px 400px at 10% 10%, rgba(245, 166, 35, 0.08), transparent 60%), radial-gradient(800px 400px at 90% 0%, rgba(23, 59, 128, 0.08), transparent 60%), linear-gradient(rgba(30, 60, 114, 0.75), rgba(42, 82, 152, 0.75)), url("https://images.unsplash.com/photo-1616401787750-8a9e5078e1bc?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 160px 20px 180px;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #fff;
}

.hero p {
  font-size: 1.3rem;
}

.btn-primary {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 34px;
  background: linear-gradient(45deg, #f5a623, #f0932b);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(245, 166, 35, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform, box-shadow;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 30px rgba(245, 166, 35, 0.45);
}

/* ====== Grid Sections ====== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(23, 59, 128, 0.06);
  will-change: transform, box-shadow;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
}

/* ====== Carousel Gallery ====== */
.carousel {
  position: relative;
  width: 100%;
  margin-top: 24px;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 24px;
  transition: transform 0.45s ease;
  padding: 10px 6px;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffffff, #f6faff);
  border: 1px solid rgba(23, 59, 128, 0.06);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 10px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
  opacity: 0.9;
  will-change: transform, box-shadow, opacity;
}

.carousel-slide.is-center {
  transform: scale(1.06);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.14);
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 380px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
  cursor: zoom-in;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(23, 59, 128, 0.15);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  z-index: 5;
}

.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.03);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.carousel-prev {
  left: -6px;
}

.carousel-next {
  right: -6px;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 86vh;
}

.lightbox-content img {
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 10px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 0;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.lightbox-close {
  top: -54px;
  right: 0;
  transform: none;
}

.lightbox-prev {
  left: -54px;
}

.lightbox-next {
  right: -54px;
}

/* ====== Testimonials ====== */
.testimonial {
  background: #fdf6e3;
  padding: 20px;
  border-left: 5px solid #f5a623;
  border-radius: 8px;
  font-style: italic;
}

.testimonial span {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  font-style: normal;
  color: #1e3c72;
}

/* ====== Contact ====== */
.contact {
  text-align: center;
}

.contact a {
  display: inline-block;
  margin: 10px;
  color: #1e3c72;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact a:hover {
  color: #f5a623;
}

/* ====== Footer ====== */
footer {
  text-align: center;
  background: linear-gradient(90deg, #173b80, #1e3c72);
  color: #eee;
  padding: 28px;
  font-size: 0.95rem;
}

/* Feature list panel */
.feature-list {
  list-style: none;
  margin-top: 18px;
  padding: 22px 24px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%);
  border: 1px solid rgba(23, 59, 128, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(23, 59, 128, 0.08);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px 28px;
}

.feature-list li {
  position: relative;
  padding-left: 34px;
  color: var(--ink-700);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-indigo));
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(23, 59, 128, 0.25);
  line-height: 1;
}

/* Floating CTA and Back To Top */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 12px;
  z-index: 1100;
}

.circle-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(23, 59, 128, 0.15);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform, box-shadow;
}

.circle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

#backToTop {
  display: none;
}

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .navbar ul {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  section {
    padding: 80px 16px;
  }

  .carousel-slide {
    flex-basis: 50%;
    max-width: 50%;
  }

  .carousel-slide img {
    height: 340px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .carousel-slide {
    flex-basis: 85%;
    max-width: 85%;
  }

  .carousel-slide img {
    height: 300px;
  }

  .carousel-prev {
    left: 4px;
  }

  .carousel-next {
    right: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }

  .card,
  .carousel-slide,
  .btn-primary,
  .circle-btn {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transform: none !important;
  }
}