@font-face {
  font-family: 'Bangers';
  src: url('fonts/Bangers-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
h1, h2, h3 {
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px #ff006e;
}

a {
  color: #000;
  text-decoration: none;
  padding: 5px 10px;
  margin-right: 10px;
  border: 3px dashed #ff006e;
  border-radius: 8px;
  background-color: #ff0055; /* bright comic pink */
  color: #fff;               /* white text to contrast */
  transition: transform 0.3s ease;
}

a:hover {
  transform: scale(1.1) rotate(-2deg);
  background-color: #ff006e;
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Bangers', cursive;
  color: #ffe900;
  overflow-x: hidden;

  background-image: url('assets/bg1.png'); /* same as landing bg */
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-color: black; /* fallback color */
}


#landing {
  background: url('assets/bg10.png') no-repeat center center fixed;
  background-size: cover;
}
#about {
  background: url('assets/bg_about3.png') repeat;
  background-size: cover;
}

#projects {
  background: url('assets/bg_project.avif') repeat;
  background-size: cover;
}

#contact {
  background: url('assets/bg_contact1.png') center center no-repeat;
  background-size: cover;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
}

.contact-heading {
  position: absolute;
  top: 12%;
  font-size: 2.8rem;
  font-family: 'Bangers', cursive;
  color: #ffe100;
  text-shadow: 2px 2px #e60012;
  z-index: 2;
  letter-spacing: 2px;
}

.contact-form {
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 85%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-radius: 12px;
  border: 3px solid #e60012;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
}

.contact-form input,
.contact-form textarea {
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 2px solid #1e3a8a;
  border-radius: 8px;
  background: #ffffff;
  color: #000;
  font-family: inherit;
  outline: none;
  transition: border 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #e60012;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form button {
  background: linear-gradient(45deg, #e60012, #1e3a8a);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}
.form-status {
  display: none;
  margin-top: 1rem;
  color: #ffe900;
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  text-align: center;
  text-shadow: 1px 1px #000;
}



html {
  scroll-behavior: smooth;
}


a {
  text-decoration: none;
  color: #ffe900;
  font-size: 20px;
  margin: 0 15px;
}
.title {
  font-size: 120px;
  text-align: center;
  margin-top: 100px;
  letter-spacing: 20px;
  color: #ffe900;
}

.landing-nav {
  text-align: center;
  margin-top: 30px;
}
.comic-sticker {
  position: absolute;
  width: 100px;
  pointer-events: none;
  z-index: 5;
  animation: popIn 1s ease both;
}

.pow {
  top: 30px;
  left: 30px;
  animation-delay: 0.5s;
}

.swing {
  bottom: 30px;
  right: 30px;
  animation-delay: 1s;
}

/* Comic punch entrance */
@keyframes popIn {
  0% {
    transform: scale(0) rotate(-20deg);
    opacity: 0;
  }
  70% {
    transform: scale(1.2) rotate(5deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

#about .about-container {
  display: flex;
  flex-direction: row-reverse; /* puts image on right */
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

#about .about-container img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border: 5px solid black;
  box-shadow: 6px 6px 0px #ff0055;
}

#about .about-container p {
  max-width: 60%;
  font-size: 1.2rem;
  line-height: 1.5;
}

.halftone-photo {
  width: 180px;
  height: 180px;
  border: 4px solid black;
  box-shadow: 5px 5px 0px #ff0055;
}
.name-label {
  font-size: 32px;
  color: #ffe900;
  margin-top: 15px;
  text-shadow: 2px 2px #000;
  font-family: 'Bangers', cursive;
}

.horizontal-scroll {
  display: flex;
  overflow-x: auto;
  padding: 20px 0;
  gap: 20px;
}
.project-card {
  min-width: 200px;
  height: 200px;
  background: #ffe900;
  color: black;
  border: 4px solid black;
  box-shadow: 6px 6px 0px black;
  text-align: center;
  line-height: 200px;
  font-size: 20px;
  transition: transform 0.3s ease;
}
.project-card:hover {
  transform: scale(1.1) rotate(-3deg);
  background: #ff0055;
  color: white;
}

#viewer-window {
  width: 80%;
  height: 400px;
  margin: 40px auto 0;
  background: #000;
  color: white;
  border: 4px dashed #ffe900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 6px 6px 0px #ff0055;
}

form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
}
input, textarea {
  margin-bottom: 10px;
  padding: 10px;
  font-family: 'Bangers', cursive;
  font-size: 18px;
}
button {
  padding: 10px;
  font-size: 18px;
  background: #ff0055;
  color: white;
  border: none;
  cursor: pointer;
}
@keyframes glitch {
  0% { transform: scale(1); }
  50% { transform: scale(1.02) skewX(-2deg); }
  100% { transform: scale(1); }
}
.section {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
  min-height: 95vh;
  padding: 80px 40px;
  box-sizing: border-box;

  /* 🟨 Comic-style frame */
  border: 6px solid #ffe900;
  border-radius: 16px;
  box-shadow: 0 0 0 5px #000;
  margin: 40px 20px;
}

#landing.section {
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

#landing {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns: notes + photo */
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  align-items: center;
}

