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

:root {
  --background: #ffffff;
  --foreground: #09090b;
  --card: #ffffff;
  --card-foreground: #09090b;
  --primary: #09090b;
  --primary-foreground: #f4f4f5;
  --secondary: #f4f4f5;
  --secondary-foreground: #09090b;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --accent: #f4f4f5;
  --accent-foreground: #09090b;
  --border: #e4e4e7;
  --ring: #18181b;
  --shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

body.dark {
  --background: #09090b;
  --foreground: #fafafa;
  --card: #09090b;
  --card-foreground: #fafafa;
  --primary: #fafafa;
  --primary-foreground: #18181b;
  --secondary: #27272a;
  --secondary-foreground: #fafafa;
  --muted: #27272a;
  --muted-foreground: #a1a1aa;
  --accent: #27272a;
  --accent-foreground: #fafafa;
  --border: #27272a;
  --ring: #d4d4d8;
  --shadow: 0 1px 3px 0 rgba(0,0,0,0.5), 0 1px 2px -1px rgba(0,0,0,0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -4px rgba(0,0,0,0.5);
}


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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.6;
  font-size: 16px;
  padding-bottom: 100px; /* Space for the floating dock */
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Ambient Floating Micro-Dots Background */
.bg-dots-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
}

/* Sections */
section {
  padding: 56px 0;
}

.max-w-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

/* Scroll Fade Animation */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Hero Section */
.hero-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}

.hero-wrapper > div:first-child {
  flex: 1 1 0;
  min-width: 0;
}

