@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-tertiary: #a1a1aa;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.1);
  --accent-medium: rgba(59, 130, 246, 0.15);
  --green: #34d399;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
}

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

html,
body {
  overflow-x: hidden;
  /* prevent aurora blobs from causing horizontal scroll */
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  text-shadow: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p,
span,
a,
li,
div {
  text-shadow: none;
}

img {
  user-select: none;
  -webkit-user-drag: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

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

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

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

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

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

.nav-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 992px) {
  .nav-toggle {
    display: block;
    order: 2;
  }

  .nav-brand {
    order: 1;
  }

  .nav-right {
    order: 3;
    gap: 12px;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 12px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 20px;
    font-size: 15px;
  }

  .nav-time {
    display: none;
  }
}

.nav-link {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-xs);
  transition: all 0.2s ease;
  position: relative;
}

.nav-link span {
  display: inline !important;
  margin-left: 4px;
}



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

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-link i {
  font-size: 14px;
}

.nav-time {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

main {
  margin-top: 56px;
  padding: 40px 24px 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  min-height: calc(100vh - 56px);
  position: relative;
}

.section {
  margin-bottom: 48px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.section.slide-left {
  transform: translateX(0);
}

.section.slide-right {
  transform: translateX(0);
}

.section.slide-left.revealed,
.section.slide-right.revealed {
  transform: translateX(0) translateY(0);
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label i {
  font-size: 12px;
}

.card {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card-body {
  padding: 28px;
}

.hero {
  text-align: center;
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}

/* ===== Particle Background ===== */
.particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero>*:not(.particles-canvas) {
  position: relative;
  z-index: 1;
}

.hero-photo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
  isolation: isolate;
  /* creates own stacking context */
}

.hero-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 1px var(--border), 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  z-index: 4;
  /* above hero-ring (z:2) and orbit badges (z:3) */
}

.hero-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 40px rgba(59, 130, 246, 0.15);
}

.speech-bubble {
  position: absolute;
  top: -12px;
  right: -80px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 12px 12px 12px 4px;
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  animation: bubbleIn 0.5s ease 1.2s forwards;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 5;
  /* above photo (4) */
}

@keyframes bubbleIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent), #a78bfa, #60a5fa, var(--accent));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.6s ease 0.3s forwards, gradientShift 4s ease infinite;
}

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

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease 0.5s both;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease 0.7s both;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.tag:hover {
  background: var(--accent-medium);
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s ease 0.9s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--green);
  font-weight: 500;
  animation: fadeUp 0.6s ease 1s both;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 16px;
}

.about-intro {
  color: var(--text-primary) !important;
  font-size: 16px !important;
}

.highlight-name {
  color: var(--accent);
  font-weight: 600;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}

.about-highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease;
}

