/* ============================================================
   WELCOME SCREEN — Lauren Hawkes Portfolio
   ============================================================ */


/* ------------------------------------------------------------
   LOADING OVERLAY
   ------------------------------------------------------------ */

.loading {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: var(--colour-background);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading.is-hidden,
.skip-loading .loading {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading__logo path {
  animation: colourFlick 2s steps(1) infinite;
}

@keyframes colourFlick {
  0%   { stroke: #FFC52F; }
  20%  { stroke: #C4A8E0; }
  40%  { stroke: #8DD9F0; }
  60%  { stroke: #9ED040; }
  80%  { stroke: #FF8C00; }
}


/* ------------------------------------------------------------
   WELCOME LAYOUT
   ------------------------------------------------------------ */

.welcome {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "top"
    "main"
    "footer";
  position: relative;
  overflow: hidden;
  padding: var(--space-7) var(--space-8);
  gap: var(--space-6);
}


/* ------------------------------------------------------------
   CIRCLE ACCENTS
   ------------------------------------------------------------ */

.welcome__accent {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.5;
  will-change: transform;
  transition: transform 0.2s ease-out;
}

.welcome__accent--purple {
  left: -80px;
  top: calc(50% - 140px); /* vertically centred without transform */
  width: 280px;
}

.welcome__accent--yellow {
  top: -80px;
  right: -120px;
  width: 320px;
}

.welcome__accent--green {
  bottom: -140px;
  left: calc(50% - 170px); /* horizontally centred without transform */
  width: 340px;
}


/* ------------------------------------------------------------
   TOP BAR
   ------------------------------------------------------------ */

.welcome__top {
  grid-area: top;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1024px;
  width: 100%;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.welcome__question {
  font-size: 1.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--colour-navy);
  line-height: 1.15;
  margin: 0;
  max-width: 560px;
}

.welcome__skip {
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  color: var(--colour-navy);
  text-decoration: none;
  flex-shrink: 0;
  padding-top: 6px;
  transition: opacity var(--transition-fast);
}

.welcome__skip:hover {
  opacity: 0.6;
}


/* ------------------------------------------------------------
   CARDS GRID
   ------------------------------------------------------------ */

.welcome__main {
  grid-area: main;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-content: start;
  max-width: 1024px;
  width: 100%;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.welcome__card {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--colour-navy);
  background-color: transparent;
  text-decoration: none;
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.welcome__card:hover {
  background-color: rgba(0, 24, 70, 0.03);
  transform: translateY(-2px);
}


/* ------------------------------------------------------------
   CARD ICON
   ------------------------------------------------------------ */

.welcome__card-icon {
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome__card-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}


/* ------------------------------------------------------------
   CARD LABEL
   ------------------------------------------------------------ */

.welcome__card-label {
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  color: var(--colour-navy);
  line-height: 1.3;
}


/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */

.welcome__footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1024px;
  width: 100%;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.welcome__footer-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.welcome__footer-logo {
  display: flex;
  align-items: center;
  transition: opacity var(--transition-fast);
}

.welcome__footer-logo:hover {
  opacity: 0.7;
}

.welcome__copyright {
  font-size: var(--text-sm);
  color: var(--colour-navy);
}


/* ------------------------------------------------------------
   SOCIAL BUTTONS
   ------------------------------------------------------------ */

.welcome__footer-social {
  display: flex;
  gap: var(--space-3);
}

.welcome__social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--colour-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast);
  flex-shrink: 0;
}

.welcome__social-btn:hover {
  opacity: 0.75;
}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 1400px) {
  .welcome__accent--purple { left: -130px; }
  .welcome__accent--yellow { right: -150px; }
}

@media (max-width: 1200px) {
  .welcome__accent--purple { left: -180px; }
  .welcome__accent--yellow { right: -180px; }
  .welcome__accent--green  { bottom: -170px; }
}

@media (max-width: 1024px) {
  .welcome__accent--purple { left: -240px; }
  .welcome__accent--yellow { right: -210px; }
  .welcome__accent--green  { bottom: -200px; }
}

@media (max-width: 768px) {
  .welcome {
    padding: var(--space-6) var(--space-5);
    gap: var(--space-6);
  }

  .welcome__question {
    font-size: var(--text-xl);
  }

  .welcome__main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .welcome__card {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4);
    gap: var(--space-3);
  }

  .welcome__card-icon img {
    width: 52px;
    height: 52px;
  }

  .welcome__accent--purple { display: none; }
  .welcome__accent--yellow { right: -220px; top: -100px; }
  .welcome__accent--green  { bottom: -240px; }
}

/* Stack to single column on small screens */
@media (max-width: 540px) {
  .welcome {
    padding: var(--space-5) var(--space-4);
    gap: var(--space-5);
  }

  .welcome__main {
    grid-template-columns: 1fr;
  }

  .welcome__card {
    flex-direction: row;
    align-items: center;
    padding: var(--space-4) var(--space-4);
  }

  .welcome__question {
    font-size: var(--text-lg);
  }

  .welcome__accent--purple,
  .welcome__accent--green {
    display: none;
  }

  .welcome__accent--yellow {
    width: 200px;
    right: -80px;
    top: -60px;
  }
}
