/* ===== Base Reset ===== */
* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

/* ===== App Background ===== */
body {
  font-family: 'Montserrat', sans-serif;
  background: radial-gradient(circle at 20% 20%, #18314f 0%, #090d18 50%, #03050a 100%);
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
}

#interactive-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ===== Content Transition States ===== */
.content {
  position: relative;
  z-index: 2;
  transform: scale(1);
  opacity: 1;
  transform-origin: center top;
  transition: transform 220ms ease, opacity 220ms ease, filter 220ms ease;
}

.content.is-shrinking {
  transform: scale(0.9);
  opacity: 0.05;
  filter: blur(3px);
}

.content.is-growing {
  animation: content-grow 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Content Transition Keyframes ===== */
@keyframes content-grow {
  from {
    transform: scale(0.9);
    opacity: 0.05;
    filter: blur(3px);
  }
  to {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

/* ===== Typography ===== */
.title {
  text-align: center;
  color: white;
}

h1 {
  font-weight: 900;
}

p {
  font-weight: 400;
}

/* ===== Navigation ===== */
nav:hover {
  transform: translate(-50%, -10%) scale(1.5);
  transition: all 0.3s;
}

nav {
  overflow: hidden;
  backdrop-filter: blur(10px);
  background-color: #9f9f9f32;
  position: fixed;
  left: 50%;
  padding: 20px;
  border-radius: 30px;
  z-index: 10;
  transform: translate(-50%, -30%) scale(0.9);
  transition: all 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav a {
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  transition: all 0.3s;
  transform: scale(1);
  border-radius: 20px;
}

nav a:hover {
  transform: scale(1.5);
  transition: all 0.3s;
  background: #ddd;
  color: black;
  margin-left: 30px;
  margin-right: 30px;
}

/* ===== Content Surface ===== */
.content {
  background-color: #1115196f;
  backdrop-filter: blur(5px);
  margin-left: 20px;
  margin-right: 20px;
  border-radius: 20px;
  padding: 20px;
}
