@font-face {
    font-family: 'Cassiopeia';
    src: url('/pixel.ttf') format('truetype');
}

html, body {
    height: 100%;
    font-family: 'Cassiopeia', sans-serif !important;
}

body {
    position: relative;
    margin: 0;
    overflow: auto;
    z-index: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-color: black;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    filter: blur(0.1px);
    transform: scale(1.05);
    z-index: -1;
    pointer-events: none;
}

.title-align {
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* container for the top images (cruz, bubble, itch iframe) */
.top-images {
  position: relative;
}

.hero-section {
  margin-top: -30px;
}

.separator-top {
  margin-top: -9%;
}

.separator-mid {
  margin-top: -80px;
}

.content-first {
  margin-top: -2%;
}

.content-story {
  z-index: 1000;
  margin-top: 0px;
  background-color: black;
}

.text-content-story {
  margin-top: -40px;
}

.story-text {
  padding-left: 25%;
  padding-right: 20%;
}

.story-logo {
  width: 100%;
  max-width: 100%;
}

.itch-embed {
  max-width: 100%;
  height: auto;
}

.row-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 80px;
}

.screenshot {
  width: 32%;
  border: 1px solid white;
}

.title-logo {
    width: 1000px;
    height: auto;
    display: inline-block;
    transition: transform 300ms ease;
    animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

.cruz {
    position: fixed;
    left: 23%;
    top: 65%;
    transform: translate(-50%, -50%) rotate(10deg);
    width: 200px;
    max-width: 60vw;
    height: auto;
    z-index: 2;
    display: block;
    transition: transform 300ms ease;
    animation: cruz-bob 5.2s ease-in-out infinite;
}

.separator {
  position: relative;
  width: 100%;
  height: clamp(16px, 3.5vw, 48px);
  background-image: url('/separator_cas.png');
  background-repeat: repeat-x;
  background-position: center center;
  background-size: auto;
  margin: 24px 0;
}

.content-container {
    background-color: #12173D;
}

@keyframes cruz-bob {
    0%   { transform: translate(-50%, -50%) rotate(3deg); }
    50%  { transform: translate(-50%, -53%) rotate(2deg); }
    100% { transform: translate(-50%, -50%) rotate(3deg); }
}

@keyframes bubble-bob {
    0%   { transform: translate(-50%, -20%) rotate(5deg); }
    50%  { transform: translate(-50%, -45%) rotate(3deg); }
    100% { transform: translate(-50%, -20%) rotate(5deg); }
}

.itch {
    position: fixed;
    left: 67%;
    top: 65%;
    transform: translate(-50%, -50%) rotate(-2deg);
    height: auto;
    z-index: 2;
    display: block;
    transition: transform 300ms ease;
}

.itch:hover {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.05);
}

.text-content {
    padding: 80px;
    color: white;
}

.bubble {
    position: fixed;
    left: 37%;
    top: 65%;
    transform: translate(-50%, -50%) rotate(-5deg);
    width: 120px;
    max-width: 60vw;
    height: auto;
    z-index: 2;
    display: block;
    transition: transform 300ms ease;
    animation: bubble-bob 5.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .title-logo,
    .title-align:hover .title-logo,
    .cruz,
    .cruz:hover,
    .cruz:focus {
        animation: none !important;
        transition: none !important;
    }
}

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  justify-content: center;
  border-bottom: 1px solid lightgray;
}

.logo { 
  display: flex; 
  align-items: center;
  margin-right: 30%;
  z-index: 101;
}
.logo img { height: 32px; margin-right: 8px; }

.nav-menu {
  display: flex;
  gap: 24px;
}

