:root {
  --primary-bg: linear-gradient(135deg, #7e3c93 0%, #3eb9b5 100%);
  --header-footer: #875fa4;   /* Same color for header & footer */
  --highlight: #00ffd0;
  --section-bg: rgba(44, 62, 80, 0.86);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: var(--primary-bg);
  font-family: 'Segoe UI', Arial, sans-serif;
  position: relative;
  overflow: hidden; /* Prevent scroll */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* HEADER */
header {
  background: var(--header-footer);
  height: 66px;
  width: 100vw;
  box-shadow: 0 2px 6px rgba(135, 95, 164, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}
nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
  transition: color 0.2s;
}
nav ul li a:hover {
  color: var(--highlight);
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: calc(100vh - 132px); /* header+footer height */
}

.center-content {
  z-index: 2;
  background: rgba(76, 76, 132, 0.58);
  border-radius: 1.2rem;
  padding: 2.5rem 1.6rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.23);
  max-width: 520px;     /* current max width */
  width: 95vw;
  margin: auto;
}

h1 {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #f5f5fa;
  white-space: nowrap;  /* prevents breaking to next line */
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.1;
}
.highlight {
  color: var(--highlight);
}
h2 {
  color: #fff;
  font-size: 1.46rem;
  margin-bottom: 2rem;
  font-weight: 450;
}

.social-icons {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
}
.social-icons a {
  color: #fff;
  font-size: 2.2rem;
  transition: color 0.2s, transform 0.22s;
  text-decoration: none;
  background: transparent;
  border-radius: 50%;
  padding: 0.18em;
}
.social-icons a:hover {
  color: var(--highlight);
  transform: scale(1.15) translateY(-3px);
}

/* CANVAS BG EFFECT */
#bg-effect {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.38;
}

/* FOOTER */
footer {
  background: var(--header-footer);
  color: #fff;
  font-size: 1rem;
  text-align: center;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(135, 95, 164, 0.4);
}

/* RESPONSIVE */
@media (max-width: 420px) {
  .center-content {
    padding: 1.2rem 0.4rem;
    max-width: 99vw;
  }
  h1 {
    font-size: 1.6rem;
    white-space: normal;
  }
  h2 {
    font-size: 1.01rem;
  }
  nav ul {
    gap: 1.1rem;
  }
  .social-icons a {
    font-size: 1.32rem;
  }
  header, footer {
    height: 48px;
    font-size: 0.95rem;
  }
}
