/* general reset / lowercase aesthetic */
body,
h1,
h2,
h3,
p,
a,
li,
strong,
small,
input,
button {
  text-transform: lowercase;
  font-family: "PlayStation", sans-serif;
}

body {
  margin: 0;
  padding: 0;
  color: #eee;
  font-size: 15px; /* bumped from 14px → slightly larger */
  line-height: 1.5; /* loosened for readability */

  /* tiled background */
  background-image: url("customization/W_tileDEEPSEA_ANIopt.gif");
  background-repeat: repeat;
  background-size: auto;
  background-attachment: fixed;
}

/* container */
.psone-container {
  max-width: 800px;
  margin: 1.5rem auto;
  padding: 1.2rem;
  background: rgba(20, 20, 20, 0.9);
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

/* nav bar */
.psone-menu {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: #222;
  border-bottom: 2px solid #555;
  font-size: 14px;
}

.psone-menu a {
  text-decoration: none;
  color: #eee;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
}

.psone-menu a:hover {
  background: #444;
  color: #fff;
}

.psone-menu a.active {
  background: #666;
  color: #fff;
}

/* headings */
h1 {
  font-size: 22px;
  margin-bottom: 0.6rem;
}

h2 {
  font-size: 18px;
  margin: 1rem 0 0.5rem;
}

/* paragraphs */
p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

/* lists */
ul {
  padding-left: 1.2rem;
}
ul li {
  margin-bottom: 0.4rem;
  font-size: 15px;
}

/* profile image / logo */
.psone-img {
  display: block;
  max-width: 140px;
  margin: 0.3rem auto;
  border: none;
  border-radius: 0; /* remove circle effect */
}
/* buttons */
.psone-btn,
.psone-btn:link,
.psone-btn:visited,
button.psone-btn {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.5rem 1rem;
  font-size: 12px;
  background: #333;
  color: #fff;
  border: none; /* removes browser default button border */
  border-radius: 0; /* sharp square corners */
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;

  /* boxy shadow (hard edges, no gradient blur) */
  box-shadow: 4px 4px 0 #000;
}

.psone-btn:hover,
button.psone-btn:hover {
  background: #555;
  box-shadow: 6px 6px 0 #000; /* pops out more on hover */
}

/* portfolio search */
.search-box {
  width: 100%;
  padding: 0.5rem;
  margin: 1rem 0;
  border-radius: 4px;
  border: 1px solid #666;
  background: #222;
  color: #eee;
  font-size: 14px;
}

/* audio player at top */
.audio-player {
  margin: 1rem 0;
  padding: 0.8rem;
  background: rgba(30, 30, 30, 0.8);
  border-radius: 1px;
  text-align: center;
}

/* condensed portfolio list */
.portfolio-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.portfolio-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.6rem;
  margin-bottom: 0.6rem;
  background: rgba(30, 30, 30, 0.8);
  border-radius: 6px;
  font-size: 14px;
}

.portfolio-row a {
  color: #eee;
  text-decoration: none;
  font-weight: bold;
}

.portfolio-row a:hover {
  text-decoration: underline;
}

.portfolio-row small {
  color: #aaa;
  font-size: 12px;
}

/* inline video player */
.video-player {
  margin-top: 0.6rem;
}

.video-player iframe {
  width: 100%;
  max-width: 480px;
  height: 270px;
  border-radius: 4px;
}

/* small tags */
small {
  color: #aaa;
  font-size: 13px;
}

/* featured projects audio players */
.portfolio-item audio {
  transform: scale(0.8); /* scale down to 80% of normal size */
  transform-origin: top left; /* keep it aligned nicely */
  display: inline-block;
  margin-top: 0.3rem;
}

/* === YOUR EXISTING STYLES (unchanged above this line) === */

/* featured projects audio players */
.portfolio-item audio {
  transform: scale(0.8); /* scale down to 80% of normal size */
  transform-origin: top left; /* keep it aligned nicely */
  display: inline-block;
  margin-top: 0.3rem;
}

/* =====================
   RESPONSIVE OPTIMIZATION
   ===================== */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden; /* no sideways scroll */
  }

  body {
    font-size: 13px;
    line-height: 1.3;
  }

  .psone-container {
    width: 95%;
    max-width: 100%;
    margin: 0.8rem auto;
    padding: 0.8rem;
    box-sizing: border-box;
  }

  .psone-menu {
    flex-wrap: wrap;
    gap: 0.3rem;
    font-size: 12px;
    padding: 0.4rem;
  }

  .psone-menu a {
    padding: 0.2rem 0.4rem;
    font-size: 12px;
  }

  h1 {
    font-size: 16px;
    margin-bottom: 0.4rem;
  }

  h2 {
    font-size: 14px;
    margin: 0.6rem 0 0.3rem;
  }

  p,
  li {
    font-size: 13px;
    margin-bottom: 0.6rem;
  }

  .psone-img {
    max-width: 80px;
  }

  .psone-btn,
  button.psone-btn {
    padding: 0.3rem 0.6rem;
    font-size: 11px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .audio-player {
    padding: 0.4rem;
    margin: 0.6rem 0;
  }

  .portfolio-row {
    padding: 0.4rem;
    font-size: 12px;
    margin-bottom: 0.4rem;
  }

  .video-player iframe,
  .thumb-video,
  video {
    width: 100% !important;
    height: auto !important;
    max-height: 180px; /* reduce vertical space */
    display: block;
    box-sizing: border-box;
  }

  .portfolio-item audio {
    width: 100% !important;
    height: 26px !important;
    margin: 0.2rem 0;
    transform: scale(1) !important; /* keep proper sizing */
    display: block;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden; /* no sideways scroll */
  }

  body {
    font-size: 12px;
    line-height: 1.3;
  }

  .psone-container {
    padding: 0.6rem;
    margin: 0.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  h1 {
    font-size: 14px;
  }

  h2 {
    font-size: 13px;
  }

  .psone-btn,
  button.psone-btn {
    width: 100%; /* buttons fit screen */
    text-align: center;
    font-size: 11px;
    padding: 0.4rem;
    box-sizing: border-box;
  }

  .psone-img {
    max-width: 60px;
  }

  .portfolio-row {
    font-size: 11px;
    padding: 0.3rem;
  }

  .video-player iframe,
  .thumb-video,
  video {
    width: 100% !important;
    max-height: 140px;
    height: auto !important;
    display: block;
  }

  .portfolio-item audio {
    width: 100% !important;
    height: 24px !important;
    margin: 0.2rem 0;
  }

  html,
  body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden; /* stop side-scroll */
  }

  .psone-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto; /* force center */
    box-sizing: border-box;
  }

  .portfolio-item,
  .video-player,
  audio,
  video,
  iframe {
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
    display: block; /* center block elements */
  }
}
