/* PAGE, RESETS & TYPOGRAPHY */

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Courier New", monospace;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  padding-top: env(safe-area-inset-top, 24px);
  box-sizing: border-box;
}

button {
  all: unset;
}

/* MAIN LAYOUT  */

.background {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding-top: 24px;
  background: #4d4b4a url("/img/mwn.jpg") center/cover fixed;
}

.page-grid {
  display: grid;
  gap: 70px;
  width: 100%;
  max-width: 1300px;
  padding: 24px;
  grid-template-columns: 1fr 320px 1fr;
  grid-template-areas: "left center right";
}

.column-left,
.column-center,
.column-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  min-width: 292px;
  margin-bottom: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(30px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* COLUMN MAPPING */

.column-left {
  grid-area: left;
}
.column-center {
  grid-area: center;
}
.column-right {
  grid-area: right;
}

/* LINK-TREE & BUTTONS */

.linktree {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-width: 292px;
  margin-bottom: 30px;
  border-radius: 20px;
}

.link-button {
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 24px;
  font-size: 18px;
  color: #d3d3d3;
  background: #2b2b2b;
  border: 1px solid #3a3a3a;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.link-button:hover {
  color: grey;
  background: #151515;
  border-color: #696969;
  transform: translateY(-1.5px);
}

.link-button:active {
  transform: scale(0.985);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* PROFILE SECTION */

.profile-pic {
  flex-shrink: 0;
  width: 156px;
  height: 156px;
  margin: 22px;
  border-radius: 12px;
  background: url("/img/me.jpeg") center/cover;
}

.profile-description {
  flex: 1;
  min-width: 0;
  margin: 22px;
  font-size: 1rem;
  line-height: 1.6;
  color: #000;
}

.profile-description img {
  width: 1em;
  height: 1em;
  vertical-align: -0.2em;
  fill: currentColor;
}

.icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* BACKGROUND PATTERNS & EFFECTS */

.moving-bg,
.static-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.moving-bg {
  z-index: -1;
  opacity: 0;
  animation: fadePattern 10s ease-in-out infinite;
}

.static-bg {
  z-index: -1;
  opacity: 0.3;
}

.pattern {
  z-index: -1;
}

@keyframes fadePattern {
  0%,
  100% {
    opacity: 0.1;
  }
  20%,
  80% {
    opacity: 0.3;
  }
  40%,
  60% {
    opacity: 0.5;
  }
}

/* ACCORDION SECTION */

.timeline {
  margin: auto;
  min-height: 510px;
}

.timeline .accordion {
  margin: 22px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.timeline .accordion-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 1rem 1.5rem;
  font-size: 1.25rem;
  font-weight: bold;
}

.timeline .accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.timeline .accordion.active .accordion-content {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 1.2rem;
}

/* RESPONSIVE BREAKPOINTS */

@media (max-width: 1030px) and (min-width: 877px) {
  .page-grid {
    grid-template-columns: 1fr 320px;
    grid-template-areas:
      "left   center"
      "right  center";
  }
  .column-right {
    margin-top: -65px;
  }
}

@media (max-width: 876px) {
  .page-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 24px 12px;
  }

  .column-right {
    margin-top: auto;
  }

  .linktree,
  .content-container {
    width: 100%;
    max-width: 320px;
  }
}
