@font-face {
    font-family: 'Pixelify Sans';
    src: url('fonts/PixelifySans-VariableFont_wght.ttf');
}

@font-face {
    font-family: 'Intel One Mono';
    src: url('fonts/IntelOneMono-VariableFont_wght.ttf');
}

/* -- BASE --*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#site-description {
  font-family: 'Intel One Mono', monospace;
  font-size: 1rem;
  color: #11d4f3;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Inconsolata', monospace;
    min-height: 100vh;
}

/* -- HEADER --*/
header {
    text-align: center;
    padding: 4rem 2rem 3rem;
    display: grid;
    justify-items: center;
    gap: 2rem;
}

#logo-row {
  display: grid;
  grid-auto-flow: column;
  gap: 3rem;
  align-items: center;
  justify-content: center;
}

#logo-row img {
  width: 180px;
  height: auto;
}

header h1 {
    font-family: 'Pixelify Sans', monospace;
    font-size: 3rem;
    color: #e6ff4a;
    font-weight: 700;
    letter-spacing: 0.05em;
}

header img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(20, 103, 246, 0.6));
}

header h2 {
    font-family: 'Pixelify Sans', monospace;
    font-size: 1.1rem;
    color: #11d4f3;
    max-width: 900px;
    text-align: left;
    font-style: italic;
    line-height: 1.8;
    padding: 0.2rem;
}

header blockquote {
    font-family: 'Intel One Mono', monospace;
    font-size: 1.1rem;
    color: #11d4f3;
    max-width: 900px;
    text-align: left;
    line-height: 1.8;
    padding: 0.2rem;
}

/*--MAIN / CHARACTER SECTION --*/
main {
    padding: 2rem;
}

#character-section {
  background-color: #11d4f3;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: auto auto;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 4px;
}

#character-info section {
    margin-bottom: 2rem;
}

#character-info section:last-child {
    margin-bottom: 0;
}

#character-info h3 {
  font-family: 'Pixelify Sans', monospace;
  font-size: 1.5rem;
  color: #11d4f3;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid #11d4f3;
  padding-bottom: 0.3rem;
}

#character-info p {
  font-family: 'Intel One Mono', monospace;
  line-height: 1.7;
  font-size: 0.95rem;
}

#character-art {
  grid-column: 1;
  grid-row: 1;
  background-color: #A21111;
  padding: 1.5rem;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  border-radius: 4px;
}

#character-art-unmasked {
  grid-column: 1;
  grid-row: 2;
  background-color: #A21111;
  padding: 1.5rem;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  border-radius: 4px;
}

#character-info {
  grid-column: 2;
  grid-row: 1 / 3;
  background-color: #f0f0e8;
  padding: 2rem;
  color: #000;
  border-radius: 4px;
  overflow-wrap: break-word;
}

#rien-image,
#rien-image-unmasked {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s;
}

#rien-image:hover,
#rien-image-unmasked:hover {
  transform: scale(1.02);
}

#art-toggle,
#art-toggle-unmasked {
  background: none;
  border: none;
  font-family: 'Intel One Mono', monospace;
  font-size: 1.2rem;
  color: #000;
  cursor: pointer;
  justify-self: end;
  padding: 0.3rem 0.6rem;
  transition: color 0.2s;
}

#art-toggle:hover,
#art-toggle-unmasked:hover {
  color: #11d4f3;
}

/*--MODAL--*/
#modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 2rem;
}

#modal[hidden] {
    display: none;
}

#modal-image {
   width: auto;
   height: 90vh;
   max-width: 90vw;
   object-fit: contain;
   border: 2px solid #11d4f3;
}

#modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: 2px solid #11d4f3;
    color: #11d4f3;
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    font-family: 'Intel One Mono', monospace;
    transition: all 0.2s;
}

#modal-close:hover {
    background-color: #11d4f3;
    color: #000;
}

/* -- SKILLS SECTION --*/
#skills-section {
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

