/* Wild Westbrooks — styles */

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

body {
  font-family: 'Courier New', monospace;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: #1a1a1a;
}

.container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  position: relative;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.container.visible {
  opacity: 1;
}

/* Panels */
.panel {
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
}

.panel-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.panel-content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 2rem 4rem;
  margin-top: 5.5rem;
}

.panel-shadow {
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 2;
}

.panel.scrolling .panel-shadow {
  opacity: 1;
}

.panel-1 .panel-background,
.panel-1 .panel-content-wrapper {
  background: #1a1a1a;
}

.panel-1 {
  color: #0f0;
}

.panel-2 .panel-background,
.panel-2 .panel-content-wrapper {
  background: #ff8fb3;
}

.panel-2 .panel-content-wrapper,
.panel-4 .panel-content-wrapper {
  padding: 0 2rem 4rem;
}

.panel-2 {
  color: #ffffff;
}

.panel-3 .panel-background,
.panel-3 .panel-content-wrapper {
  background: linear-gradient(150deg, #d9a8e0 0%, #b89ad9 32%, #9a93dd 60%, #80a9e4 100%);
}

.panel-3 {
  color: #ffffff;
}

.panel-4 .panel-background,
.panel-4 .panel-content-wrapper {
  background: #5fcbcd;
}

.panel-4 {
  color: #1a1a1a;
}

/* Call to action */
a.contact-us {
  margin-top: 6rem;
  font-size: 2rem;
  color: #ff6b9d;
  text-decoration: underline;
  cursor: pointer;
  transition: all 0.3s ease;
}

a.contact-us:visited {
  color: #ff6b9d;
}

a.contact-us:hover {
  color: #ff6b9d;
  text-shadow: 0 0 10px currentColor;
}

/* Header */
#title-holder {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
}

.fixed-header {
  position: absolute;
  top: 2rem;
  left: 2rem;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.fixed-header h1 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff6b9d;
  text-shadow: 0 0 10px rgba(255, 107, 157, 0.6);
  letter-spacing: 0.1em;
  position: relative;
  padding-bottom: 0.5rem;
  transition: color 0.6s ease, text-shadow 0.6s ease;
}

.fixed-header h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #0f0, transparent);

  transition: background 0.6s ease;

}

.fixed-header.panel-1-active h1 {
  color: #ff6b9d;
  text-shadow: 0 0 10px rgba(255, 107, 157, 0.6);
}

.fixed-header.panel-1-active h1::after {
  background: linear-gradient(to right, #0f0, transparent);

}

.fixed-header.panel-2-active h1 {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.fixed-header.panel-2-active h1::after {
  background: linear-gradient(to right, #5fcbcd, transparent);

}

.fixed-header.panel-3-active h1 {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

.fixed-header.panel-3-active h1::after {
  background: linear-gradient(to right, #ffc8e6, #c9b3f0, transparent);
}

.fixed-header.panel-4-active h1 {
  color: #1a1a1a;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.fixed-header.panel-4-active h1::after {
  background: linear-gradient(to right, #ff8fb3, transparent);

}

/* Carousel & terminal */
.carousel-container {
  width: 100%;
  max-width: 1000px;
  height: 78vh;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

.panel-1 .carousel-container .terminal-view {
  position: relative;
  display: table-cell;
  vertical-align: middle;
  padding: 1rem 2rem;
  background-color: #050805;
  background-image: radial-gradient(#00ff0a22 1px, transparent 1px), linear-gradient(rgba(0, 0, 0, 0.4) 1px, transparent 1px);
  background-size: 4px 4px, 100% 2px;
  filter: contrast(1.15) saturate(1.1);
  border-radius: 16px;
  box-shadow: 0 0 6px #151515;
}

.panel-1 .carousel-container .terminal-view::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to right, rgb(0, 0, 0), transparent 2%, transparent 98%, rgb(0, 0, 0)), linear-gradient(to bottom, rgb(0, 0, 0), transparent 2%, transparent 98%, rgb(0, 0, 0));
}

.panel-1 .carousel-container .terminal-view::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to right, rgba(0, 255, 0, 0.09), transparent 3%, transparent 97%, rgba(0, 255, 0, 0.09)), linear-gradient(to bottom, rgba(0, 255, 0, 0.09), transparent 3%, transparent 97%, rgba(0, 255, 0, 0.09));
}

.panel-1 .carousel-container #slide3-text {
  text-align: center;
  line-height: 3rem;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  display: table;
  height: 100%;
  padding: 0 4rem 4rem;
}

.terminal-text {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #0f0;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  white-space: pre-wrap;
  text-align: left;
  align-self: flex-start;
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 854px;
  padding: 0 2rem;
}

.panel-1 .carousel-container .terminal-view {
  font-size: 1.1rem;
  line-height: 1.6;
  font-family: 'Press Start 2P', monospace;
  text-shadow: 0 0 4px rgba(0, 255, 0, 0.6);
}

.term-spacer {
  height: 1rem;
  opacity: 0.6;
  animation: fadeinspacer 0.6s ease;
}

@keyframes fadeinspacer {
  from {
    opacity: 0;
    height: 0;
  }

  to {
    opacity: 0.6;
    height: 1rem;
  }
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #0f0;
  animation: blink 1s steps(1) infinite;
  margin-left: 2px;
  box-shadow: 0 0 6px rgba(0, 255, 0, 0.9);
}

@keyframes blink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.terminal-prompt {
  color: #0f0;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.terminal-large {
  font-size: 1.2rem;
  margin-top: 1rem;
}

.error-404 {
  font-size: 4rem;
  font-weight: bold;
  color: #0f0;
  font-family: 'Press Start 2P', monospace;
  text-shadow: 0 0 12px rgba(0, 255, 0, 0.9);
  margin-bottom: 1rem;
  line-height: 1;
  text-align: center;
}
#error-505,
#error-404 {
  opacity: 0;
}
#error-505.activate,
#error-404.activate {
  animation: crtFlickerIn 900ms linear forwards;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 255, 0, 0.2);
  border: 2px solid #00ff0045;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;

}

