/* Personal page styles: self-contained UI for creative/projects content. */
* {
  box-sizing: border-box;
  margin: 0;
  font-family: "Inter", sans-serif;
}

html,
body {
  min-height: 100%;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  padding: 20px 10px;
  background-color: #121212;
  color: #ffffff;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(45deg, #181818, #181818 2px, #1b1b1b 2px, #1b1b1b 4px);
  animation: slideLines 6s linear infinite;
}

.main-content {
  width: 100%;
  flex: 1;
}

.page-container {
  width: min(800px, 100%);
  margin: 40px auto;
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid rgba(60, 59, 59, 0.18);
  border-radius: 20px;
  background-color: rgba(17, 17, 17, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 1.2s ease-in-out;
}

.btn {
  display: inline-block;
  min-height: 44px;
  padding: 10px 25px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn:focus-visible,
a:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

.back-btn {
  margin-bottom: 20px;
}

.back-btn:hover,
.back-btn:focus-visible {
  color: #f39c12;
}

.btn-personal {
  background-color: #f39c12;
  color: #ffffff;
}

.btn-personal:hover,
.btn-personal:focus-visible {
  background-color: #d0880a;
}

.section-title {
  margin-bottom: 25px;
  color: #f39c12;
  font-size: 2rem;
}

.development-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0 20px;
  padding: 12px 18px;
  border: 1px solid #f39c12;
  border-radius: 8px;
  background-color: rgba(243, 156, 18, 0.1);
  color: #f39c12;
  font-size: 0.9rem;
  font-weight: 500;
}

.development-notice i {
  font-size: 1.2rem;
}

.main-section {
  padding: 20px;
  border-radius: 15px;
  background-color: #181818;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease both;
}

.personal-container .main-section:not(:last-of-type) {
  margin-bottom: 20px;
}

.main-section h1,
.main-section h2,
.main-section h3 {
  margin-bottom: 10px;
  color: #f39c12;
}

.main-section p,
.main-section ul {
  color: #b3b3b3;
  line-height: 1.6;
}

.icon-personal {
  margin-right: 12px;
  color: #f39c12;
  font-size: 1.2rem;
  vertical-align: middle;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  background-color: #1c1c1c;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-title {
  margin-bottom: 10px;
  color: #f39c12;
  font-size: 1.2rem;
  font-weight: 600;
}

.project-description {
  flex-grow: 1;
  margin-bottom: 15px;
  color: #b3b3b3;
  font-size: 0.9rem;
  line-height: 1.5;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.project-tags .tag {
  padding: 4px 10px;
  border-radius: 20px;
  background-color: #333333;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
}

.tag.python { background-color: #306998; }
.tag.solana { background-color: #9945ff; }
.tag.api { background-color: #f06529; }
.tag.ai { background-color: #d63384; }
.tag.tool { background-color: #6c757d; }
.tag.js { background-color: #f7df1e; color: #000000; }
.tag.data-viz { background-color: #4285f4; }

/* Live GitHub project cards */
a.project-card {
  color: inherit;
  text-decoration: none;
}

a.project-card:hover,
a.project-card:focus-visible {
  border-color: #f39c12;
}

.project-meta {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  color: #8a8a8a;
  font-size: 0.78rem;
}

.projects-status {
  grid-column: 1 / -1;
  padding: 6px 0;
  color: #b3b3b3;
  font-size: 0.9rem;
}

.projects-viewall {
  margin-top: 18px;
}

.telegram-embed-list {
  display: grid;
  gap: 16px;
  margin: 25px 0 15px;
}

.telegram-embed {
  padding: 10px;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  background-color: #1c1c1c;
}

.telegram-join {
  margin-top: 5px;
}

.connect-title {
  margin-top: 30px;
  margin-bottom: 15px;
  padding-top: 20px;
  border-top: 1px solid #333333;
  color: #f39c12;
  font-size: 1.3rem;
}

.connect-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.connect-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 15px;
  border-radius: 8px;
  background-color: #222222;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.connect-link:hover,
.connect-link:focus-visible {
  background-color: #f39c12;
  color: #000000;
}

.connect-link i {
  width: 25px;
  font-size: 1.5rem;
  text-align: center;
}

.connect-link.coming-soon {
  position: relative;
  overflow: hidden;
  background-color: #282828;
  color: #666666;
  cursor: not-allowed;
}

.connect-link.coming-soon:hover,
.connect-link.coming-soon:focus-visible {
  background-color: #282828;
  color: #666666;
}

.footer {
  margin-top: 40px;
  padding: 20px;
  color: #ffffff;
  text-align: center;
  line-height: 1.6;
}

.footer a {
  margin: 0 5px;
  color: #f39c12;
  font-weight: 600;
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  text-decoration: underline;
}

#tooltip {
  position: absolute;
  z-index: 1000;
  max-width: 250px;
  padding: 8px 12px;
  border-radius: 4px;
  background-color: rgba(20, 20, 20, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
}

/* Sizing basis for the Vanta effect: viewport-locked, independent of page scroll height.
   !important is required because Vanta.js sets an inline position/z-index on this element itself. */
#vanta-bg {
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
}

.vanta-canvas {
  position: fixed !important;
  inset: 0 !important;
  z-index: -1;
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 600px) {
  .btn {
    width: 100%;
  }

  .development-notice {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

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

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

@keyframes slideLines {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 200px 200px;
  }
}
