:root {
  /* Computated variable for the whole page's background */
  --current-background: var(--hero-background-color);

  /* Light theme gradient */
  --hero-gradient: linear-gradient(
  90deg, #10326f, #1a4ba3, #0c53aa, #1a4ba3, #10326f);
  --hero-background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
  --hero-background-color: #66a6ffaa;
  --background-color: #ECECEC;

  --popup-background: rgba(230, 230, 230, 0.5);

  --info-popup-background: rgba(26, 75, 163, 0.15);

  /* Text colors (light theme) */
  --text-color-primary: #1A1A1A;
  --text-color-secondary: #333333;
  --text-color-accent: #1a4ba3;

  --shadow:
    0 44px 18px rgba(0, 0, 0, 0.01),
    0 25px 15px rgba(0, 0, 0, 0.05),
    0 11px 11px rgba(0, 0, 0, 0.09),
    0 3px 6px rgba(0, 0, 0, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Computated variable for the whole page's background */
    --current-background: var(--hero-background-color);

    /* Dark theme gradient */
    --hero-gradient: linear-gradient(90deg, #89f7fe, #66a6ff);
    --hero-background: linear-gradient(135deg, #2B6674, #194082);
    --hero-background-color: #194082aa;
    --background-color: #1E1E1E;

    --popup-background: rgba(100, 100, 100, 0.5);

    --info-popup-background: rgba(26, 75, 163, 0.15);

     /* Text colors (dark theme) */
     --text-color-primary: #EAEAEA;
     --text-color-secondary: #CCCCCC;
     --text-color-accent: #4DA6FF;

     --shadow:
        0 20px 30px rgba(0, 0, 0, 0.35),
        0 5px 10px rgba(0, 0, 0, 0.25),
        0 0 6px rgba(255, 255, 255, 0.05);
  }
}

@view-transition {
  navigation: auto;
}


/* Ensure full height and prevent overflow */
html, body {
  height: auto;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;

  flex-direction: column;
  background-color: var(--current-background);

  transition: background-color 0.4s ease;
  will-change: background-color;

  scroll-behavior: smooth;

  font-size: 16px;
}

@media (max-width: 600px) {
  html, body {
    font-size: 14px;
  }
}
  
/* Body already has flex centering, keep that */
body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;

  -webkit-overflow-scrolling: touch;
}

.back-button-container {
  margin-left: 0;
  margin-right: auto;

  padding: 1.5rem;

  position: relative;
  z-index: 1;

  view-transition-name: top-element;
}

.back-button {
  height: fit-content;
  width: fit-content;

  padding: 0.75rem;
  border-radius: 6.25rem;

  background-color: var(--popup-background);

  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  text-decoration: none;
  color: var(--text-color-secondary);

  box-shadow: var(--shadow);
  transform: scale(1);
  transition: all 0.2s ease;

  z-index: 10;
}

.back-button:hover {
  color: white;
  transform: scale(1.1);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.1),
    0 10px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.back-button-icon {
  font-family: 'Material Symbols Outlined';
  font-size: 1.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;

  color: var(--text-color-secondary);
}

.back-button-label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.375rem;

  font-size: 1rem;
  font-weight: bold;
  color: var(--text-color);
}

.back-button-favicon {
  width: 1.5rem;
  height: 1.5rem;

  clip-path: circle();
}

.section {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;

  padding-bottom: 1.25rem;
}

.section-description {
  max-width: 25rem;
  margin: 0 auto;

  line-height: 1.6;
  text-align: left;

  background-color: var(--info-popup-background);
  padding: 1.25rem;
  border-radius: 1.5rem;

  box-shadow: 
    0 44px 18px rgba(0, 0, 0, 0.01),
    0 25px 15px rgba(0, 0, 0, 0.05),
    0 11px 11px rgba(0, 0, 0, 0.09),
    0 3px 6px rgba(0, 0, 0, 0.10);
}

.section-description > p {
  color: var(--text-color-accent);
}

.section-description-text {
  font-size: 1rem;
}

.tab-bar-container {
  position: relative;
  background-color: var(--popup-background);

  margin: 1.25rem auto 0;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;

  width: fit-content;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;

  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  box-shadow: 
    0 69px 19px rgba(0,0,0,0),
    0 44px 18px rgba(0, 0, 0, 0.01),
    0 25px 15px rgba(0, 0, 0, 0.05),
    0 11px 11px rgba(0, 0, 0, 0.09),
    0 3px 6px rgba(0, 0, 0, 0.10);
}

.tab-indicator {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 0;
  width: 0;
  border-radius: 9999px;
  background: var(--text-color-primary);
  opacity: 0.1;
  transition: all 0.3s ease;
  z-index: 0;
}

.tab-icon {
  font-family: 'Material Symbols Outlined';
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab {
  font-size: 1rem;
  font-weight: 500;

  margin: 0;
  padding: 0.5rem;
  border-radius: 9999px;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  cursor: pointer;
  z-index: 1;

  transition: transform 0.2s ease, color 0.2s ease;
}

.tab > p {
  margin: 0.25rem 0;
}

.tab:hover {
  transform: scale(1.05);
}

.tab-text {
  margin: 0;
  line-height: 1;
}

/* Content area */
.tab-content {
  display: none;
  padding: 1.25rem;
}

.tab-content.active-tab {
  display: block;
}

/* Keyframes */
@keyframes scaleIn {
  60% {
    transform: scale(1.1);
    opacity: 0.6;
    filter: blur(2px);
  }
  80% {
    transform: scale(0.95);
    opacity: 0.8;
    filter: blur(0);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes scaleInBlur {
  60% {
    transform: scale(1.1);
    opacity: 0.6;
    filter: blur(2px);
  }
  80% {
    transform: scale(0.95);
    opacity: 0.8;
    filter: blur(0);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes slideFadeIn {
  to {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
  }
}
  
  /* Responsive headings */
  h1 {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-color-primary);
  }

  h2 {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--text-color-primary);
  }

  h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-color-primary);
  }

  h4 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color-primary);
  }

  p {
    font-size: 1rem;
    color: var(--text-color-primary);
  }

  a {
    color: var(--text-color-accent);
  }

  .body-text {
    font-size: 1rem;
    color: var(--text-color-primary);
  }

  .body-small-text {
    font-size: 0.85rem;
    color: var(--text-color-primary);
  }

  .caption-text {
    font-size: 0.75rem;
    color: var(--text-color-primary);
  }

  label {
    font-size: 0.75rem;
    font-weight: medium;
    color: var(--text-color-primary);
  }

  .quote-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-color-primary);
  }

  .button-text {
    font-size: 0.8rem;
    font-weight: medium;
    color: var(--text-color-primary);
  }

