/* ================= ROOT & GLOBAL ================= */
:root{
  --black:#0b0b0b;
  --dark:#1a1a1a;
  --orange:#ff7a00;
  --red:#e63946;
  --red2:#ff081c;
  --yellow:#ffd000;
  --white:#fff;
  --gray:#aaa;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins',sans-serif;
}

body{
  background:var(--black);
  color:var(--white);
  transition:background .6s ease;
  overflow-x:hidden;
}

body.mode-games{--accent:var(--orange);}
body.mode-beats{--accent:var(--red);}

body.mode-games{--accent2:var(--yellow);}
body.mode-beats{--accent2:var(--red2);}

/* ================= NAV ================= */
nav{
  position:fixed;
  top:0;
  width:100%;
  z-index:1000;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 52px;
  background:rgba(0,0,0,.8);
  backdrop-filter:blur(12px);
}

.nav-left{
  display:flex;
  align-items:center;
  gap:18px;
}


/* Logo */
.logo-container{
  position:relative;
  width:120px;
  height:100px;
}

.logo{
  position:absolute;
  inset:0;
  height:100%;
  transition:opacity .5s ease, transform .5s ease;
}

/* ================= MODE SWITCH ================= */
#modeSwitch{
  width:50px;
  height:50px;
  border-radius:50%;
  border:none;
  background:var(--accent);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .5s ease;
}

#modeSwitch1{
  width:50px;
  height:50px;
  border-radius:50%;
  border:none;
  background:var(--accent);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .5s ease;
}

.switch-icon{
  width:24px;
  height:24px;
  background-size:contain;
  background-repeat:no-repeat;
  transition:transform .6s cubic-bezier(.68,-.55,.27,1.55);
}

.mode-games #modeSwitch .switch-icon{background-image:url("images/icon-games.png");}
.mode-beats #modeSwitch .switch-icon{background-image:url("images/icon-beats.png");}

.mode-games #modeSwitch1 .switch-icon{background-image:url("images/icon-games.png");}
.mode-beats #modeSwitch1 .switch-icon{background-image:url("images/icon-beats.png");}

.switch-animate{animation:rotateScale .6s ease-in-out;}

@keyframes rotateScale{
  0%{transform:scale(1) rotate(0);}
  50%{transform:scale(1.3) rotate(180deg);}
  100%{transform:scale(1) rotate(360deg);}
}

/* ================= NAV LINKS ================= */
nav ul{
  display:flex;
  gap:32px;
  list-style:none;
}

nav a{
  color:white;
  text-decoration:none;
  position:relative;
}

nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:var(--accent);
  transition:.3s;
}

nav a:hover::after{width:100%;}

/* ================= SECTIONS ================= */
section{
  padding:140px 10%;
  transition:opacity .5s ease, transform .5s ease, filter .5s ease;
}

/* ================= HOME / HERO ================= */
#home{
  min-height: clamp(10vh, 100vh, 320px);
  display:flex;
  align-items:center;
  background:radial-gradient(circle at top,#1a1a1a,#000);
}

#home{
  min-height: 10vh;
}

@media (max-height: 700px){
  #home{
    min-height: 40vh;
  }
}

@media (max-height: 500px){
  #home{
    min-height: 30vh;
    max-height: 20vh;
  }
}


.home{
  background:
    linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.6)),
    url("images/herobg-beats.png");
  background-repeat:repeat;
  background-size:150px;
}

#homebeats{
  min-height:10vh;
  display:flex;
  align-items:center;
  background:radial-gradient(circle at top,#1a1a1a,#000);
}

.homebeats{
  background:
    linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.6)),
    url("images/herobg-beats.png");
  background-repeat:repeat;
  background-size:50px;
}

.hero{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
  width:100%;
  min-height:80vh;
}

.herobeats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
  width:100%;
  min-height:40vh;
}

.hero-wrap{width:100%;}

.hero-text h1{
  font-size:54px;
}

body.mode-beats .hero-text h1{
  font-size:64px;
  letter-spacing:1px;
}

.hero-text p{
  margin-top:18px;
  max-width:520px;
  color:var(--gray);
}

.hero-buttons{
  margin-top:24px;
  display:flex;
  gap:18px;
}

/* Hero image */
.hero-img{
  position:relative;
  width:320px;
  height:320px;
  margin:auto;
}

.hero-img img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:32px;
  box-shadow:0 20px 50px rgba(0,0,0,.6);
  transition:opacity .6s ease, transform .6s ease;
}

