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

:root {
  --cream: #f5f0e8;
  --cream-light: #faf8f4;
  --ink: #1a1510;
  --rust: #b85c38;
  --gold: #c9a84c;
  --muted: #8a7f72;
  --card-bg: rgba(255, 253, 248, 0.95);
  --shadow: rgba(26, 21, 16, 0.08);
  --bg-dark: #0c0c0e;
  --bg-darker: #08080a;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  color: var(--ink);
  font-family: 'DM Mono', monospace;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-x: hidden;
  position: relative;
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================ */
/* PROFESSIONAL BACKGROUND - DARK TECH/MINIMALIST */
/* ============================================ */

/* Subtle grid pattern */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Deep gradient overlay */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: 
    radial-gradient(ellipse at 20% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

/* Noise texture for depth */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Animated accent lines */
.accent-line {
  position: fixed;
  z-index: -2;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
  height: 1px;
  width: 100%;
  animation: scan 8s ease-in-out infinite;
  opacity: 0.5;
}

.accent-1 {
  top: 20%;
  animation-delay: 0s;
}

.accent-2 {
  top: 50%;
  animation-delay: -3s;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.2), transparent);
}

.accent-3 {
  top: 80%;
  animation-delay: -6s;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.2), transparent);
}

@keyframes scan {
  0%, 100% { 
    transform: translateX(-100%); 
    opacity: 0;
  }
  50% { 
    transform: translateX(100%); 
    opacity: 0.5;
  }
}

/* Subtle glow points */
.glow-point {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -2;
  opacity: 0.4;
  animation: pulse 6s ease-in-out infinite;
}

.gp-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.gp-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
  bottom: 20%;
  right: 15%;
  animation-delay: -3s;
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 0.4;
  }
  50% { 
    transform: scale(1.1); 
    opacity: 0.6;
  }
}

/* Glitter container */
.glitter-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glitter {
  position: absolute;
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, #fff 0%, var(--accent-cyan) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: glitterFade 1s ease-out forwards;
  box-shadow: 
    0 0 8px 2px rgba(6, 182, 212, 0.6),
    0 0 16px 4px rgba(6, 182, 212, 0.3);
  will-change: transform, opacity;
}

.glitter.large {
  width: 5px;
  height: 5px;
}

@keyframes glitterFade {
  0% { opacity: 0; transform: scale(0) rotate(0deg); }
  10% { opacity: 1; transform: scale(1.5) rotate(90deg); }
  100% { opacity: 0; transform: scale(0.3) rotate(360deg) translateY(-30px); }
}

/* Sparkle burst */
.sparkle-burst {
  position: absolute;
  pointer-events: none;
}

.sparkle-burst .sparkle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: burst 0.6s ease-out forwards;
  will-change: transform, opacity;
}

@keyframes burst {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0); }
}

/* Main card */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  max-width: 603px;
  width: 100%;
  padding: 2.5rem 2rem 2.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 20px 40px -10px rgba(0, 0, 0, 0.3),
    0 40px 80px -20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  margin: 0 auto;
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 30px 60px -15px rgba(0, 0, 0, 0.4),
    0 50px 100px -25px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

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

/* Corner accents */
.corner-accent {
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.corner-accent.top-left {
  top: 0;
  left: 0;
}

.corner-accent.top-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--rust);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 0 transparent;
}

.corner-accent.top-left::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--rust);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 0 transparent;
}

.corner-accent.bottom-right {
  bottom: 0;
  right: 0;
}

.corner-accent.bottom-right::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 0 transparent;
}

.corner-accent.bottom-right::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 0 transparent;
}

.card:hover .corner-accent.top-left::before {
  width: 80px;
  box-shadow: 0 0 20px rgba(184, 92, 56, 0.5);
}

.card:hover .corner-accent.top-left::after {
  height: 80px;
  box-shadow: 0 0 20px rgba(184, 92, 56, 0.5);
}

.card:hover .corner-accent.bottom-right::before {
  width: 80px;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.5);
}

.card:hover .corner-accent.bottom-right::after {
  height: 80px;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.5);
}

/* Contact bar with timestamp */
.contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(26, 21, 16, 0.08);
  animation: fadeUp 1s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
  flex-wrap: wrap;
}

.contact-left {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.contact-item::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--rust), var(--gold));
  transition: width 0.3s ease;
}

.contact-item:hover {
  color: var(--rust);
  transform: translateY(-2px);
}

.contact-item:hover::before {
  width: 100%;
}

