* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Space Mono", monospace;
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: white;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 2px);
  background-size: 28px 28px;
  z-index: -1;
}

header {
  padding: 15px 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: fixed;
  width: 100%;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  height: 70px;
}

header h1 {
  font-size: 28px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: white;
  margin-left: 25px;
  font-size: 13px;
  opacity: 0.7;
  transition: 0.3s;
  line-height: 1;
}

section {
  padding: 30px 70px;
  min-height: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero {
  padding-top: 120px;
  padding-bottom: 40px;
  min-height: 70vh;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 60px;
  align-items: center;
}

.hero h2 {
  font-size: 52px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero p {
  margin-top: 20px;
  font-size: 16px;
  opacity: 0.65;
  max-width: 600px;
}

.btn {
  display: inline-block;
  margin-top: 35px;
  padding: 12px 25px;
  border: 1px solid white;
  border-radius: 30px;
  text-decoration: none;
  color: white;
  font-size: 14px;
  transition: 0.3s;
}

.btn:hover {
  background: white;
  color: black;
}

h3 {
  font-size: 20px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.8;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 18px;
  margin-bottom: 20px;
  transition: 0.35s;
}

.card:hover {
  border-color: white;
  transform: translateY(-6px);
  cursor: pointer;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
}

.contact-btn {
  text-align: center;
  padding: 18px 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  text-decoration: none;
  color: white;
  font-size: 14px;
  letter-spacing: 1px;
  transition: 0.3s;
  width: 100%;
}

.contact-btn:hover {
  background: white;
  color: black;
}

.maze-box {
  text-align: center;
  transform: translateX(-80px);
}

#maze {
  width: 300px;
  height: 300px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

#ball {
  width: 14px;
  height: 14px;
  background: #ff0037;
  border-radius: 50%;
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 100;
  box-shadow: 0 0 10px rgba(255, 0, 55, 0.5);
}

#goal {
  width: 22px;
  height: 22px;
  border: 2px dashed white;
  position: absolute;
  bottom: 18px;
  right: 18px;
  border-radius: 4px;
  z-index: 50;
}

.wall {
  position: absolute;
  background: white;
  border-radius: 2px;
  z-index: 10;
}

.w1 { top: 60px; left: 0; width: 220px; height: 4px; }
.w2 { top: 60px; left: 260px; width: 40px; height: 4px; }
.w3 { top: 60px; left: 260px; width: 4px; height: 80px; }
.w4 { top: 120px; left: 60px; width: 4px; height: 120px; }
.w5 { top: 120px; left: 60px; width: 140px; height: 4px; }
.w6 { top: 180px; left: 120px; width: 180px; height: 4px; }
.w7 { top: 240px; left: 0; width: 200px; height: 4px; }
.w8 { top: 0; left: 140px; width: 4px; height: 30px; }

#win-screen {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: none;
}

#win-screen h2 {
  font-size: 80px;
  font-weight: 700;
  letter-spacing: 10px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  animation: winScale 0.5s ease-out;
}

.confetti {
  position: absolute;
  top: -20px;
  z-index: 10001;
  pointer-events: none;
  border-radius: 2px;
  opacity: 0;
}

@keyframes winScale {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

@keyframes wobble {
  0%, 100% { margin-left: 0; }
  50% { margin-left: 50px; }
}

footer {
  padding: 40px;
  text-align: center;
  font-size: 13px;
  opacity: 0.5;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media(max-width: 900px) {
  header { padding: 20px; flex-direction: column; gap: 15px; }
  section { padding: 70px 20px; }
  .hero-layout { grid-template-columns: 1fr 300px; gap: 20px; align-items: center; }
  .maze-box { text-align: center; transform: translateX(-40px); }
  .contact-row { grid-template-columns: 1fr; }

}