.carousel-nav:hover {
  background: rgba(0, 255, 0, 0.4);
  border: 2px solid #0f0;

}

.carousel-nav.left {
  left: 1rem;
}

.carousel-nav.right {
  right: 1rem;
}

.carousel-nav svg {
  width: 20px;
  height: 20px;
  stroke: #00ff0045;
  fill: none;
  stroke-width: 3;
}

.carousel-nav:hover svg {
  stroke: #0f0;
}

.carousel-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 255, 0, 0.3);
  border: 1px solid #0f0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: #0f0;

}

/* Content */
.content {
  max-width: 800px;
  text-align: center;
}

.content h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.content p,
.content ul {
  font-size: 1.3rem;
  line-height: 1.8;
  opacity: 0.9;
}

.content ul {
  padding-left: 1rem;
  text-align: left;
}

.content ul li span {
  width: 100%;
  display: block;
  font-style: italic;
  opacity: 0.7;
  font-size: 1rem;
}

.content ul li::marker {
  content: '> ';
}

/* What We're Working On */
.work-content {
  max-width: 1040px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
}

.work-content h2 {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(74, 38, 90, 0.45);
  margin-bottom: 1.6rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.2rem 1.8rem;
  width: 100%;
  max-height: 60vh;
  overflow-y: auto;
  padding: 1rem 0.5rem 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.work-grid::-webkit-scrollbar {
  width: 8px;
}

.work-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

.work-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  padding: 0.85rem 0.85rem 1.1rem;
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(6px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  box-shadow: 0 10px 28px rgba(60, 30, 80, 0.18);
}

.work-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 22px 48px rgba(50, 24, 78, 0.35);
}

.work-card-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;

  box-shadow: 0 14px 30px rgba(40, 18, 66, 0.4);
  transform: translateY(-22px);
  margin-bottom: -10px;
}

.work-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-card-media img {
  transform: scale(1.05);
}

.work-card-media.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #b89ad9, #80a9e4);
  color: rgba(255, 255, 255, 0.85);
  font-size: 2.4rem;
  font-weight: bold;
}

.work-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1.6rem 0.9rem 0.7rem;
  font-size: 1.15rem;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  background: linear-gradient(to top, rgba(20, 8, 36, 0.82), transparent);
}

.work-card-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  padding: 0 0.3rem;
  opacity: 0.95;
}

.work-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  padding: 2rem;
}

.work-modal-content {
  background: #1c1430;
  border: 2px solid #b89ad9;
  box-shadow: 0 0 50px rgba(154, 147, 221, 0.45);
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
}

.work-modal-content h2 {
  color: #e9b8f0;
  margin-bottom: 1.2rem;
}

.work-modal-content .close-modal {
  color: #e9b8f0;
}

.work-modal-content .close-modal:hover {
  color: #80a9e4;
}

.work-modal-body {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  font-size: 1.05rem;
}

.work-modal-body h1,
.work-modal-body h2,
.work-modal-body h3 {
  color: #c9b3f0;
  margin: 1.2rem 0 0.6rem;
}

.work-modal-body p {
  margin-bottom: 1rem;
}

.work-modal-body a {
  color: #8fc0ff;
}

