/* ========================================
   PRITHVI PORTFOLIO — Global Styles
   ======================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =============================================
   THEME 1: GOLDEN HOUR (default) — warm, analog
   ============================================= */
:root,
[data-theme="golden-hour"] {
  --bg: #fef7ec;
  --text: #3d2c0e;
  --text-muted: #a08550;
  --accent: #fde68a;
  --accent-border: #f59e0b;
  --card-bg: #fffbf0;
  --border: #f0dfbb;
  --nav-bg: rgba(254, 247, 236, 0.9);
  --nav-time-bg: #f5e6c8;
  --highlight: #fde68a;
  --highlight-border: #d97706;
  --link-color: #b45309;
  --link-hover: #78350f;
  --cta-bg: #3d2c0e;
  --cta-text: #fef7ec;
  --polaroid-bg: #fffdf5;
  --sticky-yellow: #fef08a;
  --sticky-green: #d9f99d;
  --badge-bg: #ea580c;
  --cursor-color: #ea580c;
  --selection-color: #f59e0b;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-heading: var(--font-sans);
  --heading-weight: 600;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --card-shadow: 0 2px 20px rgba(180, 120, 30, 0.07);
  --card-hover-shadow: 0 12px 48px rgba(180, 120, 30, 0.12);
  --max-width: 1200px;
  --section-padding: 120px 0;
  --anim-duration: 0.6s;
  --theme-dot: #f59e0b;
}

/* =============================================
   THEME 2: VOID — pitch black, high contrast
   ============================================= */
[data-theme="void"] {
  --bg: #000000;
  --text: #f0f0f0;
  --text-muted: #777777;
  --accent: #1a1a1a;
  --accent-border: #333333;
  --card-bg: #0a0a0a;
  --border: #1f1f1f;
  --nav-bg: rgba(0, 0, 0, 0.92);
  --nav-time-bg: #111111;
  --highlight: #1a1a1a;
  --highlight-border: #444444;
  --link-color: #ffffff;
  --link-hover: #999999;
  --cta-bg: #f0f0f0;
  --cta-text: #000000;
  --polaroid-bg: #0d0d0d;
  --sticky-yellow: #1a1800;
  --sticky-green: #001a0d;
  --badge-bg: #ffffff;
  --cursor-color: #ffffff;
  --selection-color: #333333;
  --font-heading: var(--font-serif);
  --heading-weight: 400;
  --border-radius: 0px;
  --border-radius-sm: 0px;
  --card-shadow: none;
  --card-hover-shadow: 0 0 0 1px #333;
  --anim-duration: 0.8s;
  --theme-dot: #ffffff;
}

/* =============================================
   THEME 3: ELECTRIC — neon, loud, unapologetic
   ============================================= */
[data-theme="electric"] {
  --bg: #0d0019;
  --text: #f0e6ff;
  --text-muted: #b088e0;
  --accent: rgba(168, 85, 247, 0.15);
  --accent-border: #a855f7;
  --card-bg: #150025;
  --border: #2d1054;
  --nav-bg: rgba(13, 0, 25, 0.92);
  --nav-time-bg: #1a0033;
  --highlight: rgba(236, 72, 153, 0.2);
  --highlight-border: #ec4899;
  --link-color: #c084fc;
  --link-hover: #e879f9;
  --cta-bg: #a855f7;
  --cta-text: #ffffff;
  --polaroid-bg: #150025;
  --sticky-yellow: #2d1a00;
  --sticky-green: #002d1a;
  --badge-bg: #ec4899;
  --cursor-color: #22d3ee;
  --selection-color: #a855f7;
  --font-heading: var(--font-sans);
  --heading-weight: 800;
  --border-radius: 20px;
  --border-radius-sm: 12px;
  --card-shadow: 0 0 30px rgba(168, 85, 247, 0.1);
  --card-hover-shadow: 0 0 50px rgba(168, 85, 247, 0.25);
  --anim-duration: 0.35s;
  --theme-dot: #a855f7;
}

