:root {
  --bg: #050505;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  --accent: #6366f1;
  --accent-2: #a855f7;
  --accent-3: #ec4899;
  --radius: 24px;
  --radius-sm: 16px;
  --status-color: #22c55e;
}

[data-theme="light"] {
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.6);
  --surface-hover: rgba(255, 255, 255, 0.8);
  --border: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.12);
  --text: #1a1a2e;
  --text-soft: rgba(26, 26, 46, 0.75);
  --text-muted: rgba(26, 26, 46, 0.5);
}

[data-theme="light"] .aurora > div {
  opacity: 0.25;
  filter: blur(120px);
}

[data-theme="light"] .star {
  background: var(--accent);
  opacity: 0.2;
}

[data-theme="light"] .particle {
  opacity: 0.3;
  filter: blur(2px);
}

[data-theme="light"] .noise {
  opacity: 0.015;
}

[data-theme="light"] .bento-card {
  box-shadow:
    0 4px 24px -8px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

[data-theme="light"] .bento-card:hover {
  box-shadow:
    0 12px 40px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 0 40px -20px var(--accent);
}

[data-theme="light"] .hero-name {
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 50%, var(--accent-2) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .time-display,
[data-theme="light"] .date-display {
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .skill-tag {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .skill-tag:hover {
  background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .project-item {
  background: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .project-item:hover {
  background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .contact-link {
  background: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .contact-link:hover {
  background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .contact-icon {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .avatar-img {
  border-color: #fff;
  background: #fff;
}

[data-theme="light"] .avatar-status {
  border-color: #fff;
}

[data-theme="light"]::-webkit-scrollbar-track {
  background: var(--bg);
}

[data-theme="light"]::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"]::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

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

a, button, input, textarea, select, [role="button"] {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

.aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora > div {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  mix-blend-mode: screen;
  will-change: transform;
}

.aurora-1 {
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 50%, transparent 100%);
  top: -20%;
  left: -10%;
  animation: aurora1 15s ease-in-out infinite;
}

.aurora-2 {
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  background: linear-gradient(180deg, #ec4899 0%, #f43f5e 50%, transparent 100%);
  top: -10%;
  right: -15%;
  animation: aurora2 18s ease-in-out infinite;
}

.aurora-3 {
  width: 40vw;
  height: 40vw;
  max-width: 600px;
  max-height: 600px;
  background: linear-gradient(180deg, #06b6d4 0%, #3b82f6 50%, transparent 100%);
  bottom: -20%;
  left: 30%;
  animation: aurora3 20s ease-in-out infinite;
}

.aurora-4 {
  width: 35vw;
  height: 35vw;
  max-width: 500px;
  max-height: 500px;
  background: linear-gradient(180deg, #a855f7 0%, #6366f1 50%, transparent 100%);
  bottom: 10%;
  right: -10%;
  animation: aurora4 22s ease-in-out infinite;
}

@keyframes aurora1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(50px, 30px) rotate(5deg) scale(1.1); }
  50% { transform: translate(20px, 60px) rotate(-5deg) scale(0.95); }
  75% { transform: translate(-30px, 20px) rotate(3deg) scale(1.05); }
}

@keyframes aurora2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(-40px, 50px) rotate(-8deg) scale(1.15); }
  66% { transform: translate(30px, 20px) rotate(5deg) scale(0.9); }
}

@keyframes aurora3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(60px, -40px) scale(1.2); opacity: 0.7; }
}

@keyframes aurora4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-50px, -30px) rotate(10deg); }
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  will-change: opacity;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatUp linear infinite;
  opacity: 0.6;
  filter: blur(1px);
  will-change: transform;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.8; }
  90% { opacity: 0.6; }
  100% {
    transform: translateY(-100vh) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.main {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  min-height: 100vh;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-card {
  background: var(--surface);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.4s ease, border-color 0.4s ease;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--border-hover);
  box-shadow:
    0 20px 40px -20px rgba(0, 0, 0, 0.5),
    0 0 60px -30px var(--accent);
}

.bento-card:hover::before {
  opacity: 1;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.bento-hero {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.hero-banner {
  position: relative;
  width: 100%;
  height: 140px;
  min-height: 140px;
  max-height: 140px;
  background: var(--bg);
  overflow: hidden;
  flex-shrink: 0;
  border-radius: var(--radius) var(--radius) 12px 12px;
}

.hero-banner:not(:has(.banner-img)) {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  background-size: 200% 200%;
  animation: bannerGradient 8s ease infinite;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 40%);
}

@keyframes bannerGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius) var(--radius) 12px 12px;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.hero-avatar {
  position: relative;
  width: 110px;
  height: 110px;
  margin: -55px auto 0;
  z-index: 10;
  flex-shrink: 0;
}

.avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  animation: spin 4s linear infinite;
  opacity: 0.9;
}

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

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border: 4px solid var(--bg);
  background: var(--bg);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 28px 0;
}

.hero-text {
  width: 100%;
}

.hero-name {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--accent-2) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
  line-height: 1.2;
  margin-bottom: 6px;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-role {
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
  min-height: 1.5em;
}

.hero-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-bio {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 20px 28px 28px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.bento-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
}

.time-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.time-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.time-zone {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 4px;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 50px;
}

.bento-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(236, 72, 153, 0.1) 100%);
}

.date-day {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.date-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 600;
  background: linear-gradient(135deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.date-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent-2);
  margin-top: 6px;
  padding: 4px 12px;
  background: rgba(168, 85, 247, 0.2);
  border-radius: 50px;
}

.bento-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(244, 63, 94, 0.1) 100%);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
}