.hero-title {
  font-size: clamp(42px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin-bottom: 8px;
}

/* Hero Name Interactive Animation & Cursor */
.hero-name {
  display: inline-block;
  color: var(--primary);
  cursor: pointer;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.hero-title:hover .hero-name,
.hero-name:hover,
.hero-name.animate-pop {
  animation: voreak-pop 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
  color: var(--primary);
}

.hero-cursor {
  display: inline-block;
  width: 4px;
  height: 0.82em;
  background-color: var(--primary);
  margin-left: 6px;
  vertical-align: -0.06em;
  border-radius: 2px;
  animation: cursor-blink 1.05s steps(2, start) infinite;
}

@keyframes voreak-pop {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  25% { transform: translateY(-7px) scale(1.08) rotate(-3deg); }
  50% { transform: translateY(2px) scale(0.97) rotate(2deg); }
  75% { transform: translateY(-3px) scale(1.03) rotate(-1deg); }
  100% { transform: translateY(0) scale(1) rotate(0deg); }
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: clamp(20px, 2.25vw, 24px);
  color: var(--muted-foreground);
  margin-bottom: 12px;
  line-height: 1.4;
}

.hero-description {
  font-size: 18px;
  color: var(--muted-foreground);
  max-width: 590px;
}

.avatar-wrapper {
  position: relative;
  display: grid;
  place-items: center;
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  border-radius: 50%;
  outline: none;
}

.avatar-frame {
  position: relative;
  z-index: 3;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  cursor: pointer;
  background-color: var(--card);
  transform: translateZ(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s ease, 
              border-color 0.3s ease;
}

.avatar-wrapper:hover .avatar-frame,
.avatar-wrapper:focus-visible .avatar-frame,
.avatar-wrapper.orbit-active .avatar-frame {
  transform: scale(1.05);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 212, 255, 0.25);
  border-color: rgba(0, 212, 255, 0.5);
  animation: glitch-jitter 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reverse Glitch (on unhover / mouseleave) */
.avatar-frame.glitch-reverse {
  transform: scale(1);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2), 0 0 18px rgba(255, 0, 90, 0.25);
  border-color: rgba(255, 0, 90, 0.5);
  animation: glitch-jitter-reverse 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  backface-visibility: hidden;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.avatar-default {
  opacity: 1;
  z-index: 1;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.avatar-hover {
  opacity: 0;
  z-index: 2;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

/* Forward Glitch: Default fades out, Hover fades in */
.avatar-wrapper:hover .avatar-default,
.avatar-wrapper:focus-visible .avatar-default,
.avatar-wrapper.orbit-active .avatar-default {
  animation: glitch-fade-out 0.6s ease forwards;
}

.avatar-wrapper:hover .avatar-hover,
.avatar-wrapper:focus-visible .avatar-hover,
.avatar-wrapper.orbit-active .avatar-hover {
  opacity: 1;
  animation: glitch-fade-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Reverse Glitch: Hover fades out, Default fades in */
.avatar-frame.glitch-reverse .avatar-hover {
  animation: glitch-fade-out 0.6s ease forwards;
}

.avatar-frame.glitch-reverse .avatar-default {
  opacity: 1;
  animation: glitch-fade-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Chromatic Aberration & Slicing Layers */
.glitch-layer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-size: cover;
  background-position: center 20%;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

.glitch-cyan {
  background-image: url('../img/profile-hover.png');
  mix-blend-mode: hard-light;
  filter: drop-shadow(-4px 0 0 rgba(0, 255, 255, 0.85)) hue-rotate(180deg);
}

.glitch-red {
  background-image: url('../img/profile.png');
  mix-blend-mode: screen;
  filter: drop-shadow(4px 0 0 rgba(255, 0, 90, 0.85)) hue-rotate(-50deg);
}

.glitch-scanline {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  background-color: rgba(0, 240, 255, 0.35);
}

.avatar-wrapper:hover .glitch-cyan,
.avatar-wrapper:focus-visible .glitch-cyan,
.avatar-wrapper.orbit-active .glitch-cyan,
.avatar-frame.glitch-reverse .glitch-cyan {
  animation: glitch-slice-cyan 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.avatar-wrapper:hover .glitch-red,
.avatar-wrapper:focus-visible .glitch-red,
.avatar-wrapper.orbit-active .glitch-red,
.avatar-frame.glitch-reverse .glitch-red {
  animation: glitch-slice-red 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.avatar-wrapper:hover .glitch-scanline,
.avatar-wrapper:focus-visible .glitch-scanline,
.avatar-wrapper.orbit-active .glitch-scanline,
.avatar-frame.glitch-reverse .glitch-scanline {
  animation: glitch-scanline-anim 0.62s ease-out;
}

/* Keyframes */
@keyframes glitch-jitter {
  0% { transform: scale(1) translate(0, 0); }
  10% { transform: scale(1.05) translate(-4px, 2px) skewX(2deg); }
  22% { transform: scale(1.05) translate(4px, -2px) skewX(-2deg); }
  35% { transform: scale(1.05) translate(-3px, -1px) skewX(1deg); }
  48% { transform: scale(1.05) translate(3px, 1px) skewX(-1deg); }
  62% { transform: scale(1.05) translate(-2px, 2px); }
  75% { transform: scale(1.05) translate(1px, -1px); }
  88% { transform: scale(1.05) translate(-1px, 0.5px); }
  100% { transform: scale(1.05) translate(0, 0); }
}

@keyframes glitch-jitter-reverse {
  0% { transform: scale(1.05) translate(0, 0); }
  12% { transform: scale(1.04) translate(4px, -2px) skewX(-2deg); }
  25% { transform: scale(1.03) translate(-4px, 2px) skewX(2deg); }
  38% { transform: scale(1.02) translate(3px, 1px) skewX(-1deg); }
  52% { transform: scale(1.01) translate(-3px, -1px) skewX(1deg); }
  66% { transform: scale(1) translate(2px, -1px); }
  80% { transform: scale(1) translate(-1px, 1px); }
  90% { transform: scale(1) translate(0.5px, -0.5px); }
  100% { transform: scale(1) translate(0, 0); }
}

@keyframes glitch-fade-out {
  0% { opacity: 1; filter: none; }
  20% { opacity: 0.9; filter: contrast(180%) invert(10%); }
  40% { opacity: 0.6; filter: contrast(220%) brightness(1.2) hue-rotate(40deg); }
  55% { opacity: 0.2; filter: contrast(250%) brightness(1.3) hue-rotate(-40deg); }
  65% { opacity: 0; filter: none; }
  100% { opacity: 0; filter: none; }
}

@keyframes glitch-fade-in {
  0% { opacity: 0; filter: contrast(250%) brightness(1.4) hue-rotate(90deg); }
  25% { opacity: 0.3; filter: contrast(200%) brightness(1.3) hue-rotate(-30deg); }
  45% { opacity: 0.7; filter: contrast(160%) brightness(1.2) hue-rotate(20deg); }
  65% { opacity: 0.9; filter: contrast(125%) brightness(1.1); }
  85% { opacity: 1; filter: contrast(105%); }
  100% { opacity: 1; filter: none; }
}

@keyframes glitch-slice-cyan {
  0% {
    opacity: 0;
    clip-path: polygon(0 15%, 100% 15%, 100% 30%, 0 30%);
    transform: translate(-4px, 1px);
  }
  12% {
    opacity: 0.95;
    clip-path: polygon(0 8%, 100% 8%, 100% 24%, 0 24%);
    transform: translate(-7px, -2px);
  }
  25% {
    opacity: 0.85;
    clip-path: polygon(0 42%, 100% 42%, 100% 58%, 0 58%);
    transform: translate(6px, 1px);
  }
  38% {
    opacity: 0.95;
    clip-path: polygon(0 68%, 100% 68%, 100% 84%, 0 84%);
    transform: translate(-6px, 2px);
  }
  52% {
    opacity: 0.9;
    clip-path: polygon(0 25%, 100% 25%, 100% 45%, 0 45%);
    transform: translate(5px, -1px);
  }
  68% {
    opacity: 0.6;
    clip-path: polygon(0 52%, 100% 52%, 100% 64%, 0 64%);
    transform: translate(-3px, 1px);
  }
  82% {
    opacity: 0.3;
    clip-path: polygon(0 78%, 100% 78%, 100% 88%, 0 88%);
    transform: translate(2px, 0);
  }
  100% {
    opacity: 0;
    clip-path: polygon(0 0, 0 0, 0 0, 0 0);
    transform: translate(0, 0);
  }
}

@keyframes glitch-slice-red {
  0% {
    opacity: 0;
    clip-path: polygon(0 35%, 100% 35%, 100% 50%, 0 50%);
    transform: translate(5px, -1px);
  }
  14% {
    opacity: 0.9;
    clip-path: polygon(0 20%, 100% 20%, 100% 38%, 0 38%);
    transform: translate(7px, 2px);
  }
  28% {
    opacity: 0.95;
    clip-path: polygon(0 60%, 100% 60%, 100% 76%, 0 76%);
    transform: translate(-5px, -2px);
  }
  44% {
    opacity: 0.85;
    clip-path: polygon(0 12%, 100% 12%, 100% 28%, 0 28%);
    transform: translate(4px, 1px);
  }
  58% {
    opacity: 0.9;
    clip-path: polygon(0 75%, 100% 75%, 100% 92%, 0 92%);
    transform: translate(-4px, 2px);
  }
  74% {
    opacity: 0.5;
    clip-path: polygon(0 32%, 100% 32%, 100% 42%, 0 42%);
    transform: translate(2px, -1px);
  }
  88% {
    opacity: 0.25;
    clip-path: polygon(0 48%, 100% 48%, 100% 56%, 0 56%);
    transform: translate(-1px, 1px);
  }
  100% {
    opacity: 0;
    clip-path: polygon(0 0, 0 0, 0 0, 0 0);
    transform: translate(0, 0);
  }
}

@keyframes glitch-scanline-anim {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  25% {
    opacity: 0.9;
  }
  65% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(100%);
  }
}

.avatar-orbit {
  --orbit-radius: 118px;
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0;
  transform: scale(.72) rotate(0deg);
  transition: opacity .35s ease, transform .45s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}

.avatar-wrapper:hover .avatar-orbit,
.avatar-wrapper:focus-visible .avatar-orbit,
.avatar-wrapper.orbit-active .avatar-orbit {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  animation: orbit-spin 28s linear infinite;
}

.avatar-wrapper:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
}

.orbit-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -16px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border));
  border-radius: 10px;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  color: var(--brand);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: rotate(calc(var(--i) * 25.714deg)) translateY(calc(var(--orbit-radius) * -1)) rotate(calc(var(--i) * -25.714deg));
}

.avatar-wrapper:hover .orbit-icon i,
.avatar-wrapper:focus-visible .orbit-icon i,
.avatar-wrapper.orbit-active .orbit-icon i {
  animation: orbit-counter-spin 28s linear infinite;
}

@keyframes orbit-spin {
  to { transform: scale(1) rotate(360deg); }
}

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

/* Section Title Pill (Section Badges) */
.section-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: 8px;
  margin-bottom: 16px;
}

.section-header-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.section-header-desc {
  color: var(--muted-foreground);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 720px;
}

/* Sub-section headings */
h2.heading-2 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

/* Text prose */
.prose {
  color: var(--muted-foreground);
  font-size: 17px;
  line-height: 1.7;
}

.prose p {
  margin-bottom: 16px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
  color: var(--foreground);
}

/* Skills list & Categories */
.skills-hint {
  margin: -8px 0 20px;
  color: var(--muted-foreground);
  font-size: 13px;
}

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

.skills-category-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: visible;
}

.skills-category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ring);
}

