/* =========================
   FONTS
========================= */
@font-face {
  font-family: "RuneScape UF";
  src: url("./fonts/RuneScape-UF.woff2") format("woff2"),
       url("./fonts/RuneScape-UF.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

/* =========================
   GLOBAL RESET
========================= */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "RuneScape UF", Arial, Helvetica, sans-serif;
  background: #fff;
}

/* =========================
   LANDING IMAGE + BUTTONS
========================= */
.landing-wrapper {
  position: relative;
  width: 100%;
}

.landing-image {
  width: 100%;
  display: block;
}

/* =========================
   INVISIBLE LANDING LINKS (CLICKABLE HITBOXES)
========================= */
.landing-link {
  position: absolute;
  display: block;
  width: 17%;
  height: 11%;
  cursor: pointer;
  z-index: 10;
  background: transparent; /* debug mode: rgba(255, 0, 0, 0.3) */ /* transparent normally */
  text-indent: -9999px; /* hides text if any */
  pointer-events: auto;
}

.about-link {
  top: 34%;
  left: 5%;
  height: 10%;
  width: 20%;
}

.instagram-link {
  top: 56%;
  left: 5%;
  width: 20%;
}

.imdb-link {
  top: 78%;
  left: 5%;
  width: 14%;
}

.whatsapp-link {
  top: 46%;
  left: 14%;
  width: 35%;
  height: 8%;
}

.email-link {
  top: 69%;
  left: 25%;
  width: 48%;
  height: 13%;
}

.go-link {
  top: 49%;       
  left: 72%;     
  width: 7%;     
  height: 12%;    
}

/* =========================
   SECTIONS
========================= */
section {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* =========================
   PORTFOLIO GRID
========================= */
.portfolio {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
}

@media (max-width: 1024px) {
  .portfolio {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .portfolio {
    grid-template-columns: 1fr;
  }
}

.tile {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.tile img {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Overlay text */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 20px;
  font-size: 26px;
}

.tile:hover .overlay {
  opacity: 1;
}

@media (hover: none) {
  .tile:active .overlay,
  .tile:focus .overlay {
    opacity: 1;
  }
}

/* =========================
   PROJECT PAGES
========================= */
.project {
  max-width: 1000px;
  margin: 80px auto 0;
  padding: 0 20px;
}

.project img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-bottom: 40px;
}

.project p,
.project li,
.project span,
.project .blurb {
  font-size: 24px;
  line-height: 1.6;
}

.project h1,
.project h2,
.project h3 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 16px;
}

/* Back button */
.back {
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 32px;
  text-decoration: none;
  z-index: 10;
}

/* =========================
   VIDEO
========================= */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-top: 40px;
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-link {
  display: inline-block;
  padding: 12px 24px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  margin: 20px 0 15px;
  font-weight: bold;
  font-size: 18px;
}

.video-link:hover {
  background-color: #333;
}

/* =========================
   FADE IN
========================= */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 1.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   ABOUT SECTION
========================= */
.about-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  width: 100%;
  display: block;
  height: auto;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 120px;
  padding: 0;
}

.footer-inner {
  width: 100%;
  margin: 0;
  padding: 0;
}

.site-footer img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* =========================
   PAGE TRANSITIONS
========================= */
.fade-out {
  opacity: 0;
  transition: opacity 1s ease;
}

.fade-in-page {
  opacity: 0;
  animation: fadeInPage 1s ease forwards;
}

@keyframes fadeInPage {
  to { opacity: 1; }
}

/* =========================
   CUSTOM CURSOR – DESKTOP ONLY
========================= */
@media (min-width: 769px) {
  body {
    cursor: url('./images/cursor/cursor.png?v=1') 16 16, auto;
  }

  a,
  .landing-link,
  .video-link,
  .back,
  button {
    cursor: url('./images/cursor/cursor-hover.png?v=1') 16 16, pointer;
  }
}

@media (max-width: 768px) {
  body,
  a,
  .landing-link,
  .video-link,
  .back,
  button {
    cursor: auto;
  }
}

/* Ensure overlays don’t block clicks */
.tile .overlay {
  pointer-events: none;
}

/* =========================
   FIX PORTFOLIO BOTTOM GAP
========================= */
body, html {
  margin: 0;
  padding: 0;
}

.portfolio {
  margin: 0;
  padding: 0;
}

.tile, .tile img {
  margin: 0;
  padding: 0;
  border: 0;
}

.site-footer {
  margin-top: 0; /* remove extra space above footer */
  padding-top: 0;
}