/* ================= BUTTON ================= */
.btn {
  padding:12px 30px;
  border-radius:30px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#000;
  text-decoration:none;
  font-weight:600;
  transition:.3s;
}

.btn:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 20px rgba(0,0,0,.3);
}

/* ================= TITLES ================= */
.section-title{
  text-align:center;
  margin-bottom:60px;
}

.section-title h2{
  font-size:40px;
  color:var(--accent);
}

.section-title p{color:var(--gray);}

/* ================= GAMES ================= */
.games-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
}

.beat-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(280px,1fr));
  gap:30px;
  justify-content:center; /* optional but looks nice */
}


.game-card{
  background:#111;
  border-radius:18px;
  overflow:hidden;
  color:rgb(139, 97, 97);
  text-decoration:none;
  transition:.4s ease;
  box-shadow:0 15px 35px rgba(0,0,0,.5);
}

.game-card img{
  width:100%;
  aspect-ratio:16/12;
  object-fit:cover;
  display:block;
}

.beat-card{
  background:#111;
  border-radius:18px;
  overflow:hidden;
  color:white;
  text-decoration:none;
  transition:.4s ease;
  box-shadow:0 15px 35px rgba(0,0,0,.5);
}

.beat-card img{
  width:50%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
  border: var(--accent);
  border-radius: 30px;
  margin: 10px auto;
}

.beat-tags{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin:8px 0;
}

.tag{
  font-size:12px;
  padding:4px 8px;
  border-radius:20px;
  background:var(--dark);
  color:var(--accent);
  border:1px solid var(--accent);
}

.timeline{
  display:flex;
  align-items:center;
  gap:8px;
  margin:10px 0;
}

.timeline span{
  font-size:12px;
  color:var(--gray);
  width:38px;
  text-align:center;
}

.timeline input[type="range"]{
  flex:1;
  cursor:pointer;
}


.beat-img-container {
    position: relative;
    width: 80%;
    aspect-ratio: 1/1; /* square image */
    border-radius: 30px;
    overflow: hidden;
    margin: 10px auto;
}

.beat-img-container img.beat {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-overlay {
    position: absolute;
    top: 53.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent); /* match your site accent */
    border: none;
    border-radius: 50%;
    width: 75px;
    height: 75px;
    color: #fff;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.play-overlay:hover {
    background: var(--accent2);
    transform: translate(-50%, -50%) scale(1.1);
}


/* Container for audio */
.beat-card audio {
    width: 100%;            /* make it full width of card */
    height: 40px;           /* taller than default */
    background: var(--dark); /* match your site background */
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    display: block;
    margin: 10px 0;
}

/* Hide default progress bar background (WebKit) */
.beat-card audio::-webkit-media-controls-panel {
    background-color: var(--dark);
    border-radius: 12px;
}

/* Control buttons color (Chrome/Safari only) */
.beat-card audio::-webkit-media-controls-play-button,
.beat-card audio::-webkit-media-controls-volume-slider {
    filter: invert(1) brightness(1.2);
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--dark);
    padding: 8px 12px;
    border-radius: 12px;
    width: 100%;
}

.audio-player button {
    background: var(--accent);
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    color: var(--white);
}

.audio-player input[type="range"] {
    flex: 1;
    cursor: pointer;
}

.audio-player .time {
    color: var(--white);
    font-size: 0.85rem;
}



.game-info{padding:18px;}

.game-info h3{
  font-size:25px;
  margin-bottom:6px;
  color:var(--accent);
}

.game-info p{
  font-size:14px;
  color:var(--gray);
}

.game-card:hover{
  transform:translateY(-10px) scale(1.02);
  box-shadow:0 30px 60px rgba(0,0,0,.7);
}

.beat-card:hover{
  transform:translateY(-10px) scale(1.02);
  box-shadow:0 30px 60px rgba(0,0,0,.7);
}

/* ================= MEDIA / BEATS ================= */
.media-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:20px;
  width:100%;
}

iframe{
  width:100%;
  border:none;
  border-radius:16px;
  background:#000;
  aspect-ratio:16/9;
}

/* Only YouTube iframes get fixed size */
.media-grid iframe[src*="youtube.com"] {
  width: 100%;
  height: 100%;
}


.spotify{
  text-align:center;
  margin-top:45px;
}

.spotify iframe{
  max-width:720px;
  height:380px;
}

.spotify-desc{
  margin-top:16px;
  color:var(--gray);
}