#skills-section h2 {
  font-family: 'Pixelify Sans', monospace;
  font-size: 2.5rem;
  color: #11d4f3;
  text-align: center;
  margin-bottom: 2.5rem;
}

#skills-container {
  display: grid;
  gap: 1.5rem;
}

.skill-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
}

/* -- SKILL CARD -- */
.skill-card {
  background-color: #0a0a0a;
  border: 2px solid #11d4f3;
  border-radius: 4px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem;
  align-items: stretch;
}

/* -- LEFT SIDE (coin + info) -- */
.skill-left {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.coin-area {
  margin: 0;
}

.coin-art {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  cursor: pointer;
  transition: transform 0.2s;
}

.coin-art:hover {
    transform: scale(1.05);
}

.skill-info {
  color: #fff;
  display: grid;
  gap: 0.4rem;
}

.skill-title-area {
    color: #fff;
    display: grid;
    gap: 0.4rem;
    align-content: start;
}

.coin-dots {
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.coin-dot {
  width: 20px;
  height: 20px;
  background-color: #e6ff4a;
  border-radius: 50%;
  display: inline-block;
}

.skill-name {
  font-family: 'Pixelify Sans', monospace;
  font-size: 1.3rem;
  color: #e6ff4a;
}

.skill-stats,
.attack-type,
.skill-power {
  font-family: 'Intel One Mono', monospace;
  font-size: 0.85rem;
  color: #ccc;
}

/* -- RIGHT SIDE (description) -- */
.skill-description {
  background-color: #f0f0e8;
  color: #000;
  padding: 1.2rem;
  border-radius: 4px;
  font-family: 'Intel One Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  display: grid;
  align-items: center;
}

.inline-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    display: inline-block;
}

#figma-link {
  position: relative;
  top: 1.5rem;
  right: 2rem;
  color: #11d4f3;
  text-decoration: none;
  font-family: 'Intel One Mono', monospace;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid #11d4f3;
  border-radius: 4px;
  transition: all 0.2s;
  z-index: 10;
}

/* -- MOBILE RESPONSIVE --*/
@media (max-width: 768px) {
  /* Header adjustments */
  header h1 {
    font-size: 2rem;
  }
  
  header h2 {
    font-size: 1.3rem;
  }
  
  header blockquote {
    font-size: 0.9rem;
    padding: 0 1rem;
  }

  #loading-video {
    display: none;
  }

  /* Character section stacks vertically */
  #character-section {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  #character-art,
  #character-art-unmasked {
    grid-column: 1;
    grid-row: auto;
  }

  #character-info {
    grid-column: 1;
    grid-row: auto;
    padding: 1.5rem;
  }

  /* Skill cards stack vertically */
  .skill-card {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .skill-header {
    grid-template-columns: auto 1fr;
  }

  .coin-art {
    width: 80px;
    height: 80px;
  }

  .skill-name {
    font-size: 1.1rem;
  }

  #skills-section h2 {
    font-size: 2rem;
  }
}

/* --LAZY LOAD ANIMATION -- */
.skill-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.skill-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/*--LOADING SCREEN--*/
#loading-screen {
  position: fixed;
  inset: 0;
  background-color: #000;
  z-index: 9999;
  display: grid;
  place-items: center;
  transition: opacity 1s ease-out;
}

#loading-video-intro,
#loading-video-outro {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
}

#loading-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

#loading-text {
  font-family: 'Pixelify Sans', monospace;
  font-size: 2rem;
  color: #11d4f3;
  animation: blink 0.8s infinite;
}

#loading-text::after {
  content: '|';
}

@keyframes blink {
  0%, 50% {opacity: 1;}
  51%, 100% {opacity: 0;}
}

body.loading > *:not(#loading-screen) {
visibility: none;
}

#skip-hint {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-family: 'Intel One Mono', monospace;
  font-size: 2.9rem;
  color: white;
  letter-spacing: 0.1rem;
  z-index: 10000;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {opacity:  0.5; }
  50% {opacity: 1; }
}