/* jeyd.life — keep it simple, keep it real */

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

body {
  font-family: sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 20px 40px;
}

/* Links */
a {
  color: #333;
  text-decoration: underline;
  text-decoration-color: #ccc;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-color: #333;
}

/* Header */
#header {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  flex-direction: row-reverse;
}

.profile-wrapper {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  align-self: center;
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.64);
  transform-origin: 45% 94%;
}

.header-text {
  flex: 1;
}

h1 {
  font-size: 32px;
  font-weight: normal;
  letter-spacing: -0.5px;
}

.real-name {
  font-size: 18px;
  color: #bbb;
  font-weight: normal;
}

h2 {
  font-size: 17px;
  font-weight: normal;
  font-style: italic;
  color: #999;
  margin-top: 2px;
}

.tagline {
  margin-top: 16px;
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

.social-links {
  margin-top: 14px;
  font-size: 14px;
}

.social-links a {
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1px;
}

.social-links a:hover {
  border-bottom-color: #333;
}

.dot {
  margin: 0 6px;
  color: #ccc;
}

/* HR */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.15), transparent);
  margin: 40px 0;
}

/* Bio */
#bio p {
  font-size: 15px;
  color: #444;
  margin-bottom: 14px;
  line-height: 1.7;
}

/* Section titles */
.section-title {
  font-size: 22px;
  font-weight: normal;
  color: #333;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

.section-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-top: -16px;
}

.section-subtitle {
  font-size: 14px;
  color: #999;
  margin-top: -18px;
  margin-bottom: 24px;
  font-style: italic;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 0;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 90px 20px 1fr;
  margin-bottom: 32px;
  position: relative;
}

.timeline-year {
  font-size: 13px;
  color: #bbb;
  padding-top: 3px;
  text-align: right;
  padding-right: 12px;
}

.timeline-dot {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #cfcfcf;
  border-radius: 50%;
  margin-top: 7px;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: calc(100% + 12px);
  background: #e0e0e0;
}

.timeline-entry:last-child .timeline-dot::after {
  display: none;
}

.timeline-content {
  padding-left: 12px;
}

.role {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.company {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.timeline-content ul {
  list-style: none;
  padding: 0;
}

.timeline-content li {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
}

.timeline-content li::before {
  content: '~';
  position: absolute;
  left: 0;
  color: #ccc;
}

.tech-note {
  font-size: 12px;
  color: #aaa;
  margin-top: 8px;
  font-style: italic;
}

/* Projects */
.project-entry {
  margin-bottom: 28px;
}

.project-name {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
}

.project-entry p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* Tweets */
#tweets-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tweet-card {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 16px;
  transition: border-color 0.2s;
}

.tweet-card:hover {
  border-color: #ccc;
}

.tweet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tweet-date {
  font-size: 12px;
  color: #bbb;
}

.tweet-link {
  font-size: 12px;
  color: #bbb;
  text-decoration: none;
}

.tweet-link:hover {
  color: #666;
}

.tweet-category {
  font-size: 11px;
  color: #999;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 6px;
  text-transform: lowercase;
}

.tweet-text {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.tweet-stats {
  margin-top: 10px;
  font-size: 12px;
  color: #bbb;
}

.tweet-stats span {
  margin-right: 14px;
}

.loading {
  font-size: 14px;
  color: #bbb;
  font-style: italic;
}

#load-more-tweets {
  background: none;
  border: 1px solid #ddd;
  padding: 8px 20px;
  font-size: 13px;
  color: #888;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 8px;
}

#load-more-tweets:hover {
  border-color: #999;
  color: #555;
}

/* Travel */
.travel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 24px 0;
}

.travel-region {
  padding: 16px;
  background: #fafafa;
  border-radius: 6px;
}

