:root {
  --bg: #080b12;
  --bg-soft: #10131b;
  --surface: #141821;
  --surface-strong: #1d2230;
  --text: #f4f7fb;
  --muted: #c9d2df;
  --soft-muted: #9aa7b8;
  --accent: #45c7ff;
  --accent-dark: #16a6e3;
  --accent-contrast: #06111a;
  --accent-soft: rgba(69, 199, 255, 0.16);
  --accent-violet: #8b5cf6;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --max-width: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.28), transparent 34rem),
    linear-gradient(225deg, rgba(69, 199, 255, 0.22), transparent 32rem),
    linear-gradient(180deg, #080b12 0%, #10131b 48%, #090c13 100%);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

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

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

ul {
  list-style: none;
}

.container {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 1.25rem;
  width: 100%;
}

.narrow {
  max-width: 820px;
}

.section-pad {
  padding: 6rem 0;
}

.site-header {
  backdrop-filter: blur(18px);
  background: rgba(8, 11, 18, 0.84);
  border-bottom: 1px solid var(--line);
  left: 0;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.navbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 0.75rem;
  letter-spacing: 0;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: var(--radius);
  color: var(--accent-contrast);
  display: inline-flex;
  font-size: 0.9rem;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.brand-avatar {
  align-items: center;
  border: 1px solid rgba(69, 199, 255, 0.34);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  overflow: hidden;
  width: 40px;
}

.brand-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 1.4rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-button {
  background: var(--accent-soft);
  border: 1px solid rgba(69, 199, 255, 0.34);
  border-radius: var(--radius);
  color: var(--text) !important;
  padding: 0.7rem 1rem;
}

.nav-button:hover {
  background: rgba(69, 199, 255, 0.24);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
}

.nav-toggle span {
  background: var(--text);
  border-radius: 999px;
  display: block;
  height: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  width: 26px;
}

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

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

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

.hero {
  min-height: calc(100vh - 76px);
  padding: 5rem 0 4rem;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  letter-spacing: 0;
  margin-bottom: 1.2rem;
}

h1 span {
  color: var(--accent);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.2rem;
}

.hero-text,
.section-heading p,
.page-hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 650px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  align-items: center;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.2rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.site-header a:hover,
.nav-links a:hover {
  text-shadow: none;
}

.profile-frame {
  align-self: center;
  width: 310px;        /* control size */
  height: 310px;
  border-radius: 50%;  /* makes circle */
  overflow: hidden;    /* hides extra parts */
  display: flex;
  justify-self: center;
  justify-content: center;
  align-items: center;
  margin-inline: auto;
  box-shadow:
    0 0 0 1px rgba(69, 199, 255, 0.16),
    0 28px 80px rgba(69, 199, 255, 0.18);
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* keeps image nicely cropped */
  filter: grayscale(1) contrast(1.08);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.profile-frame::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(69, 199, 255, 0.22) 0%, rgba(69, 199, 255, 0.1) 32%, transparent 68%);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: -1;
}

.profile-frame:hover {
  box-shadow:
    0 0 0 1px rgba(69, 199, 255, 0.34),
    0 34px 90px rgba(69, 199, 255, 0.24),
    0 0 42px rgba(69, 199, 255, 0.18);
  transform: translateY(-6px) scale(1.01);
  transform: translateY(-8px) scale(1.03);
}

.profile-frame:hover::before {
  opacity: 1;
  transform: scale(1);
}

.profile-frame:hover img {
  filter: grayscale(0.15) contrast(1.1) saturate(1.05);
  transform: scale(1.05);
}

.profile-frame:active {
  box-shadow:
    0 0 0 1px rgba(69, 199, 255, 0.34),
    0 34px 90px rgba(69, 199, 255, 0.24),
    0 0 42px rgba(69, 199, 255, 0.18);
  transform: translateY(-6px) scale(1.01);
}

.profile-frame:active::before {
  opacity: 1;
  transform: scale(1);
}

.profile-frame:active img {
  filter: grayscale(0.15) contrast(1.1) saturate(1.05);
  transform: scale(1.05);
}

.section-heading {
  margin-bottom: 2.2rem;
}

.skills-grid,
.links-grid,
.project-grid {
  display: grid;
  gap: 1.25rem;
}

.skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-card {
  background:
    linear-gradient(180deg, rgba(69, 199, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(21, 31, 51, 0.88);
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.skill-card--wide {
  grid-column: 1 / -1;
}

.skill-card h3 {
  color: var(--text);
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.skill-list {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skill-list--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-item {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1rem;
  cursor: pointer;
  display: grid;
  gap: 0.35rem 0.9rem;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon name"
    "icon meta";
  min-height: 76px;
  padding: 0.95rem 1rem;
  position: relative;
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
  user-select: none;
}

.skill-item:hover {
  background: rgba(69, 199, 255, 0.08);
  border-color: rgba(69, 199, 255, 0.4);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.14);
  transform: translateY(-5px) scale(1.01);
}

.skill-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(69, 199, 255, 0.22), 0 18px 34px rgba(0, 0, 0, 0.14);
}

.skill-item.is-active {
  background:
    linear-gradient(180deg, rgba(69, 199, 255, 0.14), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.05);
  border-color: var(--skill-tone, var(--accent));
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.28),
    0 0 0 1px var(--skill-tone-soft, rgba(69, 199, 255, 0.18)),
    0 0 36px var(--skill-tone-soft, rgba(69, 199, 255, 0.18));
  padding: 1.15rem 1.1rem 1.25rem;
  transform: translateY(-10px) scale(1.12);
  z-index: 2;
}

.skill-item.is-active .skill-icon {
  transform: scale(1.16) rotate(-2deg);
}

.skill-icon {
  align-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16), transparent 46%),
    linear-gradient(145deg, rgba(69, 199, 255, 0.24), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(69, 199, 255, 0.28);
  border-radius: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(69, 199, 255, 0.18);
  color: var(--accent);
  grid-area: icon;
  display: inline-flex;
  flex: 0 0 auto;
  height: 3rem;
  justify-content: center;
  width: 3rem;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, filter 0.28s ease;
}

.skill-icon img,
.skill-icon svg {
  height: 1.7rem;
  width: 1.7rem;
  filter: drop-shadow(0 0 10px rgba(69, 199, 255, 0.24));
}

.skill-icon img {
  object-fit: contain;
}

.skill-name {
  grid-area: name;
  color: var(--text);
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
  transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 2.2rem;
  overflow: hidden;
}

.skill-item.is-active .skill-name {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
}

.skill-meta {
  grid-area: meta;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
}

.skill-item.is-active .skill-meta {
  max-height: 52px;
  opacity: 1;
  transform: translateY(0);
}

.skill-mastery-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  height: 0.6rem;
  overflow: hidden;
}

.skill-mastery-fill {
  background: linear-gradient(90deg, var(--skill-tone, var(--accent)), rgba(255, 255, 255, 0.95));
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0;
}

.skill-item.is-active .skill-mastery-fill {
  width: var(--skill-level, 70%);
}

.skill-item.is-active .skill-mastery-track {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 18px var(--skill-tone-soft, rgba(69, 199, 255, 0.18));
}

.skill-item[data-tech="flask"] .skill-icon {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), transparent 40%),
    linear-gradient(145deg, #ff8a4c, #ff4d8d 55%, #7c5cff);
  border-color: rgba(255, 141, 108, 0.42);
}

.skill-item[data-tech="flask"] .skill-icon img {
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.18));
}

