/* =========================
   RESET + BASE
========================= */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background: #fafafa;
  color: #1a1a1a;
  line-height: 1.5;

  cursor: none;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}

/* =========================
   DESIGN TOKENS
========================= */

:root {
  /* COLORS */
  --bg-main: #fafafa;
  --bg-card: #ffffff;

  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #888888;

  --accent: #ff2d7a;
  --accent-strong: #e61e68;
  --accent-light: rgba(255, 45, 122, 0.08);

  --border: #efefef;

  /* SPACING */
  --space-xs: 6px;
  --space-sm: 10px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;

  /* RADIUS */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* SHADOW */
  --shadow-soft: 0 6px 24px rgba(0,0,0,0.05);
}

/* =========================
   LAYOUT
========================= */

main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

section {
  margin-bottom: 32px;
}

/* =========================
   NAV
========================= */

.nav {
  position: sticky;
  top: 0;
  width: 100%;

  background: rgba(250, 250, 250, 0.7);
  backdrop-filter: blur(12px);

  display: flex;
  justify-content: center;

  border-bottom: 1px solid var(--border);
  z-index: 100;

  transition: background 0.2s ease, backdrop-filter 0.2s ease;
}

.nav-inner {
  width: 100%;
  max-width: 1100px;
  padding: var(--space-md) var(--space-lg);

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.menu-btn {
  font-size: 20px;
}

/* =========================
   PROFILE HEADER
========================= */
.profile-info a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 45, 122, 0.35);
}

.profile-info a:hover {
  border-bottom-color: var(--accent);
}


.profile-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.profile-top {
  display: flex;
  gap: 36px;
  align-items: center; /* 👈 FIX */
}

.profile-pic {
  width: 150px;
  height: 150px;
  aspect-ratio: 1 / 1;

  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;

  display: block;

  border: 2px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* MOBILE — ALL SIZES BELOW TABLET */
@media (max-width: 768px) {

  .profile-top {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .profile-pic {
    width: 180px;   /* base mobile size */
    height: 180px;
    margin: 24px auto 8px auto;

    border-radius: 50%;
    object-fit: cover;

    border: none;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  }
}

/* EXTRA SMALL PHONES */
@media (max-width: 480px) {
  .profile-pic {
    width: 200px;   /* slightly bigger for small screens */
    height: 200px;
  }
}

.profile-info {
  max-width: 720px;
  width: 100%;
}

.profile-info .name {
  font-size: 22px;
  font-weight: 600;
}

.profile-info .title {
  color: var(--text-muted);
  font-size: 14px;
}

.profile-info .bio {
  margin-top: var(--space-sm);
  font-size: 14px;
  color: var(--text-secondary);
}

.profile-info .bio {
  font-size: 15px;
  line-height: 1.6;
}

.profile-actions {
  margin-top: var(--space-md);
  display: flex;
  gap: var(--space-sm);
}



/* =========================
   BUTTONS
========================= */

.btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: 
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 6px 16px rgba(255, 45, 122, 0.2);
}

.btn.secondary {
  border: 1px solid var(--border);
  background: white;
  color: var(--text-primary);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 8px 20px rgba(255, 45, 122, 0.25);
}

.btn.secondary:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

/* =========================
   STATS
========================= */

.profile-stats {
  display: flex;
  gap: 28px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.stat p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.2;
  max-width: 120px; /* 👈 forces wrap */
}

/* =========================
   STATS — MOBILE TIGHTENING
========================= */

@media (max-width: 768px) {

  .profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 per row */
    gap: 14px 10px; /* tighter spacing */
    margin-top: 16px;
  }

  .stat {
    align-items: center;
    text-align: center;
  }

  .stat h3 {
    font-size: 16px; /* smaller number */
    font-weight: 600;
  }

  .stat p {
    font-size: 11px; /* smaller label */
    line-height: 1.2;
    max-width: 90px; /* force clean wrapping */
  }
}

/* EXTRA SMALL PHONES */
@media (max-width: 480px) {
  .profile-stats {
    grid-template-columns: repeat(2, 1fr); /* stack better */
  }

  .stat h3 {
    font-size: 15px;
  }

  .stat p {
    font-size: 10px;
  }
}

