body {
  font-family: "Inter", sans-serif;
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px 120px;
  color: #111111;
}

a {
  color: black;
}

p {
  color: #4f4f4f;
}

h1 {
  font-size: 60px;
}

h2 {
  font-size: 50px;
}

h3 {
  font-weight: 700;
  font-size: 22px;
}

h4 {
  font-weight: 350;
  font-size: 22px;
  word-spacing: 0.5px;
  letter-spacing: 0.5px;
}

.hidden {
  display: none;
}

.me * {
  margin: 0;
  padding: 0;
  margin-bottom: 5px;
}

.me {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 100px;
}

.about-me {
  flex: 1;
  max-width: 450px;
}

.square-image {
  width: 150px;
  height: auto;
  border-radius: 10px;
  border: 2px solid rgba(128, 128, 128, 0.3);
}

.card-stack {
  position: relative;
  width: 200px;
  height: 250px;
  cursor: grab;
  touch-action: none;
}

.card-stack.is-dragging {
  cursor: grabbing;
}

.stack-card {
  position: absolute;
  width: 200px;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(128, 128, 128, 0.2);
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.3s ease;
}

.about * {
  margin: 0;
  padding: 0;
  margin-bottom: 5px;
}

.about {
  margin: 0;
  padding: 0;
  margin-top: 50px;
  margin-bottom: 50px;
}

.skills * {
  margin: 0;
  padding: 0;
  margin-bottom: 20px;
}

.skill {
  background-color: black;
  color: white;
  border-radius: 6px;
  padding: 3px 8px;
  display: inline-block;
  font-weight: 500;
  font-size: 15px;
}

.projects-header {
  text-align: center;
}

.projects-header h4 {
  font-weight: 400;
  color: #4f4f4f;
}

.project-roulette {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 28px;
}

.roulette-window {
  width: min(100%, 480px);
  padding: 10px;
  background: linear-gradient(145deg, #f7f7f7, #ffffff);
  border: 1px solid #dedede;
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
  perspective: 900px;
}

.project-grid {
  position: relative;
}

.project-card {
  text-decoration: none;
  display: block;
  background-color: white;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
}

.project-card:not(.is-active) {
  display: none;
}

.roulette-window.is-spinning .project-card.is-active {
  animation: roulette-spin 0.7s cubic-bezier(0.2, 0.75, 0.25, 1);
}

@keyframes roulette-spin {
  0% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
    filter: blur(0);
  }
  45% {
    opacity: 0;
    transform: translateY(45px) rotateX(-16deg) scale(0.94);
    filter: blur(5px);
  }
  55% {
    opacity: 0;
    transform: translateY(-45px) rotateX(16deg) scale(0.94);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
    filter: blur(0);
  }
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 8px;
}

.project-links {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.project-links a {
  background-color: black;
  color: white;
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.project-links a:hover {
  background-color: #333333;
}

.roulette-button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  color: white;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  background-color: #111111;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.roulette-button:hover,
.roulette-button:focus-visible {
  background-color: #333333;
  outline: none;
  transform: translateY(-2px);
}

.roulette-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.roulette-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-dock {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  color: #111111;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.78),
    rgba(255, 255, 255, 0.42)
  );
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  transform: translateX(-50%);
}

.contact-dock a {
  display: grid;
  width: 38px;
  height: 38px;
  color: #111111;
  border-radius: 50%;
  place-items: center;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.contact-dock a:hover,
.contact-dock a:focus-visible {
  background-color: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  outline: none;
  transform: translateY(-2px);
}

.contact-dock svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 600px) {
  h1 {
    font-size: 40px;
  }
  .me {
    flex-direction: column;
    align-items: center; /* Centers the card stack */
    text-align: center; /* Centers your intro text */
    margin-top: 50px; /* Less whitespace on mobile */
  }

  .about-me {
    max-width: 100%; /* Let the text use the full width */
    margin-bottom: 30px; /* Space between text and the images */
  }

  .project-image {
    width: 100%;
    height: auto; /* This cancels the 200px and lets it scale naturally */
    display: block; /* Removes any weird tiny gaps at the bottom of the image */
  }

  .contact-dock {
    bottom: 16px;
  }
}
