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

:root {
  --primary-color: #8a2be2;
  --primary-dark: #6a1b9a;
  --primary-light: #ab47bc;
  --secondary-color: #000000;
  --dark-navy: #0a0a0a;
  --light-navy: #1a1a1a;
  --lightest-navy: #2a2a2a;
  --slate: #888888;
  --light-slate: #aaaaaa;
  --lightest-slate: #cccccc;
  --white: #e6e6e6;
  --font-mono: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;
  --font-sans: "Inter", "San Francisco", "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
  --card-radius: 30px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--secondary-color);
  color: var(--slate);
  line-height: 1.6;
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.section-title {
  display: flex;
  align-items: center;
  font-size: clamp(26px, 5vw, 32px);
  font-weight: 600;
  color: var(--lightest-slate);
  margin-bottom: 50px;
  white-space: nowrap;
}

.section-title::after {
  content: "";
  display: block;
  height: 1px;
  width: 300px;
  background-color: var(--lightest-navy);
  margin-left: 20px;
}

.title-number {
  color: var(--primary-color);
  font-family: var(--font-mono);
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 400;
  margin-right: 10px;
}

.certifications {
  padding: 80px 0;
  background: radial-gradient(circle at top left, rgba(138, 43, 226, 0.12), transparent 25%),
    radial-gradient(circle at bottom right, rgba(67, 193, 255, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(10, 12, 24, 1), rgba(11, 14, 30, 1));
}

.cert-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 40px;
}

.cert-card {
  background: rgba(10, 14, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-6px);
  border-color: rgba(138, 43, 226, 0.25);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.32);
}

.cert-card h3 {
  font-size: 16px;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}

.cert-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 999px;
}

.cert-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.cert-card li {
  color: var(--light-slate);
  line-height: 1.75;
  padding-left: 22px;
  position: relative;
  font-size: 14px;
}

.cert-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
}

.btn {
  padding: 12px 28px;
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  font-size: 14px;
  font-family: var(--font-mono);
  transition: var(--transition);
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: rgba(138, 43, 226, 0.1);
}

.btn-primary:hover {
  background-color: rgba(138, 43, 226, 0.2);
}

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

.btn-secondary:hover {
  background-color: rgba(136, 136, 136, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.navbar-dock {
  position: fixed;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  z-index: 1000;
  pointer-events: none;
}

.dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 0, rgba(255, 255, 255, 0.18), rgba(15, 23, 42, 0.96)),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(148, 163, 184, 0.15);
  backdrop-filter: blur(20px);
  pointer-events: auto;
}

.dock-item {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  text-decoration: none;
  transform-origin: center left;
  transform: scale(1);
  transition: color 0.16s ease-out, background-color 0.16s ease-out;
}

.dock-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 0, rgba(255, 255, 255, 0.3), rgba(148, 163, 184, 0.02));
  opacity: 0;
  transition: opacity 0.18s ease-out;
}

.dock-item:hover::before,
.dock-item:focus-visible::before,
.dock-item.active::before {
  opacity: 1;
}

.dock-item:hover,
.dock-item:focus-visible {
  color: var(--lightest-slate);
}

.dock-item.active {
  color: var(--primary-color);
}

.dock-icon {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.dock-label {
  position: absolute;
  top: 50%;
  left: 54px;
  transform: translateY(-50%) translateX(4px);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.98);
  color: var(--lightest-slate);
  font-size: 11px;
  font-family: var(--font-mono);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.dock-item:hover .dock-label,
.dock-item:focus-visible .dock-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 50px;
  position: relative;
  background: var(--dark-navy);
  overflow: hidden;
}

.hero-trail-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.pc-trail-symbol {
  position: absolute;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
  mix-blend-mode: screen;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.7));
  animation: pc-trail-fade var(--life, 1400ms) ease-out forwards;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content,
.about-text,
.contact-info,
.contact-form {
  background: rgba(25, 25, 25, 0.7);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.greeting {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--primary-light);
  font-family: var(--font-mono);
  font-weight: 400;
}

.name {
  font-size: clamp(40px, 8vw, 70px);
  font-weight: 700;
  color: var(--lightest-slate);
  line-height: 1.1;
}

.role {
  font-size: clamp(30px, 6vw, 50px);
  font-weight: 700;
  color: var(--slate);
  line-height: 1.1;
  min-height: 60px;
}

.typing-cursor {
  animation: blink 0.7s infinite;
}

.hero-description {
  font-size: 18px;
  color: var(--slate);
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.hero-social {
  display: flex;
  gap: 20px;
}

.hero-social a {
  color: var(--slate);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
}

.hero-social a:hover {
  color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.1);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--primary-color);
  font-size: 24px;
  animation: bounce 2s infinite;
  transition: var(--transition);
  z-index: 2;
  background: transparent;
  border: 0;
}

