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

nav{
    background-color: navy;
    width: 100%;
    justify-content: space-evenly;
    padding: 20px;
    display: flex;
    margin: 0;
}

a{
    text-decoration: none;
    color: white;
    font-family: "Trirong", serif;
}

h3{
  font-family: "Trirong", serif;
  padding: 10px;
  text-align: center;
  color: #fff6e6;
  font-size: xx-large;

}

#tag{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 60vh; 
}

body.home{
    background-image: url('../img/background1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
    text-align: center;
    padding: 10px;
    color: white;
}

#tag::after {
  content: "|";
  animation: blink 1s infinite;
}

body {
  margin: 0;
  overflow: hidden;
}

/* hidden by default */
 #popup {
  display: none;
}

@media (max-width: 1024px) {
  #popup {
    display: flex;

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: black;
    color: white;
    padding: 20px 30px;

    text-align: center;
    font-size: 1.2rem;

    border-radius: 10px;
    z-index: 9999;
  }
}
/* ai skills page */

body.ai{
background-image: url('../img/background2.png');
background-repeat: no-repeat;
background-position: center ;
background-size: cover;
background-attachment: scroll;
overflow: auto;
min-height: 100vh;
}

#aiSkills {
    background-color: white;
    color: navy;
    padding: 30px;
    width: 40%;          
    margin-left: 5%; 
    margin-top:15%;    
    height: auto;
    display: block; 
    font-family: "Trirong", serif;
    font-size: large;
}


#crackOverlay {
  position: fixed;
  inset: 0;
  display: none;          
  z-index: 999;
}


#crackCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}


#revealMessage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: "Trirong", serif;
  font-size: 2rem;
  text-align: center;
  padding: 2rem;
  opacity: 0;                   
  transition: opacity 1.5s ease;     
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

#aiMessage {
  color: white;
  font-family: "Trirong", serif;
  font-size: 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

#bouncingBall {
  position: fixed;
  background: #c97d3a;
  color: white;
  font-family: "Trirong", serif;
  font-size: 1rem;        /* bigger text */
  font-weight: bold;      /* makes it bolder */
  padding: 14px 24px;
  border-radius: 50px;
  cursor: pointer;
  z-index: 50;
  white-space: nowrap;
  letter-spacing: 0.05em; /* slightly spaced out letters */
}


/* human skills page */
.human{
    background-image: url(../img/background2.png);
    background-image: url('../img/background2.png');
    background-repeat: no-repeat;
    background-position: center ;
    background-size: cover;
    background-attachment: scroll;
    overflow: auto;
    min-height: 100vh;
}

/* =====================================================
   SKILLS SECTION
   ===================================================== */
.skills-section {
  padding: 4rem 2rem;
  text-align: center;
}

.skills-heading {
  font-family: "Trirong", serif;
  font-size: 2.2rem;
  color: navy;
  margin-bottom: 0.5rem;
}

.skills-subheading {
  font-family: "Trirong", serif;
  font-size: 0.9rem;
  color: #666;
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
}

.puzzle-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;   
}

.puzzle-flip {
  width: 220px;
  height: 220px;
  cursor: pointer;
  perspective: 1000px;  
}

.puzzle-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;      
  transition: transform 0.7s ease;  
}

.puzzle-flip.flipped .puzzle-inner {
  transform: rotateY(180deg);
}

.puzzle-front,
.puzzle-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden; 
  padding: 1rem;
}

.puzzle-back {
  transform: rotateY(180deg);
}

.piece-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.piece-word {
  position: relative;
  z-index: 1;
  font-family: "Trirong", serif;
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
  text-align: center;
}

.piece-desc {
  position: relative;
  z-index: 1;
  font-family: "Trirong", serif;
  font-size: 0.78rem;
  color: white;
  text-align: center;
  line-height: 1.6;
  padding: 0.5rem;
}


/* about page */
.about{
    overflow: auto;
    background-image: url('../img/backgroundabout.png');
    font-family: "Trirong", serif;
}

.logo{
    height: 50px;
    width: 50px;
    margin: 5px;
}

.bio{
    display: flex;
    flex-direction: row-reverse;
    background-color: white;
    align-content: center;
    justify-content: center;
    margin: 50px;
}

#two{
    height: 600px;
    max-width: 100%;
    border: solid white 5px;
    padding: 20px;
}

#one{
    height: 500px;
    width: 1000px;
    border: solid white 5px;
    padding: 20px;
}

.title{
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
}

h2{
    color: white;
    margin: 10px;
    font-size: 20pt;
}

#intro{
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid white 20px;
}

#personal{
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid white 20px;
}

.contact{
    display: flex;
    width: 80%;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: navy;
    height: 120px;
    flex-direction: column;
    margin: 0 auto;
    border: white solid 2px;
}