@font-face {
    font-family: "Typo Round";
    src: url("./fonts/Typo_Round_Regular_Demo.otf") format("opentype");
}

@font-face {
    font-family: "Sci Fied";
    src: url("./fonts/scifie.ttf") format("truetype");
}

@font-face {
    font-family: "Nintendo";
    src: url("./fonts/NintendBoldRM8E.ttf") format("truetype");
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@view-transition {
  navigation: auto;
}
body {
  font-family: "Typo Round", sans-serif, "Sci Fied";
  color: #fdfffc;
  background-image: url("./images/windows_xp_14.jpg");
  background-size: cover;
  background-color: #ffffff;
  line-height: 1.6;
}

/* Navigation Bar */
.navbar {
  width: 100%;
  border-bottom: 1px solid #eaeaea;
  padding: 1.25rem 2rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hackathon-name {
  font-family: "Sci Fied", sans-serif;
  font-size: 1.5rem;
  text-decoration: none;
  color: #241142;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #000000;
  font-size: 1.25rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #000;
}

/* Main Layout */
.logo {
font-family: "Typo Round", sans-serif;
color: #fbf9f9;
  min-height: calc(100vh - 75px);
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
}

.logo-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* Left Content Area */
.content-left {
  max-width: 480px;
  display: flex;
  flex-direction: column;
}


.logo-text {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
  color: #fcfbfbb7;
  text-shadow: 
    0 2px 0 #0379c3,
    0 4px 0 #d1d9de,
    0 6px 0 #0379c3,
    0 8px 0 #0379c3,
    0 10px 10px rgba(0, 0, 0, 0.3),
    0 15px 20px rgba(0, 0, 0, 0.2);
  display: inline-block;
  perspective: 1000px;
}

/* Individual character animation properties */
.logo-text .char {
  display: inline-block;
  position: relative;
  transform-origin: 50% 100%;
  animation-duration: 2200ms;
  animation-timing-function: ease-in-out;
  animation-direction: alternate;
  animation-iteration-count: infinite;
  animation-fill-mode: forwards;
  animation-delay: calc(var(--char-index, 0) * -0.5s);
  animation-name: float;
}

/* Alternating letters float in opposite directions */
.logo-text .char:nth-child(2n) {
  animation-name: float-alt;
}

/* Float Keyframes */
@keyframes float {
  from {
    transform: translate(2%, -10%) rotate(-1deg);
  }
  to {
    transform: translate(-2%, 5%) rotate(3deg);
  }
}

@keyframes float-alt {
  from {
    transform: translate(0%, -5%) rotate(-1deg);
  }
  to {
    transform: translate(2%, 10%) rotate(3deg);
  }
}

.subheading {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #3c3548;
}

.description {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

/* Wide Action Button */
/* Frutiger Aero Glass Button */

.btn-ready {
  display: block;
  text-decoration: none;
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0b3b5b;
  text-align: center;
  border-radius: 40px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 1.5rem;

  /* Frosted aero glass gradient */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0.45) 45%,
    rgba(215, 238, 255, 0.35) 50%,
    rgba(195, 228, 255, 0.6) 100%
  );
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);

  /* Top highlight and bottom bevel */
  border-top: 1.5px solid rgba(255, 255, 255, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1.5px solid rgba(135, 185, 220, 0.6);

  box-shadow: 
    0 6px 16px rgba(0, 60, 110, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(70, 150, 220, 0.2);

  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ready:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(235, 250, 255, 0.6) 48%,
    rgba(168, 225, 255, 0.6) 52%,
    rgba(120, 205, 255, 0.8) 100%
  );
  color: #032d47;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 10px 22px rgba(0, 120, 215, 0.25),
    0 0 15px rgba(120, 215, 255, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 1);
}

.btn-ready:active {
  transform: translateY(1px) scale(0.99);
}

.btn-ready:focus-visible {
  outline: 3px solid #0b3b5b;
  outline-offset: 4px;
}
@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-8px);
  }
}

/* 3 Text Boxes / Cards */
.card-row {
  display: flex;
  gap: 1rem;
}