.pc-card-wrapper {
  --pointer-x: 50%;
  --pointer-y: 50%;
  --pointer-from-center: 0;
  --pointer-from-top: 0.5;
  --pointer-from-left: 0.5;
  --card-opacity: 0;
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  --background-x: 50%;
  --background-y: 50%;
  perspective: 500px;
  transform: translate3d(0, 0, 0.1px);
  position: relative;
  touch-action: none;
}

.pc-behind {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), var(--behind-glow-color) 0%, transparent var(--behind-glow-size));
  filter: blur(50px) saturate(1.1);
  opacity: calc(0.8 * var(--card-opacity));
  transition: opacity 200ms ease;
}

.pc-card-wrapper:hover,
.pc-card-wrapper.active {
  --card-opacity: 1;
}

.pc-card-shell {
  position: relative;
  z-index: 1;
}

.pc-card {
  height: 80svh;
  max-height: 540px;
  display: grid;
  aspect-ratio: 0.718;
  border-radius: var(--card-radius);
  position: relative;
  z-index: 1;
  box-shadow: rgba(0, 0, 0, 0.8) calc((var(--pointer-from-left) * 10px) - 3px) calc((var(--pointer-from-top) * 20px) - 6px) 20px -5px;
  transition: transform 1s ease;
  transform: translateZ(0) rotateX(0deg) rotateY(0deg);
  background: linear-gradient(155deg, rgba(20, 35, 84, 0.9), rgba(67, 30, 133, 0.95), rgba(18, 108, 190, 0.85));
  backface-visibility: hidden;
  overflow: hidden;
}

.pc-card-wrapper.active .pc-card,
.pc-card:hover {
  transition: none;
  transform: translateZ(0) rotateX(var(--rotate-y)) rotateY(var(--rotate-x));
}

.pc-card * {
  display: grid;
  grid-area: 1/-1;
  border-radius: var(--card-radius);
  pointer-events: none;
}

.pc-inside {
  inset: 0;
  position: absolute;
  background-image: none;
  background-color: rgba(0, 0, 0, 0.9);
}

.pc-shine,
.pc-shine::after,
.pc-glare {
  display: none;
}

.pc-avatar-content {
  mix-blend-mode: normal;
  overflow: visible;
  transform: translateZ(2);
  backface-visibility: hidden;
}

.pc-avatar-content .avatar {
  width: 100%;
  position: absolute;
  left: 50%;
  transform-origin: 50% 100%;
  transform: translateX(calc(-50% + (var(--pointer-from-left) - 0.5) * 6px)) scaleY(calc(1 + (var(--pointer-from-top) - 0.5) * 0.02)) scaleX(calc(1 + (var(--pointer-from-left) - 0.5) * 0.01));
  bottom: -1px;
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 120ms ease-out;
  mix-blend-mode: normal;
  filter: none;
}

.pc-user-info {
  position: absolute;
  --ui-inset: 20px;
  bottom: var(--ui-inset);
  left: var(--ui-inset);
  right: var(--ui-inset);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px 14px;
  pointer-events: auto;
}

.pc-user-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pc-mini-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.pc-user-text {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.pc-handle {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
}

.pc-status {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
}

.pc-contact-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  pointer-events: auto;
  transition: var(--transition);
}

.pc-contact-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.pc-content:not(.pc-avatar-content) {
  max-height: 100%;
  overflow: hidden;
  text-align: center;
  position: relative;
  transform: translate3d(calc(var(--pointer-from-left) * -6px + 3px), calc(var(--pointer-from-top) * -6px + 3px), 0.1px);
  z-index: 5;
  mix-blend-mode: normal;
}

.pc-details {
  width: 100%;
  position: absolute;
  top: 3em;
  display: flex;
  flex-direction: column;
}

.pc-details h3 {
  font-weight: 600;
  margin: 0;
  font-size: min(5svh, 3em);
  background-image: linear-gradient(to bottom, #fff, #6f6fbe);
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.pc-details p {
  font-weight: 600;
  position: relative;
  top: -12px;
  white-space: nowrap;
  font-size: 16px;
  margin: 0 auto;
  width: min-content;
  background-image: linear-gradient(to bottom, #fff, #4a4ac0);
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.about,
.projects {
  padding: 100px 20px;
  background-color: var(--dark-navy);
}

.about-text {
  color: var(--slate);
  font-size: 18px;
  line-height: 1.8;
  overflow: hidden;
}

.about-text p + p {
  margin-top: 18px;
}

.about-image {
  float: right;
  margin-left: 20px;
  margin-bottom: 10px;
}

.image-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(138, 43, 226, 0.4);
}

.aichat-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.aichat-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.aichat-heading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.aichat-container h2 {
  font-size: 32px;
  color: var(--lightest-slate);
  font-weight: 700;
}

.aichat-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 600;
}

.aichat-status-text {
  margin: 0 0 28px;
  text-align: center;
  font-size: 13px;
}

.chat-interface {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  height: 500px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  display: flex;
  width: 100%;
  animation: slideIn 0.3s ease-out;
}

.message-user {
  justify-content: flex-end;
}

.message-assistant {
  justify-content: flex-start;
}

.message-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 16px;
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.message-user .message-bubble {
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(139, 92, 246, 0.8) 100%);
  color: white;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}

.message-assistant .message-bubble {
  background: rgba(139, 92, 246, 0.1);
  color: var(--light-slate);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-bottom-left-radius: 4px;
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  background: rgba(20, 20, 20, 0.5);
}

.chat-input {
  flex: 1;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 24px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--lightest-slate);
  outline: none;
}

