* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #000;
}

#shader-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

#shader-container canvas {
  display: block;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  color: #fff;
  pointer-events: none;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 3rem;
  pointer-events: auto;
}

.links {
  display: flex;
  gap: 2rem;
}

.links a,
.links .links-trigger {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.links a:hover,
.links .links-trigger:hover {
  opacity: 1;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  gap: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.1;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
  max-width: 900px;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.85;
  max-width: 500px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  font-size: 0.8rem;
  opacity: 0.7;
  pointer-events: auto;
}

.socials {
  display: flex;
  gap: 1.5rem;
}

.socials a {
  color: #fff;
  text-decoration: none;
}

.socials a:hover {
  opacity: 0.7;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  color: #fff;
  text-align: left;
}

.modal h2 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 1.5rem;
}

.modal-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-links a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.modal-links a:hover {
  opacity: 0.7;
}

.modal-links a span:first-child {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-link-url {
  font-size: 0.85rem;
  opacity: 0.5;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
}

.modal-close:hover {
  opacity: 1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
}

.form-submit {
  margin-top: 0.25rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.form-submit:hover {
  background: #fff;
  color: #000;
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  font-size: 0.85rem;
  opacity: 0.8;
  min-height: 1.2em;
  margin: 0;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #f87171;
}

@media (max-width: 640px) {
  .nav,
  .footer {
    padding: 1.5rem;
  }

  .links,
  .socials {
    gap: 1rem;
    font-size: 0.8rem;
  }
}