.skills-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.skills-category-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background-color: var(--secondary);
  color: var(--primary);
  font-size: 13px;
  flex-shrink: 0;
}

.skills-category-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--foreground);
  margin: 0;
}

body.dark .skills-category-card {
  background-color: #12151e;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

body.dark .skills-category-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.12);
}

body.dark .skills-category-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark .skills-category-icon {
  background-color: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
}

.skill-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 500;
  background-color: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.5;
}

.skill-pill:hover,
.skill-pill:focus-visible,
.skill-pill.is-active {
  background-color: var(--secondary);
  border-color: var(--ring);
  transform: translateY(-1px);
}

.skill-popover {
  position: absolute;
  z-index: 50;
  bottom: calc(100% + 10px);
  left: 50%;
  min-width: 130px;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: #18181b;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.45);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px) scale(.95);
  transition: opacity .18s ease, transform .18s ease;
}

.skill-popover span {
  color: #ffffff !important;
}

.skill-popover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 8px;
  height: 8px;
  background-color: #18181b;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  transform: translate(-50%, -4px) rotate(45deg);
}

.skill-progress {
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.2);
}

.skill-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background-color: #38bdf8;
  transition: width .65s cubic-bezier(.16, 1, .3, 1) .08s;
}

body.dark .skill-popover {
  background-color: #27272a;
  border-color: rgba(255, 255, 255, 0.22);
}

