:root {
  --navy: #0a0f1e;
  --navy-mid: #1b355e;
  --cyan: #2dccd3;
  --teal: #4fd1c5;
  --ink: #081421;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
}

body {
  background: var(--navy);
  color: var(--text);
}

.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(45, 204, 211, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 50%, rgba(27, 53, 94, 0.5) 0%, transparent 70%),
    var(--navy);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand img {
  display: block;
  height: 2.5rem;
}

.brand-name {
  font-family: Genhead, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.project-card {
  background: linear-gradient(135deg, rgba(27, 53, 94, 0.6) 0%, rgba(10, 15, 30, 0.8) 100%);
  border: 1px solid rgba(45, 204, 211, 0.15);
  backdrop-filter: blur(10px);
  transition:
    transform 0.35s cubic-bezier(0.22, 0.68, 0, 1.2),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 0 40px rgba(45, 204, 211, 0.22), 0 20px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(45, 204, 211, 0.55);
}

.project-card:hover .card-logo-ring {
  box-shadow: 0 0 0 2px rgba(45, 204, 211, 0.28);
}

.card-logo-ring {
  transition: box-shadow 0.3s ease;
  padding: 2px;
  backdrop-filter: blur(2px);
}

.card-logo-image,
.modal-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  border-radius: 0.8rem;
  background: rgba(7, 15, 30, 0.58);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
}

.avatar-fallback {
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Genhead, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(27, 53, 94, 0.9), rgba(10, 15, 30, 0.95));
  border: 2px solid rgba(45, 204, 211, 0.3);
}

.recognition-banner {
  height: 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: #111827;
  color: var(--cyan);
  font-family: Genhead, sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  text-align: center;
}

.tag {
  background: rgba(45, 204, 211, 0.12);
  border: 1px solid rgba(45, 204, 211, 0.3);
  color: var(--cyan);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 204, 211, 0.6);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(45, 204, 211, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(45, 204, 211, 0);
  }
}

.play-btn {
  animation: pulse-ring 2.2s infinite;
}

#modal-backdrop {
  backdrop-filter: blur(8px);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-panel {
  animation: modal-in 0.35s cubic-bezier(0.22, 0.68, 0, 1.1) forwards;
}

.video-placeholder {
  background: linear-gradient(135deg, #0d1829 0%, var(--navy-mid) 100%);
  aspect-ratio: 16 / 9;
}

.video-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  aspect-ratio: 16 / 9;
}

.noise::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  border-radius: inherit;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--navy);
}

::-webkit-scrollbar-thumb {
  background: rgba(45, 204, 211, 0.35);
  border-radius: 3px;
}

.cyan-line {
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  height: 1px;
}

.number-badge {
  background: linear-gradient(135deg, rgba(45, 204, 211, 0.2), rgba(45, 204, 211, 0.05));
  border: 1px solid rgba(45, 204, 211, 0.2);
}

.form-card {
  background: linear-gradient(135deg, rgba(27, 53, 94, 0.6) 0%, rgba(10, 15, 30, 0.85) 100%);
  border: 1px solid rgba(45, 204, 211, 0.18);
  backdrop-filter: blur(10px);
}

.field-shell {
  height: 52px;
  overflow: hidden;
  border-radius: 0.75rem;
}

.form-input,
.form-textarea {
  box-sizing: border-box;
  border: 1px solid rgba(45, 204, 211, 0.2);
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease;
  font-size: 16px;
  font-family: inherit;
}

.form-input {
  height: 52px;
  line-height: 1.25rem;
}

.form-textarea {
  min-height: 152px;
  line-height: 1.25rem;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(45, 204, 211, 0.55);
}

.success-card {
  background: linear-gradient(135deg, rgba(27, 53, 94, 0.55) 0%, rgba(10, 15, 30, 0.8) 100%);
  border: 1px solid rgba(79, 209, 197, 0.35);
}

.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.not-found h1 {
  font-family: Genhead, sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 0 0 0.75rem;
}

.not-found p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.not-found a {
  color: var(--ink);
  background: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  border-radius: 0.75rem;
}