.chat-input:focus {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.chat-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(139, 92, 246, 0.8) 100%);
  border: none;
  color: white;
  transition: var(--transition);
  flex-shrink: 0;
}

.chat-send-btn:hover {
}

.chat-send-btn svg {
  width: 20px;
  height: 20px;
}

.skills {
  padding: 100px 20px;
  background-color: var(--secondary-color);
  position: relative;
  overflow: hidden;
}

.skills::before,
.skills::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  pointer-events: none;
  z-index: 2;
}

.skills::before {
  left: 0;
  background: linear-gradient(to right, var(--secondary-color), transparent);
}

.skills::after {
  right: 0;
  background: linear-gradient(to left, var(--secondary-color), transparent);
}

.ticker {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ticker-row {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: scroll 55s linear infinite;
  width: max-content;
}

.ticker-row-right {
  animation-direction: reverse;
}

.ticker-row:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  margin: 0 10px;
  background-color: var(--light-navy);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--light-slate);
  font-weight: 500;
  font-size: 16px;
  transition: var(--transition);
  flex-shrink: 0;
}

.ticker-item:hover {
  transform: scale(1.08);
  background-color: var(--lightest-navy);
}

.ticker-icon {
  font-size: 20px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.projects-deck-wrapper {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.projects-deck {
  position: relative;
  width: min(720px, 100%);
  height: 340px;
}

.deck-card {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 26px 28px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.25), rgba(15, 23, 42, 0.95));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.85), 0 0 0 1px rgba(15, 23, 42, 0.9);
  color: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  transform-origin: center;
  transform: translate3d(0, 0, 0) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 220ms ease-out, border-color 160ms ease-out, box-shadow 200ms ease-out;
}

.deck-card--active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
}

.deck-card--second {
  opacity: 0.18;
  pointer-events: auto;
  transform: translate3d(-18px, 22px, 0) scale(0.96) rotate(-6deg);
}

.deck-card--third {
  opacity: 0.12;
  pointer-events: auto;
  transform: translate3d(20px, 40px, 0) scale(0.92) rotate(7deg);
}

.deck-card--hidden {
  opacity: 0.08;
  transform: translate3d(-8px, 60px, 0) scale(0.9) rotate(-10deg);
}

.deck-card--second .project-content,
.deck-card--third .project-content,
.deck-card--hidden .project-content {
  opacity: 0.14;
  filter: blur(1px);
}

.deck-card:hover.deck-card--active {
  border-color: var(--primary-color);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.9), 0 0 0 1px rgba(129, 140, 248, 0.6);
}

.project-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 15px;
}

.project-title {
  font-size: 24px;
  color: var(--lightest-slate);
  font-weight: 600;
  margin-bottom: 10px;
}

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

.project-links a {
  color: var(--slate);
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.project-links a:hover {
  color: var(--primary-color);
}

.project-description {
  color: var(--slate);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tech,
.project-modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.project-tech {
  margin-top: auto;
}

.project-tech li,
.project-modal-tech li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--light-slate);
  padding: 6px 12px;
  background-color: var(--dark-navy);
  border-radius: 15px;
}

.projects-deck-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  color: var(--light-slate);
}

.deck-nav {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: var(--light-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.deck-nav:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.deck-indicator {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.95));
  backdrop-filter: blur(10px);
}

.project-modal-content {
  position: relative;
  max-width: 720px;
  width: calc(100% - 40px);
  max-height: 80vh;
  overflow: auto;
  border-radius: 26px;
  padding: 30px 32px 26px;
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.28), rgba(15, 23, 42, 0.98));
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.95), 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.project-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--light-slate);
}

.project-modal-title {
  font-size: 26px;
  color: var(--lightest-slate);
  margin-bottom: 14px;
}

.project-modal-description {
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-modal-tech {
  margin: 0 0 20px;
}

.project-modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.project-modal-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-family: var(--font-mono);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--lightest-slate);
  text-decoration: none;
  background: rgba(15, 23, 42, 0.95);
  transition: var(--transition);
}

