* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: #000;
  color: #f5f5f7;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 3rem 0;
}

/* --- Mesh gradient background --- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(90, 50, 180, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(30, 100, 220, 0.3) 0%, transparent 70%),
    radial-gradient(ellipse 55% 45% at 60% 80%, rgba(220, 60, 120, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 70%, rgba(20, 140, 180, 0.2) 0%, transparent 70%);
  animation: meshShift 20s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* --- Layout --- */
main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --- Glass card base --- */
.card {
  background: rgba(30, 30, 30, 0.55);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border-radius: 16px;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* --- Card shared --- */
.card-header {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35);
  padding: 0.85rem 1.1rem 0.4rem;
}

.card-body {
  padding: 0.4rem 1.1rem 1rem;
}

.card-body p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.6rem;
}

.card-body p:last-child {
  margin-bottom: 0;
}

/* --- Profile card --- */
.profile-card {
  text-align: center;
  padding: 2rem 1.5rem 1.75rem;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  margin: 0 auto 1rem;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

h1 {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  color: #fff;
}

.role {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.role a {
  color: #4aadff;
  text-decoration: none;
  transition: color 0.2s;
}

.role a:hover {
  color: #6dc0ff;
}

.location {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.location svg {
  opacity: 0.5;
}

/* --- Status card --- */
.status-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

.status-card strong {
  color: #4aadff;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30d158;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(48, 209, 88, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* --- Live presence variants --- */
.presence-card[data-state="offline"] .presence-dot {
  background: #48484a;
  box-shadow: none;
  animation: none;
}
.presence-card[data-state="offline"] {
  color: rgba(255, 255, 255, 0.45);
}

.activity-dot {
  background: #ffd60a;
  box-shadow: 0 0 6px rgba(255, 214, 10, 0.5);
}
.music-dot {
  background: #ff375f;
  box-shadow: 0 0 6px rgba(255, 55, 95, 0.5);
}


/* --- Skills chips --- */
.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem 1rem;
}

.chip {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chip:active {
  transform: scale(0.96);
}

.chip-ai    { background: rgba(191, 90, 242, 0.15); color: #bf5af2; border-color: rgba(191, 90, 242, 0.2); }
.chip-dev   { background: rgba(74, 173, 255, 0.15); color: #4aadff; border-color: rgba(74, 173, 255, 0.2); }
.chip-data  { background: rgba(48, 209, 88, 0.15);  color: #30d158; border-color: rgba(48, 209, 88, 0.2); }
.chip-cloud { background: rgba(255, 159, 10, 0.15); color: #ff9f0a; border-color: rgba(255, 159, 10, 0.2); }
.chip-lead  { background: rgba(255, 69, 58, 0.15);  color: #ff453a; border-color: rgba(255, 69, 58, 0.2); }

/* --- Tech Stack grid --- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5px;
  background: rgba(255, 255, 255, 0.06);
}

.stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: rgba(30, 30, 30, 0.55);
  transition: background 0.15s;
}

.stack-item span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.stack-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.stack-icon.gcloud   { background: linear-gradient(135deg, #4285F4, #34A853); }
.stack-icon.aws      { background: linear-gradient(135deg, #FF9900, #EC7211); }
.stack-icon.node     { background: linear-gradient(135deg, #539E43, #3C7A30); }
.stack-icon.python   { background: linear-gradient(135deg, #3776AB, #FFD43B); }
.stack-icon.firebase { background: linear-gradient(135deg, #FFCA28, #F57C00); }
.stack-icon.ai       { background: linear-gradient(135deg, #D97757, #C45A3C); }

/* --- Project card --- */
.project-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.15s;
  cursor: pointer;
}

.project-row:active {
  background: rgba(255, 255, 255, 0.08);
}

@media (hover: hover) {
  .project-row:hover {
    background: rgba(255, 255, 255, 0.05);
  }
}

.project-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4aadff, #0A66C2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.project-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
}

.project-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.35;
}

/* --- Timeline --- */
.timeline {
  padding: 0.4rem 1.1rem 1rem;
}

.timeline-item {
  display: flex;
  gap: 0.85rem;
  padding-bottom: 1rem;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 16px;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-marker {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  margin-top: 3px;
}

.timeline-marker.current {
  background: #30d158;
  border-color: #30d158;
  box-shadow: 0 0 6px rgba(48, 209, 88, 0.4);
}

.timeline-marker.education {
  background: #5e5ce6;
  border-color: #5e5ce6;
}

.timeline-content {
  flex: 1;
}

.timeline-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.1rem;
}

.timeline-company {
  font-size: 0.82rem;
  color: #4aadff;
  margin-bottom: 0.15rem;
}

.timeline-date {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.3rem;
}

.timeline-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

/* --- Social icon bar --- */
.social-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}

.social-icon:active {
  transform: scale(0.9);
  opacity: 0.7;
}

@media (hover: hover) {
  .social-icon:hover {
    transform: scale(1.1);
  }
}

.social-icon.github    { background: #333; }
.social-icon.linkedin  { background: #0A66C2; }
.social-icon.instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon.tiktok    { background: #111; }
.social-icon.mail      { background: #4aadff; }

.link-chevron {
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  body {
    padding: 1.5rem 0;
  }

  main {
    max-width: 100%;
    padding: 0.75rem;
  }

  h1 {
    font-size: 1.45rem;
  }

  .avatar {
    width: 88px;
    height: 88px;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .bg-mesh { animation: none; }
  .status-dot { animation: none; }
}
