:root {
  --brand-blue: #445faa;
  --brand-cyan: #12a9de;
  --ink-900: #182038;
  --ink-700: #313b57;
  --ink-500: #5a647f;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --line: rgba(68, 95, 170, 0.24);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --shadow-soft: 0 16px 42px rgba(27, 44, 91, 0.12);
  --shadow-strong: 0 26px 52px rgba(25, 39, 83, 0.18);
  --bg-image: linear-gradient(155deg, #425ea8 0%, #5c78c6 48%, #7a95d4 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--ink-900);
  background: #e5e9f1;
  line-height: 1.58;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  transition: background-image 0.9s ease, filter 0.9s ease;
  filter: saturate(0.95);
}

.bg-layer::before,
.bg-layer::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.bg-layer::before {
  inset: 0;
  background:
    radial-gradient(1100px 620px at 15% 8%, rgba(255, 255, 255, 0.3), transparent 56%),
    radial-gradient(900px 500px at 82% 90%, rgba(18, 169, 222, 0.22), transparent 50%);
}

.bg-layer::after {
  inset: 0;
  background: linear-gradient(180deg, rgba(230, 235, 243, 0.45), rgba(230, 235, 243, 0.86));
}

body.theme-hero {
  --bg-image:
    linear-gradient(160deg, rgba(63, 88, 159, 0.9), rgba(76, 108, 189, 0.82)),
    url("https://images.unsplash.com/photo-1581092919535-7146ff1a5901?auto=format&fit=crop&w=1800&q=80");
}

body.theme-services {
  --bg-image:
    linear-gradient(145deg, rgba(238, 242, 248, 0.94), rgba(223, 231, 241, 0.93)),
    url("https://images.unsplash.com/photo-1581092795360-fd1ca04f0952?auto=format&fit=crop&w=1800&q=80");
}

body.theme-courses {
  --bg-image:
    linear-gradient(155deg, rgba(62, 93, 176, 0.9), rgba(49, 124, 181, 0.85)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1800&q=80");
}

body.theme-about {
  --bg-image:
    linear-gradient(155deg, rgba(234, 240, 249, 0.94), rgba(223, 231, 245, 0.94)),
    url("https://images.unsplash.com/photo-1542744173-8e7e53415bb0?auto=format&fit=crop&w=1800&q=80");
}

body.theme-certificate {
  --bg-image:
    linear-gradient(160deg, rgba(241, 245, 250, 0.95), rgba(226, 233, 243, 0.95)),
    url("https://images.unsplash.com/photo-1573497491208-6b1acb260507?auto=format&fit=crop&w=1800&q=80");
}

body.theme-contact {
  --bg-image:
    linear-gradient(145deg, rgba(56, 85, 163, 0.9), rgba(21, 165, 218, 0.85)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1800&q=80");
}

.container {
  width: min(1160px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  border-bottom: 1px solid rgba(68, 95, 170, 0.16);
  backdrop-filter: blur(14px);
  background: rgba(236, 240, 247, 0.68);
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  color: var(--ink-900);
}

.brand-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  border-radius: 14px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: linear-gradient(155deg, var(--brand-blue), #5f7ed0 58%, var(--brand-cyan));
  box-shadow: 0 14px 28px rgba(52, 76, 147, 0.36);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.14rem;
}

.brand-text small {
  color: var(--ink-500);
  font-size: 0.71rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.92rem;
}

.nav a:hover {
  color: #284b99;
}

.section {
  padding: 6.2rem 0;
}

.hero {
  min-height: calc(100svh - 78px);
  display: grid;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1.1rem;
  align-items: stretch;
}

.hero-content,
.hero-panel,
.card,
.course,
.about-card,
.timeline,
.certificate-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  background: var(--surface);
}

.hero-content {
  padding: clamp(1.4rem, 3.4vw, 2.5rem);
}

.hero-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.9), rgba(240, 245, 255, 0.82));
}

.hero-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
}

.hero-panel-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