body.dark .skill-popover::after {
  background-color: #27272a;
  border-color: rgba(255, 255, 255, 0.22);
}


.skill-pill:hover .skill-popover,
.skill-pill:focus-visible .skill-popover,
.skill-pill.is-active .skill-popover {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.skill-pill:hover .skill-progress-fill,
.skill-pill:focus-visible .skill-progress-fill,
.skill-pill.is-active .skill-progress-fill {
  width: var(--skill-level);
}

.skill-pill:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

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

/* Experience & Education list */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.timeline-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--foreground);
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.timeline-item:hover .timeline-logo {
  background-color: var(--border);
}

.timeline-content {
  flex-grow: 1;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.timeline-title {
  font-weight: 600;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.timeline-title:hover {
  color: var(--muted-foreground);
}

.timeline-chevron {
  font-size: 11px;
  color: var(--muted-foreground);
  transition: transform 0.2s;
}

.timeline-item.expanded .timeline-chevron {
  transform: rotate(90deg);
}

.timeline-date {
  font-size: 14px;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.timeline-subtitle {
  font-size: 14px;
  color: var(--muted-foreground);
  margin-top: 2px;
}

.timeline-details {
  font-size: 15px;
  color: var(--muted-foreground);
  margin-top: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  opacity: 0;
}

.timeline-item.expanded .timeline-details {
  max-height: 500px;
  opacity: 1;
}

.timeline-details ul {
  padding-left: 20px;
  margin-top: 4px;
}

.timeline-details li {
  margin-bottom: 4px;
}

/* Timeline Certifications */
.timeline-cert-item .timeline-logo {
  color: var(--primary);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.timeline-cert-item:hover .timeline-logo {
  transform: scale(1.05);
}

.cert-meta-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--border);
  background-color: var(--secondary);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  line-height: 1.4;
  white-space: nowrap;
}

.cert-btn:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.cert-btn i {
  font-size: 12px;
  color: var(--primary);
  transition: color 0.2s;
}

.cert-btn:hover i {
  color: var(--primary-foreground);
}

.cert-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  background-color: var(--secondary);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}

body.dark .cert-btn {
  background-color: #1e2230;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}

body.dark .cert-btn:hover {
  background-color: #38bdf8;
  color: #020617;
  border-color: #38bdf8;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
}

body.dark .cert-btn i {
  color: #38bdf8;
}

body.dark .cert-btn:hover i {
  color: #020617;
}

body.dark .cert-status-badge {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow);
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--ring);
  transform: translateY(-2px);
}

