* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  color: #111;
  background: white;

  background-image:
    linear-gradient(#eeeeee 1px, transparent 1px),
    linear-gradient(90deg, #eeeeee 1px, transparent 1px);
  background-size: 40px 40px;
}

main {
  max-width: 920px;
  margin: auto;
  padding: 0 20px 100px;
}

/* HERO */
.hero {
  margin-top: 40px;
  text-align: center;
  padding: 12px 20px 6px;
}

.hero h1 {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.6px;
}

.hero p {
  color: #666;
  margin-top: 10px;
  font-size: 1rem;
}

/* BUTTON */
.btn {
  display: inline-block;
  margin-top: 26px;
  padding: 14px 30px;
  border-radius: 18px;

  background: #111;
  color: white;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;

  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  transition: all 0.35s cubic-bezier(.22,1,.36,1);

  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 40px rgba(0,0,0,0.22);
}

/* SECTIONS */
section {
  margin-top: 100px;
}

h2 {
  text-align: center;
  font-size: 1.7rem;
  letter-spacing: -0.3px;
}

.subtitle {
  text-align: center;
  color: #777;
  font-size: 0.95rem;
}

.divider {
  width: 70px;
  height: 3px;
  margin: 12px auto 28px;
  border-radius: 10px;
  background: linear-gradient(90deg, #111, #444);
}

/* CARD */
.card {
  background: #fafafa;
  border-radius: 26px;
  padding: 30px;
  border: 1px solid #e5e5e5;
  transition: 0.35s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

/* AVATAR */
.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  margin: 0 auto 22px;

  background-image: url('https://files.catbox.moe/nwq916.jpg');
  background-size: cover;
  background-position: center;

  border: 1px solid #e5e5e5;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.08),
    inset 0 0 0 4px white;
}

/* LOCATION */
.location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
  margin-top: 10px;
}

/* SKILLS */
.skills-marquee {
  overflow: hidden;
  position: relative;
}

.badges-track {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
  animation: slideSkills 18s linear infinite;
}

.badges-track span {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 14px 30px;
  border-radius: 999px;

  background: white;
  border: 1px solid #e7e7e7;

  font-size: 0.9rem;
  font-weight: 500;

  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: 0.25s ease;
}

.badges-track span:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.badges-track span img {
  width: 27px;
  height: 27px;
  flex-shrink: 0;
}

@keyframes slideSkills {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* PROJECTS */
.projects-slider {
  position: relative;
  overflow: hidden;
}

.projects-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 10px 4px;
}

.projects-track::-webkit-scrollbar {
  display: none;
}

/* FEATURED CARD */
.project-card.github {
  min-width: 360px;
  border-radius: 32px;
  overflow: hidden;
  background: white;
  border: 1px solid #e5e5e5;

  transition:
    transform 0.35s cubic-bezier(.22,1,.36,1),
    box-shadow 0.35s cubic-bezier(.22,1,.36,1);
}

.project-card.github:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 28px 65px rgba(0,0,0,0.16);
}

/* BIG COVER */
.project-cover {
  background: #2f6df6;
  color: white;
  padding: 70px 28px;
  text-align: center;
}

.project-cover h3 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.4px;
}

/* BOTTOM AREA */
.project-info {
  padding: 26px 34px 30px;
}

.project-info p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 10px 0 20px;
}

/* Repo header */
.repo-title {
  display: flex;
  align-items: center;
  gap: 6px;

  font-size: 0.78rem;
  font-weight: 600;
  color: #586069;

  margin-bottom: 12px;
}

.repo-title svg {
  width: 15px;
  height: 15px;
}

/* Repo meta */
.repo-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: #586069;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid #f1f1f1;
}

.repo-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.repo-meta svg {
  width: 13px;
  height: 13px;
  opacity: 0.75;
}

.repo-meta .language {
  gap: 6px;
}

/* LANGUAGE DOT */
.language-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

.lang-JavaScript .language-dot { background: #f7df1e; }
.lang-TypeScript .language-dot { background: #3178c6; }
.lang-Python     .language-dot { background: #3776ab; }
.lang-HTML       .language-dot { background: #e34c26; }
.lang-CSS        .language-dot { background: #1572b6; }
.lang-EJS        .language-dot { background: #a91e50; }
.lang-Unknown    .language-dot { background: #999; }

.projects-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.projects-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0d7de;
  transition: all 0.35s cubic-bezier(.22,1,.36,1);
  cursor: pointer;
  opacity: 0.6;
}

.projects-dots span.active {
  width: 22px;
  border-radius: 999px;
  background: #2f6df6;
  opacity: 1;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 1.1s cubic-bezier(.22,1,.36,1),
    transform 1.1s cubic-bezier(.22,1,.36,1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* SPOTIFY & MAP */
.spotify-card,
.map-card {
  background: #fafafa;
  border-radius: 26px;
  padding: 16px;
  border: 1px solid #e5e5e5;
  transition: 0.35s ease;
}

.spotify-card:hover,
.map-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.07);
}

.map-label {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  margin-top: 10px;
}

.ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
}

@keyframes rippleAnim {
  to {
    transform: scale(18);
    opacity: 0;
  }
}

/* CONTACT */
.contact-card {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 16px;
  border-radius: 18px;

  background: white;
  border: 1px solid #e5e5e5;
  text-decoration: none;
  color: #111;

  font-size: 0.9rem;
  font-weight: 500;

  transition: all 0.3s cubic-bezier(.22,1,.36,1);
}

.contact-item svg {
  width: 18px;
  height: 18px;
  opacity: 0.75;
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.08);
  border-color: #d0d7de;
}

/* Highlight bot */
.contact-item.highlight {
  grid-column: 1 / -1;
  justify-self: center;
  padding-left: 26px;
  padding-right: 26px;
  background: #111;
  color: white;
  border-color: #111;
}

.contact-item.highlight svg {
  opacity: 0.9;
}

.contact-item.highlight:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}