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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: #000;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  align-items: center;
}

.social-links a {
  color: #fff;
  font-size: 2.5rem;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.social-links a:hover {
  opacity: 1;
  transform: translateY(-4px);
}

/* Individual icon colors on hover */
.social-links a.linkedin:hover {
  color: #0a66c2;
}

.social-links a.x-twitter:hover {
  color: #fff;
}

.social-links a.youtube:hover {
  color: #ff0000;
}

.social-links a.github:hover {
  color: #fff;
}

/* GitHub Contributions Graph */
.contributions-graph {
  margin-top: 2rem;
  width: 100%;
}

.contributions-graph img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
}

/* Posts Section */
.posts-section {
  margin-top: 4rem;
  width: 100%;
  max-width: 555px;
}

.posts-section h2 {
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #888;
  margin-bottom: 1.5rem;
}

.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* LinkedIn-style Post Card */
.post-card {
  display: block;
  background: #1b1f23;
  border: 1px solid #2e3338;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  text-align: left;
  transition: all 0.2s ease;
  overflow: hidden;
}

.post-card:hover {
  background: #22272b;
  border-color: #3a4046;
}

/* Post Header - Avatar + Name + Time */
.post-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
}

.post-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.post-meta {
  flex: 1;
  min-width: 0;
}

.post-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.post-author-handle {
  font-size: 0.8rem;
  color: #71767b;
  margin-top: 0.1rem;
}

.post-timestamp {
  font-size: 0.75rem;
  color: #71767b;
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-timestamp i {
  font-size: 0.65rem;
}

/* Post Content */
.post-content {
  padding: 0 1rem;
}

.post-text {
  font-size: 0.9rem;
  color: #e7e9ea;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.post-see-more {
  color: #71767b;
  font-weight: 500;
}

.post-card:hover .post-see-more {
  color: #0a66c2;
}

/* Post Footer - Engagement */
.post-footer {
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  border-top: 1px solid #2e3338;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-reactions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.reaction-icons {
  display: flex;
}

.reaction-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  margin-right: -4px;
  border: 2px solid #1b1f23;
}

.reaction-icon.like {
  background: #0a66c2;
}

.reaction-icon.celebrate {
  background: #44712e;
}

.reaction-icon.love {
  background: #b24020;
}

.reaction-count {
  font-size: 0.8rem;
  color: #71767b;
  margin-left: 0.5rem;
}

.post-engagement {
  font-size: 0.8rem;
  color: #71767b;
}

.post-engagement span {
  margin-left: 0.75rem;
}

/* Read on LinkedIn link */
.post-cta {
  padding: 0.6rem 1rem;
  background: #16181c;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #71767b;
  border-top: 1px solid #2e3338;
  transition: all 0.2s ease;
}

.post-card:hover .post-cta {
  color: #0a66c2;
  background: #1a1f24;
}

.post-cta i {
  font-size: 0.75rem;
}

/* YouTube Section */
.youtube-section {
  margin-top: 3rem;
  width: 100%;
  max-width: 555px;
}

.youtube-section h2 {
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #888;
  margin-bottom: 1.5rem;
}

.youtube-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.video-card {
  display: block;
  background: #1b1f23;
  border: 1px solid #2e3338;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  transition: all 0.2s ease;
}

.video-card:hover {
  background: #22272b;
  border-color: #3a4046;
  transform: translateY(-2px);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f0f0f;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-card:hover .video-play-icon {
  opacity: 1;
}

.video-play-icon i {
  color: #fff;
  font-size: 1.5rem;
  margin-left: 4px;
}

.video-info {
  padding: 0.875rem 1rem;
}

.video-title {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.video-meta {
  font-size: 0.8rem;
  color: #71767b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-meta span::after {
  content: "·";
  margin-left: 0.5rem;
}

.video-meta span:last-child::after {
  content: "";
}

.youtube-loading,
.youtube-error {
  text-align: center;
  padding: 2rem;
  color: #71767b;
  font-size: 0.9rem;
}

.youtube-error {
  color: #f87171;
}

/* Responsive */
@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  .social-links {
    gap: 1.5rem;
  }

  .social-links a {
    font-size: 2rem;
  }

  .contributions-graph {
    margin-top: 1.5rem;
  }

  .posts-section {
    margin-top: 3rem;
  }

  .post-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .post-author {
    font-size: 0.85rem;
  }

  .post-text {
    font-size: 0.85rem;
  }

  .post-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .youtube-section {
    margin-top: 2.5rem;
  }

  .video-title {
    font-size: 0.9rem;
  }

  .video-play-icon {
    width: 50px;
    height: 50px;
  }

  .video-play-icon i {
    font-size: 1.25rem;
  }
}