.project-modal-links a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.carousel {
  padding: 80px 0;
  background-color: var(--secondary-color);
  overflow: hidden;
}

.carousel-row {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  line-height: 0;
  animation: carousel-scroll 55s linear infinite;
}

.carousel-row--two {
  animation-direction: reverse;
}

.carousel-image {
  display: block;
  height: 180px;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none;
}

.contact {
  padding: 100px 20px 50px;
  background-color: var(--secondary-color);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-description {
  font-size: 18px;
  line-height: 1.8;
}

.contact-social {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-social a {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--slate);
  text-decoration: none;
  font-size: 18px;
  padding: 12px;
  border-radius: 10px;
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.05);
}

.contact-social a span {
  width: 28px;
  color: var(--light-slate);
  font-family: var(--font-mono);
  font-weight: 700;
}

.contact-social a:hover {
  color: var(--primary-color);
  background-color: rgba(138, 43, 226, 0.1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--lightest-slate);
  font-size: 14px;
  font-family: var(--font-mono);
}

.form-group input,
.form-group textarea {
  padding: 15px;
  background-color: var(--light-navy);
  border: 1px solid var(--lightest-navy);
  border-radius: 10px;
  color: var(--lightest-slate);
  font-size: 16px;
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--dark-navy);
  box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.3);
}

.form-group .input-error {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.form-error {
  min-height: 18px;
  margin: 2px 0 0;
  color: #ff9f9f;
  font-size: 13px;
  font-family: var(--font-mono);
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 10px;
  border-radius: 10px;
  font-weight: 600;
}

.footer {
  text-align: center;
  padding: 40px 20px 20px;
  margin-top: 80px;
  border-top: 1px solid var(--lightest-navy);
}

.footer p {
  margin: 5px 0;
  font-size: 14px;
  font-family: var(--font-mono);
}

/* Disable transform hover/active effects for button-like controls */
.btn,
.hero-social a,
.pc-contact-btn,
.chat-send-btn,
.project-links a,
.deck-nav,
.project-modal-links a,
.contact-social a {
  transition: color 0.25s ease, background-color 0.25s ease;
}

.btn:hover,
.hero-social a:hover,
.pc-contact-btn:hover,
.chat-send-btn:hover,
.project-links a:hover,
.deck-nav:hover,
.project-modal-links a:hover,
.contact-social a:hover {
  transform: none !important;
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes pc-trail-fade {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.9);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx, 0px), var(--dy, -24px), 0) scale(1.1);
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes carousel-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    margin: 0 auto 30px;
  }

  .hero-buttons,
  .hero-social {
    justify-content: center;
  }

  .hero-image {
    order: -1;
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .section-title {
    white-space: normal;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .section-title::after {
    width: 100px;
    margin-left: 0;
  }

  .navbar-dock {
    left: 10px;
  }

  .dock {
    gap: 8px;
    padding: 10px 7px;
  }

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

  .dock-icon {
    font-size: 14px;
  }

  .pc-card {
    height: 70svh;
    max-height: 450px;
  }

  .pc-details {
    top: 2em;
  }

  .pc-details h3 {
    font-size: min(4svh, 2.5em);
  }

  .pc-user-info {
    --ui-inset: 15px;
    padding: 10px 12px;
  }

  .pc-mini-avatar {
    width: 28px;
    height: 28px;
  }

  .pc-status {
    font-size: 10px;
  }

  .pc-contact-btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  .aichat-section {
    padding: 60px 0;
  }

  .aichat-container h2 {
    font-size: 24px;
  }

  .aichat-heading-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .chat-interface {
    height: 400px;
    border-radius: 16px;
  }

  .message-bubble {
    max-width: 85%;
    font-size: 13px;
  }

  .projects,
  .contact,
  .skills,
  .about {
    padding-inline: 16px;
  }

  .projects-deck {
    height: min(420px, 70vh);
  }

  .deck-card {
    border-radius: 22px;
    padding: 22px 20px;
  }

  .project-title {
    font-size: 20px;
  }

  .project-description {
    font-size: 14px;
    display: -webkit-box;
    line-clamp: 6;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .carousel-image {
    height: clamp(96px, 22vw, 130px);
  }

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

@media (max-width: 520px) {
  .hero {
    padding-left: 56px;
  }

  .about-image {
    float: none;
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
  }

  .hero-content,
  .about-text,
  .contact-info,
  .contact-form {
    padding: 22px;
  }
}

@media (max-width: 420px) {
  .section-title::after {
    display: none;
  }

  .projects-deck {
    height: min(460px, 78vh);
  }

  .deck-card {
    padding: 18px 16px;
  }
}
