.original-surfer-regular {
  font-family: "Original Surfer", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body{
background-image: linear-gradient(to bottom, #73A7BE, #072F6B);
  font-family: "Original Surfer", sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

*{
  font-family: 'Original Surfer';
  color: white;
  text-decoration: none;
}

header {
    background-image: linear-gradient(to bottom, #67a9c6, #1e94c6);
    background-attachment: fixed;
    display: grid;
    grid-auto-columns: 1fr;
    grid-template-columns: 0.4fr 1fr;
    grid-template-rows: 1fr;
    gap: 0px 0px;
    grid-template-areas: "logo nav";
    align-items: center;
}

.nav {
    grid-area: nav;
    display: grid;
    grid-auto-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "Home About Games Contact";
    transition: transform 0.2s ease, box-shadow 0.5s ease;
}

nav a {
    transition: transform 0.2s ease, text-shadow 0.4s ease;
}

nav a:hover {
    transform: scale(1.05);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

nav a:active {
    transform: scale(1.1);
    text-shadow: 0 4px 10px rgb(1, 22, 255);
}

.home {
    grid-area: "Home";
    margin-left: 5%;
    font-size: 1.5vw;
}

.about {
    grid-area: "About";
    margin-left: 5%;
    font-size: 1.5vw;
}

.games {
    grid-area: "Games";
    margin-left: 5%;
    font-size: 1.5vw;
}

.contact {
    grid-area: "Contact";
    margin-left: 5%;
    font-size: 1.5vw;
}

.logo img {
    width: 100px;
    height: auto;
    margin: 10px 20px;
    grid-area: "logo";
}

main h2 {
    color: white;
    text-align: center;
    margin-top: clamp(2rem, 5vw, 50px);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}
  .slideshow {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: clamp(40vh, 70vh, 70vh);
    overflow: hidden;
  }

  .bg-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.6);
    opacity: 0.5;
    z-index: 1;
  }

  .front-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out;
    opacity: 0;
    z-index: 2;
  }

  .front-image.active {
    opacity: 1;
  }
  /* --- Project cards --- */
.slideshow-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  z-index: 3;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: clamp(1rem, 3vh, 3rem) 0;
}

.slideshow {
  position: relative;
  width: 100%;
  height: min(70vh, calc(100dvh - 240px));
  min-height: 320px;
  max-height: 820px;
  perspective: 1200px;
  padding: 0 20px 0 20px;
}

.project {
  position: absolute;
  width: clamp(60%, 62vw, 80%);
  height: clamp(55%, 62vh, 80%);
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.5s ease, opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  text-align: center;
  padding: clamp(1rem, 2rem, 3rem);
}

.project img {
  width: clamp(50%, 65%, 80%);
  border-radius: 10px;
  margin-bottom: clamp(0.5rem, 1rem, 1.5rem);
  background-image: linear-gradient(to bottom, #73A7BE, #072F6B);
  max-width: 400px;
  max-height: 55vh;
  object-fit: contain;
}

.project h2 {
  background-image: linear-gradient(to bottom, #73A7BE, #072F6B);
  font-family: 'Original Surfer', sans-serif;
  width: clamp(250px, 60vh, 100%);
  margin: clamp(0.3rem, 0.5rem, 1rem) 0;
  padding: clamp(0.5rem, 1rem, 2rem) clamp(1rem, 2rem, 3rem);
  border-radius: 5px;
  font-size: clamp(0.9rem, 1.5vw, 1.5rem);
}

.project p {
  font-size: clamp(0.8rem, 1rem, 1.2rem);
  opacity: 0.8;
  margin: 0.5rem;
}

.front {
  transform: translate(-50%, -50%) translateZ(0px);
  opacity: 1;
  z-index: 3;
}

.left {
  transform: translate(calc(-50% - 200px), -50%) rotateY(25deg) scale(0.85);
  opacity: 0.5;
  z-index: 2;
}

.right {
  transform: translate(calc(-50% + 200px), -50%) rotateY(-25deg) scale(0.85);
  opacity: 0.5;
  z-index: 2;
}

.far-left {
  transform: translate(calc(-50% - 400px), -50%) rotateY(40deg) scale(0.65);
  opacity: 0.25;
  z-index: 1;
}

.far-right {
  transform: translate(calc(-50% + 400px), -50%) rotateY(-40deg) scale(0.65);
  opacity: 0.25;
  z-index: 1;
}

.controls {
  display: flex;
  justify-content: center;
  margin-top: clamp(-110px, -8vh, -60px);
  position: relative;
  z-index: 4;
}
/* Hamburger button hidden on large screens */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 30px;
    cursor: pointer;
    margin-right: 20px;
}

.hamburger .bar {
    height: 4px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
}


.controls button {
  background-image: linear-gradient(to bottom, #73A7BE, #072F6B);
  color: #ffffff;
  border: none;
  padding: clamp(0.4rem, 0.5rem, 0.8rem) clamp(0.8rem, 1rem, 1.5rem);
  font-family: 'Mont-bold', sans-serif;
  border-radius: 5px;
  margin: 0 clamp(0.3rem, 0.5rem, 1rem);
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: clamp(0.8rem, 1vw, 1rem);
}

.controls button:hover {
  background-color: #555;
}

/* Footer */
footer{
  background-color:#AD9C65 ;
  height: 20vh;
  margin-top: 22%;
}

footer img{
  width: clamp(40px, 7%, 100px);
  height: auto;
  margin-top: -5%;
  margin-left: clamp(2%, 6%, 10%);
}

@media screen and (max-height: 750px) {
  .slideshow {
    height: min(65vh, calc(100dvh - 220px));
    min-height: 280px;
  }

  .project {
    width: clamp(65%, 70vw, 88%);
    height: clamp(60%, 58vh, 85%);
    top: 46%;
    padding: clamp(0.8rem, 1.4rem, 2rem);
  }

  .project h2 {
    padding: clamp(0.5rem, 0.8rem, 1.2rem) clamp(1rem, 1.6rem, 2rem);
  }

  .project img {
    max-height: 45vh;
  }

  .controls {
    margin-top: clamp(-90px, -6vh, -40px);
  }
}

@media screen and (max-height: 600px) {
  .slideshow {
    height: min(60vh, calc(100dvh - 200px));
    min-height: 240px;
  }

  .project {
    width: 80%;
    height: 70%;
    top: 48%;
  }

  .project img {
    max-height: 40vh;
  }

  .controls button {
    padding: 0.35rem 0.75rem;
  }
}

@media screen and (max-height: 500px) {
  body {
    align-items: stretch;
  }

  .slideshow {
    height: min(55vh, calc(100dvh - 180px));
    min-height: 210px;
    padding: 0 10px;
  }

  .project {
    width: 90%;
    height: 75%;
    top: 50%;
  }

  .project img {
    max-height: 35vh;
  }

  .controls {
    margin-top: clamp(-70px, -5vh, -30px);
  }
}
.coral{
  margin-left: clamp(50%, 70%, 85%);
  margin-top: -5%;
  width: clamp(40px, 7%, 100px);
}

@media screen and (max-width:1024px) {
  header {
    grid-template-columns: 0.3fr 1fr;
  }

  .slideshow {
    height: 50vh;
  }

  .project {
    width: 40%;
    height: 70%;
    padding: 1.5rem;
  }

  .left {
    transform: translate(calc(-50% - 150px), -50%) rotateY(20deg) scale(0.8);
  }

  .right {
    transform: translate(calc(-50% + 150px), -50%) rotateY(-20deg) scale(0.8);
  }

  .far-left {
    display: none;
  }

  .far-right {
    display: none;
  }
}

@media screen and (max-width:768px) {

  .slideshow {
    height: 40vh;
    padding: 0 10px;
  }

  .project {
    width: 45%;
    height: 65%;
    padding: 1rem;
  }

  .project h2 {
    width: 100%;
    padding: 0.7rem 1.5rem;
    font-size: clamp(0.9rem, 1.2rem, 1.3rem);
  }

  .left,
  .right,
  .far-left,
  .far-right {
    display: none;
  }

  .controls {
    margin-top: -200px;
  }

  .controls button {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    margin: 0.25rem;
    margin-left: 20%;
    margin-right: 20%;
  }
  footer {
    margin-top: 30%;
  }
}

@media screen and (max-width:600px) {
  .logo img {
    width: clamp(50px, 6vw, 70px);
    margin: 8px 10px;
  }

  .slideshow {
    height: 35vh;
    padding: 0 5px;
  }

  .project {
    width: 95%;
    height: 60%;
    padding: 0.8rem;
  }

  .project img {
    width: 70%;
    max-width: 200px;
  }

  .project h2 {
    width: 55%;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin: 0.3rem 0;
  }

  .project p {
    font-size: 0.8rem;
  }

  .controls {
    margin-top: -300px;
  }

  .controls button {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    margin: 0.2rem;
    margin-left: 20%;
    margin-right: 20%;
  }

  footer {
    height: auto;
    padding: 1rem;
    margin-top: 50%;
  }

  footer img {
    width: 50px;
    margin: 10px 0 10px 10px;
  }

  .coral {
    margin-left: 0;
    width: 50px;
    margin-top: 10px;
  }
}
@media screen and (max-width: 500px) {

   .controls {
    margin-top: -180px;
  }

  .controls button {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    margin: 0.2rem;
    margin-left: 35%;
    margin-right: 35%;
    margin-bottom: 20%;
  }
  footer{
    margin-top: 40%;
  }

  
}

@media screen and (max-width: 400px) {
   .controls {
    margin-top: -250px;
  }

  .controls button {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    margin: 0.2rem;
    margin-left: 35%;
    margin-right: 35%;
    margin-bottom: 25%;
  }

  
}
/* Show hamburger on smaller screens */
@media screen and (max-width: 750px) {
    .hamburger {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 5px;
        right: 0px;
        background: linear-gradient(to bottom, #73A7BE, #072F6B);
        flex-direction: column;
        width: 150px;
        display: none; 
        border-radius: 10px;
        padding: 10px ;
    }

    .nav a {
        margin: 10px;
    }

    .nav.active {
        display: flex; 
    }
}