/* GLOBAL */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #fff;
  color: #111;
}

/* TOPBAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #c8102e;
  color: white;
}

.topbar a {
  color: white;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 600;
}

/* HERO */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;

  /* Parallax + gradient + 4K SVG */
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.75)),
    url("/dannebrog-viking.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  animation: fadeIn 1.5s ease-out;
}

/* Grain / film-noise overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="f"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2"/></filter><rect width="100" height="100" filter="url(#f)" /></svg>');
  opacity: 0.08;
}

/* Runic ornament overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/runic-pattern.svg') repeat;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 900px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 6px 20px rgba(0,0,0,0.6);
  display: inline-block;
  animation: sway 3s ease-in-out infinite alternate;
}

.hero-content p {
  font-size: 1.4rem;
  margin-top: 1rem;
  opacity: 0.9;
}

/* CONTENT */
.content {
  max-width: 900px;
  margin: auto;
  padding: 3rem 2rem;
}

.highlight {
  background: #f4f4f4;
  padding: 1rem;
  border-left: 6px solid #c8102e;
}

/* FORMS */
form input,
form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem;
}

button {
  background: #c8102e;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-weight: bold;
}

/* FOOTER */
.footer {
  background: #111;
  color: #aaa;
  text-align: center;
  padding: 1rem;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes sway {
  0% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
  100% { transform: rotate(-1deg); }
}

/* MOBILE FALLBACK FOR PARALLAX */
@media (max-width: 768px) {
  .hero { background-attachment: scroll; }
}