.contact-item svg { 
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  transition: all 0.3s ease;
}

.contact-item:hover svg {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 4px 8px rgba(184, 92, 56, 0.3));
}

.contact-item a {
  color: inherit;
  text-decoration: none;
}

/* Timestamp */
.timestamp {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.card:hover .timestamp {
  color: var(--rust);
}

/* Profile section */
.profile {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeUp 1s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.avatar-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(26, 21, 16, 0.05),
    inset 0 2px 8px rgba(255, 255, 255, 0.9),
    0 0 40px rgba(201, 168, 76, 0.15);
  background: linear-gradient(145deg, #e8ddd0, #c9bfaf);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.avatar-wrap:hover .avatar-placeholder {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.15),
    0 0 0 2px rgba(201, 168, 76, 0.3),
    inset 0 2px 8px rgba(255, 255, 255, 0.95),
    0 0 60px rgba(201, 168, 76, 0.3);
}

.avatar-placeholder svg {
  width: 50px;
  height: 50px;
  opacity: 0.7;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: all 0.4s ease;
}

.avatar-wrap:hover .avatar-placeholder svg {
  transform: scale(1.15);
  opacity: 0.9;
}

.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed var(--gold);
  animation: spin 15s linear infinite;
  opacity: 0.5;
  transition: all 0.4s ease;
}

.avatar-wrap:hover .avatar-ring {
  inset: -12px;
  opacity: 0.8;
  animation-duration: 8s;
}

.avatar-ring::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid var(--rust);
  animation: spin-reverse 12s linear infinite;
}

.avatar-ring::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.4);
  animation: spin 18s linear infinite reverse;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }

.profile-text { 
  flex: 1;
  padding-top: 0.3rem;
  min-width: 0;
}

.name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.3rem;
  background: linear-gradient(135deg, var(--ink) 0%, #3d3228 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
  word-wrap: break-word;
}

.card:hover .name {
  transform: translateX(5px);
  letter-spacing: 0.01em;
}

.name em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--rust) 0%, #c46a42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}

.card:hover .name em {
  transform: scale(1.05);
}

.tagline {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.card:hover .tagline {
  color: var(--rust);
  letter-spacing: 0.18em;
}

.bio {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 500;
  position: relative;
  padding-left: 0.8rem;
  border-left: 2px solid;
  border-image: linear-gradient(to bottom, var(--rust), var(--gold)) 1;
  transition: all 0.3s ease;
}

.card:hover .bio {
  color: var(--ink);
  padding-left: 1rem;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
  animation: fadeUp 1s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.divider span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 750;
  position: relative;
  transition: all 0.3s ease;
}

.card:hover .divider span {
  color: var(--rust);
  letter-spacing: 0.25em;
}

.divider span::before,
.divider span::after {
  content: '✦';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 0.5rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.divider span::before { left: -12px; }
.divider span::after { right: -12px; }

.card:hover .divider span::before,
.card:hover .divider span::after {
  opacity: 0.8;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26, 21, 16, 0.1), transparent);
  transition: all 0.3s ease;
}

.card:hover .divider::before,
.card:hover .divider::after {
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.4), transparent);
  height: 2px;
}

/* Social links - 2 columns on desktop */
.links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  animation: fadeUp 1s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 0.8rem;
  border: 1px solid rgba(26, 21, 16, 0.06);
  background: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  color: var(--ink);
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  min-height: 48px;
  -webkit-touch-callout: none;
}

.link-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--rust) 0%, var(--gold) 100%);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.link-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
  z-index: 1;
}

.link-btn:hover::before, .link-btn:active::before { 
  transform: translateY(0); 
}

.link-btn:hover::after, .link-btn:active::after {
  transform: translateX(100%);
}

.link-btn:hover, .link-btn:active {
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 12px 24px -8px rgba(184, 92, 56, 0.25),
    0 0 30px rgba(201, 168, 76, 0.3);
}

.link-btn svg, .link-btn span {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.link-btn:hover svg, .link-btn:active svg {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.6));
}

.link-btn:hover span, .link-btn:active span {
  letter-spacing: 0.1em;
}

.link-btn .icon-wrap {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Resume button - special styling */
.link-btn.resume {
  background: linear-gradient(135deg, rgba(184, 92, 56, 0.08) 0%, rgba(201, 168, 76, 0.08) 100%);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--rust);
  position: relative;
}

.link-btn.resume::before {
  background: linear-gradient(135deg, var(--rust) 0%, var(--gold) 100%);
}

