:root {
  --primary: #0b5fff;
  --secondary: #00d4ff;
  --dark: #08111f;
  --dark-rgb: 8, 17, 31;
  --white: #ffffff;
  --muted: #aab7ca;
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.07);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 8%, rgba(0, 212, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 90% 0%, rgba(11, 95, 255, 0.2), transparent 34rem),
    var(--dark);
  color: var(--white);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.portal-nav {
  background: rgba(var(--dark-rgb), 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-weight: 800;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: var(--white);
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(0, 212, 255, 0.48);
  border-radius: 0.45rem;
  background: linear-gradient(145deg, rgba(11, 95, 255, 0.95), rgba(0, 212, 255, 0.34));
  box-shadow: 0 0 26px rgba(0, 212, 255, 0.28);
  font-size: 0.78rem;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(0, 212, 255, 0.35);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--white);
}

.nav-contact {
  color: var(--secondary);
}

.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 17, 31, 0.28), rgba(8, 17, 31, 0.96)),
    radial-gradient(circle at 45% 36%, rgba(11, 95, 255, 0.24), transparent 28rem);
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-glow {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  filter: blur(62px);
  opacity: 0.36;
  pointer-events: none;
}

.hero-glow-one {
  top: 16%;
  right: 12%;
  background: var(--primary);
}

.hero-glow-two {
  bottom: 12%;
  left: 7%;
  background: var(--secondary);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.hero-section h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(3.8rem, 11vw, 8.5rem);
  font-weight: 800;
  line-height: 0.95;
}

.hero-section h2 {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-weight: 700;
}

.hero-copy {
  max-width: 48rem;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  gap: 0.55rem;
  border-radius: 0.45rem;
  padding: 0.78rem 1rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.portal-btn:hover,
.portal-btn:focus {
  transform: translateY(-2px);
}

.btn-primary {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), #008cff);
  box-shadow: 0 0 34px rgba(11, 95, 255, 0.34);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 42px rgba(0, 212, 255, 0.34);
}

.portal-section {
  position: relative;
  padding: 6rem 0;
}

.section-heading {
  max-width: 52rem;
  margin-bottom: 2.25rem;
}

.section-heading h2,
.data-room-band h2,
.contact-panel h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
}

.section-heading p:not(.eyebrow),
.data-room-band p,
.contact-panel p {
  color: var(--muted);
  font-size: 1rem;
}

.summary-grid,
.chapter-grid {
  display: grid;
  gap: 1rem;
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chapter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-panel,
.chapter-card,
.data-room-band,
.contact-panel {
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.info-panel,
.chapter-card {
  min-height: 16rem;
  border-radius: 0.5rem;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.info-panel {
  padding: 1.35rem;
}

.info-panel:hover,
.chapter-card:hover {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 30px 85px rgba(0, 0, 0, 0.44), 0 0 34px rgba(0, 212, 255, 0.14);
  transform: translateY(-7px);
}

.info-panel i,
.chapter-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(0, 212, 255, 0.36);
  border-radius: 0.45rem;
  background: rgba(11, 95, 255, 0.16);
  color: var(--secondary);
  box-shadow: 0 0 26px rgba(0, 212, 255, 0.16);
  font-size: 1.2rem;
}

.info-panel h3,
.chapter-card h3 {
  margin: 1.25rem 0 0.65rem;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
}

.info-panel p,
.chapter-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.chapter-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chapter-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.chapter-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(8, 17, 31, 0), rgba(8, 17, 31, 0.78));
}

.chapter-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 360ms ease;
}

.chapter-card:hover .chapter-media img {
  transform: scale(1.06);
}

.chapter-media .chapter-icon {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
}

.chapter-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.chapter-card .portal-btn {
  width: 100%;
  margin-top: auto;
}

.chapters-section,
.engineering-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 212, 255, 0.035));
}

.data-room-band,
.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-radius: 0.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.band-icon {
  color: rgba(0, 212, 255, 0.45);
  font-size: clamp(4rem, 12vw, 9rem);
}

.role {
  margin: 0.75rem 0 0;
  font-weight: 700;
}

.contact-links {
  display: grid;
  gap: 0.8rem;
  min-width: min(100%, 22rem);
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.15rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.contact-links a:hover,
.contact-links a:focus {
  border-color: rgba(0, 212, 255, 0.56);
  background: rgba(0, 212, 255, 0.08);
  transform: translateY(-2px);
}

.contact-links i {
  color: var(--secondary);
}

.portal-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  background: rgba(0, 0, 0, 0.18);
}

.portal-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(1.15rem);
  animation: fadeIn 760ms ease forwards;
}

.delay-1 {
  animation-delay: 120ms;
}

.delay-2 {
  animation-delay: 240ms;
}

.delay-3 {
  animation-delay: 360ms;
}

.delay-4 {
  animation-delay: 480ms;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1199px) {
  .chapter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .portal-nav {
    background: rgba(var(--dark-rgb), 0.94);
  }

  .navbar-collapse {
    padding: 0.9rem 0;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .data-room-band,
  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .hero-content {
    padding-bottom: 4rem;
  }

  .portal-section {
    padding: 4.5rem 0;
  }

  .chapter-grid {
    grid-template-columns: 1fr;
  }

  .portal-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero-section h1 {
    font-size: 3.3rem;
  }

  .hero-actions {
    width: 100%;
  }

  .contact-links a {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}