/* ================= ABOUT ================= */
.about{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:45px;
}

.about img {
  width: 220px;
  height: 220px;
  border-radius: 100%;
  outline: 20px solid var(--accent);
  outline-offset: -5px; /* moves the outline inward */
}


/* ================= CONTACT ================= */
.contact-box{
  max-width:620px;
  margin:auto;
  background:var(--dark);
  padding:42px;
  border-radius:22px;
}

.contact-box input,
.contact-box textarea{
  width:100%;
  padding:13px;
  margin-bottom:16px;
  background:#111;
  border:none;
  color:white;
  border-radius:10px;
}

/* ================= FOOTER ================= */
footer{
  text-align:center;
  padding:45px;
  color:var(--gray);
}

.socials{
  display:flex;
  gap:22px;
  justify-content:center;
  margin-bottom:18px;
}

.social-btn {
  width:52px;
  height:52px;
  border-radius:50%;
  background: var(--accent);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#000;
  transition:.3s;
}


.social-btn:hover{transform:scale(1.15);}

/* ================= FADE ================= */
.fade{
  opacity:0;
  transform:translateY(30px);
  transition:.8s ease-out;
}

.fade.show{
  opacity:1;
  transform:none;
}

/* ================= MODE VISIBILITY ================= */
.games-only,
.beats-only{
  transition:opacity .5s ease, transform .5s ease;
}

body.mode-games .beats-only,
body.mode-beats .games-only{
  opacity:0;
  pointer-events:none;
  display:none!important;
}

section.games-only,
section.beats-only{
  display:block!important;
}

/* ================= SWITCH OVERLAY ================= */
body::after{
  content:"";
  position:fixed;
  inset:0;
  background:var(--accent);
  z-index:9999;
  opacity:0;
  pointer-events:none;
  transition:opacity .4s ease-in-out;
}

body.switching::after{opacity:.15;}

body.switching section{
  opacity:0;
  filter:blur(10px);
}

/* ================= ICON TOGGLE ================= */
.switch-icon i{
  position:absolute;
  font-size:1.5rem;
  color:#000;
  transition:transform .5s cubic-bezier(.175,.885,.32,1.275), opacity .3s;
}

body.mode-games .fa-music{opacity:0;transform:scale(0) rotate(-180deg);}
body.mode-beats .fa-gamepad{opacity:0;transform:scale(0) rotate(180deg);}
body.mode-games .fa-gamepad{opacity:1;transform:none;}
body.mode-beats .fa-music{opacity:1;transform:none;}

/* ================= COLLABS & REVIEWS ================= */

.collab-grid,
.reviews-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr); /* fixed count */
  gap:20px;
  margin-top:40px;
}

@media (max-width:1200px){
  .collab-grid,
  .reviews-grid{
    grid-template-columns:repeat(3,1fr);
  }
}

@media (max-width:800px){
  .collab-grid,
  .reviews-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:500px){
  .collab-grid,
  .reviews-grid{
    grid-template-columns:1fr;
  }
}


.collab-card{
  background:#111;
  padding:20px;
  border-radius:12px;
  text-align:center;
  color:var(--white);
  border:1px solid transparent;
  transition:.3s ease;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.collab-card:hover{
  border-color:var(--accent);
  transform:scale(1.05);
}

.collab-img{
  width:120px;
  height:120px;
  border-radius:50%;
  object-fit:cover;
  margin-bottom:10px;
  border:2px solid #fff;
}

.review-card{
  background:#111;
  padding:25px;
  border-radius:16px;
  border-left:4px solid var(--orange);
}

.review-card p{
  font-style:italic;
  font-size:15px;
  color:var(--gray);
  margin-bottom:15px;
}

.review-card .client{
  font-size:13px;
  font-weight:600;
}

/* ================= RESPONSIVE ================= */
@media (max-width:768px){
  .hero{grid-template-columns:1fr;text-align:center;}
  .hero-img{width:250px;height:250px;margin-top:40px;}
  nav{padding:14px 20px;}
}

/* ================= LANGUAGE DROPDOWN ================= */

.lang-switch{
  position:relative;
}

#lang-dropdown{
  position:absolute;
  top:60px;
  right:0;
  background:#111;
  border-radius:14px;
  padding:10px;
  min-width:140px;
  box-shadow:0 15px 40px rgba(0,0,0,.6);
  display:none;
  z-index:2000;
}

