/* Styles.css */

*{
  font-family: 'Open Sans', sans-serif;
  color: rgb(225,228,232);
}


body {
    margin: 0; 
    padding: 0; 
    box-sizing: -box;
}

html {
    margin: 0;
    padding: 0;
}

html, body {
  overflow-x: hidden;
}


section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}


.profile-info-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  height: 300px;
  margin-top: 15px;
}

.name-style {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 3rem;
  color: black;
  margin: 0;
}

.job-style {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: black;
  margin: 0;
}

.social-icons-container {
  gap: 20px;
}

.icon-container {
  transition: transform 0.3s ease, color 0.3s ease;
}


.rounded-circle {
  border: 1.5px solid whitesmoke;
}

/* RGB(242, 247, 255) */
/* RGB(228, 233, 240) */
/* RGB(230, 235, 240) */

.fade-in {
  opacity: 0;
  animation: fadeInEffect 1.5s forwards;
}

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

.first_page {
  position: relative;
  height: 100vh;
  background: 
    linear-gradient(to bottom, rgba(215, 220, 225, 0.1), rgba(190, 195, 200, 0.1)), 
    url('static/backgrounds/waves-3.png');
  background-size: cover;
  background-position: center;
  animation: fadeIn 1s ease-in-out forwards;
}

.first_page .col-12.container {
  position: relative;
  transform: translateY(-5%);
}

.black-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  animation: blackOverlayFadeIn 1s 1s forwards;
}

@media (max-width: 768px) {
  .secondPage .container {
      height: auto;
    }
  }

.second_page {
    min-height: 110vh;
    background-color: rgb(31,36,40);
    border-top: 1px solid gray;
    padding-top: 25px;
}

.third_page {
    min-height: calc(100vh - 50px);
    background-color: rgb(36,41,46);
    border-top: 1px solid gray;
    overflow-x: hidden;
}

.fourth_page {
    height: 70vh;
    background-color: rgb(36,41,46);
    border-top: 1px solid gray;
}


@media (max-width: 768px) {
  .fourth_page {
      height: 115vh;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .fourth_page {
      height: 100vh;
  }
}

.fifth_page {
    height: 230px;
    background-color: rgb(31,36,40);
    border-top: 1px solid gray;
    border-bottom: 1px solid gray;
}

.footer {
  height: 60px;
}

  .navbar {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    background-color: rgb(31,36,40);
    border-bottom: 1px solid gray;
  }

  /* Sit above all content, including the skill-game overlay (max z-index 10002).
     Uses .navbar.fixed-top so it out-specifies Bootstrap's `.fixed-top { z-index: 1030 }`,
     which loads after styles.css and would otherwise win the tie on source order. */
  .navbar.fixed-top {
    z-index: 10010;
  }


.navbar {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.navbar.visible {
  opacity: 1;
  pointer-events: auto;
}

  .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 50%;
  }
  

  .flex-elements {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  footer {
    height: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
  }

  .centered-container {
    width: 60%;
    height: 30%
  }

.title-text-color-one {
    color: black;
  }

.title-text-color-two {
    color: black;
  }

  a {
    color: rgb(225,228,232);
    text-decoration: none;
  }

  #text-color-zero {
    color: #ffffff;
  }

  .text-color-one {
    color: #8998F5;
  }

  .text-color-two {
    color: #E48CF5;
  }

  .text-color-three {
    color: #BC7FF5;
  }

  .text-color-four {
    color: #957FF5;
  }

  .text-color-five {
    color: #fff724;
  }



  .container {
    text-align: center;
  }


  .border {
    border: 4px solid rgb(225,228,232);
  }

  .flex-box {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .about-container {
    height: 30%;
    margin-bottom: 30px;
  }

  .interest-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20%;
  }



.auto-type {
    white-space: nowrap;
}

  /* DYNAMIC IMAGE RESIZING */

  .image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


/* ROUNDING OF PROJECT IMAGES */

.img-rounded {
  border-radius: 6px;
  border: 1px solid rgb(225,228,232);
  width: 100%;
}



.project-div {
  margin-bottom: 5%;
  display: flex;
  align-items: center;
}


.project-text-div{
  margin-bottom: 0%;
}

@media (max-width: 600px) {
  .image-container {
    margin-bottom: 40px;
  }
}


/* NAVBAR TEXT COLOUR */
.navbar-nav .nav-link {
  color: rgb(225,228,232);
}

.auto-type {
  color: #957FF5;
}

#nameTitle, #jobTitle {
  text-align: center;
  margin-top: 0;
}

#nameTitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 3rem;
  letter-spacing: 0.4px;
  line-height: 1.2;
  color: rgba(33, 36, 41, 0.95);
  margin-bottom: 8px;
}

#jobTitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0.3px;
  line-height: 1.3;
  color: rgba(33, 36, 41, 0.9);
  margin-bottom: 16px;
  text-shadow: 0.5px 0.5px rgba(0, 0, 0, 0.5);
}

.profile-picture-container {
  margin-bottom: 20px;
}

#projectTitleSpacing {
  width: 10px;
}

.project-div,
.image-container {
  opacity: 0;
  transform: translateX(24px);
  transition:
    transform 420ms cubic-bezier(.22,.61,.36,1),
    opacity   420ms ease;
  will-change: transform, opacity;
}

.project-div.active,
.image-container.active {
  opacity: 1;
  transform: translateX(0);
}

.section-title {
  opacity: 0;
  transform: translateX(24px);
  transition:
    transform 420ms cubic-bezier(.22,.61,.36,1),
    opacity   420ms ease;
}
.section-title.active {
  opacity: 1;
  transform: translateX(0);
}




.project-link {
  color: inherit; 
  text-decoration: none; 
}


/* Navbar Hover */

.navbar-nav .nav-item {
  transition: transform 0.3s ease;
}

.navbar-nav .nav-item:hover {
  transform: scale(1.3); 
}

.navbar-nav .nav-item.scale-small {
  transform: scale(1.1);
}

.navbar-nav .nav-item.scale-smallest {
  transform: scale(1.05);
}


.nav-link.color-one:hover {
  color: #8998F5;
}
.nav-link.color-two:hover {
  color: #E48CF5;
}
.nav-link.color-three:hover {
  color: #BC7FF5;
}
.nav-link.color-four:hover {
  color: #957FF5; 
}
.nav-link.color-five:hover {
  color: #fff724;
}


/* Skills Section Tile Magnification */

.card {
  border: 5px solid white;
  margin-bottom: 25px;
  margin-top: 0px;
  transition: transform 0.3s ease;
}



.card:hover {
  transform: scale(1.05);
}

.card-body {
  background-color: rgb(36,41,46);
}



.image-container {
  transition: transform 0.3s ease-in-out;
  cursor: pointer; 
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease-in-out;
}

.image-container:hover {
  transform: scale(1.10);
}


/* Contact Icon Magnification */

.container .fa:hover {
  transform: scale(1.3);
  transition: transform 0.3s ease;
}

.icon-spacing {
  height: 10px;
}

.icon-spacing-2 {
  margin-top: 2%;
}

.project-icons {
  display: flex;
  justify-content: space-evenly;
  align-items: center;;
  width: 50%;
  margin-left: 25%;
  height: 100px;
  transform: translateY(-20%);
}

.project-text-div{
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  height: 110%;
  justify-content: center;
  align-items: center;
}