.project-img-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  border-bottom: 1px solid var(--border);
  cursor: zoom-in;
  text-decoration: none !important;
}

.project-img-link:hover,
.project-img-link:focus,
.project-img-link:active {
  text-decoration: none !important;
}

.project-img-zoom-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--background) 85%, transparent);
  color: var(--foreground);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  font-size: 13px;
  z-index: 2;
}

.project-img-link:hover .project-img-zoom-badge,
.project-img-link:focus-visible .project-img-zoom-badge {
  opacity: 1;
  transform: scale(1);
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.project-card-date {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}

.project-card-desc {
  font-size: 15px;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
}

.project-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  background-color: var(--secondary);
  color: var(--foreground);
  border-radius: 4px;
  border: 1px solid var(--border);
}

.project-links {
  display: flex;
  gap: 8px;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}

.project-link-btn:hover {
  opacity: 0.9;
  text-decoration: none;
  color: var(--primary-foreground);
}

.project-link-btn.secondary-btn {
  background-color: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.project-link-btn.secondary-btn:hover {
  background-color: var(--secondary);
  color: var(--foreground);
}

/* Contact Channels Grid */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 840px;
  margin: 0 auto;
}

.contact-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.85);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  border-color: var(--ring);
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.contact-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.contact-card:hover .contact-card-icon {
  transform: scale(1.08);
}