.sticky-notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2x2 sticky layout */
  gap: 2.5rem;
  justify-content: center;
  align-items: center;
  padding-left: 1rem;  /* 👈 manual adjustment */
}

.sticky-note {
  width: 260px;
  min-height: 200px;
  background: #fff29d;
  padding: 1.2rem;
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  color: #222;
  border: 3px solid #000;
  box-shadow: 7px 7px 0px #00000099;
  transition: transform 0.3s ease;
  transform-origin: center center;
   /* 🔥 Add these */
   line-height: 1.4;      /* controls spacing between lines */
   letter-spacing: 0.9px;   /* controls spacing between letters */
   word-spacing: 2px;     /* optional: adds spacing between words */
}


.note1 { transform: rotate(-3deg); }
.note2 { transform: rotate(4deg); }
.note3 { transform: rotate(-2deg); }
.note4 { transform: rotate(3deg); }

.sticky-note:hover {
  transform: scale(1.05);
  z-index: 2;
}

.about-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 1rem; /* 👈 adjust to balance spacing */
}

.halftone-photo {
  width: 400px;        /* 🔥 make it bigger */
  height: auto;
  border: 5px solid black;
  box-shadow: 8px 8px 0px #ff0055;
  border-radius: 14px;
}

.viewer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.viewer-description {
  flex: 1;
  font-size: 1rem;
  color: #ffe900;
}

.viewer-media {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.viewer-media img,
.viewer-media video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 2px solid #ff0055;
  box-shadow: 4px 4px 0px #00000088;
  border-radius: 8px;
}

#spider-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #111;
  color: #ffe900;
  font-family: 'Bangers', cursive;
  border: 6px solid #ffe900;
  border-radius: 12px;
  box-shadow: 0 0 0 5px #000;
  padding: 2rem;
  margin: 4rem auto;
}

canvas {
  background: #403353;
  border: 4px dashed #ff0055;
  margin-top: 1rem;
}

.score {
  font-size: 1.2rem;
  margin-top: 1rem;
}

.game-over {
  font-size: 1.5rem;
  color: red;
  margin-top: 1rem;
}

#spider-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #111;
  color: #ffe900;
  font-family: 'Bangers', cursive;
  border: 6px solid #ffe900;
  border-radius: 12px;
  box-shadow: 0 0 0 5px #000;
  padding: 2rem;
  margin: 4rem auto;
}

#spider-game h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  color: #ffe900;
  text-shadow: 2px 2px #e60012;
}

canvas {
  background: #403353;
  border: 4px dashed #ff0055;
  margin-top: 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
}

.score {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  font-weight: bold;
}

.game-over {
  font-size: 1.5rem;
  color: #ff003c;
  margin-top: 1rem;
  text-shadow: 1px 1px black;
}

.game-controls {
  margin: 1rem 0;
  display: flex;
  gap: 1rem;
}

.game-controls button {
  background: #ff0055;
  color: white;
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}

.game-controls button:hover {
  background: #e6004f;
}

#intro-container.fade-out {
  animation: fadeOut 1s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

#skipIntro:hover {
  transform: scale(1.1) rotate(-2deg);
  background-color: #ff0055;
  color: white;
}

#intro-container.fade-out {
  animation: fadeOut 1s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.game-reveal-button {
  text-align: center;
  font-size: 1.8rem;
  font-family: 'Bangers', cursive;
  margin: 3rem auto;
  padding: 15px 25px;
  color: #fff;
  background-color: #ff0055;
  border: 4px dashed #ffe900;
  border-radius: 12px;
  cursor: pointer;
  width: fit-content;
  transition: transform 0.3s ease;
}

.game-reveal-button:hover {
  transform: scale(1.05) rotate(-1deg);
  background-color: #e6004f;
}

.top-right-ui {
  position: absolute;
  top: 20px;
  right: 30px;
  text-align: right;
  z-index: 1000;
}

.clock-display {
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  color: #ffe900;
  text-shadow: 1px 1px black;
  margin-bottom: 10px;
}

.toggle-btn {
  font-family: 'Bangers', cursive;
  background-color: #ff0055;
  color: #fff;
  border: 3px dashed #ffe900;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.toggle-btn:hover {
  transform: scale(1.05) rotate(-2deg);
  background-color: #e6004f;
}

.leaderboard-box {
  background: #1a1a1a;
  color: #ffe900;
  border: 4px dashed #ff0055;
  padding: 1rem;
  border-radius: 12px;
  font-family: 'Bangers', cursive;
  text-align: center;
  margin-top: 2rem;
}

.leaderboard-box h3 {
  margin-bottom: 0.5rem;
}


/*
.section:not(#landing) {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

body.scrolled .section {
  opacity: 1;
  pointer-events: auto;
}
*/