.about-highlight-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.about-highlight-item i {
  color: var(--accent);
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.about-highlight-item span {
  color: var(--text-secondary);
  font-size: 13px;
}

.about-goal {
  padding: 16px;
  background: rgba(59, 130, 246, 0.05);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  margin-top: 20px;
  color: var(--text-secondary);
}

.about-goal strong {
  color: var(--accent);
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.exp-card {
  padding: 24px;
  text-align: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.exp-card:hover {
  background: var(--accent-soft);
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.exp-card i {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 14px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.exp-card:hover i {
  transform: scale(1.1);
}

.exp-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.exp-card p {
  font-size: 12px;
  color: var(--text-tertiary);
  margin: 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-item {
  text-align: center;
  padding: 20px 8px;
}

.stat-item h3 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--text-primary);
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
}

.stat-item:hover h3 {
  color: var(--accent);
}

.stat-item p {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.biolink-page {
  max-width: 480px;
  margin: 0 auto;
}

.profile-section {
  text-align: center;
  margin-bottom: 32px;
}

.profile-img-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.profile-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 1px var(--border), 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
}

.profile-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.profile-tagline {
  color: var(--text-secondary);
  font-size: 14px;
}

.quick-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 28px 0;
}

.quick-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  position: relative;
}

.quick-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.quick-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s ease;
  border: 1px solid var(--border);
}

.social-link:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.social-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.social-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.social-arrow {
  color: var(--text-tertiary);
  font-size: 14px;
  transition: transform 0.2s ease;
}

.social-link:hover .social-arrow {
  transform: translateX(3px);
  color: var(--text-secondary);
}

.status-footer {
  margin-top: 28px;
  padding: 14px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  text-align: center;
  color: var(--text-tertiary);
  border: 1px solid var(--border);
}

.status-footer .status-dot-inline {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 2s ease-in-out infinite;
}

.skills-page {
  max-width: 800px;
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.skill-category {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.skill-category:hover {
  border-color: var(--border-hover);
}

.skill-category h4 {
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-category h4 i {
  font-size: 12px;
}

.skill-item {
  margin-bottom: 16px;
}

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

.skill-name {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
}

.skill-name span:first-child {
  color: var(--text-primary);
}

.skill-name span:last-child {
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.skill-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.timeline {
  margin-top: 16px;
}

.timeline-item {
  position: relative;
  padding-left: 28px;
  padding-bottom: 32px;
  border-left: 1px solid var(--border);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 4px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-year {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 4px;
  font-weight: 500;
}

.timeline-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.timeline-company {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.cv-download {
  text-align: center;
  padding: 32px;
}

.cv-download p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.gallery-page {
  max-width: 800px;
  margin: 0 auto;
}

.gallery-header {
  margin-bottom: 24px;
}

.gallery-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.gallery-header p {
  color: var(--text-tertiary);
  font-size: 13px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .view-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  color: #fff;
  font-size: 24px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover .view-icon {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.no-photos {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
}

.no-photos i {
  font-size: 48px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  opacity: 0.4;
}

.blog-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.blog-card img {
  border-bottom: 1px solid var(--border);
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.blog-card p a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.blog-card p a:hover {
  text-decoration: underline;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 95%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .lightbox img {
    max-width: 100%;
    max-height: 90vh;
  }

  .lightbox-nav {
    font-size: 24px;
    padding: 10px;
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.15);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 16px;
  transition: color 0.2s ease;
  user-select: none;
}

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

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(60px) scale(0.97);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border-radius: var(--radius-xs);
  pointer-events: none;
}

.gallery-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 2;
  pointer-events: auto;
}

.gallery-slide.slide-out-left {
  opacity: 0;
  transform: translateX(-60px) scale(0.97);
}

.gallery-slide.slide-out-right {
  opacity: 0;
  transform: translateX(60px) scale(0.97);
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  z-index: 5;
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-dot.active {
  background: var(--accent);
  width: 18px;
  border-radius: 3px;
}

footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-tertiary);
  font-size: 12px;
  border-top: 1px solid var(--border);
  max-width: 800px;
  margin: 0 auto;
}

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.preloader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: preloaderSpin 0.8s linear infinite;
}

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

.preloader-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}

@keyframes preloaderPulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #2563eb;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

/* ===== 3D Tilt Card Effect ===== */
.exp-card {
  transform-style: preserve-3d;
  perspective: 800px;
}

.exp-card.tilt-active {
  transition: none;
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  z-index: 1001;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

/* ===== Theme Toggle ===== */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  margin-left: 12px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: rotate(15deg);
}

/* ===== Light Theme ===== */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-elevated: #f5f5f7;
  --bg-card: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
}

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

[data-theme="light"] .top-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .nav-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .about-highlight-item {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .about-highlight-item:hover {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .exp-card {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .skill-bar {
  background: rgba(0, 0, 0, 0.06);
}

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

[data-theme="light"] .gallery-prev:hover,
[data-theme="light"] .gallery-next:hover {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .gallery-dot {
  background: rgba(0, 0, 0, 0.2);
}

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

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

[data-theme="light"] .card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .hero-photo {
  border-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hero-photo:hover {
  box-shadow: 0 0 0 1px var(--accent), 0 12px 40px rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .speech-bubble {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .tag {
  background: rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .tag:hover {
  background: rgba(59, 130, 246, 0.12);
}

[data-theme="light"] .btn-secondary {
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .status-footer {
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .social-link {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .social-link:hover {
  background: var(--bg-elevated);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .skill-category {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .exp-card {
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .exp-card:hover {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .timeline-item {
  border-left-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .about-goal {
  background: rgba(59, 130, 246, 0.04);
}

[data-theme="light"] .gallery-item {
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .gallery-container {
  background: var(--bg-elevated);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .lightbox {
  background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .lightbox-close {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
}

[data-theme="light"] .profile-img {
  border-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .quick-btn:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .scroll-progress {
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.3);
}

[data-theme="light"] footer {
  border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .preloader {
  background: #ffffff !important;
}

[data-theme="light"] .preloader-ring {
  border-color: rgba(0, 0, 0, 0.08);
  border-top-color: var(--accent);
}

[data-theme="light"] .back-to-top {
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

/* ===== Page Transitions ===== */
.page-transition-wrapper {
  /* No fade-in animation — content always visible to prevent blank pages */
  opacity: 1;
}

.page-transition-wrapper.fade-out {
  animation: pageFadeOut 0.3s ease forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* ===== Skill Bar Shimmer Effect ===== */
.skill-fill {
  position: relative;
  overflow: hidden;
}

.skill-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  animation: none;
}

.skill-category.animated .skill-fill::after {
  animation: shimmer 1.5s ease 0.5s forwards;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

.skill-fill {
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.3);
}

/* ===== Enhanced Timeline Animation ===== */
.timeline-item {
  transform: translateX(-20px) translateY(12px);
  opacity: 0;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.timeline-item::before {
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item.visible::before {
  transform: scale(1);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

/* ===== Hero Photo Gradient Glow (very subtle – no bright blue always on) ===== */
.hero-photo-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 50%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

/* ===== Mouse-Tracking Card Glow ===== */
.card {
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.15), transparent 40%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

/* ===== Typing Cursor for Tagline ===== */
.hero-tagline .typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ===== Footer Wave ===== */
.footer-wave {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -1px;
}

.footer-wave svg {
  width: 100%;
  height: 40px;
  display: block;
}

.footer-wave .wave-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.2;
}

.footer-wave .wave-path-fill {
  fill: rgba(59, 130, 246, 0.03);
}

/* ===== Parallax Hero ===== */
.hero.parallax-active .hero-photo-wrapper {
  transition: transform 0.1s ease-out;
}

/* ===== Glassmorphism Light Theme ===== */
[data-theme="light"] .card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@media (max-width: 768px) {
  main {
    padding: 32px 16px 80px;
  }

  .hero {
    padding: 40px 0 32px;
  }

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

  .about-highlights {
    grid-template-columns: 1fr;
  }

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

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .speech-bubble {
    right: -60px;
    font-size: 12px;
    padding: 6px 10px;
  }

  .nav-link span {
    display: none;
  }

  .nav-link {
    padding: 8px 12px;
  }

  .nav-link i {
    font-size: 16px;
  }

  .nav-time {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-photo {
    width: 110px;
    height: 110px;
  }

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

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

/* ============================================================
   ADVANCED THEME UPGRADES
   ============================================================ */

/* ===== #1 – Aurora / Mesh Gradient Background – REMOVED ===== */


/* ===== #2 – Cursor Spotlight (very subtle, no blue glow unless hovering interactables) ===== */
.cursor-spotlight {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.025) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  transition: transform 0.08s linear;
  will-change: transform;
  top: 0;
  left: 0;
}

[data-theme="light"] .cursor-spotlight {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.015) 0%, transparent 65%);
}


/* ===== #3 – Glassmorphism 2.0 – Iridescent Card Shimmer ===== */
@keyframes iridescentShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.card {
  --irid-opacity: 0;
  transition: border-color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease, --irid-opacity 0.3s ease;
}

.card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg,
      rgba(99, 102, 241, 0) 0%,
      rgba(139, 92, 246, 0.18) 25%,
      rgba(59, 130, 246, 0.18) 50%,
      rgba(6, 182, 212, 0.18) 75%,
      rgba(99, 102, 241, 0) 100%);
  background-size: 300% 300%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  animation: iridescentShift 4s ease infinite;
  z-index: 0;
  /* sits on top of ::before glow but below card children (z:1) */
}

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

.card>* {
  position: relative;
  z-index: 1;
}

[data-theme="light"] .card::after {
  background: linear-gradient(135deg,
      rgba(99, 102, 241, 0) 0%,
      rgba(139, 92, 246, 0.09) 25%,
      rgba(59, 130, 246, 0.09) 50%,
      rgba(6, 182, 212, 0.09) 75%,
      rgba(99, 102, 241, 0) 100%);
}


/* ===== #4 – 3D Hero Glowing Orbital Ring ===== */
.hero-photo-wrapper {
  position: relative;
}

.hero-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg, #0a0a0a), var(--bg, #0a0a0a)) padding-box,
    conic-gradient(from 0deg,
      #3b82f6, #a78bfa, #ec4899, #06b6d4, #3b82f6) border-box;
  animation: ringRotate 4s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes ringRotate {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero-orbit-badge {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card, #1a1a1a);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--accent);
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  animation: orbitSpin var(--orbit-dur, 6s) linear infinite;
}

@keyframes orbitSpin {
  from {
    transform: rotate(var(--orbit-start, 0deg)) translateX(var(--orbit-r, 90px)) rotate(calc(-1 * var(--orbit-start, 0deg)));
  }

  to {
    transform: rotate(calc(var(--orbit-start, 0deg) + 360deg)) translateX(var(--orbit-r, 90px)) rotate(calc(-1 * (var(--orbit-start, 0deg) + 360deg)));
  }
}

[data-theme="light"] .hero-ring {
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from 0deg, #3b82f6, #a78bfa, #ec4899, #06b6d4, #3b82f6) border-box;
}

[data-theme="light"] .hero-orbit-badge {
  background: #fff;
}


/* ===== #5 – Timeline Animated Flowing Pulse Dots ===== */
.timeline-item::before {
  animation: none;
}

.timeline-item.visible::before {
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.6);
  animation: timelinePing 2s ease-out infinite 0.5s;
}

@keyframes timelinePing {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* Flowing dot travelling down the timeline line */
.timeline {
  position: relative;
}

.timeline-flow-dot {
  position: absolute;
  left: -4px;
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
  animation: flowDown 3s ease-in-out infinite;
  pointer-events: none;
  opacity: 0;
}

@keyframes flowDown {
  0% {
    top: 0;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}


/* ===== #6 – Magnetic Button CSS Helper ===== */
.btn {
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

/* Magnetic override – JS sets inline style, so just ensure smooth snap-back */
.btn:not(:hover) {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}


/* ===== #7 – Stagger Child Reveal ===== */
.stagger-children>* {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stagger-children.stagger-visible>*:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 0.05s;
}

.stagger-children.stagger-visible>*:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}

.stagger-children.stagger-visible>*:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 0.19s;
}

.stagger-children.stagger-visible>*:nth-child(4) {
  opacity: 1;
  transform: none;
  transition-delay: 0.26s;
}

.stagger-children.stagger-visible>*:nth-child(5) {
  opacity: 1;
  transform: none;
  transition-delay: 0.33s;
}

.stagger-children.stagger-visible>*:nth-child(6) {
  opacity: 1;
  transform: none;
  transition-delay: 0.40s;
}

.stagger-children.stagger-visible>*:nth-child(n+7) {
  opacity: 1;
  transform: none;
  transition-delay: 0.47s;
}


/* ===== #8 – Neon Glow Nav Brand ===== */
.nav-brand {
  background: linear-gradient(90deg,
      #60a5fa, #a78bfa, #ec4899, #06b6d4, #60a5fa);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: navBrandCycle 6s linear infinite;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

@keyframes navBrandCycle {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}

[data-theme="light"] .nav-brand {
  filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.25));
}


/* ===== #9 – SVG Circular Skill Ring display class ===== */
.skill-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.skill-ring svg {
  transform: rotate(-90deg);
  overflow: visible;
}

.skill-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 5;
}

[data-theme="light"] .skill-ring-track {
  stroke: rgba(0, 0, 0, 0.08);
}

.skill-ring-fill {
  fill: none;
  stroke: url(#ringGradient);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-ring-fill.animated {
  stroke-dashoffset: var(--ring-offset, 220);
}

.skill-ring-label {
  font-size: 12px;
  fill: var(--text-primary, #fff);
  text-anchor: middle;
  dominant-baseline: middle;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.skill-ring-name {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 80px;
  font-weight: 500;
}


/* ===== #10 – Enhanced Curtain / Diagonal Page-Transition Wipe ===== */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  overflow: hidden;
}

/* Main sweep panel — starts FULLY off-screen left (-130% for skew safety) */
.page-curtain::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      #1d4ed8 0%,
      #3b82f6 30%,
      #6366f1 60%,
      #a78bfa 85%,
      #c084fc 100%);
  transform: translateX(-130%) skewX(-10deg);
  transform-origin: left center;
  transition: transform 0.52s cubic-bezier(0.76, 0, 0.24, 1);
  box-shadow: inset -20px 0 60px rgba(0, 0, 0, 0.3);
}

/* Trailing glow stripe */
.page-curtain::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      transparent 0%,
      rgba(99, 102, 241, 0.3) 50%,
      transparent 100%);
  transform: translateX(-140%) skewX(-10deg);
  transform-origin: left center;
  transition: transform 0.52s cubic-bezier(0.76, 0, 0.24, 1) 0.07s;
}

.page-curtain.wipe-in::before {
  transform: translateX(0) skewX(-10deg);
}

.page-curtain.wipe-in::after {
  transform: translateX(0) skewX(-10deg);
}

.page-curtain.wipe-out::before {
  transform: translateX(130%) skewX(-10deg);
}

.page-curtain.wipe-out::after {
  transform: translateX(130%) skewX(-10deg);
}

/* Page arrival flash overlay (injected as div by JS) */
@keyframes edgeFlash {
  0% {
    opacity: 0;
    box-shadow: inset 0 0 0px rgba(99, 102, 241, 0);
  }

  25% {
    opacity: 1;
    box-shadow: inset 0 0 80px rgba(99, 102, 241, 0.45);
  }

  100% {
    opacity: 0;
    box-shadow: inset 0 0 0px rgba(99, 102, 241, 0);
  }
}

.page-flash-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  animation: edgeFlash 0.65s ease-out forwards;
  background: transparent;
}


/* ===== Enhanced hover glow on social links ===== */
.social-link {
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.06), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.social-link:hover::before {
  transform: translateX(100%);
}


/* ===== Enhanced exp-card with accent top border on hover ===== */
.exp-card {
  border-top: 2px solid transparent;
  transition: border-top-color 0.3s ease, background 0.3s ease,
    border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.exp-card:hover {
  border-top-color: var(--accent);
}


/* ===== Scroll-progress rainbow ===== */
.scroll-progress {
  background: linear-gradient(90deg,
      #3b82f6, #6366f1, #a78bfa, #ec4899, #06b6d4);
  background-size: 300% 100%;
  animation: scrollGradientShift 4s linear infinite;
}

@keyframes scrollGradientShift {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}


/* ===== Tags enhanced hover w/ neon outline ===== */
.tag {
  position: relative;
  overflow: hidden;
}

.tag::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-card, #1a1a1a), var(--bg-card, #1a1a1a)) padding-box,
    linear-gradient(135deg, #3b82f6, #a78bfa, #ec4899) border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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


/* ===== Back-to-top – sparkle ring ===== */
.back-to-top::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(#3b82f6, #a78bfa, #ec4899, #3b82f6);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: ringRotate 2s linear infinite;
}

.back-to-top:hover::after {
  opacity: 1;
}

/* Ensure back-to-top is position:relative for ::after */
.back-to-top {
  position: relative;
}


/* ===== Mobile adjustments ===== */
@media (max-width: 768px) {
  .hero-orbit-badge {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .hero-ring {
    width: 148px;
    height: 148px;
  }

  /* Cursor spotlight hidden on touch/mobile */
  .cursor-spotlight {
    display: none;
  }
}


/* ========================================================
   ADVANCED CONTACT PAGE
   ======================================================== */

.contact-page {
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Hero Card ---- */
.contact-hero-card {
  position: relative;
  overflow: hidden;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(59, 130, 246, 0.12) 0%,
      rgba(99, 102, 241, 0.08) 50%,
      transparent 100%);
  pointer-events: none;
}

.contact-hero-body {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Avatar */
.contact-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.contact-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--accent), 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.contact-avatar:hover {
  transform: scale(1.05);
}

.contact-online-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  animation: pulse 2s ease-in-out infinite;
}

/* Hero text */
.contact-hero-text {
  flex: 1;
  min-width: 0;
}

.contact-hero-name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.contact-hero-tagline {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
}

.contact-availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
}

.contact-response-time {
  color: var(--text-tertiary);
  font-weight: 400;
}

/* ---- Quick Contact Grid ---- */
.contact-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.contact-quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
}

.contact-quick-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-color, var(--accent));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.contact-quick-card:hover {
  border-color: var(--card-color, var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.contact-quick-card:hover::before {
  opacity: 0.08;
}

.contact-quick-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--card-color, var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

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

.contact-quick-label {
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  position: relative;
  z-index: 1;
}

.contact-quick-arrow {
  color: var(--text-tertiary);
  font-size: 12px;
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-quick-card:hover .contact-quick-arrow {
  transform: translateX(3px);
  color: var(--card-color, var(--accent));
}

/* ---- Info Cards (copyable) ---- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.contact-info-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

.contact-info-card>i:first-child {
  font-size: 18px;
  color: var(--accent);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.contact-info-card>div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-info-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.contact-info-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-copy-hint {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color 0.2s;
  flex-shrink: 0;
}

/* ---- Contact hero section spacing ---- */
.contact-hero-section {
  margin-bottom: 0 !important;
}

.contact-quick-section {
  margin-top: 24px;
}

/* ---- Mobile ---- */
@media (max-width: 540px) {
  .contact-hero-body {
    flex-direction: column;
    text-align: center;
  }

  .contact-availability-badge {
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-quick-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}


/* ========================================================
   CONTACT PAGE — ADVANCED ENHANCEMENTS
   ======================================================== */

/* Pulsing live dot on profile photo */
.contact-live-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 13px;
  height: 13px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--bg-main);
  animation: pulse 2s ease-in-out infinite;
}

/* Availability pill under name */
.contact-avail-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.22);
}

.contact-resp-note {
  color: var(--text-tertiary);
  font-weight: 400;
}

/* Ripple on quick-btn */
.quick-btn {
  overflow: hidden;
}

.quick-btn-ripple {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
}

.quick-btn-ripple.ripple-go {
  animation: rippleAnim 0.5s ease-out forwards;
}

@keyframes rippleAnim {
  to {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

/* Tooltip on quick buttons */
.contact-quick-btn {
  position: relative;
}

.contact-quick-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-elevated, #2a2a2a);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.contact-quick-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Info chip strip */
.contact-info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 !important;
  margin-top: -8px !important;
}

.contact-info-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: default;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  user-select: none;
}

.contact-info-chip[onclick] {
  cursor: pointer;
}

.contact-info-chip[onclick]:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.contact-chip-icon {
  font-size: 11px;
  color: var(--text-tertiary);
  transition: color 0.2s;
}

/* Social links stagger reveal */
.contact-social-list .social-link {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.contact-social-list .social-link.contact-link-visible {
  opacity: 1;
  transform: translateX(0);
}