/* =========================
   HIGHLIGHTS
========================= */

.profile-highlights {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: 4px;
}

.profile-highlights::-webkit-scrollbar {
  display: none;
}

.highlight {
  padding: 8px 12px;
  border-radius: 999px;

  background: var(--accent-light);
  color: var(--accent);

  font-size: 12px;
  font-weight: 500;

  white-space: nowrap;

  transition: 
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.highlight:hover {
  transform: translateY(-1px);
  background: var(--accent);
  color: white;
}
/* =========================
   TAB NAV
========================= */

.tab-nav {
  display: flex;
  gap: var(--space-lg);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab {
  padding: var(--space-sm) 0;
  font-size: 14px;
  color: var(--text-secondary);
  position: relative;

  transition: color 0.2s ease;
}

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

.tab.active {
  color: var(--text-primary);
  font-weight: 500;
}

.tab::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-light);
  transition: width 0.2s ease;
}

.tab:hover::after {
  width: 100%;
}

.tab.active::after {
  width: 100%;
  background: var(--accent);
  border-radius: 2px;
}

/* =========================
   CONTENT STATES
========================= */

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* =========================
   CARD SYSTEM (GLOBAL)
========================= */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);

  transition: 
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* =========================
   FEED (TWITTER STYLE)
========================= */
.feed-container {
  max-width: 650px; /* 👈 controls skinniness */
  margin: 0 auto;   /* 👈 centers it */
  width: 100%;
}

.feed-card .card-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.feed-card {
  overflow: hidden;
}

.feed-card .card-footer {
  display: flex;
  gap: var(--space-md);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.feed-card .card-footer span {
  cursor: pointer;
  transition: color 0.2s ease;
}

.feed-card .card-footer span:hover {
  color: var(--accent);
}

/* =========================
   WORK / PROJECTS / WRITING
========================= */

/* =========================
   WRITING CARDS (EDITORIAL)
========================= */

.writing-card {
  display: block;
  text-decoration: none;
  color: inherit;

  background: var(--bg-card);
  padding: 18px 20px;
  border-radius: 16px;

  box-shadow: 0 2px 10px rgba(0,0,0,0.04);

  transition: 
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

/* title */
.writing-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.35;
}

/* body */
.writing-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* hover — THIS is the link signal */
.writing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* subtle accent on hover */
.writing-card:hover h3 {
  color: var(--accent);
}

.writing-card::after {
  content: "↗";
  font-size: 12px;
  opacity: 0;
  margin-left: 6px;
  transition: opacity 0.2s ease;
}

.writing-card:hover::after {
  opacity: 0.6;
}

.writing-list{
  gap: 22px;
}

.work-list, .writing-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}



.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  align-items: start;
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   ABOUT / RESUME
========================= */

.about-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.about-text {
  max-width: 680px;
}

.about-visual {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-visual img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}



.about-section,
.resume-section {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 520px;
}

.about-section p,
.resume-section p {
  margin-bottom: 12px;
}

/* =========================
   ABOUT / CONTACT — MOBILE FIX
========================= */

@media (max-width: 768px) {

  .about-wrapper {
    display: flex;              /* kill grid */
    flex-direction: column;     /* stack everything */
    gap: 24px;
  }

  .about-text {
    max-width: 100%;            /* remove skinny constraint */
  }

  .about-visual {
    position: relative;         /* remove sticky */
    top: auto;

    display: grid;              /* nicer layout than stack */
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .about-visual img {
    width: 100%;
    height: 140px;              /* consistent card feel */
    object-fit: cover;
    border-radius: 14px;
  }
}

/* EXTRA SMALL PHONES */
@media (max-width: 480px) {

  .about-visual {
    grid-template-columns: 1fr; /* full width images */
  }

  .about-visual img {
    height: 180px;
  }

  .about-wrapper {
    gap: 20px;
  }
}


/* =========================
   MODAL
========================= */

.project-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.project-modal.active {
  display: flex;
}

.modal-content {
  background: white;
  max-width: 700px;
  width: 90%;
  padding: 32px;
  border-radius: 20px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

.modal-body h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.modal-body p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

/* =========================
   FEED VISUAL UPGRADE
========================= */

.feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feed-card.media img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
}

.feed-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  margin-top: 10px;
}