/* =============================================
   THEME 4: AFTER HOURS — pop colors, loud & fun
   ============================================= */
[data-theme="afterhours"] {
  --bg: #0f0e17;
  --text: #fffffe;
  --text-muted: #a7a9be;
  --accent: rgba(255, 107, 157, 0.12);
  --accent-border: #ff6b9d;
  --card-bg: #1a1928;
  --border: #2e2d3d;
  --nav-bg: rgba(15, 14, 23, 0.95);
  --nav-time-bg: #1a1928;
  --highlight: rgba(114, 245, 132, 0.15);
  --highlight-border: #72f584;
  --link-color: #4cc9f0;
  --link-hover: #ff6b9d;
  --cta-bg: #ff6b9d;
  --cta-text: #ffffff;
  --polaroid-bg: #1a1928;
  --sticky-yellow: rgba(255, 230, 109, 0.12);
  --sticky-green: rgba(114, 245, 132, 0.12);
  --badge-bg: #ff6b9d;
  --cursor-color: #4cc9f0;
  --selection-color: #ff6b9d;
  --font-heading: var(--font-sans);
  --heading-weight: 800;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --card-shadow: 0 0 30px rgba(255, 107, 157, 0.08);
  --card-hover-shadow: 0 0 50px rgba(255, 107, 157, 0.2);
  --anim-duration: 0.35s;
  --theme-dot: #ff6b9d;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.5s ease, color 0.5s ease;
}

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

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

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading, var(--font-sans));
  font-weight: var(--heading-weight, 600);
  line-height: 1.2;
  transition: color 0.5s ease;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
  transition: background 0.5s ease, border-color 0.5s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

/* Light themes show the dark logo, hide the light one */
.nav-logo-light { display: block; }
.nav-logo-dark { display: none; }

/* Dark themes show the light logo */
[data-theme="void"] .nav-logo-light,
[data-theme="electric"] .nav-logo-light,
[data-theme="afterhours"] .nav-logo-light {
  display: none;
}

[data-theme="void"] .nav-logo-dark,
[data-theme="electric"] .nav-logo-dark,
[data-theme="afterhours"] .nav-logo-dark {
  display: block;
}

.nav-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--nav-time-bg, #f0f0ee);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-variant-numeric: tabular-nums;
  transition: background 0.5s ease, color 0.5s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
  font-weight: 400;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  background: var(--cta-bg, var(--text));
  color: var(--cta-text, #fff) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 24px;
  transition: opacity 0.2s, background 0.5s ease, color 0.5s ease;
}

.nav-cta:hover {
  opacity: 0.85;
}

/* Split button container */
.nav-cta-split {
  display: inline-flex;
  align-items: center;
  background: var(--cta-bg, var(--text));
  border-radius: 24px;
  overflow: hidden;
}

.nav-cta-split .nav-cta {
  border-radius: 0;
  padding: 0.5rem 1.2rem 0.5rem 1.2rem;
  white-space: nowrap;
}

.nav-cta-split .nav-cta:first-child {
  padding-right: 0.75rem;
}

.nav-cta-split .nav-cta:first-child {
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
}

