body, html {
  margin: 0;
  padding: 0;
  font-family: 'Orbitron', sans-serif;
  background: rgba(0, 0, 0, 0);
  color: #e0e0e0;
}
/* Intro Screen */
.intro {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
  transition: opacity 1s ease, visibility 1s ease;
}

.intro-text {
  font-size: clamp(2rem, 6vw, 5rem);
  color: #00ff99;
  font-family: 'Audiowide', sans-serif;
  text-shadow: 0 0 15px rgba(0,255,100,0.7);
  margin: 0;
  animation: typing 2s steps(20) 1;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #00ff99;
}

.intro-sub {
  font-size: clamp(1rem, 3vw, 2rem);
  color: #00ffc8;
  margin-top: 1rem;
  opacity: 0;
  animation: fadeIn 2s ease forwards 2s;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* Hide Intro after fade */
.intro.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Main Layout hidden initially */
.hidden-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}
.hidden-content.show {
  opacity: 1;
  transform: translateY(0);
}
/* Matrix Rain */
#matrix {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 97%;
  padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,255,100,0.3);
  z-index: 10;
  flex-wrap: wrap;
}

.navbar a {
  color: #00ffc8;
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.3s;
}
.navbar a:hover { color: white; }

.logo {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-family: 'Audiowide', sans-serif;
  color: #00ffc8;
  text-shadow: 0 0 10px rgba(0,255,200,0.7);
  margin-bottom: 0.5rem;
}

/* Layout Grid */
.layout {
  display: grid;
  grid-template-areas:
    "section aside"
    "article aside"
    "footer footer";
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  padding: 7rem 2rem 2rem;
}

/* Areas */
section { grid-area: section; }
article { grid-area: article; }
aside { grid-area: aside; }
footer { grid-area: footer; }

/* Aside Glassmorphism */
aside {
  background: rgba(0,255,100,0.08);
  border: 1px solid rgba(0,255,100,0.3);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  text-align: justify;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
}

/* Cards */
.cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.card {
  flex: 1;
  min-width: 200px;
  background: rgba(0,255,200,0.08);
  border: 1px solid rgba(0,255,200,0.3);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(8px);
  transition: transform 0.3s;
}
.card:hover { transform: translateY(-6px); }

/* Poster + Terminal */
.poster-container {
  margin-top: 1.5rem;
  text-align: center;
}
.reveal-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  background: #00ffc8;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s;
}
.reveal-btn:hover { transform: scale(1.1); }

.terminal {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0,0,0,0.85);
  border: 1px solid #00ff99;
  border-radius: 8px;
  color: #00ff99;
  font-family: monospace;
  text-align: left;
  height: 200px;
  overflow-y: auto;
  white-space: pre-line;
  box-shadow: 0 0 15px rgba(0,255,100,0.3);
  font-size: clamp(0.7rem, 1vw, 0.9rem);
}
.hidden { display: none; }

.poster {
  margin-top: 1rem;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1s ease, transform 1s ease;
}
.poster img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,255,200,0.3);
}
.poster.show {
  opacity: 1;
  transform: scale(1);
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: rgba(0,0,0,0.7);
  border-top: 1px solid rgba(0,255,100,0.3);
}

.register-btn {
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background: #00ffc8;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

/* 📱 Responsive */
@media (max-width: 992px) {
  .layout {
    grid-template-areas:
      "section"
      "aside"
      "article"
      "footer";
    grid-template-columns: 1fr;
  }
  aside {
    order: 2;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    text-align: center;
  }
  .navbar a {
    margin: 0.5rem;
  }
  .cards {
    flex-direction: column;
  }
  .terminal {
    height: 150px;
  }
}