.feed-card .caption {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.4;
}

.feed-card.media {
  background: var(--bg-card);
  padding: var(--space-sm);
}

.feed-card a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 45, 122, 0.4);
}

.feed-card a:hover {
  text-decoration-color: var(--accent);
}

.feed-card.text-only {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
}

.feed-card.feature {
  background: var(--accent-light);
  border: 1px solid rgba(255, 45, 122, 0.15);
}

.feed-card.feature h2 {
  font-size: 20px;
  margin-bottom: var(--space-sm);
}

.feed-card.feature:hover {
  transform: translateY(-3px) scale(1.01);
}

.feed-card {
  padding: 14px;
}

.feed-card .caption,
.feed-card a {
  display: block;
  margin-left: 2px;
}

/* =========================
   PROJECT GRID (TIKTOK STYLE)
========================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  align-items: start;
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: var(--space-sm);

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.2),
    transparent
  );

  color: white;
  font-size: 14px;
}

/* =========================
   ANIMATION (SCOPED)
========================= */

.feed-card,
.project-card,
.work-card {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   PHOTO GALLERY (TRUE MASONRY)
========================= */

.photo-gallery {
  margin-top: var(--space-lg);
}

.gallery-header h3 {
  font-size: 14px;
  text-transform: lowercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

/* MASONRY */
.gallery-grid {
  column-count: 4;
  column-gap: 12px;
}

/* responsive */
@media (max-width: 900px) {
  .gallery-grid {
    column-count: 3;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    column-count: 2;
  }
}

/* items */
.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* images KEEP THEIR NATURAL RATIO */
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* hover */
.gallery-item:hover img {
  transform: scale(1.03);
  transition: transform 0.3s ease;
}


/* =========================
   FEED FILTERS
========================= */

.feed-filters {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  overflow-x: auto;
  padding-bottom: 4px;
}

.feed-filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;

  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);

  white-space: nowrap;

  transition: 
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border 0.2s ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  color: white;
  border: none;
  box-shadow: 0 6px 16px rgba(255, 45, 122, 0.2);
}

.feed-card {
  transition: opacity 0.2s ease;
}

/* =========================
   SCROLL ANIMATIONS
========================= */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: 
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-group .reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal-group .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.2s; }

/* =========================
   TEXT DETAILS
========================= */

.impact-line {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.project-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.work-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* =========================
   SOFT GLOW CURSOR
========================= */

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;

  width: 50px;
  height: 50px;

  background: radial-gradient(
    circle,
    rgba(255, 45, 122, 0.35) 0%,
    rgba(255, 45, 122, 0.18) 40%,
    rgba(255, 45, 122, 0) 70%
  );

  border-radius: 50%;
  pointer-events: none;

  transform: translate(-50%, -50%);
  z-index: 9999;

  filter: blur(1px);

  transition: 
    transform 0.12s ease,
    opacity 0.2s ease,
    filter 0.2s ease;
}

/* hover state */
.cursor-hover .cursor-glow {
  transform: translate(-50%, -50%) scale(1.5);
  opacity: 1;
  filter: blur(2px);
}

/* =========================
   PRESS — CLEAN EDITORIAL
========================= */

.press-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* section titles */
.press-group h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}

/* grid */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 32px;
}

@media (max-width: 900px) {
  .press-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .press-grid {
    grid-template-columns: 1fr;
  }
}

/* card = no box feeling */
.press-card {
  display: flex;
  flex-direction: column;
  gap: 6px;

  padding: 6px 0;

  text-decoration: none;
  color: inherit;

  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* title */
.press-card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 500;

  transition: color 0.18s ease;
}

/* source */
.press-card span {
  font-size: 12px;
  color: var(--text-secondary);
}

/* hover — THIS is where pink lives */
.press-card:hover p {
  color: var(--accent);
}

/* subtle movement */
.press-card:hover {
  transform: translateY(-2px);
}

/* group hover de-emphasis */
.press-grid:hover .press-card {
  opacity: 0.5;
}

.press-grid:hover .press-card:hover {
  opacity: 1;
}

.press-feature {
  margin-bottom: 20px;
}

.press-feature p {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 500;
}

.press-feature span {
  margin-top: 6px;
}