.nav-cta-split .nav-cta-secondary {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
  padding: 0.5rem 0.75rem 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-cta-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.nav-cta-split .nav-cta-secondary svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-text {
  max-width: 700px;
}

.hero-greeting {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.hero-name {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0.5rem;
  cursor: default;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-description {
    white-space: normal;
  }
}

.desc-fade {
  transition: opacity 0.5s ease, color 0.5s ease;
}

.desc-highlight {
  transition: font-weight 0.3s ease;
}

.hero-description:hover .desc-fade {
  opacity: 0.15;
}

.hero-description:hover .desc-highlight {
  font-weight: 600;
}

.hero-description:hover ~ .hero-tagline {
  opacity: 0.15;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text);
  opacity: 0.55;
  font-style: italic;
  transition: opacity 0.5s ease;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.polaroid {
  position: relative;
  background: var(--polaroid-bg, #fff);
  padding: 12px 12px 48px 12px;
  box-shadow: var(--card-shadow);
  transform: rotate(2deg);
  max-width: 320px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.polaroid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(60%);
}

.polaroid-label {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: var(--text-muted);
}

/* Decorative sticky notes */
.sticky-note {
  position: absolute;
  padding: 0.8rem 1rem;
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  transform: rotate(-4deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 2;
}

.sticky-note.yellow {
  background: var(--sticky-yellow);
  color: #5d4037;
  top: -20px;
  left: -10px;
  transform: rotate(-6deg);
  transition: background 0.5s ease;
}

.sticky-note.green {
  background: var(--sticky-green);
  color: #2e7d32;
  bottom: 60px;
  right: -30px;
  transform: rotate(3deg);
  transition: background 0.5s ease;
}

/* Image badge */
.image-badge {
  position: absolute;
  top: -12px;
  left: 10px;
  background: var(--badge-bg, #ef5350);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 3;
  transition: background 0.5s ease;
}

/* Decorative cursor arrow */
.cursor-arrow {
  position: absolute;
  bottom: 30px;
  right: -50px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
}

.cursor-arrow svg {
  width: 18px;
  height: 18px;
  fill: var(--cursor-color, #4fc3f7);
  transition: fill 0.5s ease;
}

.cursor-arrow .cursor-label {
  background: var(--cursor-color, #4fc3f7);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.5s ease;
}

/* Selection box effect */
.selection-box {
  position: absolute;
  inset: -8px;
  border: 2px dashed var(--selection-color, #4fc3f7);
  border-radius: var(--border-radius-sm);
  pointer-events: none;
  opacity: 0.7;
  transition: border-color 0.5s ease;
}

/* ---------- Scroll Down Indicator ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.scroll-indicator:hover {
  color: var(--text);
}

.scroll-text {
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  font-weight: 500;
}

.scroll-arrow {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(8px);
    opacity: 0.4;
  }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  padding: var(--section-padding);
  border-top: 1px solid var(--border);
}

.about .container {
  max-width: 800px;
}

.about-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.about-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.about-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.about-tab svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

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

.about-tab.active {
  background: var(--card-bg);
  border-color: var(--border);
  color: var(--text);
}

.about-content {
  margin-top: 2rem;
  position: relative;
  min-height: 300px;
}

.about-tab-content {
  display: block;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  width: 100%;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.about-tab-content.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.about-content {
  margin-top: 2rem;
  position: relative;
  min-height: 300px;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.text-highlight {
  background: #fef08a;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--text);
  font-weight: 500;
}

.struck-out {
  text-decoration: line-through;
  color: var(--text-muted);
  opacity: 0.4;
  transition: opacity 0.3s ease, color 0.3s ease;
}

/* ========================================
   TIMELINE SECTION
   ======================================== */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transition: background 0.5s ease;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: timelineFadeIn 0.6s ease forwards;
}

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

.timeline-item[data-delay="0"] {
  animation-delay: 0s;
}

.timeline-item[data-delay="200"] {
  animation-delay: 0.2s;
}

.timeline-item[data-delay="400"] {
  animation-delay: 0.4s;
}

.timeline-item[data-delay="600"] {
  animation-delay: 0.6s;
}

.timeline-item[data-delay="800"] {
  animation-delay: 0.8s;
}

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

.timeline-marker {
  position: absolute;
  left: -1.75rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--bg);
  z-index: 2;
  transition: background 0.5s ease, border-color 0.5s ease;
}

.timeline-item.current .timeline-marker {
  background: var(--text);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.05);
  }
}

.timeline-content {
  padding-left: 0.5rem;
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.timeline-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.timeline-company {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

.timeline-year {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.timeline-badge {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  white-space: nowrap;
  transition: background 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}

.timeline-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
}

.timeline-description {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.timeline-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.skill-tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  transition: background 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}

/* ========================================
   WORK SECTION
   ======================================== */
.work {
  padding: var(--section-padding);
  border-top: 1px solid var(--border);
}

.work-header {
  margin-bottom: 3rem;
}

.work-header h2 {
  font-size: 2.2rem;
  letter-spacing: -0.02em;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.case-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.3s, transform 0.2s, background 0.5s ease, border-color 0.5s ease;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.case-card:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-2px);
}

.case-card-image {
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background: var(--accent);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.5s ease;
}

.case-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card-image .placeholder-img {
  font-size: 3rem;
  color: var(--border);
}

.case-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.case-card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.case-card-info h3 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.case-card-info p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.case-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 0.5rem;
  transition: gap 0.2s;
}

.case-card:hover .case-card-link {
  gap: 0.7rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* ========================================
   BLOG LISTING PAGE
   ======================================== */
.page-header {
  padding-top: 140px;
  padding-bottom: 2rem;
}

.page-header h1 {
  font-size: 2.8rem;
  letter-spacing: -0.03em;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.blog-list {
  padding-bottom: 80px;
}

.blog-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.2s;
}

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

.blog-item:hover {
  padding-left: 0.5rem;
}

.blog-item-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

.blog-item:hover .blog-item-title {
  color: var(--link-color);
}

.blog-item-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: 2rem;
}

/* ========================================
   BLOG POST / CASE STUDY DETAIL PAGE
   ======================================== */
.detail-page {
  padding-top: 120px;
  padding-bottom: 80px;
}

.detail-header {
  max-width: 720px;
  margin: 0 auto 3rem;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  transition: color 0.2s, gap 0.2s;
}

.detail-back:hover {
  color: var(--text);
  gap: 0.6rem;
}

.detail-header h1 {
  font-size: 2.6rem;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.detail-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.detail-meta-item {
  font-size: 0.85rem;
}

.detail-meta-item .label {
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.15rem;
}

.detail-meta-item .value {
  font-weight: 500;
}

.detail-hero-image {
  max-width: 900px;
  margin: 0 auto 3rem;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f4f2;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-hero-image--compact {
  max-width: 720px;
}

.detail-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-image .placeholder-img {
  font-size: 4rem;
  color: var(--border);
}

.detail-body {
  max-width: 720px;
  margin: 0 auto;
}

.detail-body h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.detail-body h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.detail-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.detail-body ul,
.detail-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-muted);
}

.detail-body li {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  list-style: disc;
}

.detail-body img {
  width: 100%;
  border-radius: 12px;
  margin: 2rem 0;
  border: 1px solid var(--border);
}

.detail-body code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  background: var(--accent);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.detail-body pre {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.detail-body pre code {
  background: none;
  padding: 0;
}

.detail-body blockquote {
  border-left: 3px solid var(--text);
  padding: 0.5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text);
}

/* Screenshot gallery */
.screenshot-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.screenshot-gallery img {
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .hero .container {
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-name {
    font-size: 3.5rem;
  }

  .hero-greeting {
    font-size: 2.2rem;
  }

  .hero-image {
    justify-content: center;
  }

  .polaroid {
    max-width: 260px;
  }

  .case-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cursor-arrow {
    display: none;
  }

  .sticky-note.green {
    right: -10px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta-split {
    align-self: center;
  }

  .nav-toggle {
    display: block;
  }

  .hero-name {
    font-size: 2.8rem;
  }

  .about-header {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .about-tabs {
    width: 100%;
    justify-content: flex-start;
  }

  .about-tab {
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .detail-header h1 {
    font-size: 2rem;
  }

  .screenshot-gallery {
    grid-template-columns: 1fr;
  }

  .blog-item {
    flex-direction: column;
    gap: 0.3rem;
  }

  .blog-item-date {
    margin-left: 0;
  }
}

/* ---------- Utility ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--anim-duration, 0.6s) ease, transform var(--anim-duration, 0.6s) ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   THEME SWITCHER — Side Rail
   ======================================== */
.theme-rail {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.theme-rail-btn {
  display: flex;
  align-items: center;
  border: none;
  cursor: pointer;
  padding: 0.7rem 0.9rem;
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.theme-rail-btn:first-child {
  border-radius: 0 12px 0 0;
}

.theme-rail-btn:last-child {
  border-radius: 0 0 12px 0;
}

.theme-rail-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-rail-btn[data-theme="golden-hour"] .theme-rail-dot {
  background: #f59e0b;
}

.theme-rail-btn[data-theme="void"] .theme-rail-dot {
  background: #ffffff;
  border: 1.5px solid #555;
}

.theme-rail-btn[data-theme="electric"] .theme-rail-dot {
  background: #a855f7;
}

.theme-rail-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  margin-left: 0;
  transition: max-width 0.35s ease, opacity 0.25s ease, margin-left 0.35s ease;
  color: var(--text-muted);
}

.theme-rail-btn:hover .theme-rail-label {
  max-width: 140px;
  opacity: 1;
  margin-left: 0.65rem;
}

.theme-rail-btn:hover .theme-rail-dot {
  transform: scale(1.35);
}

/* Active state — bigger dot with glow */
.theme-rail-btn.active .theme-rail-dot {
  transform: scale(1.5);
}

.theme-rail-btn.active[data-theme="golden-hour"] .theme-rail-dot {
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.theme-rail-btn.active[data-theme="void"] .theme-rail-dot {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.theme-rail-btn.active[data-theme="electric"] .theme-rail-dot {
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}

/* ---- Theme-specific overrides ---- */

/* GOLDEN HOUR: warm sepia tint */
[data-theme="golden-hour"] .polaroid img {
  filter: sepia(25%) saturate(1.2) brightness(1.05);
}

/* VOID: stark B&W, sharp edges, no decoration */
[data-theme="void"] .polaroid {
  transform: rotate(0deg);
  border-radius: 0;
}

[data-theme="void"] .polaroid img {
  filter: grayscale(100%) contrast(1.3);
}

[data-theme="void"] .sticky-note,
[data-theme="void"] .image-badge,
[data-theme="void"] .selection-box,
[data-theme="void"] .cursor-arrow {
  display: none;
}

[data-theme="void"] .polaroid-label {
  color: #555;
}

[data-theme="void"] .skill-tag {
  border-color: #333;
}

[data-theme="void"] h1,
[data-theme="void"] h2,
[data-theme="void"] h3 {
  letter-spacing: -0.04em;
}

[data-theme="void"] .hero-greeting {
  font-style: normal;
  font-family: var(--font-serif);
}

[data-theme="void"] .case-card {
  border-color: #1f1f1f;
}

[data-theme="void"] .case-card:hover {
  border-color: #444;
}

[data-theme="void"] .section-label {
  letter-spacing: 0.25em;
}

/* ELECTRIC: neon glow, gradient text, wild hovers */
[data-theme="electric"] .hero-name {
  background: linear-gradient(135deg, #a855f7, #ec4899, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="electric"] .polaroid img {
  filter: saturate(1.4) contrast(1.1) hue-rotate(10deg);
}

[data-theme="electric"] .polaroid {
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.2), 0 0 80px rgba(236, 72, 153, 0.1);
}

[data-theme="electric"] .case-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 0 50px rgba(168, 85, 247, 0.3);
}

[data-theme="electric"] .nav-cta,
[data-theme="electric"] .nav-cta-split {
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

[data-theme="electric"] .skill-tag {
  border-color: #2d1054;
}

[data-theme="electric"] .sticky-note.yellow {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

[data-theme="electric"] .sticky-note.green {
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
}

[data-theme="electric"] .highlight-chip {
  background: rgba(236, 72, 153, 0.15) !important;
  border-color: #ec4899 !important;
  color: #f9a8d4;
}

[data-theme="electric"] .selection-box {
  border-color: #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

[data-theme="electric"] .scroll-indicator {
  color: #b088e0;
}

/* ---- AFTER HOURS: pop overrides ---- */
[data-theme="afterhours"] .hero-name {
  background: linear-gradient(135deg, #FF6B9D, #4CC9F0, #72F584, #FFE66D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="afterhours"] .case-card:hover {
  box-shadow: 0 0 50px rgba(255, 107, 157, 0.25);
  transform: translateY(-4px);
}

[data-theme="afterhours"] .nav-cta,
[data-theme="afterhours"] .nav-cta-split {
  box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

[data-theme="afterhours"] .polaroid img {
  filter: saturate(1.6) contrast(1.1) hue-rotate(-10deg);
}

[data-theme="afterhours"] .polaroid {
  box-shadow: 0 0 40px rgba(255, 107, 157, 0.2), 0 0 80px rgba(76, 201, 240, 0.1);
}

[data-theme="afterhours"] .skill-tag {
  border-color: #2e2d3d;
}

[data-theme="afterhours"] .scroll-indicator {
  color: #a7a9be;
}

[data-theme="afterhours"] .struck-out {
  color: #5a5b6e;
}

/* After Hours button special styling */
.afterhours-tab {
  position: relative;
}

[data-theme="afterhours"] .afterhours-tab.active {
  background: rgba(255, 107, 157, 0.12) !important;
  border-color: rgba(255, 107, 157, 0.3) !important;
  color: #FF6B9D !important;
}

/* ---- After Hours Transition Overlay ---- */
.ah-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  overflow: hidden;
  display: none;
}

.ah-overlay.active {
  display: block;
}

.ah-block {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 50%;
  transform: translateX(130%) skewY(-12deg);
  will-change: transform;
}

.ah-block:nth-child(1) {
  top: -10%;
  background: #FF6B9D;
}

.ah-block:nth-child(2) {
  top: 25%;
  background: #4CC9F0;
}

.ah-block:nth-child(3) {
  top: 60%;
  background: #FFE66D;
}

.ah-overlay.animating .ah-block {
  animation: ahSweep 1s ease-in-out forwards;
}

.ah-overlay.animating .ah-block:nth-child(1) {
  animation-delay: 0s;
}

.ah-overlay.animating .ah-block:nth-child(2) {
  animation-delay: 0.08s;
}

.ah-overlay.animating .ah-block:nth-child(3) {
  animation-delay: 0.16s;
}

@keyframes ahSweep {
  0% {
    transform: translateX(130%) skewY(-12deg);
  }
  35% {
    transform: translateX(0%) skewY(-12deg);
  }
  65% {
    transform: translateX(0%) skewY(-12deg);
  }
  100% {
    transform: translateX(-130%) skewY(-12deg);
  }
}

/* ---- After Hours Interests ---- */
.afterhours-intro {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2rem;
}

.afterhours-interests {
  display: flex;
  flex-direction: column;
}

.interest-line {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateX(-20px);
}

.about-tab-content.active .interest-line {
  animation: interestSlideIn 0.5s ease forwards;
  animation-delay: calc(0.6s + var(--i, 0) * 0.1s);
}

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

.interest-label {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pop);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  min-width: 150px;
}

.interest-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@keyframes interestSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .interest-line {
    flex-direction: column;
    gap: 0.3rem;
  }

  .interest-label {
    min-width: auto;
    font-size: 1.3rem;
  }
}

/* Mobile: move rail to bottom horizontal strip */
@media (max-width: 768px) {
  .theme-rail {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 0.5rem 0;
  }

  .theme-rail-btn {
    padding: 0.6rem 1.2rem;
  }

  .theme-rail-btn:first-child {
    border-radius: 0;
  }

  .theme-rail-btn:last-child {
    border-radius: 0;
  }

  .theme-rail-label {
    display: none;
  }

  .theme-rail-dot {
    width: 18px;
    height: 18px;
  }
}
