/* FONTS */
@font-face {
  font-family: 'HackmanLight';
  src: url('./Fonts/HackmanLight.otf') format('opentype');
  font-weight: 300;
}
@font-face {
  font-family: 'HackmanRegular';
  src: url('./Fonts/HackmanRegular.otf') format('opentype');
  font-weight: 400;
}
@font-face {
  font-family: 'HackmanMedium';
  src: url('./Fonts/HackmanMedium.otf') format('opentype');
  font-weight: 500;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'HackmanRegular', sans-serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* HEADER (TOPBAR) */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  animation: fadeInUp 1s ease forwards;
}
.logo {
  font-family: 'HackmanMedium';
  font-size: 2.2rem;
  color: #ffffff;
}
nav {
  display: flex;
  gap: 1rem;
}
nav a {
  font-family: 'HackmanMedium';
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  color: #6a0fe0;
  background: rgba(106, 15, 224, 0.1);
  transition: 0.3s ease;
  text-decoration: none;
}
nav a:hover {
  background: #6a0fe0;
  color: white;
  box-shadow: 0 0 15px rgba(106, 15, 224, 0.4);
  transform: translateY(-2px);
}
nav a:focus,
nav a:active {
  outline: none;
  box-shadow: none;
  border: none;
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
  transition: opacity 1.2s ease-in-out;
  opacity: 1;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
.hero-bg img.fade-out {
  opacity: 0;
}
.hero-bg .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}
.hero-content {
  z-index: 1;
  max-width: 700px;
  width: 100%;
}
.hero-content h2 {
  font-size: 4rem;
  font-family: 'HackmanMedium';
}
.hero-content p {
  font-family: 'HackmanLight';
  font-size: 1.2rem;
  color: #ccc;
  margin-top: 1rem;
}
.hero-content h3 {
  font-family: 'HackmanMedium';
  margin-top: 3rem;
  font-size: 1.6rem;
}

/* BLACK FADE */
.black-fade {
  position: absolute;
  inset: 0;
  background: black;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1; /* Above image, below content */
}
.black-fade.active {
  opacity: 1;
}

/* BUTTONS */
.btn-hero {
  margin-top: 2rem;
  border: none;
  padding: 1.2rem 3.5rem;
  border-radius: 12px;
  background: #6a0fe0;
  color: white;
  font-family: 'HackmanMedium';
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.btn-hero:hover {
  background: #7a1fff;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(106, 15, 224, 0.4);
}

/* FOOTER (BOTTOMBAR) */
.bottombar {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  z-index: 1000;
}
.social-icons {
  display: flex;
  gap: 2rem;
}
.social-icons a {
  color: #fff;
  font-size: 1.8rem;
  transition: color 0.3s ease;
}
.social-icons a:hover {
  color: #6a0fe0;
}

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  animation: fadeInUp 1s forwards;
}
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FADE OUT ANIMATION */
.fade-out {
  animation: fadeOutDown 0.5s forwards;
}

@keyframes fadeOutDown {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}


/* TRANSITION SPINNER */
.spinning-icon {
  position: fixed;
  top: 50%;
  left: 50%;
  font-size: 3rem;
  color: #fff;
  transform: translate(-50%, -50%);
  animation: spin 2s linear;
  z-index: 2000;
}


@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Spinner fade-in */
.spinner-fade-spin {
  opacity: 0;
  animation: fadeIn 0.5s forwards, spin 1s linear infinite;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* RESPONSIVE */
@media (max-width: 720px) {
  .hero-content h2 {
    font-size: 2.2rem;
  }
}

