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

:root {
  --font-color: #E0E0E0;
  --background-color: #000D21;
}

.lightmode { /* color */
  --font-color: #000D21;
  --background-color: #E0E0E0;
}

body { 
  background-color: var(--background-color);
  color: var(--font-color);
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 
               'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.2rem;         
  text-align: center;
}

#image {
  margin-top: 2.5rem;
  width: clamp(140px, 35vw, 190px);  
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}

.wave-hand {
  display: inline-block;
  transform-origin: 70% 80%;
  animation: wave 2.4s infinite ease-in-out;
}

@keyframes wave { /* wave animation */
  0%   { transform: rotate(0deg); }
  10%  { transform: rotate(14deg); }
  20%  { transform: rotate(-8deg); }
  30%  { transform: rotate(14deg); }
  40%  { transform: rotate(-4deg); }
  50%  { transform: rotate(10deg); }
  60%  { transform: rotate(0deg); } 
  100% { transform: rotate(0deg); }
}
.about-me h2 { 
    text-align: left;
      
}
main, #main, .job-item, .job2{
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;                   
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;               
}

h1 {
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  margin-bottom: 0.5rem;
  line-height: 1.1;
  word-break: break-word;  
  margin-top: 1em;      
}

.me,
.contact-info,
.About-me {
  font-size: clamp(1.2rem, 5vw, 1.5rem);
  line-height: 1.4;
  margin: 0.4rem 0;
}


#intern, #fratelli{ /* Internship list*/
  display: none;
  list-style: none;
  padding: 0;
  margin-top: -1em;
  text-align: center;              
  width: 100%;
  max-width: 90%;
}
#ddl{
  cursor: pointer;
}

ul /* list */{
  list-style: none;
  padding: 0;
  text-align: center;              
  width: 100%;
  max-width: 90%;
}

li {
  margin: 0.9rem 0;
  font-size: clamp(1.0rem, 1vw, 1.35rem);
}

/* Theme switch */
#theme-switch {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--background-color);
  border: 1px solid var(--font-color);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 100;
}

#theme-switch svg {
  width: 30px;
  height: 30px;
  fill: var(--font-color);
}
.bio-list li {
  font-size: clamp(1.3rem, 1vw, 1.4rem);
}

#theme-switch svg:first-child  { display: none; } 
.lightmode #theme-switch svg:first-child  { display: block; }
.lightmode #theme-switch svg:last-child   { display: none; }

p {
  margin: 0.5rem 0;
  line-height: 1.5;
}


#clickable {
  cursor: pointer;
  color: #a78bfa;                
  text-decoration: underline;
  font-weight: 500;
}

#verify,
#hkid-check {
  display: none;
}

/* Media Queries */
@media (min-width: 500px) {
  main, #main {
    max-width: 520px;
  }
}

@media (min-width: 768px) {
  body {
    padding: 2.5rem;
  }
  
  #image {
    width: clamp(180px, 22vw, 240px);
  }
  
  main, #main {
    max-width: 640px;
    gap: 1.5rem;
  }

  h1 {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
  }
}

@media (min-width: 1024px) {
  main, #main {
    max-width: 760px;
  }
}