.skill-item[data-tech="django"] .skill-icon {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), transparent 40%),
    linear-gradient(145deg, #39d353, #14b8a6 60%, #2563eb);
  border-color: rgba(58, 211, 96, 0.42);
}

.skill-item[data-tech="django"] .skill-icon img {
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.18));
}

.card,
.timeline-card,
.link-card,
.project-card,
.contact-form {
  background: rgba(21, 31, 51, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.card {
  min-height: 230px;
  padding: 1.4rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover,
.link-card:hover,
.project-card:hover {
  border-color: rgba(69, 199, 255, 0.5);
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tag-list li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.48rem 0.7rem;
}

.tag-list strong {
  color: var(--accent);
  font-size: 0.72rem;
  margin-left: 0.25rem;
}

.alt-section {
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.split-section,
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.8fr 1.2fr;
}

.timeline-card {
  display: grid;
  gap: 1.2rem;
  padding: 1.6rem;
}

.education-timeline {
  position: relative;
}

.education-timeline::before {
  background: linear-gradient(180deg, rgba(69, 199, 255, 0.85), rgba(139, 92, 246, 0.7));
  border-radius: 999px;
  content: "";
  left: 1.9rem;
  opacity: 0.45;
  position: absolute;
  top: 1.8rem;
  bottom: 1.8rem;
  width: 2px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.education-timeline.visible::before {
  transform: scaleY(1);
}

.timeline-item {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  margin-left: 1.6rem;
  padding: 1.1rem 1.1rem 1.1rem 1.35rem;
  position: relative;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
  transition-delay: var(--item-delay, 0ms);
}

.timeline-item::before {
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(69, 199, 255, 0.12);
  content: "";
  height: 0.8rem;
  left: -2rem;
  position: absolute;
  top: 1.2rem;
  width: 0.8rem;
}

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

.timeline-item:hover {
  background:
    linear-gradient(135deg, rgba(69, 199, 255, 0.09), rgba(139, 92, 246, 0.06)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(69, 199, 255, 0.26);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
  transform: translateY(-4px) scale(1.01);
}

.timeline-item + .timeline-item {
  margin-top: 0.9rem;
}

.timeline-item p:last-child {
  color: var(--muted);
  margin-top: 0.45rem;
}

.timeline-label,
.tech-used {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.timeline-card p {
  color: var(--muted);
}

.education-timeline .timeline-item:nth-child(1)::before {
  box-shadow: 0 0 0 6px rgba(69, 199, 255, 0.12);
}

.education-timeline .timeline-item:nth-child(2)::before {
  background: linear-gradient(180deg, #22c55e, #16a6e3);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.education-timeline .timeline-item:nth-child(3)::before {
  background: linear-gradient(180deg, #f59e0b, #ef4444);
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.12);
}

.education-timeline .timeline-item:nth-child(4)::before {
  background: linear-gradient(180deg, #8b5cf6, #45c7ff);
  box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.12);
}

.featured-grid,
.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.single-project {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.project-card {
  overflow: hidden;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
  width: 100%;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 15%, rgba(69, 199, 255, 0.08) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.project-card:hover {
  border-color: rgba(69, 199, 255, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24), 0 0 28px rgba(69, 199, 255, 0.08);
  transform: translateY(-6px);
}

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

.project-card:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.045);
}

.project-card .project-body {
  position: relative;
  z-index: 2;
}

.project-body {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badges span {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.38rem 0.7rem;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-actions .btn {
  min-height: 42px;
  padding-inline: 1rem;
}

.project-body p {
  color: var(--muted);
}

.project-body .tech-used {
  margin-top: 0.15rem;
}

.project-body .btn {
  justify-self: start;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.resume-band {
  padding-top: 2.5rem;
}

.resume-panel {
  background:
    linear-gradient(135deg, rgba(69, 199, 255, 0.08), rgba(139, 92, 246, 0.08)),
    rgba(21, 31, 51, 0.88);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 18px 50px rgba(0, 0, 0, 0.18);
  padding: 1.6rem;
}

.resume-kicker {
  color: var(--muted);
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.22rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.resume-actions {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resume-action {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  display: inline-flex;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 800;
  gap: 0.9rem;
  justify-content: flex-start;
  letter-spacing: 0.08rem;
  min-height: 98px;
  padding: 1.25rem 1.4rem;
  text-transform: uppercase;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.resume-action:hover {
  border-color: rgba(69, 199, 255, 0.5);
  transform: translateY(-3px);
}

.resume-action-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.resume-action-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.resume-action-secondary {
  background: transparent;
  color: var(--text);
}

.resume-action-secondary:hover {
  color: var(--accent);
}

.resume-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 1.15rem;
}

.resume-icon svg {
  height: 1.15rem;
  width: 1.15rem;
}

.links-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-card {
  align-content: start;
  display: grid;
  gap: 0.7rem;
  min-height: 150px;
  padding: 1.4rem;
  position: relative;
  transition:
    transform 0.2s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
  overflow: hidden;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 199, 255, 0.16), transparent 65%);
  opacity: 0.5;
  transition: transform 0.4s ease, opacity 0.28s ease;
  pointer-events: none;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.link-card:hover::before {
  opacity: 0.9;
  transform: scale(1.18);
}

.link-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  color: var(--accent);
  display: inline-flex;
  height: 3rem;
  justify-content: center;
  width: 3rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.link-icon svg {
  height: 1.5rem;
  width: 1.5rem;
}

.link-title {
  color: var(--text);
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  word-break: break-word;
}

.link-card p {
  color: var(--muted);
  max-width: 16rem;
}

.link-card:hover .link-icon {
  transform: translateY(-2px) rotate(-4deg) scale(1.08);
  box-shadow: 0 14px 30px rgba(69, 199, 255, 0.14);
}

.link-github .link-icon {
  color: #f7f7f7;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
}

.link-linkedin .link-icon {
  color: #4da3ff;
  background: linear-gradient(145deg, rgba(77, 163, 255, 0.18), rgba(77, 163, 255, 0.06));
}

.link-leetcode .link-icon {
  color: #f59e0b;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.2), rgba(234, 179, 8, 0.06));
}

.link-portfolio .link-icon {
  color: #45c7ff;
  background: linear-gradient(145deg, rgba(69, 199, 255, 0.2), rgba(139, 92, 246, 0.08));
}

.link-github:hover {
  border-color: rgba(247, 247, 247, 0.28);
}

.link-linkedin:hover {
  border-color: rgba(77, 163, 255, 0.34);
}

.link-leetcode:hover {
  border-color: rgba(245, 158, 11, 0.34);
}

.link-portfolio:hover {
  border-color: rgba(69, 199, 255, 0.34);
}

.contact-details {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.contact-details a,
.contact-details span {
  color: var(--muted);
}

.timeline-card,
.skill-card,
.project-card,
.link-card,
.resume-panel,
.contact-form {
  backdrop-filter: blur(14px);
}

.contact-details a:hover {
  color: var(--accent);
}

.contact-form {
  display: grid;
  gap: 0.8rem;
  padding: 1.4rem;
}

.contact-form label {
  color: var(--muted);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  padding: 0.9rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(69, 199, 255, 0.14);
  outline: none;
}

.form-status {
  color: var(--accent);
  min-height: 1.5rem;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.32), rgba(8, 11, 18, 0.78)),
    linear-gradient(225deg, rgba(69, 199, 255, 0.28), rgba(8, 11, 18, 0.62)),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1600&q=80") center / cover;
  border-bottom: 1px solid var(--line);
  min-height: 440px;
  padding-top: 8rem;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.bottom-line {
  padding: 3rem 0;
  text-align: center;
}

.bottom-line p {
  color: var(--muted);
  font-size: 1.1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--soft-muted);
  padding: 1.5rem 0;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@media (max-width: 900px) {
  .section-pad {
    padding: 4.5rem 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .split-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 2rem;
  }

  .profile-frame {
    width: 280px;
    height: 280px;
    max-width: 520px;
    justify-self: center;
  }

  .skills-grid,
  .links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skill-list--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .education-timeline::before {
    left: 1.65rem;
  }

  .link-card {
    min-height: 170px;
  }
}

@media (max-width: 720px) {
  .navbar {
    min-height: 68px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    align-items: stretch;
    background: rgba(17, 24, 39, 0.98);
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 0;
    left: 0;
    opacity: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 68px;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
  }

  .nav-button {
    margin-top: 0.4rem;
    text-align: center;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .resume-actions {
    grid-template-columns: 1fr;
  }

  .resume-action {
    min-height: 92px;
  }

  .skills-grid,
  .featured-grid,
  .project-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .link-card {
    min-height: 156px;
  }

  .skill-list,
  .skill-list--wide {
    grid-template-columns: 1fr;
  }

  .education-timeline::before {
    left: 1.45rem;
  }

  .timeline-item {
    margin-left: 1.35rem;
  }

  .timeline-item::before {
    left: -1.8rem;
  }

  .card {
    min-height: auto;
  }

  .project-actions {
    flex-direction: column;
  }

  .project-actions .btn {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .hero-text,
  .section-heading p,
  .page-hero p {
    font-size: 1rem;
  }

  .profile-frame img {
    aspect-ratio: 1 / 1;
  }

  .profile-frame {
    width: 240px;
    height: 240px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .profile-frame {
    box-shadow:
      0 0 0 1px rgba(69, 199, 255, 0.28),
      0 30px 84px rgba(69, 199, 255, 0.22),
      0 0 36px rgba(69, 199, 255, 0.12);
    transform: translateY(-2px);
  }

  .profile-frame::before {
    opacity: 1;
    transform: scale(1);
  }

  .profile-frame img {
    filter: grayscale(0.25) contrast(1.1) saturate(1.04);
    transform: scale(1.03);
  }
}

/* Adjust active skill card scaling on mobile viewports to prevent layout overflow */
@media (max-width: 720px) {
  .skill-item.is-active {
    transform: translateY(-4px) scale(1.03) !important;
    padding: 1.05rem 1.1rem 1.15rem !important;
  }
}

/* ==========================================================================
   NEW CREATIVE LANDING PAGE & PRELOADER STYLES
   ========================================================================== */

/* Preloader Screen */
.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #05070a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 1;
  visibility: visible;
}

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

.preloader-terminal {
  width: 90%;
  max-width: 520px;
  background: #0c0f17;
  border: 1px solid rgba(69, 199, 255, 0.2);
  border-radius: 12px;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.6), 
    0 0 40px rgba(69, 199, 255, 0.05);
  overflow: hidden;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.terminal-header {
  background: #111622;
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.term-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.term-dot.red { background: #ef4444; }
.term-dot.yellow { background: #f59e0b; }
.term-dot.green { background: #10b981; }

.terminal-title {
  color: var(--soft-muted);
  font-size: 0.76rem;
  margin-left: auto;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.terminal-body {
  padding: 1.6rem;
  color: #38bdf8;
  font-size: 0.92rem;
  line-height: 1.65;
  min-height: 200px;
  text-align: left;
}

.terminal-line {
  margin-bottom: 0.55rem;
  display: block;
}

.terminal-line.success {
  color: #4ade80;
}

.terminal-line.info {
  color: #94a3b8;
}

.terminal-cursor-indicator {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: #38bdf8;
  margin-left: 3px;
  animation: terminal-blink 0.8s step-end infinite;
  vertical-align: middle;
}

@keyframes terminal-blink {
  from, to { background: transparent }
  50% { background: #38bdf8 }
}

/* Fullscreen Landing Page */
.hero.landing-page {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(139, 92, 246, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 70%, rgba(69, 199, 255, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 50% 90%, rgba(56, 189, 248, 0.1) 0%, transparent 60%),
    var(--bg);
}

/* Animated aurora blobs */
.hero.landing-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 32% at 18% 22%, rgba(139, 92, 246, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse 40% 28% at 82% 75%, rgba(69, 199, 255, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 30% 22% at 55% 55%, rgba(56, 189, 248, 0.12) 0%, transparent 60%);
  animation: aurora-drift 12s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

.hero.landing-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 36% 28% at 70% 18%, rgba(168, 85, 247, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 28% 22% at 30% 78%, rgba(34, 211, 238, 0.14) 0%, transparent 55%);
  animation: aurora-drift 16s ease-in-out infinite alternate-reverse;
  z-index: 0;
  pointer-events: none;
}

@keyframes aurora-drift {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(2%,3%) scale(1.04); }
  66%  { transform: translate(-2%,-2%) scale(0.97); }
  100% { transform: translate(1%,-3%) scale(1.02); }
}

#landing-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.landing-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(69, 199, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 199, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
  z-index: 2;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, black, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, black, transparent 82%);
  animation: grid-pulse 6s ease-in-out infinite;
}

@keyframes grid-pulse {
  0%, 100% { opacity: 0.65; }
  50%       { opacity: 1; }
}

.cursor-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(69, 199, 255, 0.09), transparent 70%);
  z-index: 3;
  pointer-events: none;
}

.relative-z {
  position: relative;
  z-index: 5;
  width: 100%;
}

.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(69, 199, 255, 0.08);
  border: 1px solid rgba(69, 199, 255, 0.22);
  border-radius: 999px;
  color: var(--accent);
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(69, 199, 255, 0.04);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.badge-pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  animation: pulse-ring 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.85; }
  50% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.text-glow {
  text-shadow: 0 0 25px rgba(69, 199, 255, 0.28);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typewriter-container {
  font-size: clamp(1.25rem, 2.4vw, 2.05rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  min-height: 3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.typewriter-cursor {
  color: var(--accent);
  font-weight: 400;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  from, to { opacity: 0 }
  50% { opacity: 1 }
}

.btn-glow {
  position: relative;
  box-shadow: 0 0 20px rgba(69, 199, 255, 0.12);
}

.btn-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-violet));
  border-radius: inherit;
  z-index: -1;
  opacity: 0.35;
  filter: blur(4px);
  transition: opacity 0.3s ease;
}

.btn-glow:hover::after {
  opacity: 0.75;
}

/* 3D Profile Frame Tilt */
.hero-image-wrapper {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-card {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  cursor: pointer;
}

.profile-card .profile-frame {
  margin: 0;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(69, 199, 255, 0.34);
  background: rgba(21, 31, 51, 0.6);
  transform: translateZ(20px);
}

.card-glow {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 199, 255, 0.22) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  transform: translateZ(-10px);
}

.profile-card:hover .card-glow {
  opacity: 1;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--soft-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  z-index: 5;
  transition: color 0.3s ease, transform 0.3s ease;
}

.scroll-indicator:hover {
  color: var(--accent);
  transform: translateX(-50%) translateY(3px);
}

.scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--line);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .wheel {
  width: 4px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.6s ease-out infinite;
}

@keyframes scroll-wheel {
  0% { top: 6px; opacity: 1; }
  50% { top: 16px; opacity: 0.2; }
  100% { top: 6px; opacity: 1; }
}

/* Responsive Layout Overrides */
@media (max-width: 900px) {
  .hero.landing-page {
    height: auto;
    min-height: 100vh;
    padding: 6.5rem 0 4.5rem;
  }
  .scroll-indicator {
    display: none;
  }
}

/* ==========================================================================
   CAT MASCOT — Animated cat that roams across sections
   ========================================================================== */

.cat-mascot {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9000;
  pointer-events: none;
  user-select: none;
  transition: bottom 0.6s cubic-bezier(0.34,1.56,0.64,1), right 0.6s cubic-bezier(0.34,1.56,0.64,1), transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

.cat-mascot.cat-visible {
  opacity: 1;
}

.cat-mascot.cat-flipped .cat-body {
  transform: scaleX(-1);
}

/* ── Body shell ── */
.cat-body {
  position: relative;
  width: 72px;
  height: 80px;
  transition: transform 0.3s ease;
}

/* ── Head ── */
.cat-head {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 42px;
  background: linear-gradient(160deg, #f8c8d0 0%, #f0a0b0 100%);
  border-radius: 50% 50% 44% 44% / 54% 54% 46% 46%;
  box-shadow: inset 0 -4px 8px rgba(0,0,0,0.12), 0 4px 14px rgba(240,100,140,0.22);
  animation: cat-head-sway 3.2s ease-in-out infinite;
}

@keyframes cat-head-sway {
  0%, 100% { transform: translateX(-50%) rotate(-2deg); }
  50%       { transform: translateX(-50%) rotate(2deg); }
}

/* ── Ears ── */
.cat-ear  { position: absolute; top: -12px; width: 0; height: 0; }
.cat-ear-left  { left: 4px;  border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 16px solid #f0a0b0; }
.cat-ear-right { right: 4px; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 16px solid #f0a0b0; }

.cat-ear-inner {
  position: absolute;
  bottom: -12px;
  left: -5px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 10px solid #ff8fa8;
}

/* ── Face ── */
.cat-face { position: absolute; inset: 0; }

.cat-eye {
  position: absolute;
  top: 16px;
  width: 10px;
  height: 10px;
  background: #1a0a0f;
  border-radius: 50%;
  animation: cat-blink 4.5s ease-in-out infinite;
  overflow: hidden;
}

.cat-eye-left  { left: 9px; }
.cat-eye-right { right: 9px; }

.cat-pupil {
  position: absolute;
  inset: 2px;
  background: #4a1525;
  border-radius: 50%;
}

@keyframes cat-blink {
  0%, 88%, 100% { transform: scaleY(1); }
  91%            { transform: scaleY(0.1); }
}

.cat-nose {
  position: absolute;
  bottom: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 4px;
  background: #ff6680;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.cat-mouth {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 5px;
  border-bottom: 2px solid #e07090;
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
  border-radius: 0 0 50% 50%;
}

/* ── Whiskers ── */
.cat-whiskers { position: absolute; inset: 0; }

.whisker {
  position: absolute;
  height: 1.5px;
  background: rgba(80,20,40,0.5);
  border-radius: 1px;
}

.w1 { width: 18px; bottom: 14px; left: -14px; transform: rotate(-10deg); }
.w2 { width: 18px; bottom: 10px; left: -14px; transform: rotate(10deg);  }
.w3 { width: 18px; bottom: 14px; right: -14px; transform: rotate(10deg); }
.w4 { width: 18px; bottom: 10px; right: -14px; transform: rotate(-10deg);}

/* ── Torso ── */
.cat-torso {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 30px;
  background: linear-gradient(160deg, #f8c8d0 0%, #f0a0b0 100%);
  border-radius: 40% 40% 50% 50%;
  box-shadow: inset 0 -4px 8px rgba(0,0,0,0.1);
}

/* ── Paws ── */
.cat-paws {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
}

.cat-paw {
  width: 14px;
  height: 10px;
  background: #f0a0b0;
  border-radius: 50% 50% 44% 44%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.cat-paw-left  { animation: paw-tap-left  0.55s ease-in-out infinite alternate; }
.cat-paw-right { animation: paw-tap-right 0.55s ease-in-out infinite alternate; }

@keyframes paw-tap-left  { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-3px) rotate(3deg); } }
@keyframes paw-tap-right { from { transform: translateY(-3px) rotate(3deg); } to { transform: translateY(0) rotate(-3deg); } }

/* ── Tail ── */
.cat-tail {
  position: absolute;
  bottom: 8px;
  right: 0;
  width: 24px;
  height: 36px;
  border-top: none;
  border-right: 5px solid #f0a0b0;
  border-bottom: 5px solid #f0a0b0;
  border-radius: 0 0 50% 0;
  transform-origin: top right;
  animation: tail-wag 1.2s ease-in-out infinite alternate;
}

@keyframes tail-wag {
  from { transform: rotate(-20deg); }
  to   { transform: rotate(30deg);  }
}

/* ── Default float animation ── */
.cat-mascot.cat-visible .cat-body {
  animation: cat-float 2.8s ease-in-out infinite;
}

@keyframes cat-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ── Section-specific poses ── */

/* Skills — excited, fast tail wag */
.cat-mascot.pose-skills .cat-tail {
  animation: tail-wag-fast 0.55s ease-in-out infinite alternate;
  border-right-color: #45c7ff;
  border-bottom-color: #45c7ff;
}

@keyframes tail-wag-fast {
  from { transform: rotate(-30deg); }
  to   { transform: rotate(40deg);  }
}

.cat-mascot.pose-skills .cat-head {
  animation: head-excited 0.5s ease-in-out infinite alternate;
}

@keyframes head-excited {
  from { transform: translateX(-50%) rotate(-5deg) translateY(0); }
  to   { transform: translateX(-50%) rotate(5deg)  translateY(-4px); }
}

/* Experience — paw raise, deliberate look */
.cat-mascot.pose-experience .cat-body {
  animation: cat-float 3.5s ease-in-out infinite;
}

.cat-mascot.pose-experience .cat-paw-left {
  animation: paw-raise 1.2s ease-in-out infinite alternate;
}

@keyframes paw-raise {
  from { transform: translateY(0) rotate(0); }
  to   { transform: translateY(-16px) rotate(-30deg); }
}

/* Projects — spin dance */
.cat-mascot.pose-projects .cat-body {
  animation: cat-spin-dance 2.4s ease-in-out infinite;
}

@keyframes cat-spin-dance {
  0%   { transform: rotate(0deg)  translateY(0); }
  25%  { transform: rotate(10deg) translateY(-8px); }
  50%  { transform: rotate(-8deg) translateY(-12px); }
  75%  { transform: rotate(10deg) translateY(-6px); }
  100% { transform: rotate(0deg)  translateY(0); }
}

/* Links — waving paw */
.cat-mascot.pose-links .cat-paw-right {
  transform-origin: bottom center;
  animation: paw-wave 0.65s ease-in-out infinite alternate;
}

@keyframes paw-wave {
  from { transform: translateY(0) rotate(-20deg); }
  to   { transform: translateY(-20px) rotate(22deg); }
}

/* Contact — happy bounce */
.cat-mascot.pose-contact .cat-body {
  animation: cat-bounce 0.6s cubic-bezier(0.34,1.56,0.64,1) infinite alternate;
}

@keyframes cat-bounce {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-12px) scale(1.05); }
}

/* ── Speech bubble ── */
.cat-speech-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: rgba(12, 17, 28, 0.94);
  border: 1px solid rgba(69, 199, 255, 0.38);
  border-radius: 14px 14px 4px 14px;
  color: #f4f7fb;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  max-width: 168px;
  min-width: 90px;
  padding: 0.55rem 0.78rem;
  white-space: pre-line;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35), 0 0 14px rgba(69,199,255,0.1);
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  transition: opacity 0.38s ease, transform 0.38s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}

.cat-speech-bubble.bubble-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Hide on very small screens ── */
@media (max-width: 480px) {
  .cat-mascot { display: none; }
}
