/* --------------------------------------------------
   Google Font
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&display=swap');


/* --------------------------------------------------
   Base Reset & Global Styles
-------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Quicksand", system-ui, sans-serif;
  color: #ffffff;
  background: #0B2447;
  line-height: 1.5;
  opacity: 0;
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* --------------------------------------------------
   Layout Structure
-------------------------------------------------- */
.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-wrap: wrap;   /* allow wrapping */
  align-items: center;
  gap: 3rem;
}

.hero-logo-wrap {
  flex: 0 0 360px;
  min-width: 360px;   /* prevents logo from shrinking */
}

.hero-logo {
  max-width: 360px;
  height: auto;
  transition: transform 0.25s ease;
}

.hero-logo:hover {
  transform: translateY(-6px);
}


/* --------------------------------------------------
   Typography
-------------------------------------------------- */
.hero-text {
  flex: 1 1 280px;
  min-width: 340px;   /* <-- prevents squashing */
  text-align: left;
}

.hero-title {
  margin: 0 0 0.25rem;
  font-size: 3.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: #00FFFF;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px #00FFFF, 0 0 12px rgba(0,255,255,0.4);
}

.hero-body {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  max-width: 36rem;
}

.hero-strong {
  font-weight: 600;
  font-size: 1.6rem; /* cleaner hierarchy */
}


.hero-since {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
  color: #00FFFF;
  text-shadow: 0 0 8px #00FFFF, 0 0 12px rgba(0,255,255,0.4);
}


/* --------------------------------------------------
   Vist us on Social
-------------------------------------------------- */
.contest-line {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 8px #00FFFF, 0 0 12px rgba(0,255,255,0.4);
}

.cursor {
  display: inline-block;
  margin-left: 4px;
  width: 10px;
  animation: blink 0.8s infinite;
  color: #00FFFF;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}


/* --------------------------------------------------
   Spinning Logo Trademark
-------------------------------------------------- */
.logo-spin {
  animation: coinSpin 6s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
  animation-delay: 0.8s;
  transform-style: preserve-3d;
}

@keyframes coinSpin {
  0%         { transform: rotateY(0deg); }
  66.666%    { transform: rotateY(2160deg); }
  100%       { transform: rotateY(2160deg); }
}


/* --------------------------------------------------
   Contact Reveal (Math Challenge)
-------------------------------------------------- */
.contact-reveal {
  margin: 1rem 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reveal-label {
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #00FFFF;
  text-shadow: 0 0 8px #00FFFF, 0 0 12px rgba(0,255,255,0.4);
}

.reveal-input {
  width: 4rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #00FFFF;
  background: #102A4F;
  color: #ffffff;
  font-size: 1.1rem;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,255,255,0.25);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.reveal-input:focus {
  outline: none;
  border-color: #00FFFF;
  background: #153463;
  box-shadow: 0 0 14px rgba(0,255,255,0.45);
}

#contact-info {
  opacity: 0;
  transition: opacity 0.4s ease;
}

#contact-info.show {
  opacity: 1;
}

.contact-link {
  color: #00FFFF;
  text-decoration: none;
  text-shadow: 0 0 8px #00FFFF, 0 0 12px rgba(0,255,255,0.4);
}

.contact-link:hover {
  text-decoration: underline;
}


/* --------------------------------------------------
   Contact Row Layout
-------------------------------------------------- */
.contact-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-left {
  display: flex;
  flex-direction: column;
}

.contact-right {
  opacity: 0;
  transition: opacity 0.4s ease;
  font-size: 1.2rem;
  line-height: 1.6rem;
}

.contact-right.show {
  opacity: 1;
}


/* --------------------------------------------------
   Social Links
-------------------------------------------------- */
.simple-links-wrap {
  margin-top: 1.75rem;
  text-align: left;
}

.simple-links-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: white;
}

.simple-links-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 1.1rem;
}

.simple-link {
  color: white;
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.simple-link:hover {
  color: #00FFFF;
  text-shadow: 0 0 8px #00FFFF;
}

.divider {
  color: #ffffff88;
  font-weight: 300;
}


/* --------------------------------------------------
   Responsive Adjustments (MERGED)
-------------------------------------------------- */
@media (max-width: 768px) {
  .hero {
				flex-wrap: wrap;
    flex-direction: column;
    text-align: left;
  }

  .hero-text {
    text-align: left;
  }

  .hero-body {
    margin-left: 0;
    margin-right: 0;
  }

  .contact-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------
   Spacing Refinements
-------------------------------------------------- */
.hero-body + .contact-row {
  margin-top: 0.3rem;
}

.hero-body.hero-strong {
  margin-bottom: 0.2rem;
}

/* --------------------------------------------------
   Privacy Pop Up
-------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  z-index: 9999;
}

.modal-content {
  background: rgba(16, 42, 79, 0.85);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 0 25px rgba(0,255,255,0.3);
  border: 1px solid rgba(0,255,255,0.4);
}

.close {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
}
.modal[hidden] {
  display: none !important;
}

/* --------------------------------------------------
   Simple vertical spacing scale
-------------------------------------------------- */
.space-sm { margin-top: 0.75rem; }
.space-md { margin-top: 1rem; }
.space-lg { margin-top: 1.5rem; }

