@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --orange: #f47815;
  --blue: #1b1ea9;
  --ink: #111111;
  --muted: #767676;
  --paper: #ffffff;
  --field: #f7f7f7;
  --line: #dedede;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--orange);
}

.welcome-stage {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background: var(--orange);
  animation: stageFade 3.6s ease forwards;
}

.stage-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  background: #252446;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  animation-duration: 2.25s;
  animation-delay: 950ms;
  animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
  animation-fill-mode: forwards;
}

.stage-door::before {
  content: "";
  position: absolute;
  inset: 0 28px;
  border-left: 2px solid rgba(255, 255, 255, 0.14);
  border-right: 2px solid rgba(255, 255, 255, 0.14);
}

.stage-door::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10px;
  background: var(--orange);
}

.stage-door-left {
  left: 0;
  animation-name: openLeft;
}

.stage-door-left::after {
  right: 0;
}

.stage-door-right {
  right: 0;
  animation-name: openRight;
}

.stage-door-right::after {
  left: 0;
}

.stage-center {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  color: var(--paper);
  text-align: center;
  animation: stageTextOut 900ms 1.05s ease forwards;
}

.stage-center img {
  width: min(300px, 74vw);
  height: auto;
  padding: 14px 18px;
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.26);
}

.stage-center span {
  color: var(--paper);
  font-size: clamp(1.8rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coming-soon {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(18px, 4vw, 56px);
}

.coming-soon::before,
.coming-soon::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.coming-soon::before {
  width: 58vw;
  height: 58vw;
  right: -20vw;
  top: -24vw;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.coming-soon::after {
  width: 44vw;
  height: 44vw;
  left: -18vw;
  bottom: -24vw;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.content {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  min-height: min(640px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(320px, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 6vw, 92px);
  padding: clamp(20px, 4vw, 44px) clamp(24px, 6vw, 76px);
  background: var(--paper);
  border-radius: 10px;
  box-shadow: 0 26px 60px rgba(17, 17, 17, 0.18);
  animation: cardIn 700ms ease-out both;
}

.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
}

.topbar img {
  width: min(330px, 72vw);
  height: auto;
  display: block;
  object-fit: contain;
}

.message {
  align-self: center;
  max-width: 470px;
  padding: clamp(34px, 7vw, 86px) 0 38px;
}

h1 {
  position: relative;
  overflow: hidden;
  max-width: 430px;
  margin: 0;
  color: #252446;
  font-size: clamp(2.25rem, 4vw, 4.2rem);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -45%;
  width: 34%;
  background: rgba(255, 255, 255, 0.72);
  filter: blur(12px);
  transform: skewX(-22deg);
  animation: titleShine 4.4s ease-in-out infinite;
}

.intro {
  max-width: 430px;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.visual {
  position: relative;
  align-self: center;
  min-height: 470px;
  display: grid;
  place-items: center;
}

.photo-shape {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #ffd761;
  box-shadow: 0 18px 36px rgba(17, 17, 17, 0.12);
  animation: floatVisual 5s ease-in-out infinite;
}

.photo-shape::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 2;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  pointer-events: none;
}

.carousel,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: photoFade 18s infinite;
}

.slide-1 {
  background-image: url("assets/graduation.png");
  animation-delay: 0s;
}

.slide-2 {
  background-image: url("assets/coding.png");
  animation-delay: 6s;
}

.slide-3 {
  background-image: url("assets/design-class.png");
  animation-delay: 12s;
}

.orbit {
  position: absolute;
  border: 3px solid var(--blue);
  pointer-events: none;
}

.orbit-one {
  width: 72px;
  height: 112px;
  left: 5%;
  top: 24%;
  animation: nudgeLeft 4s ease-in-out infinite;
}

.orbit-two {
  width: 96px;
  height: 96px;
  right: 4%;
  bottom: 19%;
  border-radius: 50%;
  border-color: var(--orange);
  animation: nudgeRight 4.6s ease-in-out infinite;
}

.social-panel {
  width: min(430px, 100%);
  padding: 18px;
  background: #f9f9f9;
  border: 1px solid #ececec;
  border-radius: 8px;
}

.social-title {
  display: block;
  margin-bottom: 14px;
  color: #252446;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.social-links a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.08);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.social-links svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.social-links .facebook {
  color: #1877f2;
}

.social-links .tiktok {
  color: #111111;
}

.social-links .linkedin {
  color: #0a66c2;
}

.social-links .instagram {
  color: #e4405f;
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: currentColor;
  box-shadow: 0 14px 26px rgba(17, 17, 17, 0.12);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stageFade {
  0%,
  84% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes openLeft {
  to {
    transform: translateX(-100%);
  }
}

@keyframes openRight {
  to {
    transform: translateX(100%);
  }
}

@keyframes stageTextOut {
  to {
    opacity: 0;
    transform: translateY(-18px) scale(0.96);
  }
}

@keyframes photoFade {
  0% {
    opacity: 0;
    transform: scale(1.08);
  }

  8%,
  25% {
    opacity: 1;
  }

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

@keyframes floatVisual {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes titleShine {
  0%,
  45% {
    left: -45%;
  }

  75%,
  100% {
    left: 115%;
  }
}

@keyframes nudgeLeft {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-8px, 8px);
  }
}

@keyframes nudgeRight {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(8px, -8px);
  }
}

@media (max-width: 860px) {
  .content {
    min-height: auto;
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .message {
    max-width: 100%;
    padding: 42px 0 10px;
    text-align: center;
    justify-self: center;
  }

  h1,
  .intro,
  .social-panel {
    margin-left: auto;
    margin-right: auto;
  }

  .visual {
    min-height: 340px;
  }

  .photo-shape {
    width: min(330px, 82vw);
  }

  .orbit-one {
    left: 13%;
  }

  .orbit-two {
    right: 12%;
  }
}

@media (max-width: 540px) {
  .coming-soon {
    padding: 14px;
  }

  .content {
    padding: 18px;
    border-radius: 8px;
  }

  .topbar {
    justify-self: center;
  }

  .topbar img {
    width: min(230px, 70vw);
  }

  .stage-center img {
    width: min(220px, 72vw);
  }

  .stage-center span {
    letter-spacing: 0.08em;
  }

  h1 {
    font-size: 2rem;
    letter-spacing: 0.06em;
  }

  .social-panel {
    padding: 16px;
  }

  .social-links {
    justify-content: center;
  }

  .visual {
    min-height: 280px;
  }

  .photo-shape {
    width: min(260px, 78vw);
  }

  .orbit {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
