/* CSS Variables for theming */
:root {
  /* Colors */
  --text-primary: #fff;
  --bg-primary: #000;
  --bg-button: #1f1f1f;
  --bg-button-hover: #141414;

  /* Font sizes */
  --font-size-sm: 16px;
  --font-size-md: 18px;
  --font-size-lg: 22px;
  --font-size-2xl: 32px;
  --font-size-3xl: 40px;

  /* Font weights */
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
}

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

/* Prevent image overflow issues */
img {
  max-width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

html {
  overscroll-behavior: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide scrollbar while keeping scroll functionality */
html::-webkit-scrollbar {
  display: none;
}

html {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Hide scrollbar on body as well */
body::-webkit-scrollbar {
  display: none;
}

a {
  color: var(--text-primary);
  text-decoration: none;
}

/* Accessibility - Focus states */
a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 4px;
}

.link-box:focus-within {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}


/* Container Styles */
.link-wrapper {
  position: relative;
  width: 650px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  .link-wrapper {
    width: 100%;
    padding: 0 15px;
  }
}

/* Link Container */
.link-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 24px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .link-container {
    padding: 16px;
    padding-bottom: 24px;
  }
}

/* Link Header */
.link-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
  margin-bottom: 12px;
}

@media screen and (max-width: 768px) {
  .link-header {
    margin-top: 16px;
    margin-bottom: 6px;
  }
}

/* Avatar Styles */
.avatar {
  height: 180px;
  width: 180px;
  margin-bottom: 12px;
  position: relative;
  flex-shrink: 0;
  display: block;
}

@media screen and (max-width: 768px) {
  .avatar {
    height: 120px;
    width: 120px;
    margin-bottom: 8px;
  }
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* Title Styles */
.title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title h1 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -2px;
  color: var(--text-primary);
}

@media screen and (max-width: 768px) {
  .title h1 {
    font-size: var(--font-size-2xl);
  }
}

/* Bio Section */
.link-bio {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.link-bio p {
  font-size: var(--font-size-lg);
  line-height: 30px;
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.6px;
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.7);
}

@media screen and (max-width: 768px) {
  .link-bio {
    margin-bottom: 8px;
  }

  .link-bio p {
    font-size: 17px;
    line-height: 26px;
    padding: 0 12px;
    margin-bottom: 4px;
  }
}



/* Web Link Wrap */
.web-link-wrap {
  margin-top: 8px;
}

@media screen and (max-width: 768px) {
  .web-link-wrap {
    padding: 0 8px;
    margin-top: 0;
  }
}

/* Link Section */
.link-section {
  padding: 12px 0;
  display: flex;
  margin: 0 auto;
  max-width: 400px;
  flex-direction: column;
}

.link-section.social {
  max-width: max-content;
  padding: 0;
  margin-bottom: 18px;
}

@media screen and (max-width: 768px) {
  .link-section.social {
    margin-bottom: 8px;
  }
  
  .link-section {
    padding: 4px 0;
    margin-bottom: 4px;
  }
}

.link-section .iconsonly {
  display: flex;
  justify-content: center;
}

@media screen and (max-width: 768px) {
  .link-section .iconsonly {
    flex-wrap: wrap;
  }
}

.link-section h3 {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  color: var(--text-primary);
}

@media screen and (max-width: 768px) {
  .link-section h3 {
    font-size: 13px;
    margin-bottom: 2px;
  }
}

/* Link Box */
.link-box {
  padding: 18px 20px;
  border-radius: 12px;
  margin: 8px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.5px;
  position: relative;
  text-align: center;
  background: var(--bg-button);
  color: var(--text-primary);
  min-height: 48px;
  transition: background 0.15s ease;
}

/* Hover state for desktop */
@media (hover: hover) and (pointer: fine) {
  .link-box:hover {
    background: var(--bg-button-hover);
  }
}

/* Mobile touch feedback */
@media (hover: none) and (pointer: coarse) {
  .link-box:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

.link-box.socialIcon {
  padding: 16px;
  border-radius: 50%;
  margin: 4px;
  min-height: auto;
  width: 56px;
  height: 56px;
}

.link-box.socialIcon img {
  width: 24px;
  height: 24px;
  display: block;
}

@media screen and (max-width: 768px) {
  .link-box.socialIcon {
    padding: 14px;
    margin: 3px;
    width: 52px;
    height: 52px;
  }

  .link-box.socialIcon img {
    width: 24px;
    height: 24px;
  }
}

@media screen and (max-width: 768px) {
  .link-box {
    padding: 14px 18px;
    font-size: 15px;
    margin: 6px 8px;
    min-height: 52px;
  }
}

/* Link Title */
.link-title {
  display: flex;
  font-size: var(--font-size-md);
  align-items: center;
  justify-content: center;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .link-title {
    font-size: 16px;
  }
}