.secondary {
  opacity: 0.7;
}

.section-title-bar {
  text-align: left;
  width: auto;
  padding: 0 1.75rem;

  font-display: flex;
  gap: 0;
}

.section-title-bar h1 {
  margin: 0;
}

.icon-large {
  font-family: 'Material Symbols Outlined';
  font-size: 4rem;
  line-height: 1;
  margin: 0;

  display: flex;

  justify-content: center;
}

.see-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-color-secondary);
  transition: color 0.3s ease, transform 0.2s ease;
  opacity: 0.75;
}

.see-all-link .link-icon {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

.see-all-link:hover {
  color: var(--accent-color-hover, #0056b3);
  transform: translateX(2px);
}

.see-all-link p {
  margin: 0;
  line-height: 1;
}

.navbar {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    translate: -50% 0;
    z-index: 100;

    display: flex;
    flex-direction: row;

    justify-content: space-between;
    align-items: center;
    gap: 2rem; 
    padding: 1.25rem;

    background-color: var(--popup-background);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: var(--shadow);

    opacity: 0;
    transform: translateY(-2.5rem);
    transition: opacity 0.35s ease, transform 0.35s ease;

    view-transition-name: top-element;
  }

  .navbar.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  }

  .nav-item {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 0.5rem;
    width: fit-content;
    white-space: nowrap;

    text-decoration: none;
    font-weight: 600;
    color: var(--text-color-secondary);

    font-size: 1rem;
    font-weight: 600;

    transition: all 0.2s ease;
  }

  .nav-item-enabled {
    color: var(--text-color-primary);
  }

  .nav-logo-image {
    height: 2rem;
    width: 2rem;
    border-radius: 50%;
    object-fit: cover;
  }

  .nav-item-desktop {
    display: flex;
  }

  .nav-item-mobile {
    display: none;
  }

  @media (max-width: 600px) {

    .nav-item-desktop {
      display: none;
    }

    .nav-item-mobile {
      display: flex;
    }

    .navbar {
      gap: 1.25rem;
    }

    .nav-item {
      gap: 0.25rem;
    }

    .nav-logo-image {
      height: 1.5rem;
      width: 1.5rem;
    }

    .nav-indicator {
      bottom: 0;
      height: 0.125rem;
    }
    
  }

  .nav-item:hover {
   scale: 1.1;
   transition: all 0.2s ease;
  }

  .nav-indicator {
  position: absolute;
  bottom: 0.625rem;
  height: 0.125rem;
  width: 0;
  background: var(--text-color-accent);
  opacity: 0.75;
  border-radius: 0.625rem;
  transition: all 0.3s ease;

  filter: brightness(2.5) saturate(1.5);
  box-shadow: 
    var(--text-color-accent) 0px 3px 10px,
    var(--text-color-primary) 0px 2px 4px;
}