/* ==========================================================================
   Components Stylesheet
   Crafted with minimalistic UI/UX, precise spacing, and refined interactive details.
   ========================================================================== */

/* ─── 1. Header & Navigation ──────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.025rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  transition: color var(--dur-fast) var(--ease);
}

.nav-brand:hover {
  color: var(--color-accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  padding: var(--space-1) 0;
  position: relative;
  transition: color var(--dur-fast) var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-ink);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.nav-divider {
  display: none;
  color: var(--color-line);
  user-select: none;
}

@media (min-width: 640px) {
  .nav-divider {
    display: block;
  }
}

/* Header Live Weather & Location Badge */
.header-weather {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  color: var(--color-muted);
}

.weather-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.weather-icon-wrap {
  display: inline-flex;
  align-items: center;
  color: var(--color-accent);
}

/* Mobile Hamburger Toggle */
.nav-toggle {
  display: flex;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  color: var(--color-ink);
}

@media (min-width: 640px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-normal) var(--ease), opacity var(--dur-normal) var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) 0 var(--space-4);
  border-top: 1px solid var(--color-line);
}

.mobile-nav-drawer.is-open {
  display: flex;
}

.mobile-nav-link {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  padding: var(--space-2) 0;
}

.mobile-nav-link:hover,
.mobile-nav-link[aria-current="page"] {
  color: var(--color-accent);
}


/* ─── 2. Hero Section ─────────────────────────────────────── */
.hero {
  padding-top: var(--space-7);
  padding-bottom: var(--space-6);
}

.hero-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  color: var(--color-ink);
}

.hero-lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 42rem;
}


/* ─── 3. Summary Section (Image Exact Replica) ─────────────── */
.summary-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.summary-heading {
  font-family: var(--font-display);
  font-size: 0.8125rem; /* 13px */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af; /* muted gray */
  margin-bottom: var(--space-3);
}

.summary-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.summary-list > li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
}

.summary-bullet {
  color: #d1d5db;
  font-size: 1.25rem;
  line-height: 1;
  margin-right: 4px;
  user-select: none;
  flex-shrink: 0;
}

/* Links with subtle underline and diagonal arrow */
.summary-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #111827;
  text-decoration: none;
  border-bottom: 1px solid #d1d5db;
  line-height: 1.2;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.summary-link:hover {
  border-color: #111827;
}

.summary-link .arrow-icon {
  width: 14px;
  height: 14px;
  color: #9ca3af;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.summary-link:hover .arrow-icon {
  transform: translate(2px, -2px);
  color: #111827;
}

/* Overlapping Avatar Stack */
.avatar-stack {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  vertical-align: middle;
}

.avatar-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -5px;
}

.avatar-item:first-child {
  margin-left: 0;
}

.avatar-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #f3f4f6;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 0 1px #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-weight: 700;
  color: #111827;
  overflow: hidden;
}

/* Tooltip on hover */
.avatar-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 6px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
  background-color: #111827;
  color: #ffffff;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 30;
}

.avatar-item:hover .avatar-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* Single inline entity badge */
.inline-badge-entity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
}

.badge-circle-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  background: #f9fafb;
}

.badge-im {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-size: 8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}

.badge-product-hacks {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ea580c;
  color: #ffffff;
  font-size: 7px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}


/* ─── 4. Social Row & Spinning CD Music Widget ─────────────── */
.summary-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: var(--space-6);
  padding-top: var(--space-3);
}

.social-icons-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icon-btn {
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease;
}

.social-icon-btn:hover {
  color: #111827;
  transform: translateY(-1px);
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
}

.row-pipe {
  width: 1px;
  height: 16px;
  background-color: #e5e7eb;
}

/* Vinyl / CD Music Widget */
.music-cd-widget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #4b5563;
}

.cd-artwork {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    #ffffff 0%, #ffffff 10%,
    #111827 10%, #111827 25%,
    #4b5563 25%, #4b5563 32%,
    #111827 32%, #111827 48%,
    #6b7280 48%, #6b7280 54%,
    #111827 54%, #111827 68%,
    #9ca3af 68%, #9ca3af 74%,
    #111827 74%
  );
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  animation: cd-spin 3.5s linear infinite;
  flex-shrink: 0;
}

@keyframes cd-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.music-cd-widget:hover .cd-artwork {
  animation-duration: 1.5s;
}


/* ─── 5. Modern Symmetric Project Cards ─────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
  margin-bottom: var(--space-3);
  transition: color 0.15s ease;
}

.back-link:hover {
  color: #111827;
}

.page-main-heading {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #111827;
  margin-bottom: var(--space-6);
}

.category-label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: var(--space-5);
}

.projects-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 640px) {
  .projects-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Individual Symmetric Project Card */
.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.project-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px -6px rgba(20, 22, 25, 0.07), 0 2px 6px rgba(20, 22, 25, 0.03);
  transform: translateY(-2px);
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.project-circle-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

.project-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.project-title-link {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.project-title-text {
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.project-card:hover .project-title-text {
  border-color: #111827;
  color: var(--color-accent);
}

.project-title-link .arrow-icon {
  width: 14px;
  height: 14px;
  color: #9ca3af;
  transition: transform 0.2s ease, color 0.2s ease;
}

.project-card:hover .arrow-icon {
  transform: translate(2px, -2px);
  color: var(--color-accent);
}

.project-desc-text {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--color-line-subtle);
}

.project-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px 7px;
  border-radius: 4px;
}

.project-action-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.project-action-link:hover {
  text-decoration: underline;
}


/* ─── 6. About & Skills List ──────────────────────────────── */
.about-box {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.about-box h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-3);
}

.about-box p {
  font-size: 0.975rem;
  line-height: 1.7;
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-4);
}

@media (min-width: 540px) {
  .skill-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
  color: var(--color-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-line-subtle);
}

.skill-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}


/* ─── 7. Contact Items ────────────────────────────────────── */
.contact-list {
  display: flex;
  flex-direction: column;
}

.contact-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-line);
  font-size: var(--fs-body);
}

.contact-item:first-child {
  border-top: 1px solid var(--color-line);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-faint);
}

.contact-value {
  color: var(--color-ink);
}

.contact-response-note {
  margin-top: var(--space-5);
  font-size: 0.875rem;
  color: var(--color-muted);
}


/* ─── 8. Footer ───────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-line);
  margin-top: var(--space-8);
  padding: var(--space-6) 0 var(--space-8);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  color: var(--color-faint);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
  }
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-links a {
  color: var(--color-muted);
  transition: color var(--dur-fast) var(--ease);
}

.footer-links a:hover {
  color: var(--color-accent);
}