.icon-container {
  font-size: 20px;
  transition: transform 0.3s ease;
  height: 40px;
  width: 40px;
  margin: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-container:hover {
  transform: scale(1.3);
}


.typed-cursor {
  opacity: 1;
}

@keyframes slow-blink-animation {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.typed-cursor.slow {
  animation: slow-blink-animation 1s infinite !important;
}


.navbar {
  padding: 0;
  margin: 0;
}

.container-fluid {
  padding-left: 0;
  padding-right: 0;
}



  @media (max-width: 576px) {
    .container {
        padding: 10px;
    }
    .full-width {
        width: 100%;
        box-sizing: border-box;
    }
    .navbar-nav {
        width: 100%;
    }
    .nav-item {
        text-align: center;
    }
    .nav-link {
        padding: 10px 15px;
    }
}


@media (min-width: 577px) and (max-width: 768px) {
  .full-width {
      width: 100%;
      box-sizing: border-box;
  }
  .navbar-nav {
      width: 100%;
  }
  .nav-item {
      text-align: center;
  }
  .nav-link {
      padding: 12px 15px;
  }
}


.larger-font {
  font-size: 18px;
}

.email-spacing {
  height: 60px;
  width: 70px;

  overflow: visible;
}


#typed-skills-title {
  width: 100%;
  box-sizing: border-box;
  margin-top: 50px;
  margin-bottom: 60px;
  overflow-x: hidden;
}

#typed-project-title {
  margin-top: 50px;
}

.anchor {
  display: block;
  height: 0;
  visibility: hidden;
  position: relative;
  top: -58px;
}

.section-title {
  font-size: 40px;
}

@media (max-width: 600px) {
  .section-title {
    font-size: 30px;
  }
}

.no-underline {
  text-decoration: none;
}

.second-page-spacing {
  height: 100px;
}

/* SKILLS SECTION BACKGROUND IMAGES */


.img-background-card {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.img-background-card::before {
  content: none !important;
}

.img-background-card:hover {
  z-index: 10;
}

.img-background-card:hover {
  cursor: pointer;
}

/* TILT-POP (medium subtle) */
@keyframes tilt-pop {
  0%   { transform: scale(1.04) rotate(0deg); }
  30%  { transform: scale(1.06) rotate(0.7deg); }
  60%  { transform: scale(1.04) rotate(-0.7deg); }
  100% { transform: scale(1.04) rotate(0deg); }
}

.img-background-card:hover,
.img-background-card:focus-visible {
  box-shadow: 0 0 40px var(--accent);
  cursor: pointer;
  animation: tilt-pop 0.5s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .img-background-card:hover,
  .img-background-card:focus-visible {
    animation: none;
  }
}

/* ----------------------------------------------------------------
   Alternative motions (commented for easy swapping):
   To use one, replace "tilt-pop" in the hover rule above
-------------------------------------------------------------------

@keyframes breathe {
  0%, 100% { transform: scale(1.05); }
  50%      { transform: scale(1.07); }
}

@keyframes nod {
  0%   { transform: scale(1.05) rotateX(0deg); }
  50%  { transform: scale(1.05) rotateX(3deg); }
  100% { transform: scale(1.05) rotateX(0deg); }
}

@keyframes rock {
  0%   { transform: scale(1.05) rotate(0deg); }
  25%  { transform: scale(1.05) rotate(0.5deg); }
  75%  { transform: scale(1.05) rotate(-0.5deg); }
  100% { transform: scale(1.05) rotate(0deg); }
}

@keyframes sway {
  0%   { transform: scale(1.05) rotate(0deg); }
  50%  { transform: scale(1.05) rotate(0.4deg); }
  100% { transform: scale(1.05) rotate(-0.4deg); }
}

*/

.img-background-card:hover,
.img-background-card:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(225, 228, 232, 0.5);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .img-background-card,
  .img-background-card:hover,
  .img-background-card:focus-visible {
    transition: none;
    transform: none;
    box-shadow: none;
  }
}


.img-background-card {
  --accent: rgba(225, 228, 232, 0.6);
  border: 4px solid var(--accent);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.img-background-card:hover,
.img-background-card:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 0 40px var(--accent);
  outline: none;
}