.link-btn.resume .icon-wrap svg {
  stroke: var(--rust);
  filter: drop-shadow(0 0 6px rgba(201, 168, 76, 0.4));
}

.link-btn.resume span {
  background: linear-gradient(90deg, var(--rust), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;  
  font-weight: 500;
  letter-spacing: 0.12em;
}

.link-btn.resume:hover span,
.link-btn.resume:active span {
  -webkit-text-fill-color: #fff;
  letter-spacing: 0.15em;
}

.link-btn.resume::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2px;
  padding: 1px;
  background: linear-gradient(135deg, var(--rust), var(--gold));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}

/* Footer */
.footer-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 21, 16, 0.06);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  animation: fadeUp 1s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  font-weight: 300;
  transition: all 0.3s ease;
}

.card:hover .footer-note {
  color: var(--rust);
  letter-spacing: 0.18em;
}

.footer-note::before {
  content: '✦';
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gold);
  font-size: 0.8rem;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.card:hover .footer-note::before {
  transform: scale(1.3) rotate(180deg);
  opacity: 1;
}

/* ==================== */
/* MOBILE OPTIMIZATIONS */
/* ==================== */

@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  body {
    padding: 0.75rem;
    align-items: flex-start;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .card {
    padding: 1.75rem 1.25rem 1.75rem;
    border-radius: 8px;
    max-width: 100%;
  }

  /* Simplify background on mobile */
  .bg-grid {
    background-size: 40px 40px;
  }

  .accent-line {
    display: none;
  }

  .glow-point {
    filter: blur(60px);
    opacity: 0.3;
  }

  .gp-1 { width: 250px; height: 250px; }
  .gp-2 { width: 200px; height: 200px; }

  /* Corner accents smaller on mobile */
  .corner-accent {
    width: 30px;
    height: 30px;
  }

  .card:hover .corner-accent.top-left::before {
    width: 50px;
  }

  .card:hover .corner-accent.top-left::after {
    height: 50px;
  }

  .card:hover .corner-accent.bottom-right::before {
    width: 50px;
  }

  .card:hover .corner-accent.bottom-right::after {
    height: 50px;
  }

  /* Contact bar - all on one row */
  .contact-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    flex-wrap: nowrap;
  }

  .contact-left {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
    align-items: center;
  }

  .contact-item {
    font-size: 0.62rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .contact-item svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
  }

  /* Timestamp on same row, right-aligned */
  .timestamp {
    align-self: center;
    font-size: 0.65rem;
    order: 0;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  /* Profile - stack on mobile */
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .avatar-placeholder {
    width: 100px;
    height: 100px;
  }

  .avatar-placeholder svg {
    width: 55px;
    height: 55px;
  }

  .avatar-ring {
    inset: -6px;
  }

  .profile-text {
    padding-top: 0;
  }

  .name {
    font-size: 1.75rem;
    margin-bottom: 0.4rem;
  }

  .tagline {
    font-size: 0.65rem;
    margin-bottom: 0.6rem;
  }

  .bio {
    font-size: 0.95rem;
    padding-left: 0;
    border-left: none;
    border-top: 2px solid;
    border-image: linear-gradient(to right, var(--rust), var(--gold)) 1;
    padding-top: 0.75rem;
    max-width: 100%;
  }

  /* Divider */
  .divider {
    margin-bottom: 1.5rem;
  }

  .divider span {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
  }

  /* Links - single column on mobile */
  .links {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .link-btn {
    padding: 1rem;
    font-size: 0.8rem;
    justify-content: center;
    gap: 0.8rem;
  }

  .link-btn .icon-wrap {
    width: 22px;
    height: 22px;
  }

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

  /* Footer */
  .footer-note {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    font-size: 0.6rem;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  html {
    font-size: 14px;
  }

  .card {
    padding: 1.5rem 1rem 1.5rem;
  }

  .name {
    font-size: 1.5rem;
  }

  .contact-left {
    flex-direction: row;
    gap: 0.4rem;
  }

  .contact-item {
    font-size: 0.58rem;
  }

  .timestamp {
    align-self: center;
    font-size: 0.6rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .card:hover {
    transform: none;
  }

  .card:active {
    transform: scale(0.98);
  }

  .link-btn:hover {
    transform: none;
  }

  .link-btn:active {
    transform: scale(0.95);
  }

  /* Reduce animations on mobile for performance */
  .glow-point {
    animation: none;
    opacity: 0.3;
  }

  .bg-noise {
    display: none;
  }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .accent-line, .glow-point {
    animation: none !important;
  }
}