/* Main button */
#lang-btn{
  width:52px;
  height:52px;
  border-radius:50%;
  border:none;
  background:rgba(255,255,255,0.08);
  backdrop-filter:blur(6px);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:
    transform .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

#lang-dropdown.show{
  display:block;
}

.lang-option{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  cursor:pointer;
  border-radius:10px;
  transition:background .2s ease;
  color:white;
}

.lang-option img{
  width:22px;
  height:16px;
  object-fit:cover;
  border-radius:3px;
}

/* Flag inside button */
#current-flag {
    width:28px;
    height:20px;
    border-radius:4px;
    object-fit:cover;
    box-shadow:0 2px 6px rgba(0,0,0,.5);
}

.dropdown-flag {
    width:22px;
    height:16px;
    border-radius:3px;
    object-fit:cover;
    margin-right:8px;
}


/* Hover / active */
#lang-btn:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,0.14);
  box-shadow:0 10px 25px rgba(0,0,0,.4);
}

#lang-btn:active{
  transform:scale(0.95);
}

/* Optional accent ring */
body.mode-games #lang-btn{
  box-shadow:0 0 0 2px var(--orange);
}

body.mode-beats #lang-btn{
  box-shadow:0 0 0 2px var(--red);
}

.hero-img .character1{
  all: unset;
  position: relative;
  right: -10vw;
  top: -10vw;
  transition:opacity .6s ease, transform .6s ease;
  width: 80vw;
}

/* PARALLAX LAYER */
.character2-parallax{
  position: relative;
  right: 10vw;
  top: -40vw;
  transform: translateY(var(--parallaxY, 0px));
  transition: transform .1s linear;
}

/* FLOATING IMAGE */
.hero-img .character2{
  all: unset;
  width: 20vw;
  rotate: 30deg;

  animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-25px); }
  100% { transform: translateY(0); }
}

.project-page{
    padding:0px 10%;
    color:var(--white);
}

#projectHeader{
    text-align:center;
    margin-bottom:60px;
    min-height: clamp(10vh, 100vh, 320px);
    display:flex;
    align-items:center;
    background:radial-gradient(circle at top,#1a1a1a,#000);
}

#projectHeader{
  min-height: 10vh;
}

@media (max-height: 700px){
  #projectHeader{
    min-height: 40vh;
  }
}

@media (max-height: 500px){
  #projectHeader{
    min-height: 30vh;
    max-height: 20vh;
  }
}

.game-logo{
    max-width:800px;
    margin:auto;
    display:block;
    width: 150%;
    filter:drop-shadow(0 0 25px rgb(0, 0, 0));
     transition: transform 0.35s ease;
  will-change: transform;
  transform: translateY(var(--parallax, 0px)) scale(1);
}

.game-logo:hover {
  transform: translateY(var(--parallax, 0px)) scale(1.08);
}

.project-title{
    font-size:48px;
    margin:18px 0;
    color:var(--accent);
}

.project-links{
    display:flex;
    justify-content:center;
    gap:18px;
    margin-top:12px;
}

.project-links .link-btn{
    width:100px;
    height:100px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:var(--accent);
    color:#000;
    transition:.3s;
    text-decoration: none;
    filter:drop-shadow(0 0 25px rgb(0, 0, 0));
}

.project-links .link-btn .fas,
.project-links .link-btn .fab {
    font-size: 48px; /* make the icon bigger */
    transition: .3s; /* optional, for smooth hover effects */
    text-decoration: underline;
    text-decoration-thickness: 5px; /* optional thickness */
    text-underline-offset: 10px; /* move it below the icon */
}


.project-links .link-btn:hover{
    transform:scale(1.15);
}

.project-content{
    display:block;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:start;
}

.project-content .description{
    color:var(--gray);
    line-height:1.6;
    font-size:25px;
}

.media-gallery{
    display:grid;
    gap:20px;
}

.media-gallery .media-item img,
.media-gallery .media-item iframe{
    width:100%;
    border-radius:16px;
    box-shadow:0 15px 40px rgba(0,0,0,.6);
}

#projectHeader{
  position:relative;
  min-height:60vh;
}

/* overlay */
#projectHeader::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,.55),
    rgba(0,0,0,.85)
  );
  z-index:1;
  pointer-events:none;
}

/* everything inside header */
#projectHeader > *{
  position:relative;
  z-index:2;
}


.header-nsr .game-logo{
  filter:drop-shadow(0 0 25px rgb(239, 13, 13));
}

.header-moon .game-logo{
  filter:drop-shadow(0 0 25px rgb(255, 255, 255));
}

