/*Main body*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: #0c1226;
  color-scheme: dark;
}

body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  background: radial-gradient(circle at top, #16213e, #050510);
  background-attachment: fixed;
  color: #eee;
}

header {
  display: flex;
  justify-content: space-between;
  padding: 3rem 4rem;
  font-size: 0.75rem;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: #7a8bb5;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

section {
  margin-bottom: 3rem;
}

h2 {
  font-size: 1.5rem;
  letter-spacing: 0.30em;
  padding-left: 0.30em;
  margin-left: 10%;
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
  color: #7a8bb5;
}

/*Icon row/dock*/
.stage {
  min-height: 100vh;
  padding: 0rem 2rem 8rem;
  max-width: 900px;
  margin: 0 auto;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.dock {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(22, 33, 62, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1rem 2rem 0.75rem;
  z-index: 100;
}

.console-menu {
  display: flex;
  gap: 2rem;
}

.console-tile {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

.console-tile .console-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.console-tile .console-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a8bb5;
}

.console-icon-img{
  width: 55%;
  height: auto;
}

.console-tile.active {
  opacity: 1;
}

.console-tile.active .console-icon {
  border-color: #4fc3f7;
  box-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
}

.console-tile.active .console-label {
  color: #4fc3f7;
}

.console-tile:hover {
  opacity: 1;
}

/*Contact Page*/
.social-links-separator {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  margin-top: 0.3rem;
}

.social-link {
  padding: 0.5rem 1rem;
  background: #16213e;
  color: #7a8bb5;
  border: 2px solid transparent;
  border-radius: 20px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-form {
  max-width: 560px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.social-links label,
.form-row label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7a8bb5;
}

.form-row input,
.form-row textarea {
  background: rgba(22, 33, 62, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #eee;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #4fc3f7;
  box-shadow: 0 0 15px rgba(79, 195, 247, 0.3);
}

.form-row textarea {
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.submit-btn {
  padding: 0.7rem 1.5rem;
  background: #16213e;
  color: #4fc3f7;
  border: 2px solid #4fc3f7;
  border-radius: 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  margin-top: 1rem;
  min-height: 1.5rem;
}

.form-status.success {
  color: #6fe3a1;
}

.form-status.error {
  color: #ff7b8a;
}

/*About*/
.about-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-data {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1 1 300px;
  background: #16213e;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
}

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
}

.data-label{
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7a8bb5;
  margin-bottom: 1rem;
  font-weight: bold;
}

.data-value {
  font-size: 1rem;
  color: #eee;
  text-align: right;
}

.about-collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
}

.tile {
  min-width: 0;
  background: rgba(22, 33, 62, 0.6);
  border-radius: 16px;
  padding: 1.5rem;
  overflow: hidden;
}

.tile h3 {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7a8bb5;
  margin-bottom: 1rem;
}

.tile-steam        { grid-column: span 7; }
.tile-movie        { grid-column: span 5; }
.tile-spotify      { grid-column: span 12; }
.tile-youtube      { grid-column: span 12; }
.tile-achievements { grid-column: span 12; }

.tile iframe {
  display: block;
  width: 100%;
  border: none;
  border-radius: 12px;
}

.tile-spotify iframe { height: 152px; }
.tile-steam iframe   { height: 200px; }
.tile-youtube iframe {
  aspect-ratio: 16 / 9;
  height: auto;
}

.tile img {
  display: block;
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.tile-movie img {
  aspect-ratio: 2 / 3;
  max-height: 420px;
}

@media (max-width: 700px) {
  .about-collage .tile {
    grid-column: span 12;
  }
}

.progress-bar {
  height: 8px;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #4fc3f7, #81d4fa);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(79, 195, 247, 0.6);
  transition: width 0.8s ease;
}

.achievement-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.achievement {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
}

.achievement-icon {
  font-size: 1.5rem;
}

.achievement-info {
  flex: 1;
}

.achievement-info p {
  font-size: 0.85rem;
  color: #7a8bb5;
}

.achievement.unlocked {
  border-color: rgba(79, 195, 247, 0.4);
  box-shadow: 0 0 15px rgba(79, 195, 247, 0.15);
}

.achievement.locked {
  opacity: 0.55;
}

.achievement.locked .achievement-icon {
  filter: grayscale(1);
}

.achievement-date {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4fc3f7;
  padding-top: 0.2rem;
}

@media (max-width: 700px) {
  .achievement {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 1rem;
  }

  .achievement-date {
    grid-column: 2;
    padding-top: 0.25rem;
  }

  .achievement-info {
    min-width: 0;
  }
}

.about-paragraph {
  flex: 1 1 300px;
}

.about-paragraph p {
  margin-bottom: 1rem;
}

.about-photo {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: min(355px, 100%);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  flex: 0 0 auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  border-radius: 16px;
}

.photo-item {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.2s ease;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/*Projects*/
.filters {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: #16213e;
  color: #7a8bb5;
  border: 2px solid transparent;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-btn.active {
  border-color: #4fc3f7;
  box-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
}

#project-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
}

.project-card {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  padding: 1.5rem;
  flex: 1 1 250px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1));
  z-index: 0;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
  position: relative;
  color: white;
  z-index: 1;
}

/*Project Page*/
#projects {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.back-link {
  display: inline-block;
  padding: 0rem 3rem;
  color: #7a8bb5;
  font-weight: 600;
  text-decoration: none;
}

#projects h2 {
  overflow: wrap;
}

#project-tags {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tag {
  padding: 0.5rem 1rem;
  background: #16213e;
  color: #7a8bb5;
  border: 2px solid transparent;
  border-radius: 20px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

#project-media {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

#project-media img {
  border-radius: 8px;
  object-fit: cover;
}

.media-gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.media-thumb {
  position: relative;
  flex: 0 0 auto;
  width: min(700px, 85%);
  aspect-ratio: 7 / 4;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.2s ease;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.media-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.media-modal.open {
  display: flex;
}

.modal-content {
  max-width: 90vw;
  max-height: 85vh;
}

.modal-content img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
}

.modal-content iframe {
  width: min(90vw, 900px);
  height: min(50.625vw, 506px);
  /* maintains 16:9 */
  border: none;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.modal-prev {
  left: 1.5rem;
}

.modal-next {
  right: 1.5rem;
}

#project-link {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.link-box {
  padding: 0.5rem 1rem;
  background: #16213e;
  color: #7a8bb5;
  border: 2px solid transparent;
  border-radius: 20px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.project-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

.project-main h3 {
  margin-bottom: 0.75rem;
  color: #4fc3f7;
}

.project-main p {
  margin-bottom: 1rem;
}

.project-info {
  background: rgba(22, 33, 62, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1.5rem;
}

.project-info dt {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7a8bb5;
  margin-top: 1rem;
}

.project-info dt:first-of-type {
  margin-top: 0;
}

.project-info dd {
  margin: 0.25rem 0 0;
}

.review-link {
  color: #ffffff;
  display: inline-block;
}

.tool-tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  margin: 0.2rem 0.3rem 0.2rem 0;
  background: rgba(79, 195, 247, 0.12);
  border-radius: 12px;
  font-size: 0.8rem;
  color: #4fc3f7;
}

@media (max-width: 700px) {
  .project-layout {
    grid-template-columns: 1fr;
  }
}

/*Footer*/
footer {
  text-align: center;
  padding: 2rem;
  background: #1a1a2e;
  color: white;
}