.html-card { --accent: #E34F26; }
.css-card     { --accent: #264de4; }
.git-card     { --accent: #f14e32; }
.scss-card    { --accent: #cc6699; }
.js-card      { --accent: #f7df1e; }
.react-card   { --accent: #61dafb; }
.node-card    { --accent: #3c873a; }
.openai-card  { --accent: #10a37f; }
.claude-card  { --accent: #D97757; }
.python-card  { --accent: #3776ab; }
.java-card { --accent: #E76F00; }
.firebase-card  { --accent: #FFB300; }
.docker-card { --accent: #0db7ed; }
.mongodb-card { --accent: #13aa52; }
.supabase-card { --accent: #3ECF8E; }
.aws-card     { --accent: #FF9900; }
.sql-card     { --accent: #4db6ac; }
.go-card {--accent: #00ADD8;
}

.fastapi-card { --accent: #009688; }
.terraform-card { --accent: #7B42BC; }
.typescript-card { --accent: #3178C6; }
.powerbi-card { --accent: #F2C811; }

/* Claude mark: masks the solid-black icons8 PNG with a light gray to match the other icons */
.claude-icon {
  display: inline-block;
  width: 64px;
  height: 64px;
  background-color: #D1D5DA;
  -webkit-mask: url("./static/icons/claude-icon.png") center / contain no-repeat;
  mask: url("./static/icons/claude-icon.png") center / contain no-repeat;
}


/* Old paint-splatter functionality */

/*

.img-background-card {
  position: relative;
  z-index: 1;
}

.img-background-card::before {
  content: "";
  position: absolute;
  bottom: -75px;
  left: 50%;
  width: 500px;
  height: 300px;
  background-size: contain;
  transform: translateX(-50%) scale(0);
  transition: transform 0.2s ease-in-out;
  z-index: -1;
  pointer-events: none;
}

.img-background-card:hover {
  z-index: 10;
}

.img-background-card:hover::before {
  transform: translateX(-50%) scale(1);
}
*/


.html-card::before {
  background: url('./static/paint-splatters/html.png') no-repeat center center;
}

.css-card::before {
  background: url('./static/paint-splatters/css.png') no-repeat center center;
}

.git-card::before {
  background: url('./static/paint-splatters/git.png') no-repeat center center;
}

.scss-card::before {
  background: url('./static/paint-splatters/scss.png') no-repeat center center;
}

.js-card::before {
  background: url('./static/paint-splatters/javascript.png') no-repeat center center;
}

.react-card::before {
  background: url('./static/paint-splatters/react.png') no-repeat center center;
}

.node-card::before {
  background: url('./static/paint-splatters/node.png') no-repeat center center;
}

.openai-card::before {
  background: url('./static/paint-splatters/openai.png') no-repeat center center;
}

.python-card::before {
  background: url('./static/paint-splatters/python.png') no-repeat center center;
}

.docker-card::before {
  background: url('./static/paint-splatters/django.png') no-repeat center center;
}

.java-card::before {
  background: url('./static/paint-splatters/java.png') no-repeat center center;
}

.spring-card::before {
  background: url('./static/paint-splatters/spring.png') no-repeat center center;
}

.mongodb-card::before {
  background: url('./static/paint-splatters/mongodb.png') no-repeat center center;
}

.firebase-card::before {
  background: url('./static/paint-splatters/firebase.png') no-repeat center center;
}

.aws-card::before {
  background: url('./static/paint-splatters/aws.png') no-repeat center center;
}

.sql-card::before {
  background: url('./static/paint-splatters/sql.png') no-repeat center center;
}


.card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.left-edge-card {
  margin-left: 20px;
}



.section-title {
  font-size: 40px;
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.section-title.active {
  opacity: 1;
  transform: translateX(0);
}




.icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}



/* ICON HIGHLIGHTING ON HOVER */

.highlight-icon {
  transition: color 0.3s ease, box-shadow 0.3s ease;
}

.linkedin-icon {
  color: #8998F5;
  box-shadow: 0 0 10px #8998F5, 0 0 20px #8998F5, 0 0 20px #8998F5, 0 0 20px #8998F5, 0 0 10px #8998F5; 
  height: 30px;
  width: 30px;
}

.github-icon {
  color: #957FF5;
  box-shadow: 0 0 10px #957FF5, 0 0 20px #957FF5, 0 0 20px #957FF5, 0 0 20px #957FF5, 0 0 10px #957FF5;
  height: 30px;
  width: 30px;
}

.email-icon {
  color: #BC7FF5;
  box-shadow: 0 0 10px #BC7FF5, 0 0 20px #BC7FF5, 0 0 20px #BC7FF5, 0 0 20px #BC7FF5, 0 0 10px #BC7FF5; 
  height: 30px;
  width: 30px;
}


/* ILLUMINATION */


.icon-illuminate i {
    font-size: 40px;
}

.icon-illuminate:hover {
  color: #ffffff;
  filter: brightness(150%);
  transition: color 0.1s ease, filter 0.1s ease;
}

.constant-illuminate {
  filter: brightness(110%);
  transition: color 0.1s ease, filter 0.1s ease;
}

.icon-illuminate i {
  transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* MOBILE NAVBAR */

@media (max-width: 600px) {
  .custom-navbar-collapse {
    background-color: rgb(31,36,40);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

.custom-navbar-collapse ul {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.custom-navbar-collapse li {
  width: 100%;
  text-align: center;
  margin: 10px 0;
}


.image-container {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  cursor: pointer;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease-in-out;
}

.image-container:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(225, 228, 232, 0.5);
}



@media (max-width: 600px) {
  .contact-header {
    margin-bottom: 40px;
  }
}

@media (min-width: 600px) and (max-width: 768px) {
  .contact-header {
    margin-bottom: 60px;
  }
}

.icon-black {
  color: black;
}


.navbar-nav .nav-link.icon-illuminate:hover {
  color: white;
}


/* Make game clones look/align exactly like the original cubes */
.skill-drag-clone {
  box-sizing: border-box;
  /* keep the thin white border + rounding that originals have */
  border: 2px solid rgb(225,228,232);
  border-radius: 6px;
  background-color: rgb(36,41,46);

  /* disable hover/tilt/transition effects on clones */
  animation: none !important;
  transition: none !important;
}

/* Center icon + text the same way originals are centered in the grid */
.skill-drag-clone .card-body {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
}

/* Remove default <p> margin to avoid the tiny “upward shift” */
.skill-drag-clone .card-body p {
  margin: 0;
  line-height: 1.15;
}

.skill-drag-clone .card-body {
  background-color: rgb(36,41,46) !important;
}
















/* ============================
        GAME SECTION
   ============================ */



   #skill-game-zone {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    pointer-events: auto;
  }
  
  .skill-drag-clone {
    position: absolute;
    pointer-events: auto;
    will-change: transform;
    transform: translate3d(0,0,0);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    border-radius: 6px;
    transition: none !important;
    animation: none !important;
    margin: 0 !important;
    box-sizing: border-box;
    cursor: grab;
  }
  
  .skill-drag-clone * {
    transition: none !important;
    animation: none !important;
  }
  
  .skill-original-ghost {
    opacity: 0;
    visibility: hidden;
    transition: none;
  }
  
  body.dragging-skill {
    user-select: none;
    cursor: grabbing;
  }
  
  .skill-drag-clone.picked-up {
    box-shadow: 0 0 28px 6px var(--accent),
                0 0 60px 16px rgba(255, 255, 255, 0.12);
    cursor: grabbing;
  }
  
  body.dragging-skill .img-background-card,
  body.dragging-skill .card {
    pointer-events: none;
  }
  
  body.dragging-skill .img-background-card:hover,
  body.dragging-skill .img-background-card:focus-visible,
  body.dragging-skill .card:hover {
    transform: none !important;
    box-shadow: none !important;
    animation: none !important;
  }
  
  .freeze-skill-layout .img-background-card,
  .freeze-skill-layout .img-background-card:hover,
  .freeze-skill-layout .img-background-card:focus-visible {
    transform: none !important;
    box-shadow: none !important;
    animation: none !important;
  }
  
  .skill-game-bounds {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.15);
    opacity: 0;
    animation: sgb-fade-in 300ms ease-out forwards;
    pointer-events: none;
  }
  
  .skill-game-bounds__label {
    position: sticky;
    top: 8px;
    left: 12px;
    display: inline-block;
    margin: 8px 0 0 12px;
    padding: 4px 10px;
    background: rgba(36,41,46,0.85);
    border: 1px solid rgba(225,228,232,0.25);
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: .3px;
  }

  .skill-game-bounds__label:empty { display: none !important; }

  
  @keyframes sgb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  
  #skill-game-zone { pointer-events: auto; overflow: hidden; }
  
  .skill-drag-clone.tile-hit::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 8px;
    pointer-events: none;
    box-shadow: 0 0 0 0 var(--accent),
                0 0 0 0 rgba(255,255,255,0.0);
    animation: collideFlash 240ms ease-out;
  }
  
  @keyframes collideFlash {
    0% {
      box-shadow: 0 0 0 0 var(--accent),
                  0 0 0 0 rgba(255,255,255,0.0);
      opacity: 0.85;
    }
    50% {
      box-shadow: 0 0 22px 4px var(--accent),
                  0 0 48px 10px rgba(255,255,255,0.15);
      opacity: 1;
    }
    100% {
      box-shadow: 0 0 0 0 var(--accent),
                  0 0 0 0 rgba(255,255,255,0.0);
      opacity: 0.9;
    }
  }
  
  #skill-game-zone .skill-drag-clone.picked-up {
    box-shadow: 0 0 28px 6px var(--accent),
                0 0 60px 16px rgba(255, 255, 255, 0.12) !important;
    z-index: 10001;
  }
  
  body.dragging-skill .img-background-card,
  body.dragging-skill .img-background-card:hover,
  body.dragging-skill .img-background-card:focus-visible,
  body.dragging-skill .card:hover {
    transform: none !important;
    box-shadow: none !important;
    animation: none !important;
  }
  
  .is-hidden { display: none !important; }
  
  #projects, #skills { position: relative; }
  
  .game-exit-btn {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(225,228,232,0.35);
    background: rgba(36,41,46,0.75);
    color: rgba(225,228,232,0.9);
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    backdrop-filter: blur(2px);
    z-index: 10002;
    pointer-events: auto;
    background: rgba(36,41,46,0.85);
    border: 1px solid rgba(225,228,232,0.5);
    color: rgba(255,255,255,0.95);
  }
  
  .game-exit-btn:hover,
  .game-exit-btn:focus-visible {
    opacity: 0.95;
    transform: scale(1.06);
    box-shadow: 0 0 20px rgba(225,228,232,0.35);
    outline: none;
  }
  
  .game-exit-top { top: 25px; right: 25px; }
  .game-exit-bottom { top: 25px; right: 25px; }
  
  .project-div,
  .image-container {
    opacity: 0;
    transform: translateX(24px);
    transition: transform 420ms cubic-bezier(.22,.61,.36,1),
                opacity 420ms ease;
    will-change: transform, opacity;
  }
  
  @media (min-width: 1025px) {
    #skills .skills-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 20px;
      justify-items: center;
    }
  
    #skills .skills-grid > [class^="col-"],
    #skills .skills-grid > [class*=" col-"] {
      float: none;
      width: auto;
      max-width: none;
      flex: 0 0 auto;
      padding: 0;
    }
  
    #skills .img-background-card {
      width: clamp(120px, 13vw, 160px);
      aspect-ratio: 1 / 1;
      height: auto;
      margin: 0;
      border: 2px solid rgb(225,228,232);
      border-radius: 6px;
    }
  
    #skills .img-background-card .card-body {
      width: 100%;
      height: 100%;
      display: grid;
      place-items: center;
      padding: 0;
      gap: 6px;
    }
  
    #skills .img-background-card .card-body p {
      margin: 0;
      line-height: 1.15;
    }
  }
  
  @media (min-width: 601px) {
    #skills.second_page {
      padding-top: 80px;
      padding-bottom: 80px;
    }
  }
  