* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #000000fc;
  color: #222;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

#all-contents {
  max-width: 1500px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 40px;
}
#slide-text{
color: white;
bottom: 0px;
position: fixed;
margin: 0;
  font-size: 50px;
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
#slide-text2{
color: white;
bottom: 60px;
position: fixed;
margin: 0;
  font-size: 50px;
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

main {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(420px, 1.6fr);
  align-items: center;
  min-height: calc(100vh - 160px);
  gap: clamp(32px, 5vw, 80px);
}

.sidebar {
  width: 100%;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

h2 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.content > p {
  margin: 0;
  color: #ffffff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.4;
}


#interests {
  margin-top: 32px;
  width: 100%;
}

#interests h3 {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #000000;
}

#interests ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#interests li {
  color: #000000;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 100px;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;

  cursor: pointer;
}

#interests li:hover {
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

#sub-text {
  color: #1b1b1bfc;
}

/* ========================= */
/* PROFILE IMAGE             */
/* ========================= */
.sidebar-img-wrapper {
  animation: perpetualFloatimg 3s ease-in-out infinite;
}
.sidebar-img-wrapper:hover {
  animation-play-state: paused;
}

.sidebar-img {
  width: 100%;
  max-width: 760px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  filter: grayscale(30%);

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.12);

  transition:
    filter 0.4s ease,
    transform 0.4s ease,
    box-shadow 0.4s ease;
    
}

.sidebar-img:hover {
  filter: grayscale(0%);
  transform: translateY(-20px);

  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.18);
}
@keyframes perpetualFloatimg {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px); 
  }
  100% {
    transform: translateY(0);
  }
}

/* ========================= */
/* NAVIGATION                */
/* ========================= */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 48px;
  padding: 16px 24px;

  background: #ffffff;
  border: 1px solid #585858;
  border-radius: 12px;
}

nav h1 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #000000;
}

#nav-ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav-li a {
  color: #666;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;

  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.nav-li a:hover {
  background: #000000;
  color: #ffffff;
}

/* ========================= */
/* PORTFOLIO PAGE            */
/* ========================= */

/* Overrides the normal 2-column grid */
.portfolio-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: calc(100vh - 160px);
}

/* Entire portfolio section */
.portfolio-content {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
  text-align: center;

  gap: 6px;
  animation: perpetualFloat 3s ease-in-out infinite;
}

/* Portfolio title */
.portfolio-content h1 {
  width: 100%;
  margin: 0;

  color: #ffffff;
  text-align: center;

  font-size: 3rem;
  font-weight: 800;
}

/* FSD Projects */
.portfolio-content h3 {
  width: 100%;
  margin: 0 0 10px;

  color: #ffffff;
  text-align: center;

  font-size: 1.5rem;
  font-weight: 700;
}

/* ========================= */
/* PORTFOLIO BUTTONS         */
/* ========================= */

#portfolio {
  list-style: none;

  width: 600px;
  max-width: 100%;

  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;

  gap: 12px;
}

#portfolio li {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  animation: perpetualFloat 3s ease-in-out infinite;
}
@keyframes perpetualFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px); 
  }
  100% {
    transform: translateY(0);
  }
}

#portfolio a {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;

  text-decoration: none;
  text-align: center;

  color: #000000;

  padding: 24px 30px;

  font-size: 1.5rem;
  font-weight: 500;

  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 16px;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

#portfolio a:hover {
  background: #000000;
  color: #ffffff;
  border: 1px solid #ffffff;

  transform: translateX(6px);
}

/* Arrow */
#portfolio a::after {
  content: "->";

  font-size: 1rem;
  opacity: 0.4;

  margin-left: 8px;

  transition: opacity 0.25s ease;

  white-space: nowrap;
}

#portfolio a:hover::after {
  opacity: 1;
}