.region-name {
  font-size: 13px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.country-list {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

#travel p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

.travel-picks {
  margin-top: 28px;
}

.travel-picks h4 {
  font-size: 15px;
  font-weight: normal;
  color: #999;
  font-style: italic;
  margin-bottom: 16px;
}

.pick {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 14px;
  padding-left: 16px;
  border-left: 2px solid #e0e0e0;
}

.pick-city {
  font-weight: 600;
  color: #333;
}

/* Footer */
footer {
  text-align: center;
  padding-top: 10px;
}

footer p {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 8px;
}

.footer-note {
  font-size: 12px;
  color: #ccc;
  font-style: italic;
}

/* Email unlock */
#email-trigger {
  cursor: pointer;
  position: relative;
}

.unlock-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.unlock-overlay.active {
  display: flex;
  animation: overlayIn 0.6s ease forwards;
}

.unlock-overlay.closing {
  animation: overlayOut 0.4s ease forwards;
}

@keyframes overlayIn {
  0% {
    background: rgba(0, 0, 0, 0);
  }

  100% {
    background: rgba(0, 0, 0, 0.95);
  }
}

@keyframes overlayOut {
  0% {
    background: rgba(0, 0, 0, 0.95);
  }

  100% {
    background: rgba(0, 0, 0, 0);
  }
}

.unlock-content {
  text-align: center;
  position: relative;
}

.unlock-glyphs {
  font-family: monospace;
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  letter-spacing: 3px;
  max-width: 500px;
  margin: 0 auto;
  word-wrap: break-word;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.unlock-glyphs .glyph {
  display: inline;
  opacity: 0;
  animation: glyphFade 0.15s ease forwards;
}

@keyframes glyphFade {
  0% {
    opacity: 0;
    color: #666;
  }

  50% {
    opacity: 1;
    color: #888;
  }

  100% {
    opacity: 0.3;
    color: #333;
  }
}

.unlock-reveal {
  opacity: 0;
  transform: translateY(10px);
}

.unlock-reveal.visible {
  animation: revealIn 0.8s ease forwards;
}

@keyframes revealIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.unlock-label {
  font-size: 13px;
  color: #666;
  letter-spacing: 4px;
  text-transform: lowercase;
  margin-bottom: 20px;
}

.unlock-email-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.unlock-email {
  font-size: 28px;
  color: #fff;
  text-decoration: none;
  font-weight: 300;
  letter-spacing: 2px;
  transition: letter-spacing 0.3s ease;
}

.unlock-email:hover {
  letter-spacing: 4px;
  color: #fff;
}

.copy-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #666;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
  position: relative;
}

.copy-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.copy-tooltip {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #fff;
  background: #333;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.copy-tooltip.show {
  opacity: 1;
}

.unlock-hint {
  font-size: 12px;
  color: #555;
  margin-top: 24px;
  font-style: italic;
}

/* Page glitch effect when unlocked */
.page-unlocked {
  animation: pageGlitch 0.3s ease;
}

@keyframes pageGlitch {
  0% {
    filter: none;
  }

  20% {
    filter: invert(1);
  }

  40% {
    filter: none;
  }

  60% {
    filter: invert(1) hue-rotate(180deg);
  }

  80% {
    filter: none;
  }

  100% {
    filter: none;
  }
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 30px 16px 30px;
  }

  h1 {
    font-size: 26px;
  }

  .real-name {
    font-size: 15px;
  }

  h2 {
    font-size: 15px;
  }

  .tagline {
    font-size: 14px;
  }

  #header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .profile-wrapper {
    width: 180px;
    height: 180px;
  }

  .timeline-entry {
    grid-template-columns: 60px 16px 1fr;
  }

  .timeline-year {
    font-size: 11px;
    padding-right: 8px;
  }

  .section-title {
    font-size: 20px;
  }

  .unlock-email {
    font-size: 22px;
  }

  .travel-region {
    padding: 12px;
  }

  .pick {
    padding-left: 12px;
  }

  hr {
    margin: 30px 0;
  }
}