.header-nsr{
  background-position:top;
}

/* ================= SEARCH INPUT ================= */
#search-beats {
    width: 100%;
    max-width: 500px;
    padding: 14px 20px;
    font-size: 20px;
    border-radius: 30px;
    border: 2px solid var(--accent);
    background: rgba(20, 20, 20, 0.85); /* dark semi-transparent glass effect */
    color: var(--white);
    outline: none;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.25), 0 0 25px rgba(255, 0, 0, 0.1);
    backdrop-filter: blur(8px); /* frosted glass effect */
    transition: all 0.3s ease;
    text-align: left;
}

/* Hover & focus effects */
#search-beats:hover,
#search-beats:focus {
    border-color: var(--accent2);
    box-shadow: 0 0 25px var(--accent), 0 0 45px rgba(255,255,255,0.1);
    background: rgba(30, 30, 30, 0.95);
    color: var(--white);
}

/* Placeholder styling */
#search-beats::placeholder {
    color: var(--gray);
    opacity: 1;
    font-style: italic;
    font-size: 18px;
}

/* ====== SKINS SECTION ====== */

.skins-section {
  text-align: center;
  margin-top: 80px;
}

.skins-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.skin-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.skin-display {
  width: 280px;
  height: 280px;
  position: relative;
}

.skin-display img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  position: relative;
  left: 20px;
  filter:drop-shadow(0 0 10px rgba(255, 208, 0, 0.398));
  transform: scale(0.9);
  transition: all 0.35s ease;
}

.skin-display img.show {
  opacity: 1;
  transform: scale(1);
}

.skin-display img.slide-left {
  transform: translateX(-40px) scale(0.9);
  opacity: 0;
}

.skin-display img.slide-right {
  transform: translateX(40px) scale(0.9);
  opacity: 0;
}

#skinName {
  margin-top: 12px;
  font-weight: 600;
  font-size: 1.3rem;
}

.skin-arrow {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.skin-arrow:hover {
  transform: scale(1.2);
}


@media (max-width: 768px) {
  .hero-img .character1 {
    width: 90%;
    right: 0;
    top: 0;
  }

  .hero-img .character2 {
    width: 120px;
    rotate: 0deg;
  }

  .character2-parallax {
    right: 0;
    top: 0;
    transform: none;
  }
}

@media (max-width: 768px) {
  .hero,
  .herobeats {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: unset;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  body.mode-beats .hero-text h1 {
    font-size: 42px;
  }

  .hero-text p {
    font-size: 16px;
  }
}
@media (max-width: 768px) {
  nav {
    padding: 12px 16px;
  }

  #modeSwitch,
  #modeSwitch1,
  #lang-btn {
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 600px) {
  .beat-card img,
  .beat-img-container {
    width: 100%;
    border-radius: 20px;
  }

  .beat-grid,
  .games-grid {
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .audio-player {
    padding: 12px;
  }

  .audio-player button {
    padding: 10px 16px;
    font-size: 16px;
  }

  .audio-player input[type="range"] {
    height: 30px;
  }
}
@media (max-width: 768px) {
  .game-logo {
    width: 100%;
    max-width: 320px;
  }

  .project-title {
    font-size: 32px;
  }

  .project-content .description {
    font-size: 18px;
  }
}
@media (max-width: 768px) {
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about img {
    margin: 0 auto;
  }
}
#search-beats {
  width: 100%;
  max-width: min(500px, 90vw);
}
img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}
/* ================= MOBILE: HIDE HERO CHARACTERS ================= */
@media (max-width: 768px) {
  .hero-img,
  .hero-img .character1,
  .hero-img .character2,
  .character2-parallax {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 40px;
  }
}
/* ===== NAV TEXT & ICON SWITCH ===== */

/* Desktop: show text, hide mobile icon */
nav a .mobile-icon {
  display: none;
  left: 50px;
}

nav a span {
  display: inline-block;
  font-size: 16px; /* your regular nav font size */
}

/* Hover color */
nav a:hover span {
  color: var(--accent);
}

/* Mobile: hide text, show icons */
@media (max-width: 768px) {
  nav a span {
    display: none;
  }

  nav a .mobile-icon {
    display: inline-block;
    font-size: 20px; /* icon size on mobile */
    color: var(--white);
    transition: color 0.3s ease;
  }

  nav a:hover .mobile-icon {
    color: var(--accent);
  }
}
nav a {
  display: flex;
  align-items: center;
}

nav a i, 
nav a .mobile-icon {
  margin-right: 12px; /* The requested space */
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

/* ================= MOBILE-ONLY NAV & HEADER REDUCTION ================= */

@media (max-width: 768px) {
  /* 1. Navbar: Fit everything on one line */
  nav {
    padding: 8px 12px;
  }

  .nav-left {
    gap: 12px; 
    margin-right: 20px; /* Space between the switches and the nav links */
  }

  /* 2. Smaller Switch Buttons (Mobile Only) */
  #modeSwitch, 
  #modeSwitch1, 
  #lang-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
  }

  .switch-icon {
    width: 20px;
    height: 20px;
  }

  /* 3. Smaller Logo (Mobile Only) */
  .logo-container {
    width: 55px;
    height: 45px;
  }

  /* 4. Compact Nav Links */
  nav ul {
    gap: 12px; 
  }

  nav a .mobile-icon {
    font-size: 18px;
    margin-right: 0;
  }

  /* 5. Smaller Header Section */
  #home, #homebeats, #projectHeader {
    min-height: 45vh !important; 
    padding: 80px 5% 30px !important;
  }

  .hero-text h1 {
    font-size: 26px !important;
  }

  body.mode-beats .hero-text h1 {
    font-size: 30px !important;
  }

  .hero-text p {
    font-size: 14px;
    margin-top: 8px;
  }

  /* Shrink project logo and buttons */
  .game-logo {
    max-width: 200px;
  }

  .project-links .link-btn {
    width: 55px;
    height: 55px;
  }

  .project-links .link-btn i {
    font-size: 22px !important;
  }
}

