.skip-link {
  position: absolute;
  top: -9999px;
  left: 0;
  z-index: 999;
  background: #0f62fe;
  color: #fff;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

.dot-grid {
  background-image: radial-gradient(#e0e0e0 0.5px, transparent 0.5px);
  background-size: 20px 20px;
}

.nav-link {
  color: #6f6f6f;
  border-bottom: 2px solid transparent;
}
.nav-link:hover {
  color: #161616;
  background: #f4f4f4;
}
.nav-link[aria-current="page"] {
  color: #0f62fe;
  border-bottom-color: #0f62fe;
  font-weight: 600;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 20;
  vertical-align: middle;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #f4f4f4; }
::-webkit-scrollbar-thumb { background: #8d8d8d; }
::-webkit-scrollbar-thumb:hover { background: #0f62fe; }

.timeline-line {
  background: linear-gradient(to bottom, #0f62fe 0%, #0f62fe 70%, #e0e0e0 100%);
}

.dashed-connector {
  background-image: linear-gradient(to bottom, #8d8d8d 50%, transparent 50%);
  background-size: 1px 12px;
}

.status-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.line-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #0f62fe;
}

.search-result-item[aria-selected="true"] {
  background: #e0e0e0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── v2 Visual Enhancements ── */

.perspective-grid {
  background-image:
    linear-gradient(rgba(224,224,224,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224,224,224,0.3) 1px, transparent 1px);
  background-size: 40px 40px;
}

.terminal-grid {
  background-image:
    linear-gradient(rgba(224,224,224,0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224,224,224,0.2) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: #ffffff;
}

.code-panel {
  background: #161616;
  border-radius: 4px;
  overflow: hidden;
  font-family: 'IBM Plex Mono', monospace;
}
.code-panel-header {
  background: #262626;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #393939;
}
.traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.traffic-dot.red { background: #fa4d56; }
.traffic-dot.yellow { background: #f1c21b; }
.traffic-dot.green { background: #24a148; }

.code-panel-body {
  padding: 16px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.8;
  color: #d4d4d4;
}
.code-panel-body .kw { color: #569cd6; }
.code-panel-body .fn { color: #dcdcaa; }
.code-panel-body .str { color: #ce9178; }
.code-panel-body .cm { color: #6a9955; }
.code-panel-body .num { color: #b5cea8; }
.code-panel-body .op { color: #d4d4d4; }
.code-panel-body .var { color: #9cdcfe; }

.card-hover-shadow {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card-hover-shadow:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.btn-press:active {
  transform: translateY(1px);
}

.status-ping {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #24a148;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.status-ping.warning { background: #f1c21b; }
.status-ping.offline { background: #fa4d56; animation: none; }

@keyframes ping {
  75%, 100% { transform: scale(1.5); opacity: 0; }
}

.avatar-ring {
  border-radius: 50%;
  border: 2px solid #0f62fe;
  position: relative;
}
.avatar-ring::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #24a148;
  border: 2px solid #fff;
}

.corner-bracket {
  position: relative;
}
.corner-bracket::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-top: 2px solid #0f62fe;
  border-left: 2px solid #0f62fe;
}
.corner-bracket::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-bottom: 2px solid #0f62fe;
  border-right: 2px solid #0f62fe;
}

.image-offset-shadow {
  position: relative;
}
.image-offset-shadow::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 100%;
  height: 100%;
  background: rgba(15,98,254,0.08);
  z-index: -1;
}

.hero-gradient {
  background: linear-gradient(135deg, rgba(15,98,254,0.05) 0%, transparent 50%);
}

.avatar-stack {
  display: flex;
  align-items: center;
}
.avatar-stack > * {
  border-radius: 50%;
  border: 2px solid #fff;
  margin-right: -8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
}

.skill-bar {
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
  background: #0f62fe;
}

.progress-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.progress-ring svg {
  transform: rotate(-90deg);
}
.progress-ring-text {
  position: absolute;
  font-size: 11px;
  font-weight: 600;
  font-family: 'IBM Plex Mono', monospace;
}

.glass-header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224,224,224,0.5);
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #e0e0e0;
  padding: 4px 0;
  display: flex;
  justify-content: space-around;
}
.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  color: #6f6f6f;
  font-size: 9px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.mobile-bottom-nav a .material-symbols-outlined {
  font-size: 20px;
}
.mobile-bottom-nav a[aria-current="page"] {
  color: #0f62fe;
}

.hero-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  color: #0f62fe;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: #6f6f6f;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-image-container {
  position: relative;
  overflow: hidden;
}
.project-image-container .traffic-dots {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  z-index: 10;
}
.project-image-container .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,98,254,0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-image-container:hover .img-overlay {
  opacity: 1;
}
.project-image-container img {
  transition: transform 0.4s ease;
}
.project-image-container:hover img {
  transform: scale(1.03);
}

.transmit-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.transmit-btn:active {
  transform: scale(0.97);
}
.transmit-btn.sending {
  pointer-events: none;
}
.transmit-btn.sending::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.industry-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 500;
  background: #f4f4f4;
  color: #525252;
}

.fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.fade-in.revealed {
  opacity: 1;
  transform: translateY(0);
}

.filter-panel {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
}
.filter-panel-label {
  flex-shrink: 0;
  font-size: 9px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6f6f6f;
  padding-top: 4px;
  min-width: 70px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #525252;
  cursor: pointer;
  transition: all 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.filter-chip:hover {
  border-color: #0f62fe;
  color: #0f62fe;
  background: #f4f4f4;
}
.filter-chip.active {
  background: #0f62fe;
  color: #fff;
  border-color: #0f62fe;
}
.filter-chip-logo {
  width: 12px;
  height: 12px;
  display: inline-block;
  vertical-align: middle;
}
.filter-dropdown {
  padding: 4px 24px 4px 8px;
  font-size: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  border: 1px solid #e0e0e0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236f6f6f'/%3E%3C/svg%3E") no-repeat right 6px center;
  color: #525252;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.filter-dropdown:hover {
  border-color: #0f62fe;
}
.filter-dropdown:focus {
  outline: none;
  border-color: #0f62fe;
  box-shadow: 0 0 0 1px #0f62fe;
}

.tilt-card {
  display: inline-block;
  transform-style: preserve-3d;
  will-change: transform;
}

#lightbox {
  opacity: 0;
  transition: opacity 0.25s ease;
}
#lightbox.show {
  opacity: 1;
}
#lightbox img {
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#lightbox.show img {
  transform: scale(1);
}
#lightbox-backdrop {
  opacity: 0;
  transition: opacity 0.25s ease;
}
#lightbox.show #lightbox-backdrop {
  opacity: 1;
}
.img-zoom {
  cursor: zoom-in;
}

.testimonial-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.85);
  color: #161616;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  transition: all 0.2s ease;
  z-index: 10;
  opacity: 0;
}
.group:hover .testimonial-btn {
  opacity: 1;
}
.testimonial-btn:hover {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.testimonial-btn-prev { left: 8px; }
.testimonial-btn-next { right: 8px; }

.testimonial-track::-webkit-scrollbar {
  height: 4px;
}
.testimonial-track::-webkit-scrollbar-track {
  background: transparent;
}
.testimonial-track::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 2px;
}
.testimonial-track::-webkit-scrollbar-thumb:hover {
  background: #c6c6c6;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }
.reveal-delay-7 { transition-delay: 0.56s; }
.reveal-delay-8 { transition-delay: 0.64s; }
.reveal-delay-9 { transition-delay: 0.72s; }
.reveal-delay-10 { transition-delay: 0.80s; }
.reveal-delay-11 { transition-delay: 0.88s; }
.reveal-delay-12 { transition-delay: 0.96s; }

.reveal.fade-in .stat-value {
  opacity: 0;
  transform: translateY(8px);
}
.reveal.fade-in .stat-value.counted {
  animation: countUp 0.4s ease forwards;
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 12px;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  position: fixed;
  bottom: 56px;
  left: 0;
  right: 0;
  z-index: 29;
}
.mobile-contact-bar a {
  color: #6f6f6f;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-family: 'IBM Plex Mono', monospace;
  text-decoration: none;
}
.mobile-contact-bar a:hover { color: #0f62fe; }

#floating-whatsapp {
  animation: wa-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}
@keyframes wa-enter {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
#floating-whatsapp:hover { filter: brightness(1.1); }

@media (max-width: 1023px) {
  #view-container { padding-bottom: 120px; }
  #floating-whatsapp { bottom: 80px !important; }
}
@media (min-width: 1024px) {
  .mobile-bottom-nav { display: none; }
  .mobile-contact-bar { display: none; }
}
