* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --background: rgb(26, 30, 35);
  --background-alt: rgb(33, 38, 45);
  --foreground: 214 35% 95%;
  --muted-foreground: 213 16% 70%;
  --card-bg: rgba(33, 38, 45, 0.94);
  --card-border: rgba(86, 96, 112, 0.28);
  --card-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --text-primary: hsl(var(--foreground));
  --text-secondary: hsl(var(--muted-foreground));
  --accent: hsl(197 88% 66%);
  --accent-strong: hsl(280 65% 62%);
  --accent-magenta: hsl(292 72% 65%);
  --accent-pink: #bb67e4;
  --accent-pink-soft: rgba(187, 103, 228, 0.18);
  --accent-pink-border: rgba(187, 103, 228, 0.38);
  --accent-orange: #ff8f5c;
  --tag-bg: rgba(53, 60, 72, 0.55);
  --border-strong: rgba(74, 84, 99, 0.35);
  --border-subtle: rgba(76, 86, 101, 0.35);
  --border-soft: rgba(82, 94, 112, 0.38);
  --border-hover: #47cfeb;
  --radius-base: 6px;
  --radius-medium: 10px;
  --radius-large: 12px;
  --radius-pill: 999px;
  --shadow-elevated: 0 18px 40px rgba(0, 0, 0, 0.45);
  --transition-base: 0.22s ease;
  --transition-quick: 0.18s ease;
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-secondary);
  background: var(--background);
  min-height: 100vh;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 29, 0) 0%, rgba(20, 24, 29, 0.85) 100%);
  z-index: -2;
}

.background-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 12% 18%, rgba(79, 153, 218, 0.08), transparent 60%),
    radial-gradient(circle at 84% 12%, rgba(167, 120, 255, 0.06), transparent 52%);
  z-index: -1;
}

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

.app {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 40px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app main > section {
  margin: 24px 0;
}

.section-fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.top-nav {
  position: static;
  width: 100%;
  max-width: min(calc(100% - 48px), 1200px);
  margin: 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(31, 36, 43, 0.95);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-base);
  padding: 12px 20px;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

@media (min-width: 901px) {
  .top-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 48px), 1200px);
    margin: 0;
  }
}

.nav-path {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: var(--accent);
  letter-spacing: 0.04em;
}

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

.nav-command {
  color: var(--accent);
  text-transform: lowercase;
}