.contact-card-icon.email-icon {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.contact-card-icon.telegram-icon {
  background-color: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.contact-card-info {
  display: flex;
  flex-direction: column;
}

.contact-card-type {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
}

.contact-card-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

.contact-card-desc {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin-bottom: 16px;
}

.contact-card-value {
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: var(--foreground);
  word-break: break-all;
  user-select: all;
}

.contact-card-value code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.contact-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.contact-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none !important;
  font-family: inherit;
  line-height: 1.4;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.contact-action-btn.primary {
  flex: 1 1 auto;
  background-color: var(--primary);
  color: var(--primary-foreground) !important;
  border: 1px solid var(--primary);
}

.contact-action-btn.primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.contact-action-btn.secondary {
  background-color: var(--background);
  color: var(--foreground) !important;
  border: 1px solid var(--border);
}

.contact-action-btn.secondary:hover {
  background-color: var(--secondary);
  border-color: var(--ring);
  transform: translateY(-1px);
}

.contact-action-btn.copied {
  background-color: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}

/* Bottom Floating Dock */
.dock-wrapper {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 1000;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-wrapper.visible {
  transform: translateX(-50%) translateY(0);
}

.dock-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s, border-color 0.3s;
}

body.dark .dock-container {
  background: rgba(15, 15, 15, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dock-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--muted-foreground);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), color 0.2s, background-color 0.2s;
  text-decoration: none !important;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.dock-item:hover,
.dock-item:focus,
.dock-item:active,
.dock-item:visited {
  color: var(--foreground);
  background-color: var(--secondary);
  transform: scale(1.15) translateY(-4px);
  text-decoration: none !important;
}

.dock-item i {
  text-decoration: none !important;
  display: inline-block;
}

.dock-item:focus {
  outline: none;
}

.dock-separator {
  width: 1px;
  height: 20px;
  background-color: var(--border);
  margin: 0 2px;
}

.dock-tooltip {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%) translateY(4px) scale(0.95);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  background-color: var(--primary);
  color: var(--primary-foreground);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dock-item:hover .dock-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Footer styling */
footer {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 13px;
  margin-top: 56px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  section {
    padding: 40px 0;
  }
  
  .hero-wrapper {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 24px;
  }
  
  .avatar-frame {
    width: 148px;
    height: 148px;
  }

  .avatar-wrapper {
    width: 244px;
    height: 244px;
  }

  .avatar-orbit {
    --orbit-radius: 102px;
  }

  .orbit-icon {
    width: 29px;
    height: 29px;
    margin: -14.5px;
    border-radius: 9px;
    font-size: 13px;
  }
  
  .hero-title {
    font-size: clamp(34px, 9vw, 42px);
  }
  
  .hero-subtitle {
    font-size: clamp(18px, 4.8vw, 21px);
  }

  .hero-description {
    font-size: 16px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  
  .timeline-date {
    font-size: 12px;
  }

  .cert-meta-wrap {
    width: 100%;
    justify-content: space-between;
    margin-top: 6px;
  }

  .dock-container {
    gap: 4px;
    padding: 6px 8px;
  }

  .dock-item {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 420px) {
  body {
    padding-bottom: 86px;
  }

  .max-w-container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .hero-title {
    font-size: 34px;
  }

  .section-header-title {
    font-size: 30px;
  }

  h2.heading-2 {
    font-size: 21px;
  }

  .prose {
    font-size: 16px;
  }

  .timeline-item {
    gap: 11px;
  }

  .timeline-logo {
    width: 38px;
    height: 38px;
  }

  .contact-card {
    padding: 18px;
  }

  .dock-wrapper {
    bottom: 12px;
    width: calc(100% - 16px);
  }

  .dock-container {
    justify-content: center;
    gap: 1px;
    width: 100%;
  }

  .dock-item {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    font-size: 14px;
  }

  .dock-separator {
    margin: 0 1px;
  }
}

/* ==========================================================================
   Image Lightbox Modal
   ========================================================================== */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.image-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-lightbox.active .lightbox-dialog {
  transform: scale(1) translateY(0);
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(24, 24, 27, 0.9);
  color: #fafafa;
  display: grid;
  place-items: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  z-index: 10;
}

.lightbox-close:hover {
  transform: scale(1.1);
  background: #ffffff;
  color: #09090b;
}

.lightbox-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 90vh;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 22, 0.98);
}

.lightbox-image {
  max-width: 100%;
  max-height: calc(85vh - 56px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
}

.lightbox-caption {
  width: 100%;
  padding: 12px 20px;
  background: rgba(18, 18, 22, 0.98);
  color: #fafafa;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-verify-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  background-color: #0284c7;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.lightbox-verify-btn:hover {
  background-color: #0369a1;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 14px;
    background: rgba(24, 24, 27, 0.95);
  }
}

/* ==========================================================================
   Subtle Liquid Glass Effects (Applied to Both Light and Dark Themes)
   ========================================================================== */

/* -- Light Theme Glass Touches -- */

/* Light: Project Cards with frosted glass */
.project-card {
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.project-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

/* Light: Skills category cards */
.skills-category-card {
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.85);
}

.skills-category-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

/* Light: Skill pills */
.skill-pill {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.skill-pill:hover,
.skill-pill:focus-visible,
.skill-pill.is-active {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.85);
}

/* Light: Dock with frosted glass */
.dock-container {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

/* -- Dark Theme Glass Touches -- */

/* Dark: Project Cards with frosted glass */
body.dark .project-card {
  background-color: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

body.dark .project-card:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

/* Dark: Skills category cards */
body.dark .skills-category-card {
  background-color: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

body.dark .skills-category-card:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

/* Dark: Skill pills */
body.dark .skill-pill {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

body.dark .skill-pill:hover,
body.dark .skill-pill:focus-visible,
body.dark .skill-pill.is-active {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Dark: Contact Cards */
body.dark .contact-card {
  background-color: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

body.dark .contact-card:hover {
  background-color: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

body.dark .contact-card-icon.email-icon {
  background-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

body.dark .contact-card-icon.telegram-icon {
  background-color: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

body.dark .contact-card-value {
  background-color: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

body.dark .contact-action-btn.secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9 !important;
}

body.dark .contact-action-btn.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Dark: Dock with frosted glass */
body.dark .dock-container {
  background: rgba(12, 12, 14, 0.72);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Dark: Timeline logo */
body.dark .timeline-logo {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Dark: Avatar frame */
body.dark .avatar-frame {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.dark .orbit-icon {
  background: rgba(15, 15, 20, 0.8);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Mouse Pointer Trailing Line & Dots Canvas
   ========================================================================== */
.cursor-trail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

@media (hover: none), (pointer: coarse) {
  .cursor-trail-canvas {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-trail-canvas {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