.hero-panel-head span {
  color: #2d559f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.feature-list li {
  border-radius: 14px;
  border: 1px solid rgba(68, 95, 170, 0.16);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.9rem 0.95rem;
}

.feature-list h3 {
  margin: 0;
  font-size: 0.98rem;
}

.feature-list p {
  margin: 0.45rem 0 0;
  color: var(--ink-500);
  font-size: 0.9rem;
}

.eyebrow {
  margin: 0 0 0.72rem;
  color: #2f57aa;
  letter-spacing: 0.13em;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
}

h1,
.section-title,
h3 {
  margin: 0;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.45rem);
  max-width: 16ch;
  letter-spacing: -0.02em;
}

.section-title {
  margin-top: 0.2rem;
  max-width: 24ch;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  letter-spacing: -0.015em;
}

.lead {
  margin: 1rem 0 0;
  max-width: 58ch;
  color: var(--ink-700);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.82rem;
  margin-top: 1.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.22rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(145deg, #4a66b7, #2f8fcb 72%, #20b3dd);
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(49, 96, 171, 0.34);
}

.btn-sm {
  padding: 0.52rem 0.94rem;
  font-size: 0.86rem;
}

.btn-ghost {
  color: #28448d;
  border-color: rgba(40, 68, 135, 0.3);
  background: rgba(255, 255, 255, 0.66);
}

.hero-metrics {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
}

.hero-metrics article {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(68, 95, 170, 0.16);
  padding: 0.78rem 0.85rem;
}

.hero-metrics strong {
  display: block;
  font-size: 1.22rem;
  line-height: 1.1;
  color: #233974;
}

.hero-metrics span {
  color: var(--ink-500);
  font-size: 0.76rem;
}

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.course,
.about-card,
.timeline,
.contact-card {
  padding: 1.2rem;
}

.card h3,
.course h3 {
  color: #213464;
}

.card p,
.course p,
.about-card p,
.timeline p {
  margin: 0.52rem 0 0;
  color: var(--ink-500);
}

.course header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.7rem;
}

.course header span {
  color: #36549f;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.timeline {
  display: grid;
  gap: 0.75rem;
}

.timeline div {
  border-radius: 16px;
  border: 1px solid rgba(68, 95, 170, 0.17);
  background: rgba(255, 255, 255, 0.75);
  padding: 0.85rem;
}

.timeline span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #4f6ec2, #2c87c3);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.certificate-wrap {
  display: grid;
  gap: 1.2rem;
}

.certificate-card {
  overflow: hidden;
  background: var(--surface-strong);
  box-shadow: var(--shadow-strong);
}

.cert-top {
  padding: 1.15rem;
  background: linear-gradient(180deg, #445faa 0%, #4a68b8 76%, #13abdf 100%);
  text-align: center;
}

.cert-brand {
  color: #fff;
  font-size: clamp(1.2rem, 3.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.cert-body {
  text-align: center;
  padding: 2.35rem 1.2rem;
}

.cert-sub {
  margin: 0;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.73rem;
  color: #4f5668;
}

.cert-body h3 {
  margin: 1rem 0;
  font-size: clamp(1.45rem, 3.7vw, 2.4rem);
}

.cert-course {
  margin: 0;
  color: #2f3a5e;
  font-size: 1.08rem;
  font-weight: 700;
}

.cert-note {
  margin: 0.95rem auto 0;
  max-width: 56ch;
  color: #55607a;
}

.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.12fr 0.88fr;
}

.footer {
  border-top: 1px solid rgba(68, 95, 170, 0.19);
  background: rgba(240, 244, 250, 0.77);
}

.footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
  color: #3d4a6b;
  font-size: 0.87rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav a:not(.btn) {
    display: none;
  }

  .hero-grid,
  .three-col,
  .two-col,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4.7rem 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1160px, calc(100% - 1.2rem));
  }

  .topbar-inner {
    min-height: 68px;
  }

  .hero {
    min-height: calc(100svh - 68px);
  }
}
