/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Loader full-screen + fade-out */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  background: #000;
  z-index: 9999;
  overflow: hidden;
  opacity: 1;
  transition: opacity 1s ease;
  pointer-events: auto;
  display: block;
}

#loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

#loader video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-width: 100%;
  min-height: 100%;
  
}

/* Main content starts invisible and crossfades in */
#main-content {
  opacity: 0;
  transition: opacity 1s ease;
  display: none;
}

#main-content.visible {
  opacity: 1;
  display: block;
}

/* Layout */
body {
  background-color: #fff;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  min-height: 100vh;
  line-height: 1.6;
}

/* Typography */
h1 {
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

/* Articles (spacing for nav links) */
#main-content article {
  margin: 10px 0;
  text-align: center;
}

/* Links as clean nav */
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 design (mobile first) ----- */

/* Small devices */
@media (min-width: 480px) {
  .loader {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  h1 {
    font-size: 2.2rem;
  }

  a {
    font-size: 1.1rem;
  }
}

/* Medium devices (tablets) */
@media (min-width: 768px) {

  body {
    padding: 60px 40px;
  }

  h1 {
    font-size: 2.5rem;
  }

  a {
    font-size: 1.2rem;
  }
}

/* Large devices (desktop) */
@media (min-width: 1024px) {
  h1 {
    font-size: 3rem;
  }

  a {
    font-size: 1.3rem;
  }
}