.card {
  flex: 1;
  aspect-ratio: 1 / 1;
  border: 2px solid #222;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: #222;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.card:hover {
  background: #f0f0f0;
  border-color: #000;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .logo-container {
    grid-template-columns: 1fr;
  }

  .logo-text {
    font-size: 3.5rem;
  }
}
/* Apply to all elements and pseudo-elements */
*,
*::before,
*::after {
  cursor: url("cursor.cur"), auto !important;
}

/* Explicitly force it over interactive tags and states */
a,
button,
input,
textarea,
select,
[role="button"],
*:hover {
  cursor: url("cursor.cur"), auto !important;
}
#bubble-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* Allows clicks to pass through to buttons/links */
  z-index: 9999;
}
/* Ensure page content stays in front of the clouds */
.navbar,
.logo {
  position: relative;
  z-index: 2;
}

/* Clouds container placed over the background */
.clouds-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 55vh; /* Confines clouds to the upper sky region */
  overflow: hidden;
  pointer-events: none; /* Allows clicks to pass through */
  z-index: 1;
}

/* Base Cloud Shape */
.cloud {
  position: absolute;
  width: 160px;
  height: 50px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 100px;
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
  animation: drift linear infinite;
  will-change: transform;
}

/* Cloud puffs */
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud::before {
  width: 70px;
  height: 70px;
  top: -35px;
  left: 25px;
}

.cloud::after {
  width: 90px;
  height: 90px;
  top: -45px;
  left: 65px;
}

/* Individual cloud variations (depth, height, speed) */
.cloud-1 {
  top: 8%;
  transform: scale(0.9);
  opacity: 0.85;
  animation-duration: 42s;
  animation-delay: -5s;
}

.cloud-2 {
  top: 18%;
  transform: scale(1.3);
  opacity: 0.95;
  animation-duration: 32s;
  animation-delay: -18s;
}

.cloud-3 {
  top: 30%;
  transform: scale(0.65);
  opacity: 0.75;
  animation-duration: 55s;
  animation-delay: -28s;
}

.cloud-4 {
  top: 12%;
  transform: scale(1.1);
  opacity: 0.9;
  animation-duration: 38s;
  animation-delay: -35s;
}

.cloud-5 {
  top: 25%;
  transform: scale(0.8);
  opacity: 0.8;
  animation-duration: 48s;
  animation-delay: -10s;
}

/* Animation keyframe: drift across screen horizontally */
@keyframes drift {
  0% {
    left: -250px;
  }
  100% {
    left: 100vw;
  }
}

/* Container pinned to the bottom of the screen */
.fish-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 160px; /* Adjust height to fit the bottom area */
  overflow: hidden;
  pointer-events: none; /* Keeps buttons and links interactive */
  z-index: 1; /* Sits behind text/buttons, in front of background */
}

/* Base fish styling */
.fish {
  position: absolute;
  width: auto;
  animation: swim-left linear infinite;
  will-change: transform;
  user-select: none;
}

/* Fish 1: larger, swims near the very bottom */
.fish-1 {
  height: 60px;
  bottom: 15px;
  animation-duration: 22s;
  animation-delay: 0s;
}

/* Fish 2: smaller, swims slightly higher and faster */
.fish-2 {
  height: 40px;
  bottom: 65px;
  animation-duration: 16s;
  animation-delay: -7s;
}

/* Fish 3: medium, floats mid-layer */
.fish-3 {
  height: 50px;
  bottom: 35px;
  animation-duration: 28s;
  animation-delay: -14s;
}

/* Right-to-left swimming animation with a slight vertical bob */
@keyframes swim-left {
  0% {
    transform: translateX(100vw) translateY(0px);
  }
  50% {
    transform: translateX(50vw) translateY(-8px);
  }
  100% {
    transform: translateX(-150px) translateY(0px);
  }
}

  .char {
    --name: float;
    --dur: 2200ms;
    --del: calc(var(--char-index) * -0.5s);
    --tf: ease-in-out; 
    --dir: alternate;
    
    &:nth-child(2n) {
      --name: float-alt;
    }
  }
