*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #111827;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

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

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

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #e5e7eb;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  color: #111827;
  border-radius: 8px;
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.nav-toggle svg {
  pointer-events: none;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background-color: #f3f4f6;
  border-color: #d1d5db;
}

.nav-toggle .icon-menu {
  display: block;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-ticker {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: none;
  color: #9ca3af;
}

.nav-ticker span {
  opacity: 0.32;
  animation: navDot 1300ms ease-in-out infinite;
}

.nav-ticker span:nth-child(1) {
  animation-delay: 0ms;
}

.nav-ticker span:nth-child(2) {
  animation-delay: 160ms;
}

.nav-ticker span:nth-child(3) {
  animation-delay: 320ms;
}

@keyframes navDot {
  0% {
    opacity: 0.2;
    transform: translateY(0);
  }
  35% {
    opacity: 0.7;
    transform: translateY(-1px);
  }
  70% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
}

.site-nav a {
  position: relative;
  padding: 0.25rem 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: #111827;
  transition: width 160ms ease-out;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.section {
  padding: 4.5rem 0;
  scroll-margin-top: 80px;
}

.hero {
  padding-top: 5.5rem;
  padding-bottom: 4.5rem;
}

.hero-content {
  max-width: 640px;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: 2.1rem;
  line-height: 1.2;
  font-weight: 600;
}

.hero-title {
  min-height: 2.5em;
}

.hero-subtitle {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.section-subtitle {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 0.95rem;
  color: #6b7280;
}

.section-body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
}

.about-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.9fr);
  align-items: start;
  gap: 2rem;
}

.about-text {
  font-size: 1rem;
}

.about-media {
  display: flex;
  justify-content: flex-end;
}

.about-media img {
  max-width: none;
  width: 90%;
  margin-top: -4rem;
}

.skills-body {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.skills-media {
  display: flex;
  justify-content: flex-start;
  flex: 0 0 auto;
}

.skills-media img {
  max-width: 420px;
  width: 100%;
}

.skills-marquee {
  position: relative;
  margin-left: auto;
  max-width: 600px;
  width: 100%;
  contain: paint;
}

.skills-column {
  position: relative;
  overflow: hidden;
  height: 340px;
  padding: 0;
}

.skills-column::before,
.skills-column::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 48px;
  pointer-events: none;
  z-index: 2;
}

.skills-column::before {
  top: 0;
  background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.skills-column::after {
  bottom: 0;
  background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.skills-track-wrapper {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: skillsScroll 20000ms linear infinite;
}

@media (hover: hover) and (pointer: fine) {
  .skills-column:hover .skills-track-wrapper {
    animation-play-state: paused;
  }
}

.skills-track {
  list-style: none;
  margin: 0;
  padding: 0 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.skills-group-item h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.skills-group-item {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background-color: rgba(249, 250, 251, 0.95);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.03);
}

.skills-list {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.skills-list li {
  font-size: 0.9rem;
  color: #4b5563;
}

@keyframes skillsScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(0, -50%, 0);
  }
}

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

.projects-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding: 4.5rem 3rem;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: radial-gradient(circle at top left, rgba(249, 250, 251, 0.7), #ffffff);
  overflow: hidden;
  max-width: 100%;
  margin-top: 2rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.02);
}

.placeholder-grid-pattern {
  position: absolute;
  inset: 0;
  background-size: 24px 24px;
  background-image: 
    linear-gradient(to right, #f3f4f6 1px, transparent 1px),
    linear-gradient(to bottom, #f3f4f6 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
  pointer-events: none;
  z-index: 1;
}

.placeholder-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 500px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4b5563;
  margin-bottom: 1rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  position: relative;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: badgePulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  opacity: 0.4;
}

@keyframes badgePulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.placeholder-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
}

.placeholder-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.skeleton-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.skeleton-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 150px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.skeleton-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.6) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.skeleton-line {
  height: 12px;
  border-radius: 4px;
  background-color: #f3f4f6;
}

.skeleton-line.header-line {
  height: 16px;
  width: 45%;
  background-color: #e5e7eb;
  margin-bottom: 0.25rem;
}

.skeleton-line.body-line-1 {
  width: 90%;
}

.skeleton-line.body-line-2 {
  width: 75%;
}

.skeleton-footer {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
}

.skeleton-tag {
  height: 20px;
  width: 60px;
  border-radius: 9999px;
  background-color: #f3f4f6;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.skills-group h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.skills-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skills-group li {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.7;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  border-radius: 999px;
  transition: background-color 140ms ease-out, transform 140ms ease-out;
}

.contact-item .icon {
  width: 18px;
  height: 18px;
}

.contact-item:hover,
.contact-item:focus-visible {
  background-color: #f3f4f6;
  transform: translateY(-1px);
}

.contact-text {
  color: #111827;
}

.contact-body {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.contact-main {
  flex: 1 1 auto;
}

.contact-media {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
}

.contact-media img {
  max-width: 500px;
  width: 100%;
  margin-top: -8.5rem;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 1.5rem 0 2rem;
  margin-top: 1rem;
}

.footer-inner {
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-credit {
  margin-top: 0.2rem;
}

@media (max-width: 640px) {
  .header-inner {
    height: 56px;
    position: relative;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
    cursor: pointer;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 1.5rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
    z-index: 1000;
  }

  .site-nav.is-open {
    display: flex !important;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: #111827;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f3f4f6;
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    padding-top: 4.5rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .about-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .about-media {
    justify-content: flex-start;
  }

  .about-media img {
    margin-top: 0;
  }

  .skills-body {
    flex-direction: column;
    gap: 1.5rem;
  }

  .skills-marquee {
    max-width: none;
  }

  .skills-column {
    height: 240px;
  }

  .contact-body {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact-media {
    justify-content: flex-start;
  }

  .contact-media img {
    margin-top: 0;
    max-width: 100%;
  }
}
