@font-face {
  font-family: 'Metropolis';
  src: url('assets/Metropolis-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Quicksand';
  src: url('assets/Quicksand-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  font-family: 'Metropolis', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0B0B0C;
  color: #fff;
  padding: 0;
}

.page {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero .hero-content {
  text-align: center;
  max-width: 1000px;
}

.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
}

.brand {
  display: block;
}

.brand-logo {
  max-width: min(95vw, 720px);
  height: auto;
  display: block;
}

.name {
  align-self: flex-end;
  margin-right: 4.1%;
  margin-top: 1.5rem;
  margin-bottom: 0;
  text-align: right;
  font-size: clamp(1.5rem, 4vw, 2.45rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.name-first {
  color: #3cabfc;
}

.name-last {
  color: #fff;
}

.roles {
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.95;
}

.role-phrase {
  display: inline-block;
  opacity: 0;
  transform: scale(0.9);
  animation: popIn 0.5s ease-out forwards;
}

.role-phrase:nth-child(1) { animation-delay: 0.8s; }
.role-phrase:nth-child(3) { animation-delay: 1.1s; }
.role-phrase:nth-child(5) { animation-delay: 1.4s; }
.role-phrase:nth-child(7) { animation-delay: 1.7s; }

.role-sep {
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
}

.role-sep:nth-child(2) { animation-delay: 0.95s; }
.role-sep:nth-child(4) { animation-delay: 1.25s; }
.role-sep:nth-child(6) { animation-delay: 1.55s; }

/* Page 2 - About & Interests */
.page-2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.top-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .top-sections {
    grid-template-columns: 1fr;
  }
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
}

.section-heading .highlight {
  color: #3cabfc;
}

.section-icon {
  position: absolute;
  top: -0.5rem;
  right: 0;
  opacity: 0.9;
}

.section-icon svg {
  width: 2rem;
  height: 2rem;
}

.about-content,
.interests-content {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 400;
  color: #fff;
}

.interests-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
}

.interests-content span {
  display: inline-flex;
  align-items: center;
}

.interests-content .bullet {
  margin: 0 0.5em;
  opacity: 0.7;
}

.skills-section {
  margin-top: 1.5rem;
}

.skills-heading {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: #fff;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  font-family: 'Quicksand', sans-serif;
  background: #3cabfc;
  color: #000;
  padding: 0.55em 1.35em;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.skill-tag:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
}

/* Page 3 - My Games */
.page-3 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.page-3 .page-heading {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.page-3 .page-heading .highlight {
  color: #3cabfc;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

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

.game-card {
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  background: #151516;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-card-platform {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  opacity: 0.85;
}

.game-card-platform img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(60, 171, 252, 0.2);
  border-color: rgba(60, 171, 252, 0.25);
}

.game-card:hover .game-card-image img {
  filter: brightness(1.1);
}

.game-card-image {
  aspect-ratio: 16 / 9;
  min-height: 180px;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: filter 0.3s ease;
}

.game-card-description {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

/* Page 4 - Get In Touch */
.page-4 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.page-4 .page-heading {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.page-4 .page-heading .highlight {
  color: #3cabfc;
}

.contact-columns {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  gap: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  html {
    scroll-snap-type: none;
  }

  .page {
    scroll-snap-align: none;
  }

  .contact-columns {
    grid-template-columns: 1fr;
    gap: 0.75rem 0;
  }

  .page-4 .page-heading {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 2rem;
  }

  .contact-text {
    display: none !important;
  }

  .contact-label-mobile {
    display: inline-block !important;
    flex-shrink: 0;
  }

  .contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
    padding: 0.85rem 1.25rem;
    background: #3cabfc;
    color: #000;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
  }

  .page-4 .contact-item svg {
    width: 1.1rem;
    height: 1.1rem;
    color: #000 !important;
    filter: brightness(0);
  }

  .contact-item span.contact-label-mobile {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
  }

  .contact-item:hover {
    filter: brightness(1.1);
  }

  .page-4 {
    padding: 1.5rem 1rem;
  }
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s;
}

.contact-item:hover {
  opacity: 0.85;
}

.contact-item svg {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  color: #3cabfc;
}

.contact-item span {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.35rem;
}

.contact-label-mobile {
  display: none;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 0.95;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hero load animation */
.hero .hero-content .brand-header .brand {
  animation: fadeUp 0.8s ease-out 0.2s both;
}
.hero .hero-content .brand-header .name {
  animation: fadeUp 0.8s ease-out 0.4s both;
}

/* Scroll-triggered animations */
.page-2 .top-sections .about-section,
.page-2 .top-sections .interests-section,
.page-2 .skills-section,
.page-3 .page-heading,
.page-3 .game-card,
.page-4 .page-heading,
.page-4 .contact-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page-4 .contact-item {
  transform: translateX(-16px);
}

.page-2.visible .about-section {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}
.page-2.visible .interests-section {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}
.page-2.visible .skills-section {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.page-3.visible .page-heading {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}
.page-3.visible .game-card:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}
.page-3.visible .game-card:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}
.page-3.visible .game-card:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.page-4.visible .page-heading {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}
.page-4.visible .contact-column:first-child .contact-item:nth-child(1) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.1s;
}
.page-4.visible .contact-column:first-child .contact-item:nth-child(2) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.18s;
}
.page-4.visible .contact-column:first-child .contact-item:nth-child(3) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.26s;
}
.page-4.visible .contact-column:last-child .contact-item:nth-child(1) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.14s;
}
.page-4.visible .contact-column:last-child .contact-item:nth-child(2) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.22s;
}
.page-4.visible .contact-column:last-child .contact-item:nth-child(3) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.3s;
}