.nav-menu a {
  font-weight: 400;
  font-size: 12px;
  transition: opacity .2s;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.nav-menu a:hover { 
  opacity: 0.7;
  color: white;
  font-weight: bold;
  background: #003087;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #003087;
  border-radius: 2px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

/* Mobile Menu Animation States */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
}

/* Rest of your existing styles remain the same */
.login-container {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-form {
  background: white;
  padding: 40px 32px;
  border-radius: 25px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  text-align: center;
}

.form-group {
  margin-bottom: 10px;
}

.form-group input {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border: 1px solid #dadce0;
  border-radius: 25px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #003087;
  box-shadow: 0 0 0 1px #4285f4;
}

button[type="submit"] {
  width: 100%;
  padding: 14px;
  margin-top: 30px;
  background-color: #003087;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

button[type="submit"]:hover {
  background-color: #1558c0;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: white;
}

.sechero {
  max-width: 1000px;
  margin: 120px auto 80px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.sechero h1,
.sechero p {
  width: 100%;
  text-align: left; /* forces text left alignment */
}

.sechero h1 {
  font-size: clamp(2rem, 4vw, 5.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.sechero p {
  font-size: clamp(0.8rem, 2vw, 1.125rem);
  font-weight: 400;
  margin-bottom: 32px;
  color: #c5c7c9;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 5.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero p {
  font-size: clamp(0.8rem, 2vw, 1.125rem);
  font-weight: 400;
  margin-bottom: 32px;
  color: #c5c7c9;
}

.row-images {
  display: flex;
  justify-content: center;
  gap: 20px;
}

@media screen and (max-width: 1024px) {
  .title-logo {
    width: min(70vw, 700px);
  }
  .cruz {
    left: 28%;
    top: 60%;
    width: min(28vw, 220px);
    animation-duration: 6s;
  }
  .bubble {
    left: 62%;
    top: 60%;
    width: min(22vw, 160px);
    animation-duration: 6s;
  }
  .itch {
    left: 50%;
    top: 72%;
    width: min(84vw, 520px);
    transform: translate(-50%, -50%) rotate(-2deg);
  }
  .separator {
    height: clamp(14px, 3vw, 40px);
  }
  
  .story-text {
    padding-left: 15%;
    padding-right: 15%;
  }
}

@media screen and (max-width: 768px) {
  /* Mobile: reset negative margins that break layout */
  .hero-section {
    margin-top: 0;
  }
  
  .separator-top {
    margin-top: 20px;
  }
  
  .separator-mid {
    margin-top: 0;
  }
  
  .content-first {
    margin-top: 0;
  }
  
  .text-content-story {
    margin-top: 20px;
  }
  
  .story-text {
    padding-left: 5%;
    padding-right: 5%;
    font-size: clamp(14px, 3.5vw, 16px);
    text-align: left;
  }
  
  .row-images {
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
    padding: 0 5%;
  }
  
  .screenshot {
    width: 100%;
  }

  header {
    height: 56px;
    padding: 0 12px;
  }
  .logo { margin-right: 16%; }

  .nav-menu { display: none; }
  .mobile-menu-toggle { display: flex; }

  .title-logo {
    width: min(84vw, 420px);
    display: block;
    margin: 12px auto;
    animation: bob 2.6s ease-in-out infinite;
  }

  .cruz,
  .bubble,
  .itch {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    display: block !important;
    margin: 16px auto;
    max-width: 90vw;
  }
  
  .cruz {
    width: 180px;
    animation: none; /* disable complex animations on mobile for performance */
  }
  
  .bubble {
    width: 140px;
    animation: none;
  }
  
  .itch {
    width: min(92vw, 500px);
    height: auto;
  }
  
  .itch:hover {
    transform: none;
  }

  /* make separator relative and slightly smaller on mobile */
  .separator {
    height: clamp(12px, 4vw, 28px);
    margin: 12px 0;
  }

  /* reduce large paddings to fit mobile screens */
  .text-content { 
    padding: 20px 5%;
  }
  
  .sechero { margin: 80px auto 40px; padding: 0 16px; }
  .sechero h1 { font-size: clamp(1.6rem, 6vw, 3rem); }
  .sechero p { font-size: clamp(0.8rem, 2.5vw, 1rem); }
  
  .itch-embed {
    width: 100% !important;
    max-width: 100%;
    height: auto;
  }
  
  /* Make headings more readable on mobile */
  h1 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    padding: 0 5%;
  }
  
  p {
    font-size: clamp(14px, 3.5vw, 16px);
    padding: 0 5%;
  }
  
  /* Center content on mobile */
  center {
    padding: 0 5%;
  }
}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
  .title-logo {
    width: min(90vw, 350px);
  }
  
  .story-text {
    padding-left: 8%;
    padding-right: 8%;
    font-size: 14px;
  }
  
  .text-content {
    padding: 15px 8%;
  }
  
  h1 {
    font-size: clamp(1.2rem, 5vw, 2rem);
  }
}