/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --text-primary: #0f0f0f;
  --text-secondary: #555555;
  --text-muted: #999999;
  --accent: #f97316;
  --accent-hover: #ea6c0a;
  --border: #ebebeb;
  --card-bg: #f9f9f9;
  --tag-chrome-bg: #e8f0fe;
  --tag-chrome-color: #1a73e8;
  --tag-coming-bg: #fff3cd;
  --tag-coming-color: #b45309;
  --tag-live-bg: #dcfce7;
  --tag-live-color: #16a34a;
  --tag-latest-bg: #f97316;
  --tag-latest-color: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 480px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 0 40px 0;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ═══════════════════════════════════════════
   TOP BANNER
═══════════════════════════════════════════ */
.top-banner {
  background: var(--bg);
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}

.top-banner a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--text-primary);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}

.top-banner a:hover {
  background: #333333;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ═══════════════════════════════════════════
   HERO / PROFILE
═══════════════════════════════════════════ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 32px;
  text-align: center;
}

/* ── EMPTY STATES ── */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  gap: 10px;
  text-align: center;
}

.empty-state p {
  font-size: 16px;
  font-weight: 700;
  color: #999;
  margin: 0;
}

.empty-state span {
  font-size: 13px;
  color: #bbb;
}

.empty-state-projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  gap: 10px;
  text-align: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}

.empty-state-projects p {
  font-size: 16px;
  font-weight: 700;
  color: #999;
  margin: 0;
}

.empty-state-projects span {
  font-size: 13px;
  color: #bbb;
}

.profile-photo-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
  border: 3px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.profile-tagline {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 22px;
  line-height: 1.5;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

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

/* ═══════════════════════════════════════════
   SECTIONS COMMON
═══════════════════════════════════════════ */
.section {
  padding: 0 20px;
  margin-bottom: 36px;
}

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

.section-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.section-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   RESOURCES SECTION
═══════════════════════════════════════════ */
.resources-section {
  margin-top: 4px;
}

/* Click Hint Button */
.click-hint-btn {
  width: 100%;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}

.click-hint-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249,115,22,0.35);
}

/* Resource Grid */
.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

/* Resource Card */
.resource-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 9/12;
  cursor: pointer;
  background: var(--card-bg);
}

.resource-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  filter: blur(0px);
}

.resource-card:hover img {
  transform: scale(1.04);
}

/* Card Overlay */
.resource-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.1) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
}

.resource-card .card-tag {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 50px;
  text-transform: uppercase;
}

.resource-card .card-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ─── SKELETON CARDS ─── */
.skeleton-card {
  cursor: default;
  pointer-events: none;
}

.skeleton-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    110deg,
    #e8e8e8 30%,
    #f5f5f5 50%,
    #e8e8e8 70%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* See More Button */
.see-more-btn {
  width: 100%;
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}

.see-more-btn:hover {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
}

.see-more-btn.expanded svg {
  transform: rotate(180deg);
}

/* ═══════════════════════════════════════════
   THINGS I'M BUILDING
═══════════════════════════════════════════ */
.building-section {
  margin-top: 8px;
}

.building-list {
  display: flex;
  flex-direction: column;
  gap: 12px; /* Is value ko aap badha/ghata sakte hain space adjust karne ke liye (e.g. 14px ya 16px) */
}

.building-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg);
  border: 1.5px solid var(--border); /* Ab border har card ke chaaro taraf hoga */
  border-radius: var(--radius);       /* Har card ke corners rounded honge */
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;          /* Smooth transition for hover effect */
  position: relative;
}

/* Hover state ko thoda aur dynamic aur beautiful banane ke liye */
.building-item:hover {
  background: #fafafa;
  border-color: #d1d1d1;             /* Hover par border thoda dark hoga */
  transform: translateY(-2px);       /* Chhota sa lift-up effect */
  box-shadow: 0 4px 12px rgba(0,0,0,0.03); /* Subtle shadow effect */
}

.building-item:active {
  background: #f5f5f5;
  transform: translateY(0);
}

/* App Icon */
.building-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
}

.building-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* App Info */
.building-info {
  flex: 1;
  min-width: 0;
}

.building-info-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.building-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.building-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 50px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-coming {
  background: var(--tag-coming-bg);
  color: var(--tag-coming-color);
}

.tag-live {
  background: var(--tag-live-bg);
  color: var(--tag-live-color);
}

.tag-latest {
  background: var(--tag-latest-bg);
  color: var(--tag-latest-color);
}

/* Arrow Icon */
.building-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.building-item:hover .building-arrow {
  transform: translate(2px, -2px);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   POPUP OVERLAY
═══════════════════════════════════════════ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.popup-box {
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 28px 24px 36px;
  width: 100%;
  max-width: var(--max-width);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.popup-overlay.active .popup-box {
  transform: translateY(0);
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: var(--card-bg);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.popup-close:hover {
  background: var(--border);
}

.popup-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 500;
}

.popup-link-btn {
  display: block;
  width: 100%;
  background: var(--text-primary);
  color: #ffffff;
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
}

.popup-link-btn:hover {
  background: #333;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  text-align: center;
  padding: 24px 20px 16px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.footer p {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.footer a {
  color: var(--text-secondary);
  font-weight: 600;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 360px) {
  .profile-name { font-size: 22px; }
  .resource-grid { gap: 8px; }
  .building-name { font-size: 14px; }
}

@media (min-width: 481px) {
  body {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    min-height: 100vh;
  }
}