.work-modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 0.8rem 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.work-modal-body ul,
.work-modal-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.work-loading {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Intro overlay */
#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

#intro-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 107, 157, 0.2);
  border-top: 4px solid #ff6b9d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.intro-text {
  position: absolute;
  font-size: 4rem;
  font-weight: bold;
  color: #ff6b9d;
  text-shadow: 0 0 20px rgba(255, 107, 157, 0.6);
  opacity: 0;
  transform: scale(0.7);
  letter-spacing: 0.1em;
}

.intro-text.intro-in {
  animation: introZoomIn 1.2s ease forwards;
}

.intro-text.intro-out {
  animation: introZoomOut 0.8s ease forwards;
}

.intro-text.animate {
  animation: zoomFade 1.5s ease forwards;
}

.intro-text.drift {
  animation: driftUpLeft 1.2s ease forwards;
}

@keyframes introZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes introZoomOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.3);
  }
}

@keyframes zoomFade {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes driftUpLeft {
  0% {
    opacity: 1;
    transform: scale(1) translate(0, 0);
    font-size: 4rem;
  }

  100% {
    opacity: 0;
    transform: scale(0.4) translate(-50vw, -40vh);
    font-size: 1.5rem;
  }
}

/* Scroll arrow */
.scroll-arrow {
  position: absolute;
  bottom: 1.3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 20px currentColor;
  transition: all 0.3s ease;
}

.scroll-arrow:hover {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 0 30px currentColor;
}

.scroll-arrow svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.6;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
  }
}

/* Footer */
footer {
  background: #0a0a0a;
  color: #ff6b9d;
  text-align: center;
  padding: 2rem;
  font-size: 1.1rem;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #1a1a1a;
  padding: 3rem;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  border: 2px solid #0f0;

  box-shadow: 0 0 40px rgba(2, 2, 2, 0.38);

  position: relative;
}

.modal-content h2 {

  color: #0f0;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #2a2a2a;
  border: 1px solid #0f0;
  border-radius: 5px;
  color: #0f0;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
}

.modal-content textarea {
  min-height: 150px;
  resize: vertical;
}

.modal-content button {
  width: 100%;
  padding: 1rem;
  background: #00ff00a6;
  color: #1a1a1a;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
}

.modal-content button:hover {

  background: #0f0;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.38);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #0f0;
  cursor: pointer;
  line-height: 1;
  transition: all 0.3s ease;
}

.close-modal:hover {
  color: #5fcbcd;
  transform: rotate(90deg);
}

.comingsoon .scroll-arrow,
.comingsoon .panel-2,
.comingsoon .panel-3 {
  display: none !important;
}

.intro-text .intro-mobile {
  display: none;
}
#slide3-link {
  display: block;
  margin: 0 auto;
  text-align: center;
  color: #0f0;
  position: absolute;
  right: 0;
  left: 0;
  bottom: 4rem;
  z-index: 1000;
  opacity: 0;
  text-decoration: none;
  pointer-events: none;
}

#slide3-link.show-link {
  animation: crtFlickerIn 900ms linear forwards;
}
#slide3-link.pulse-link {
  pointer-events: auto;
  animation: softPulse 2.2s ease-in-out infinite;
}

@keyframes softPulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}
@keyframes crtFlickerIn {
  0% { opacity: 0; }
  5% { opacity: 1; }
  10% { opacity: 0.2; }
  15% { opacity: 1; }
  22% { opacity: 0.4; }
  30% { opacity: 1; }
  40% { opacity: 0.7; }
  55% { opacity: 1; }
  70% { opacity: 0.9; }
  100% { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .fixed-header {
    left: 0;
    width: 100%;
  }

  .fixed-header h1 {
    text-align: center;
  }

  .content h2 {
    font-size: 2rem;
  }

  .content p,
  .content ul {
    font-size: 1.1rem;
  }

  .intro-text {
    font-size: 2.5rem;
  }

  .intro-text .intro-desktop {
    display: none;
  }

  .intro-text .intro-mobile {
    display: inline;
  }

  .fixed-header h1 {
    font-size: 1.2rem;
  }

  .panel-content-wrapper {
    padding: 0 0 4rem;
  }

  .panel-1 .carousel-container .terminal-view {
    font-size: 0.6rem;
    line-height: 1.4rem;
    padding: 1rem;
  }
  .panel-1 .carousel-container #slide3-text {
    line-height: 2rem;
  }

  #slide3-link {
    font-size: 1.2rem;
  }

  .terminal-large {
    font-size: 0.8rem;
    margin-top: 1rem;
  }

  .error-404 {
    font-size: 4rem;
    text-align: center;
  }

  .work-grid {
    grid-template-columns: 1fr;
    max-height: 64vh;
    gap: 1.8rem;
  }

  .work-modal-content {
    padding: 2rem 1.4rem;
  }
}