.nav-location {
  color: var(--accent);
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

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

.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  text-transform: lowercase;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:focus-visible {
  outline: none;
  border-color: hsla(190, 80%, 60%, 0.55);
  box-shadow: 0 0 0 3px hsla(190, 80%, 60%, 0.28);
}

.nav-link:hover {
  color: rgba(190, 212, 251, 0.95);
  background: rgba(47, 55, 66, 0.85);
  border-color: rgba(81, 93, 112, 0.45);
  box-shadow: none;
}

.nav-link.active {
  color: rgba(190, 212, 251, 0.95);
  background: rgba(54, 63, 75, 0.9);
  border-color: rgba(116, 150, 214, 0.55);
  box-shadow: none;
}

.nav-label {
  letter-spacing: 0.04em;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
}

.nav-link .typing-indicator {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-link.active .typing-indicator {
  display: inline-flex;
}

.nav-link .typing-indicator span {
  background-color: var(--accent);
  height: 4px;
  width: 4px;
  border-radius: 50%;
  opacity: 0.4;
  animation: bouncing 1s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link .typing-indicator span:nth-child(1) {
  animation-delay: 0.15s;
}

.nav-link .typing-indicator span:nth-child(2) {
  animation-delay: 0.3s;
}

.nav-link .typing-indicator span:nth-child(3) {
  animation-delay: 0.45s;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 24px;
  backdrop-filter: none;
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: #47cfeb;
}

.hero-card {
  padding: 18px 26px 24px;
}

.terminal-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(82, 92, 108, 0.35);
  margin-bottom: 20px;
}

.terminal-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

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

.dot.red {
  background: #ff5f57;
}

.dot.yellow {
  background: #febb2e;
}

.dot.green {
  background: #28c940;
}

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: "JetBrains Mono", monospace;
  color: #94a3b8;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.terminal-icon {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(39, 45, 54, 0.94);
  color: rgba(163, 208, 255, 0.92);
  box-shadow: none;
}

.terminal-icon svg {
  width: 18px;
  height: 18px;
}

.terminal-body {
  display: grid;
  gap: 18px;
}

.terminal-command {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  color: #4ec9b0;
  letter-spacing: 0.02em;
}

.terminal-command-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.terminal-command-icon svg {
  width: 18px;
  height: 18px;
}

.terminal-command-text {
  color: inherit;
  font-size: 1rem;
  text-transform: none;
  position: relative;
}

.terminal-command-text::after {
  content: "";
  display: none;
  width: 0.3ch;
  height: 1.1em;
  margin-left: 6px;
  border-radius: 6px;
  background: #47cfeb;
  color: #47cfeb;
}

.terminal-command-text.terminal-typing::after {
  display: inline-block;
  animation: terminalCaretTyping 1s steps(2, start) infinite;
}

.terminal-command-text.terminal-caret::after {
  display: inline-block;
  animation: terminalCaretBlink 1.05s steps(1, end) infinite;
}

@keyframes terminalCaretTyping {
  0%,
  50% {
    opacity: 1;
  }
  50.1%,
  100% {
    opacity: 0;
  }
}

@keyframes terminalCaretBlink {
  0%,
  45% {
    opacity: 1;
  }
  55%,
  100% {
    opacity: 0;
  }
}

.hero-content {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(92, 108, 128, 0.55);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(34, 40, 48, 0.96);
  color: var(--text-primary);
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

.hero-content h1 {
  margin: 0;
  font-weight: normal;
  color: #47cfeb;
  font-size: 2.25rem;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.hero-name {
  color: #47cfeb;
}

.hero-name-text {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.hero-name-text::after {
  content: "_";
  display: inline-block;
  width: 0.65ch;
  margin-left: 6px;
  color: #47cfeb;
  animation: hero-caret-underscore 1.05s steps(1, end) infinite;
}

.hero-role {
  font-size: 1.5rem;
  font-weight: 300;
  color: #94a3b8;
  white-space: normal;
}

@keyframes hero-caret-underscore {
  0%,
  45% {
    opacity: 1;
  }
  55%,
  100% {
    opacity: 0;
  }
}

@keyframes hero-gap-wobble {
  0%,
  45% {
    gap: 16px;
  }
  55%,
  100% {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-name {
    animation: none;
    gap: 16px;
  }

  .hero-name-text::after {
    animation: none;
    opacity: 1;
    width: 0.65ch;
    margin-left: 6px;
    color: #47cfeb;
  }

  .terminal-command-text.terminal-typing::after,
  .terminal-command-text.terminal-caret::after {
    animation: none;
    opacity: 1;
  }
}

.hero-text {
  margin: 0;
  color: #ffffff;
}

.hero-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
  width: 100%;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border: none;
  border-radius: 8px;
  background: rgba(36, 44, 55, 0.6);
  color: rgba(223, 229, 240, 0.94);
  font-size: 0.96rem;
  font-weight: 500;
  font-family: "JetBrains Mono", monospace;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0.03em;
  transition: color var(--transition-quick), background var(--transition-quick), transform var(--transition-quick);
}

.hero-pill:hover,
.hero-pill:focus-visible {
  color: #47cfeb;
  background: rgba(71, 207, 235, 0.12);
  transform: translateY(-1px);
}

.hero-pill:focus-visible {
  outline: none;
}

.hero-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: inherit;
}

.hero-pill-icon svg {
  width: 18px;
  height: 18px;
  color: inherit;
}

.hero-pill-external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: inherit;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity var(--transition-quick), transform var(--transition-quick), visibility var(--transition-quick);
}

.hero-pill:hover .hero-pill-external,
.hero-pill:focus-visible .hero-pill-external {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.hero-pill-external svg {
  width: 16px;
  height: 16px;
}


.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 32px;
}

.section-header h2 {
  margin: 0;
  color: #47cfeb;
  font-size: 1.4rem;
  font-weight: normal;
  display: flex;
  gap: 12px;
  align-items: center;
}

.section-icon {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.section-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.section-command {
  width: 100%;
}

.experience-card .experience-item + .experience-item {
  border-top: 1px solid rgba(78, 88, 104, 0.35);
  margin-top: 28px;
  padding-top: 28px;
}

.experience-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.experience-heading h3 {
  margin: 0;
  color: #47cfeb;
  font-size: 1.4rem;
  font-weight: normal;
}

.role {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 720px;
}

.experience-date {
  font-family: "JetBrains Mono", monospace;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.experience-date-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.experience-location {
  color: var(--text-secondary);
}

.tag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 20px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  background: var(--tag-bg);
  color: var(--text-primary);
  border: 1px solid rgba(82, 94, 112, 0.38);
}

.experience-item ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.education-note {
  margin: 14px 0 0;
  color: var(--text-secondary);
}

.projects-terminal {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.projects-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.projects-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.5rem;
  font-weight: normal;
  color: #47cfeb;
}

.projects-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(71, 207, 235, 0.14);
  color: #47cfeb;
}

.projects-title-icon svg {
  width: 18px;
  height: 18px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(76, 86, 101, 0.32);
  background: rgba(26, 32, 40, 0.92);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(71, 207, 235, 0.55);
  box-shadow: 0 16px 32px rgba(10, 14, 22, 0.45);
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 30% 30%, rgba(71, 207, 235, 0.05), transparent 60%), rgba(22, 27, 35, 0.9);
  border-bottom: 1px solid rgba(71, 207, 235, 0.16);
  overflow: hidden;
}

.project-media iframe,
.project-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-media iframe {
  background: #000;
}

.project-media img {
  object-fit: cover;
}

.project-image-contain {
  object-fit: contain;
  background: rgba(20, 24, 32, 0.9);
  padding: 12px;
}

.project-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-placeholder {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.2rem;
  letter-spacing: 6px;
  color: rgba(199, 206, 219, 0.85);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.project-placeholder span {
  letter-spacing: 4px;
  color: rgba(161, 198, 245, 0.8);
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}

.project-text {
  display: grid;
  gap: 12px;
}

.project-text h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: normal;
  color: #47cfeb;
}

.project-description {
  margin: 0;
  color: rgba(223, 230, 242, 0.94);
  line-height: 1.6;
}

.project-subtext {
  margin: 0;
  color: rgba(166, 177, 196, 0.88);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  background: var(--accent-pink-soft);
  border: 1px solid var(--accent-pink-border);
  color: #bb67e4;
  letter-spacing: 0.02em;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  color: rgba(224, 232, 245, 0.92);
  background: rgba(38, 45, 55, 0.72);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.project-link svg {
  width: 16px;
  height: 16px;
}

.project-link:hover,
.project-link:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.project-link-primary {
  background: rgba(71, 207, 235, 0.18);
  border-color: rgba(71, 207, 235, 0.4);
  color: #47cfeb;
}

.project-link-primary:hover,
.project-link-primary:focus-visible {
  background: rgba(71, 207, 235, 0.26);
  border-color: rgba(71, 207, 235, 0.55);
}

.project-link-outline {
  border-color: rgba(92, 104, 122, 0.54);
  background: rgba(30, 36, 44, 0.7);
}

.project-link-outline:hover,
.project-link-outline:focus-visible {
  border-color: rgba(71, 207, 235, 0.45);
  color: #47cfeb;
}

.project-link-ghost {
  border-color: rgba(71, 207, 235, 0.28);
  background: rgba(71, 207, 235, 0.1);
  color: rgba(194, 217, 238, 0.95);
}

.project-link-ghost:hover,
.project-link-ghost:focus-visible {
  border-color: rgba(71, 207, 235, 0.45);
  color: #47cfeb;
}

.project-link-live {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  color: #f9f1ff;
}

.project-link-live:hover,
.project-link-live:focus-visible {
  background: #c47cf0;
  border-color: #c47cf0;
}

.project-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(53, 60, 72, 0.6);
  border: 1px solid rgba(86, 96, 112, 0.45);
  color: rgba(205, 214, 226, 0.85);
}

.projects-footer {
  display: flex;
  justify-content: center;
}

.projects-view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(71, 207, 235, 0.35);
  background: rgba(71, 207, 235, 0.12);
  color: #47cfeb;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.projects-view-all svg {
  width: 16px;
  height: 16px;
}