.bento-skills {
  grid-column: span 2;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: all 0.3s ease;
  cursor: default;
}

.skill-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--skill-color, var(--accent));
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px var(--skill-color, var(--accent));
}

.skill-tag img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.bento-projects {
  grid-column: span 2;
  grid-row: span 2;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.project-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
  transform: translateX(8px);
}

.project-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 12px;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.project-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.project-info {
  flex: 1;
  min-width: 0;
}

.project-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-status {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-status.completed {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.project-status.in-progress {
  background: rgba(234, 179, 8, 0.2);
  color: #eab308;
}

.project-status.planned {
  background: rgba(99, 102, 241, 0.2);
  color: #6366f1;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.project-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.project-item:hover .project-arrow {
  opacity: 1;
  transform: translateX(0);
}

.bento-contact {
  grid-column: span 2;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 200px;
}

.contact-link:hover {
  background: var(--contact-hover, rgba(99, 102, 241, 0.2));
  border-color: var(--contact-color, var(--accent));
  transform: translateY(-3px);
}

.contact-link:focus,
.contact-link:active {
  outline: none;
  box-shadow: none;
}

.contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 1.2rem;
}

.contact-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.contact-text {
  flex: 1;
}

.contact-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bento-music {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  cursor: pointer;
  transition: all 0.3s ease;
}

.bento-music:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
}

.bento-music:focus,
.bento-music:active,
.music-btn:focus,
.music-btn:active {
  outline: none;
  box-shadow: none;
}

.music-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.music-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #10b981);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

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

.btn-icon {
  font-size: 14px;
  color: white;
  font-weight: bold;
}

.btn-icon.pause {
  display: none;
  font-size: 12px;
  letter-spacing: 2px;
}

.bento-music.playing .btn-icon.play {
  display: none;
}

.bento-music.playing .btn-icon.pause {
  display: block;
}

.music-info {
  flex: 1;
  min-width: 0;
}

.music-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.music-track {
  font-weight: 600;
  color: #22c55e;
  margin-top: 2px;
}

.music-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  width: 100%;
  cursor: pointer;
  padding: 0 2px;
}

.viz-bar {
  flex: 1;
  border-radius: 2px;
  min-width: 2px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  transition: height 0.3s ease, background 0.2s ease;
}

.viz-bar.active {
  height: var(--bar-height, 50%);
  background: linear-gradient(to top, #22c55e, #10b981);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.3);
}

.bento-music.playing .viz-bar.active {
  animation: vizPulse 1.2s ease-in-out infinite;
  animation-delay: var(--viz-delay, 0s);
}

@keyframes vizPulse {
  0%, 100% { transform: scaleY(1); transform-origin: bottom; }
  50% { transform: scaleY(0.7); transform-origin: bottom; }
}

.music-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  border-color: var(--accent);
  box-shadow: 0 10px 40px -10px var(--accent);
}

.theme-toggle:focus,
.theme-toggle:focus-visible,
.theme-toggle:active {
  outline: none;
  box-shadow: none;
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.theme-icon.sun {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cline x1='12' y1='1' x2='12' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='23'/%3E%3Cline x1='4.22' y1='4.22' x2='5.64' y2='5.64'/%3E%3Cline x1='18.36' y1='18.36' x2='19.78' y2='19.78'/%3E%3Cline x1='1' y1='12' x2='3' y2='12'/%3E%3Cline x1='21' y1='12' x2='23' y2='12'/%3E%3Cline x1='4.22' y1='19.78' x2='5.64' y2='18.36'/%3E%3Cline x1='18.36' y1='5.64' x2='19.78' y2='4.22'/%3E%3C/svg%3E");
  opacity: 0;
  transform: scale(0) rotate(-180deg);
}

.theme-icon.moon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E");
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

[data-theme="light"] .theme-icon.sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

[data-theme="light"] .theme-icon.moon {
  opacity: 0;
  transform: scale(0) rotate(180deg);
}

.avatar-status {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  background: var(--status-color);
  border: 4px solid var(--bg);
  border-radius: 50%;
  z-index: 2;
}

.avatar-status::before,
.avatar-status::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--status-color);
  transform: translate(-50%, -50%);
  animation: ripple 2s ease-out infinite;
}

.avatar-status::after {
  animation-delay: 1s;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

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

  .bento-hero {
    grid-column: span 2;
  }

  .bento-projects {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .aurora > div {
    filter: blur(60px);
    opacity: 0.3;
    animation-duration: 30s;
  }

  .bento-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .particle {
    animation-duration: 40s;
  }

  .bento-card:hover {
    transform: none;
  }

  .avatar-status::before,
  .avatar-status::after {
    animation: none;
  }

  .avatar-status::before {
    animation: ripple 3s ease-out infinite;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 20px 16px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-card {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    padding: 24px;
  }

  .hero-banner {
    height: 120px;
  }

  .hero-avatar {
    width: 90px;
    height: 90px;
    margin-top: -45px;
  }

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

  .hero-bio {
    padding: 16px 20px 24px;
  }

  .time-display {
    font-size: 2.2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .contact-link {
    min-width: 100%;
  }

  .project-item {
    flex-direction: column;
    text-align: center;
  }

  .project-arrow {
    display: none;
  }
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Disable long-press/save menu on images */
img,
.banner-img,
.avatar-img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

/* Disable text selection / copy menu */
html,
body,
body * {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

input,
textarea {
  -webkit-user-select: text !important;
  user-select: text !important;
}
