/* ========================================
   Portfolio - Custom Styles
   ======================================== */

/* --- Design Tokens --- */
:root {
  --bg-primary: #050510;
  --bg-secondary: #0a0a1a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.065);
  --bg-glass: rgba(5, 5, 16, 0.75);

  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #484f58;

  --accent-indigo: #6366f1;
  --accent-violet: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-cyan: #22d3ee;

  --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  --gradient-text: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(99, 102, 241, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

ul { list-style: none; }

/* --- Animated Background Orbs --- */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.bg-glow-1 {
  top: -15%;
  left: -8%;
  width: 550px;
  height: 550px;
  background: rgba(99, 102, 241, 0.12);
  animation: glow-drift 28s ease-in-out infinite;
}

.bg-glow-2 {
  top: 40%;
  right: -12%;
  width: 480px;
  height: 480px;
  background: rgba(236, 72, 153, 0.08);
  animation: glow-drift 32s ease-in-out infinite reverse;
}

.bg-glow-3 {
  bottom: -15%;
  left: 25%;
  width: 400px;
  height: 400px;
  background: rgba(34, 211, 238, 0.06);
  animation: glow-drift 24s ease-in-out infinite 4s;
}

@keyframes glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -60px) scale(1.05); }
  50% { transform: translate(-30px, 30px) scale(0.95); }
  75% { transform: translate(50px, 40px) scale(1.02); }
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.nav-socials {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-socials a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color 0.2s, transform 0.2s;
}

.nav-socials a:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Hamburger Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 16, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-link {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s;
}

.mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.32s; }

.mobile-link:hover {
  color: var(--accent-violet);
}

.mobile-socials {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease 0.32s;
}

.mobile-menu.open .mobile-socials {
  opacity: 1;
}

.mobile-socials a {
  color: var(--text-secondary);
  font-size: 1.3rem;
  transition: color 0.2s;
}

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

/* --- Layout --- */
.app-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 1.5rem 4rem;
  min-height: 100vh;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-content.transitioning {
  opacity: 0;
  transform: translateY(16px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Typography --- */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-indigo);
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0;
  margin-bottom: 2rem;
  transition: color 0.2s, gap 0.2s;
}

.btn-back:hover {
  color: var(--text-primary);
  gap: 0.75rem;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.08),
              0 0 0 1px rgba(99, 102, 241, 0.08);
}

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

.card:active {
  transform: translateY(-2px) scale(0.995);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

/* --- Tags / Pills --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-pill:hover {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}

.skill-pill i {
  font-size: 0.9rem;
  opacity: 0.6;
}

/* --- Hero Section --- */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 160px);
  padding-bottom: 2rem;
}

.hero-greeting {
  font-size: 1.1rem;
  color: var(--accent-indigo);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-role {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-socials {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hero-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-size: 1rem;
  transition: all 0.25s ease;
}

.hero-socials a:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
}

/* Profile Image Ring */
.hero-image-ring {
  position: relative;
  width: 280px;
  height: 280px;
  flex-shrink: 0;
}

.hero-image-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent-indigo),
    var(--accent-violet),
    var(--accent-pink),
    var(--accent-cyan),
    var(--accent-indigo)
  );
  animation: spin-ring 6s linear infinite;
  z-index: 0;
}

.hero-image-ring::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: inherit;
  filter: blur(20px);
  opacity: 0.4;
  animation: spin-ring 6s linear infinite;
  z-index: -1;
}

.hero-image-ring img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-primary);
}

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

/* --- Section Spacing --- */
.page-section {
  margin-bottom: 4rem;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

/* --- Experience Timeline --- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-indigo), transparent);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-indigo);
  z-index: 1;
}

/* --- Detail Page --- */
.detail-header {
  margin-bottom: 2rem;
}

.detail-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.detail-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.detail-link:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--border-accent);
  transform: translateY(-1px);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.detail-body {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

.detail-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.detail-body li {
  margin-bottom: 0.5rem;
}

.detail-body p {
  margin-bottom: 1rem;
}

/* --- Gallery --- */
.gallery {
  margin-bottom: 2.5rem;
}

.gallery-main {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  margin-bottom: 0.75rem;
  min-height: 200px;
}

.gallery-main img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.gallery-main iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: var(--radius-lg);
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.gallery-thumb {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--accent-indigo);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 0.9rem;
}

/* --- Books --- */
.book-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.book-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.08);
}

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

.book-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent-indigo);
  font-size: 1.4rem;
}

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

/* --- Blog --- */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.blog-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.blog-slug {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Blog content (rendered markdown) */
.blog-content {
  max-width: 720px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.75em;
  letter-spacing: -0.01em;
}

.blog-content h1 { font-size: 2rem; }
.blog-content h2 { font-size: 1.5rem; }
.blog-content h3 { font-size: 1.2rem; }

.blog-content p { margin-bottom: 1.25em; }

.blog-content a {
  color: var(--accent-indigo);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-content a:hover { color: var(--accent-violet); }

.blog-content ul,
.blog-content ol {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.blog-content ol { list-style: decimal; }

.blog-content li { margin-bottom: 0.35em; }

.blog-content code {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-cyan);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.blog-content pre {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25em;
  overflow-x: auto;
  margin-bottom: 1.5em;
}

.blog-content pre code {
  background: transparent;
  padding: 0;
  color: var(--text-secondary);
}

.blog-content blockquote {
  border-left: 3px solid var(--accent-indigo);
  padding-left: 1rem;
  margin: 1.5em 0;
  color: var(--text-secondary);
  font-style: italic;
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.blog-content th,
.blog-content td {
  padding: 0.6em 1em;
  border: 1px solid var(--border-subtle);
  text-align: left;
}

.blog-content th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  color: var(--text-primary);
}

.blog-content hr {
  border: none;
  height: 1px;
  background: var(--border-subtle);
  margin: 2em 0;
}

.blog-content img {
  border-radius: var(--radius-md);
  margin: 1.5em 0;
}

/* --- Education Card --- */
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s;
}

.edu-card:hover {
  border-color: rgba(99, 102, 241, 0.15);
}

.edu-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.edu-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.edu-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-indigo);
  margin-top: 0.25rem;
}

/* --- Achievement List --- */
.achievement-item {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.achievement-item .dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-primary);
  margin-top: 0.55rem;
}

/* --- Coding Profile Link --- */
.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.profile-link:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.profile-link img {
  width: 18px;
  height: 18px;
  border-radius: 3px;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.16s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.20s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 0.28s; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: 0.32s; }
.reveal-stagger > .reveal:nth-child(9) { transition-delay: 0.36s; }

/* --- Empty / Loading States --- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 3rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 4rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links,
  .nav-socials {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-text {
    order: 2;
  }

  .hero-image {
    order: 1;
    display: flex;
    justify-content: center;
  }

  .hero-image-ring {
    width: 180px;
    height: 180px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .app-content {
    padding-top: 80px;
  }

  .gallery-thumb {
    width: 72px;
    height: 52px;
  }

  .bg-glow {
    opacity: 0.7;
    filter: blur(80px);
  }

  .bg-glow-1, .bg-glow-2, .bg-glow-3 {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2rem;
  }

  .card {
    padding: 1.25rem;
  }
}