.projects-view-all:hover,
.projects-view-all:focus-visible {
  transform: translateX(4px);
  background: rgba(71, 207, 235, 0.2);
  border-color: rgba(71, 207, 235, 0.55);
  outline: none;
}

.skills-card .skills-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.skill-group {
  background: rgba(32, 38, 45, 0.94);
  border: 1px solid rgba(74, 84, 99, 0.3);
  border-radius: 8px;
  padding: 8px 20px;
  display: grid;
  gap: 8px;
  transition: border-color 0.2s ease;
}

.skill-group-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(77, 85, 87, 0.12);
  color: #47cfeb;
}

.skill-icon svg {
  width: 18px;
  height: 18px;
}

.skill-group:hover {
  border-color: #47cfeb;
}

.skill-group h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: "JetBrains Mono", monospace;
}

.skill-group p {
  margin: 0;
}

.achievements-card {
  padding-top: 28px;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.achievement {
  background: rgba(33, 39, 47, 0.95);
  border: 1px solid rgba(76, 86, 101, 0.32);
  border-radius: 8px;
  padding: 20px;
  display: grid;
  gap: 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease;
}

.achievement:hover {
  border-color: #47cfeb;
}

.achievement h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.achievement p {
  margin: 0;
}

.contact-card {
  padding: 26px 32px;
  background: rgba(32, 38, 46, 0.96);
  border: 1px solid rgba(86, 96, 112, 0.35);
  box-shadow: var(--shadow-elevated);
}

.contact-terminal {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.contact-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(71, 207, 235, 0.12);
  color: #47cfeb;
}

.contact-title-icon svg {
  width: 20px;
  height: 20px;
}

.contact-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.contact-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-description {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.contact-links {
  display: grid;
  gap: 14px;
  width: 100%;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-medium);
  border: 1px solid rgba(79, 90, 108, 0.35);
  background: rgba(37, 44, 54, 0.88);
  color: var(--text-primary);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  width: 100%;
}

.contact-link:hover,
.contact-link:focus-visible {
  background: rgba(71, 207, 235, 0.14);
  border-color: rgba(71, 207, 235, 0.4);
  transform: translateY(-1px);
  outline: none;
}

.contact-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(71, 207, 235, 0.12);
  color: #47cfeb;
  flex-shrink: 0;
}

