/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden; /* Prevent scroll during loader */
}

/* Loader full-screen + fade-out */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 1s ease;
}

#loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#loader video {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  display: block;
}

/* Main content fades in */
#main-content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

#main-content.visible {
  opacity: 1;
  visibility: visible;
}

/* Layout (remove flex from body) */
body {
  background-color: #fff;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  padding: 40px 20px;
  line-height: 1.6;
  overflow-y: auto;
}

/* Typography */
h1 {
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

#main-content article {
  margin: 10px 0;
  text-align: center;
}

a {
  color: #000;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: #000;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: right;
}

a:hover {
  color: #555;
}

a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Responsive tweaks unchanged */
@media (min-width: 480px) {
  h1 { font-size: 2.2rem; }
  a { font-size: 1.1rem; }
}
@media (min-width: 768px) {
  body { padding: 60px 40px; }
  h1 { font-size: 2.5rem; }
  a { font-size: 1.2rem; }
}
@media (min-width: 1024px) {
  h1 { font-size: 3rem; }
  a { font-size: 1.3rem; }
  #loader video {
    max-width: 1800px;
    max-height: 90vh;
  }
}
