/* CSS Reset & Variables */
:root {
  --black: #000000;
  --white: #ffffff;
  --gray-light: #e5e5e5;
  --gray-text: #737373;
  --transition-speed: 0.3s;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--white);
  color: var(--black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--black);
  color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* Background Animation */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
}

.shape {
  transform-box: fill-box;
  transform-origin: center;
}

.plane-rect {
  animation: moveRect 45s linear infinite;
}
@keyframes moveRect {
  0%   { transform: translate(15vw, 15vh) rotate(0deg); }
  25%  { transform: translate(20vw, 25vh) rotate(90deg); }
  50%  { transform: translate(10vw, 20vh) rotate(180deg); }
  75%  { transform: translate(15vw, 15vh) rotate(270deg); }
  100% { transform: translate(15vw, 15vh) rotate(360deg); }
}

.plane-triangle {
  animation: moveTriangle 55s linear infinite;
}
@keyframes moveTriangle {
  0%   { transform: translate(75vw, 65vh) rotate(0deg); }
  25%  { transform: translate(80vw, 55vh) rotate(-120deg); }
  50%  { transform: translate(70vw, 75vh) rotate(-240deg); }
  75%  { transform: translate(75vw, 65vh) rotate(-360deg); }
  100% { transform: translate(75vw, 65vh) rotate(-360deg); }
}

.line-diagonal {
  animation: moveLineDiag 35s ease-in-out infinite;
}
@keyframes moveLineDiag {
  0%   { transform: translate(-5vw, 0vh); }
  50%  { transform: translate(5vw, 5vh); }
  100% { transform: translate(-5vw, 0vh); }
}

.line-dashed {
  animation: moveLineDash 40s linear infinite;
}
@keyframes moveLineDash {
  0%   { transform: translate(0vw, 0vh); }
  25%  { transform: translate(4vw, -6vh); }
  50%  { transform: translate(-4vw, 6vh); }
  75%  { transform: translate(0vw, 0vh); }
  100% { transform: translate(0vw, 0vh); }
}

.dot-large {
  animation: moveDotLarge 50s ease-in-out infinite;
}
@keyframes moveDotLarge {
  0%   { cx: 25%; cy: 75%; }
  25%  { cx: 35%; cy: 65%; }
  50%  { cx: 15%; cy: 85%; }
  75%  { cx: 25%; cy: 75%; }
  100% { cx: 25%; cy: 75%; }
}

.dot-small {
  animation: moveDotSmall 30s ease-in-out infinite;
}
@keyframes moveDotSmall {
  0%   { cx: 85%; cy: 25%; transform: scale(1); }
  25%  { cx: 75%; cy: 35%; transform: scale(1.2); }
  50%  { cx: 90%; cy: 15%; transform: scale(0.8); }
  75%  { cx: 85%; cy: 25%; transform: scale(1); }
  100% { cx: 85%; cy: 25%; transform: scale(1); }
}

.dot-tiny {
  animation: moveDotTiny 25s ease-in-out infinite;
}
@keyframes moveDotTiny {
  0%   { cx: 45%; cy: 35%; }
  25%  { cx: 55%; cy: 45%; }
  50%  { cx: 40%; cy: 25%; }
  75%  { cx: 45%; cy: 35%; }
  100% { cx: 45%; cy: 35%; }
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: 440px;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Profile Area */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}

.avatar-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1.5px solid var(--black);
  padding: 4px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 480px) {
  .avatar-ring {
    width: 112px;
    height: 112px;
  }
}

.avatar-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.avatar-image:hover {
  filter: grayscale(0%);
}

.name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

@media (min-width: 480px) {
  .name {
    font-size: 28px;
  }
}

.role {
  color: var(--gray-text);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@media (min-width: 480px) {
  .role {
    font-size: 15px;
  }
}

/* Links Area */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* margin-bottom: 56px; */
}

@media (min-width: 480px) {
  .links {
    gap: 16px;
  }
}

.link-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  border: 1.5px solid var(--black);
  border-radius: 16px;
  background-color: var(--white);
  color: var(--black);
  transition: all var(--transition-speed) ease-out;
}

@media (min-width: 480px) {
  .link-item {
    padding: 20px 24px;
  }
}

.link-item span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@media (min-width: 480px) {
  .link-item span {
    font-size: 16px;
  }
}

.icon-left {
  position: absolute;
  left: 24px;
  width: 20px;
  height: 20px;
  color: var(--black);
  transition: color var(--transition-speed) ease;
}

.icon-right {
  position: absolute;
  right: 24px;
  width: 20px;
  height: 20px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition-speed) ease-out;
}

.link-item:hover {
  background-color: var(--black);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.link-item:active {
  transform: scale(0.98);
}

.link-item:hover .icon-left {
  color: var(--white);
}

.link-item:hover .icon-right {
  opacity: 1;
  transform: translateX(0);
}

/* Accordion (Details/Summary) Styles */
summary {
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker {
  display: none;
}

.link-item-group {
  width: 100%;
}

.link-item-group summary .icon-right.chevron {
  opacity: 1;
  transform: translateX(0);
  transition: transform var(--transition-speed) ease-out;
}

.link-item-group[open] summary .icon-right.chevron {
  transform: rotate(180deg);
}

.link-item-group[open] summary {
  background-color: var(--black);
  color: var(--white);
}

.link-item-group[open] summary .icon-left,
.link-item-group[open] summary .icon-right {
  color: var(--white);
}

.sub-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 0 16px;
  animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.sub-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  border: 1.5px solid var(--black);
  border-radius: 12px;
  background-color: var(--white);
  color: var(--black);
  transition: all var(--transition-speed) ease-out;
}

.sub-link-item span {
  font-size: 14px;
  font-weight: 500;
}

.sub-link-item svg {
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition-speed) ease-out;
}

.sub-link-item:hover {
  background-color: var(--black);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sub-link-item:hover svg {
  opacity: 1;
  transform: translateX(0);
}

/* Socials Area */
.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

@media (min-width: 480px) {
  .socials {
    gap: 32px;
  }
}

.social-icon {
  padding: 8px;
  color: #a3a3a3;
  transition: all var(--transition-speed) ease;
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.social-icon:hover {
  color: var(--black);
  transform: scale(1.1);
}

/* Footer */
.footer {
  margin-top: 48px;
  text-align: center;
}

.footer p {
  font-size: 12px;
  color: #a3a3a3;
}