.contact-link-icon svg {
  width: 20px;
  height: 20px;
}

.contact-link-text {
  flex: 1;
  min-width: 0;
  font-size: 0.98rem;
  color: rgba(223, 230, 242, 0.92);
  overflow-wrap: anywhere;
}

.contact-link-external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: rgba(199, 210, 230, 0.65);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-link:hover .contact-link-external,
.contact-link:focus-visible .contact-link-external {
  opacity: 1;
  transform: translateX(0);
}

.contact-content > * {
  min-width: 0;
}

.contact-panel {
  width: 100%;
  background: rgba(23, 28, 36, 0.92);
  border: 1px solid rgba(86, 96, 112, 0.32);
  border-radius: var(--radius-medium);
  padding: 28px 24px;
  display: grid;
  gap: 20px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}

.contact-panel-title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.contact-panel-actions {
  display: grid;
  gap: 12px;
}

.contact-panel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-medium);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  width: 100%;
  text-align: center;
  flex-wrap: wrap;
}

.contact-panel-btn svg {
  width: 18px;
  height: 18px;
}

.contact-panel-btn span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-panel-btn.primary {
  background: #47cfeb;
  border-color: #47cfeb;
  color: rgba(12, 20, 26, 0.92);
}

.contact-panel-btn.primary:hover,
.contact-panel-btn.primary:focus-visible {
  background: #5fd4ed;
  border-color: #5fd4ed;
  transform: translateY(-1px);
  outline: none;
}

.contact-panel-btn.accent {
  background: rgba(167, 120, 255, 0.18);
  border-color: rgba(167, 120, 255, 0.4);
  color: rgba(219, 208, 255, 0.94);
}

.contact-panel-btn.accent:hover,
.contact-panel-btn.accent:focus-visible {
  background: rgba(167, 120, 255, 0.28);
  border-color: rgba(167, 120, 255, 0.55);
  transform: translateY(-1px);
  outline: none;
}

.contact-panel-btn.outline {
  background: rgba(38, 45, 56, 0.65);
  border-color: rgba(96, 110, 132, 0.6);
  color: rgba(221, 229, 243, 0.9);
}

.contact-panel-btn.outline:hover,
.contact-panel-btn.outline:focus-visible {
  border-color: rgba(71, 207, 235, 0.45);
  color: #47cfeb;
  transform: translateY(-1px);
  outline: none;
}

.contact-panel-terminal {
  background: rgba(24, 29, 36, 0.88);
  border: 1px solid rgba(79, 90, 108, 0.35);
  border-radius: var(--radius-medium);
  padding: 16px;
  display: grid;
  gap: 8px;
  font-size: 0.85rem;
}