/* ===== EXTRA SMALL MOBILE NAV COMPRESSION ===== */
@media (max-width: 768px) {

  /* Remove hidden spacing browsers add */
  nav ul {
    gap: 6px !important;
  }

  nav li {
    padding: 0;
    margin: 0;
  }

  nav a {
    padding: 4px 6px !important; /* clickable but tiny */
  }

  /* ICONS — the real fix */
  nav a .mobile-icon {
    font-size: 14px !important;   /* was 18 */
    line-height: 1;
  }

  /* Switch buttons become pure icons */
  #modeSwitch,
  #modeSwitch1,
  #lang-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px;
    padding: 0 !important;
    border-radius: 8px;
  }

  .switch-icon {
    width: 14px;
    height: 14px;
  }

  /* Tighten left side */
  .nav-left {
    gap: 6px;
    margin-right: 8px;
  }

  /* Logo shrink more */
  .logo-container {
    width: 40px;
    height: 34px;
  }
}

/* ================= CHECKOUT PAGE ================= */

.checkout-wrapper{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:140px 20px 80px;
  background:radial-gradient(circle at top,#1a1a1a,#000);
}

.checkout-card{
  width:100%;
  max-width:520px;
  background:rgba(20,20,20,0.9);
  backdrop-filter:blur(12px);
  border-radius:24px;
  padding:40px;
  box-shadow:0 25px 60px rgba(0,0,0,.7);
  border:1px solid rgba(255,255,255,0.05);
}

.checkout-card h1{
  text-align:center;
  font-size:34px;
  margin-bottom:20px;
  color:var(--accent);
}

.checkout-price{
  text-align:center;
  font-size:18px;
  margin-bottom:8px;
}

.checkout-note{
  text-align:center;
  font-size:14px;
  color:var(--gray);
  margin-bottom:30px;
}

.checkout-card label{
  display:block;
  margin-bottom:6px;
  font-weight:500;
  font-size:14px;
}

.checkout-card input{
  width:100%;
  padding:14px 16px;
  margin-bottom:18px;
  background:#111;
  border:2px solid transparent;
  border-radius:14px;
  color:white;
  font-size:14px;
  transition:.3s ease;
}

.checkout-card input:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 20px rgba(255,0,0,0.2);
}

.checkout-btn{
  width:100%;
  padding:14px;
  border-radius:30px;
  border:none;
  font-weight:600;
  cursor:pointer;
  font-size:16px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#000;
  transition:.3s ease;
}

.checkout-btn:hover{
  transform:translateY(-4px);
  box-shadow:0 15px 30px rgba(0,0,0,.4);
}

/* PayPal container spacing */
#paypal-container-XDYXLXKALETKE{
  margin-top:25px;
}

/* Responsive */
@media (max-width:600px){
  .checkout-card{
    padding:28px;
  }

  .checkout-card h1{
    font-size:26px;
  }
}
