:root {
  --accent-1: #efaea5;
  --accent-2: #8caac5;
  --text-1: #80a2c6;
  --panel-bg: #e9dac0;
  --panel-inner: #d8d2c2;
  --link-grad-from: #efaea5;
  --link-grad-to: #bc8d9b;
}

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

@font-face {
  font-family: "FiraMono";
  src: url("https://willdotjpg.gay/fonts/FiraMonoNerdFont-Regular.otf") format("opentype");
  font-display: swap;
}

body {
  background-image: url("https://willdotjpg.gay/images/backgrounds/dither_it_thumb-1920-1327980.png");
  background-attachment: fixed;
  font-family: "FiraMono", monospace;
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  line-height: 1.4;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.main {
  width: 100%;
  max-width: 700px;
  background-color: var(--panel-bg);
  padding: 18px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
  position: relative;
  backdrop-filter: blur(2px);
}

/* improved controls styling for better interactivity */
.controls {
  position: absolute;
  top: 12px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 20;
}

.control-btn {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  color: var(--text-1);
  font-weight: bold;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* layout */
.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "icon right"
    "box2 right";
  gap: 10px;
  align-items: start;
}

/* areas */
.icon {
  grid-area: icon;
  justify-self: center;
}

.right-col {
  grid-area: right;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

.box2 {
  grid-area: box2;
  justify-self: start;
  align-self: start;
}

/* profile circle */
.icon {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(239, 174, 165, 0.6);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), inset 0 0 20px rgba(239, 174, 165, 0.05);
  transition: transform 0.3s ease;
}

/* added hover effect for profile image */
.icon:hover {
  transform: scale(1.02);
}

.icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* box2 links */
.box2 {
  width: 220px;
  background-color: #a4bac3;
  border: 2px solid var(--accent-2);
  padding: 12px;
  border-radius: 6px;
  color: var(--text-1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.box2 h1 {
  font-size: 20px;
  text-decoration: underline;
  margin-bottom: 6px;
  color: var(--text-1);
}

.box2 .links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* enhanced link button styling with better hover states */
.link-btn {
  display: block;
  text-align: center;
  padding: 12px 8px;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--link-grad-from), var(--link-grad-to));
  color: #ffffff;
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.12s ease;
  text-decoration: none;
  cursor: pointer;
}

.link-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.link-btn:active {
  transform: translateY(-1px);
}

.horizontal2 {
  width: 85%;
  border: 2px solid var(--accent-2);
  margin: 6px auto 0;
  opacity: 0.6;
}

/* right column fixed widths */
.right-col > .head,
.right-col > .box1,
.right-col > .box4,
.right-col > .box5,
.right-col > .box6 {
  max-width: 450px;
  width: 100%;
}

/* header */
.head {
  font-size: 28px;
  color: var(--accent-1);
  padding: 6px 10px;
  border-bottom: 2px solid var(--accent-1);
  font-weight: bold;
  letter-spacing: 0.5px;
}

.horizontal {
  width: 100%;
  border: 2px solid var(--accent-2);
  opacity: 0.7;
}

.box1 {
  background-color: var(--panel-inner);
  border: 2px solid var(--accent-2);
  padding: 12px;
  border-radius: 6px;
  color: #2b2b2b;
  font-weight: 600;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* background image box */
.box4 {
  width: 100%;
  height: 300px;
  border: 2px solid var(--accent-2);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background-color: #b8b9a5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.box4 .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* scroller with emojis */
.box5 {
  width: 100%;
  border: 2px solid var(--accent-2);
  border-radius: 6px;
  background-color: var(--panel-inner);
  padding: 10px;
  overflow: hidden;
  height: 68px;
  display: flex;
  align-items: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.scroller {
  width: 100%;
  height: 48px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.scroller-track {
  display: flex;
  gap: 12px;
  align-items: center;
  animation: scroll-left 16s linear infinite;
  will-change: transform;
}

.scroller-track .emoji {
  font-size: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* content box */
.box6 {
  width: 100%;
  border: 2px solid var(--accent-2);
  border-radius: 6px;
  background-color: #a4bac3;
  color: #fbe2be;
  padding: 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.box6 p {
  margin-bottom: 8px;
  line-height: 1.4;
  font-size: 14px;
}

/* basics */
a {
  text-decoration: none;
  color: inherit;
}

h1 {
  font-size: 25px;
  text-decoration: underline;
  padding-bottom: 5px;
  color: var(--text-1);
}

p {
  margin-bottom: 8px;
  line-height: 1.35;
}

nav {
  list-style: none;
}

/* focus styles for accessibility */
button:focus,
a:focus {
  outline: 2px solid var(--accent-1);
  outline-offset: 2px;
}

/* responsive */
@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-areas: "icon" "right" "box2";
    gap: 12px;
  }

  .icon {
    justify-self: center;
    width: 160px;
    height: 160px;
  }

  .box2 {
    width: 100%;
  }

  .right-col > .head,
  .right-col > .box1,
  .right-col > .box4,
  .right-col > .box5,
  .right-col > .box6 {
    max-width: 100%;
  }

  .box4 {
    height: 200px;
  }

  .controls {
    top: 10px;
    right: 12px;
  }

  .head {
    text-align: center;
    padding-left: 0;
    font-size: 24px;
  }

  .box6 {
    font-size: 15px;
  }

  .box5 {
    height: 64px;
  }

  .scroller-track {
    animation-duration: 12s;
  }

  .main {
    padding: 14px;
  }
}

@media (max-width: 400px) {
  .icon {
    width: 140px;
    height: 140px;
  }

  .box4 {
    height: 160px;
  }

  .control-btn {
    width: 18px;
    height: 18px;
  }

  .link-btn {
    font-size: 14px;
    padding: 10px 6px;
  }

  .head {
    font-size: 20px;
  }

  .box2 h1 {
    font-size: 18px;
  }
}