.contact-panel-terminal h4 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.contact-panel-terminal code {
  font-family: "JetBrains Mono", monospace;
  color: #47cfeb;
}

.contact-panel-footnote {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(182, 192, 208, 0.75);
}

.contact-panel-footnote p {
  margin: 0;
}

.footer {
  text-align: center;
  padding: 28px;
  display: grid;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-secondary);
  transition: border-color 0.2s ease;
  border-radius: 8px;
}

.footer p {
  margin: 0;
}

@keyframes bouncing {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .top-nav {
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin: 0;
    padding: 16px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero-content {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy {
    align-items: flex-start;
    text-align: left;
  }

  .hero-links {
    justify-content: flex-start;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-command {
    white-space: normal;
  }

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

@media (max-width: 768px) {
  .nav-path {
    font-size: 0.9rem;
    white-space: normal;
    line-height: 1.4;
  }

  .nav-links {
    justify-content: center;
  }

  .nav-link {
    gap: 8px;
    font-size: 0.9rem;
    padding: 6px 8px;
  }

  .hero-card {
    padding: 20px;
  }

  .hero-content {
    align-items: center;
    gap: 24px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .hero-name {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .hero-role {
    font-size: 1.2rem;
  }

  .hero-text {
    font-size: 0.98rem;
  }

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

  .experience-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .experience-date {
    align-items: flex-start;
  }

  .experience-item ul {
    padding-left: 18px;
  }

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

  .project-content {
    padding: 20px;
  }

  .project-links {
    justify-content: flex-start;
  }

  .skills-card .skills-grid,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 24px;
  }

  .contact-terminal {
    gap: 24px;
  }
}

/* Company logos and headers */
.company-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.company-logo {
  width: 64px;
  height: 64px;
  object-fit: scale-down;
  border-radius: 8px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(82, 94, 112, 0.3);
}

/* See More inline links */
.see-more-link {
  color: rgba(71, 207, 235, 0.7);
  font-size: 0.9rem;
  font-style: italic;
  text-decoration: none;
  border-bottom: 1px solid rgba(71, 207, 235, 0.3);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.see-more-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Modal styles */
.modal-container {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-container.active {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 71, 71, 0.15);
  border-color: rgba(255, 71, 71, 0.3);
  color: #ff4747;
}

#modal-body {
  padding: 32px;
  color: var(--text-primary);
  font-family: "JetBrains Mono", monospace;
}

#modal-body h2 {
  color: var(--accent);
  margin: 0 0 24px 0;
  font-size: 1.8rem;
}

#modal-body h3 {
  color: var(--text-primary);
  margin: 24px 0 12px 0;
  font-size: 1.2rem;
}

#modal-body ul {
  margin: 16px 0;
  padding-left: 24px;
  line-height: 1.8;
}

#modal-body li {
  margin: 8px 0;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .app {
    padding: 80px 16px 64px;
  }

  .card {
    padding: 24px;
  }

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

  .experience-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-links {
    width: 100%;
    justify-content: center;
  }
  
  .company-header {
    gap: 12px;
  }
  
  .company-logo {
    width: 40px;
    height: 40px;
  }

  .contact-card {
    padding: 28px 20px;
  }

  .contact-panel {
    padding: 20px;
  }

  .contact-panel-actions {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .app {
    padding: 72px 12px 56px;
    gap: 12px;
  }

  .top-nav {
    padding: 14px 12px;
    gap: 12px;
  }

  .nav-path {
    font-size: 0.82rem;
  }

  .nav-link {
    font-size: 0.82rem;
    padding: 6px;
  }

  .hero-card {
    padding: 18px;
  }

  .hero-content {
    gap: 20px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-role {
    font-size: 1.05rem;
  }

  .hero-text {
    font-size: 0.92rem;
  }

  .hero-links {
    gap: 10px;
  }

  .hero-pill {
    width: 100%;
    justify-content: center;
  }

  .tag-row span,
  .project-tag,
  .project-chip {
    font-size: 0.7rem;
    padding: 5px 10px;
  }

  .project-content {
    padding: 18px;
    gap: 16px;
  }

  .project-links {
    gap: 10px;
  }

  .contact-link {
    padding: 12px 14px;
  }

  .contact-panel {
    padding: 18px;
  }

  .contact-panel-btn {
    flex-direction: column;
    align-items: center;
  }
}
