/* =========================================================
   TAYLOR REIS — PORTFOLIO
   Main Styles
========================================================= */

/* =========================================================
   01. DESIGN TOKENS
========================================================= */

:root {
  --color-primary: #c6f91f;
  --color-primary-rgb: 198, 249, 31;

  --color-bg: #f8f9fb;
  --color-surface: #ffffff;
  --color-surface-secondary: #f1f3f5;

  --color-text: #0d121b;
  --color-text-secondary: #667085;
  --color-border: rgba(13, 18, 27, 0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;

  --container: 1536px;
}

/* =========================================================
   02. DARK THEME
========================================================= */

html.dark {
  --color-bg: #05080a;
  --color-surface: #0b0f13;
  --color-surface-secondary: #11161c;

  --color-text: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.45);
  --color-border: rgba(255, 255, 255, 0.07);
}

/* =========================================================
   03. RESET
========================================================= */

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

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

body {
  margin: 0;
  min-height: 100vh;

  font-family: "Inter", sans-serif;

  background: var(--color-bg);
  color: var(--color-text);

  overflow-x: hidden;

  transition:
    background-color var(--transition-normal),
    color var(--transition-normal);
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

/* =========================================================
   04. ACCESSIBILITY
========================================================= */

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

::selection {
  background: rgba(var(--color-primary-rgb), 0.25);
  color: inherit;
}

/* =========================================================
   05. SCROLLBAR
========================================================= */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.25);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--color-primary-rgb), 0.55);
}

/* =========================================================
   06. TYPOGRAPHY
========================================================= */

.font-display {
  font-family: "Geist", "Inter", sans-serif;
}

.grad-text {
  background: linear-gradient(100deg, var(--color-primary) 0%, #e4ff87 55%, var(--color-primary) 100%);

  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;
}

.section-kicker {
  display: inline-block;

  color: var(--color-primary);

  font-family: "Geist", "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;

  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* =========================================================
   07. BACKGROUND
========================================================= */

.noise-bg {
  position: fixed;
  inset: 0;

  z-index: 0;

  pointer-events: none;

  opacity: 0.018;
}

/* =========================================================
   08. NAVIGATION
========================================================= */

.nav-link {
  position: relative;
  padding: 0.6rem 0.75rem;
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.nav-link.active {
  color: var(--color-text);
}

.nav-link::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: 0;

  width: 0;
  height: 1px;

  background: var(--color-primary);

  transform: translateX(-50%);

  transition: width var(--transition-normal);
}

.nav-link.active::after {
  width: 18px;
}

/* =========================================================
   09. MOBILE MENU
========================================================= */

.mob-menu {
  transform: translateX(100%);

  visibility: hidden;

  transition:
    transform 300ms ease,
    visibility 300ms ease;
}

.mob-menu.open {
  transform: translateX(0);
  visibility: visible;
}

.mob-link {
  display: block;

  padding: 1rem 0;

  border-bottom: 1px solid var(--color-border);

  color: var(--color-text-secondary);

  font-family: "Geist", sans-serif;
  font-size: 1.25rem;
  font-weight: 400;

  transition:
    color var(--transition-fast),
    padding-left var(--transition-fast);
}

.mob-link:hover {
  color: var(--color-primary);
  padding-left: 0.35rem;
}

/* =========================================================
   10. STATUS
========================================================= */

.status-dot {
  position: relative;

  flex-shrink: 0;
}

.status-dot::after {
  content: "";

  position: absolute;
  inset: -4px;

  border: 1px solid rgba(var(--color-primary-rgb), 0.5);
  border-radius: inherit;
}

/* =========================================================
   11. HERO
========================================================= */

.photo-glow {
  position: absolute;

  width: 70%;
  height: 70%;

  border-radius: 50%;

  background: rgba(var(--color-primary-rgb), 0.1);

  filter: blur(100px);

  pointer-events: none;
}

/* =========================================================
   12. FOCUS TAGS
========================================================= */

.focus-tag {
  display: inline-flex;
  align-items: center;

  padding: 0.55rem 0.85rem;

  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);

  background: var(--color-surface);

  color: var(--color-text-secondary);

  font-family: "Geist", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;

  letter-spacing: 0.05em;
  text-transform: uppercase;

  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.focus-tag:hover {
  color: var(--color-primary);

  border-color: rgba(var(--color-primary-rgb), 0.3);

  background: rgba(var(--color-primary-rgb), 0.04);
}

/* =========================================================
   13. STACK
========================================================= */

.stack-card {
  position: relative;

  display: flex;
  flex-direction: column;

  gap: 1.5rem;

  min-height: 210px;

  padding: 1.5rem;

  overflow: hidden;

  background: var(--color-surface);

  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);

  transition:
    transform var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

/* =========================================================
   STACK CARD ACCENT
========================================================= */

.stack-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 1px;

  background: linear-gradient(90deg, transparent, rgba(var(--color-primary-rgb), 0.45), transparent);

  opacity: 0;

  transition: opacity var(--transition-normal);
}

.stack-card:hover {
  transform: translateY(-4px);

  border-color: rgba(var(--color-primary-rgb), 0.2);

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

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

/* =========================================================
   STACK HEADER
========================================================= */

.stack-card-header {
  display: flex;

  align-items: flex-start;

  gap: 1rem;
}

.stack-card-heading {
  flex: 1;

  min-width: 0;
}

/* =========================================================
   STACK ICON
========================================================= */

.stack-icon {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  width: 40px;
  height: 40px;

  border: 1px solid rgba(var(--color-primary-rgb), 0.12);

  border-radius: 10px;

  background: rgba(var(--color-primary-rgb), 0.08);

  color: var(--color-primary);
}

.stack-icon svg {
  width: 19px;
  height: 19px;

  stroke-width: 1.8;
}

/* =========================================================
   STACK TITLE
========================================================= */

.stack-card-title {
  margin: 0 0 0.35rem;

  color: var(--color-text);

  font-family: "Geist", "Inter", sans-serif;

  font-size: 1rem;

  font-weight: 550;

  line-height: 1.3;

  letter-spacing: -0.015em;
}

/* =========================================================
   STACK DESCRIPTION
========================================================= */

.stack-card-description {
  margin: 0;

  color: var(--color-text-secondary);

  font-size: 0.78rem;

  font-weight: 350;

  line-height: 1.55;
}

/* =========================================================
   STACK TECHNOLOGIES
========================================================= */

.stack-technologies {
  display: flex;

  flex-wrap: wrap;

  align-items: flex-start;

  gap: 0.5rem;

  margin-top: auto;
}

/* =========================================================
   TECHNOLOGY TAG
========================================================= */

.tech-tag {
  position: relative;

  display: inline-flex;

  align-items: center;

  min-height: 28px;

  padding: 0.4rem 0.65rem;

  border: 1px solid transparent;

  border-radius: 6px;

  background: var(--color-surface-secondary);

  color: var(--color-text-secondary);

  font-family: "Geist", "Inter", sans-serif;

  font-size: 0.68rem;

  font-weight: 500;

  line-height: 1;

  white-space: nowrap;

  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.tech-tag:hover {
  color: var(--color-primary);

  background: rgba(var(--color-primary-rgb), 0.08);

  border-color: rgba(var(--color-primary-rgb), 0.18);

  transform: translateY(-1px);
}

/* =========================================================
   FEATURED TECHNOLOGY
========================================================= */

.tech-tag-featured {
  border-color: rgba(var(--color-primary-rgb), 0.14);

  background: rgba(var(--color-primary-rgb), 0.045);

  color: var(--color-text);
}

.tech-tag-featured:hover {
  border-color: rgba(var(--color-primary-rgb), 0.32);

  color: var(--color-primary);
}

/* =========================================================
   LEARNING TECHNOLOGY
========================================================= */

.tech-tag-learning {
  padding-right: 1.25rem;
}

.tech-tag-learning::after {
  content: "";

  position: absolute;

  top: 50%;
  right: 0.5rem;

  width: 4px;
  height: 4px;

  transform: translateY(-50%);

  border-radius: 50%;

  background: var(--color-primary);

  box-shadow: 0 0 8px rgba(var(--color-primary-rgb), 0.55);
}

/* =========================================================
   STACK SKELETON
========================================================= */

.stack-card-skeleton {
  pointer-events: none;
}

.stack-card-skeleton .stack-icon {
  flex-shrink: 0;
}

.stack-card-skeleton .stack-technologies {
  margin-top: 0;
}

/* =========================================================
   STACK RESPONSIVE SAFETY
========================================================= */

@media (max-width: 640px) {
  .stack-card {
    min-height: auto;

    padding: 1.25rem;
  }

  .stack-card-header {
    gap: 0.85rem;
  }

  .stack-card-title {
    font-size: 0.95rem;
  }

  .stack-card-description {
    font-size: 0.75rem;
  }

  .stack-technologies {
    gap: 0.4rem;
  }

  .tech-tag {
    padding: 0.38rem 0.58rem;

    font-size: 0.65rem;
  }
}
/* =========================================================
   14. PROJECTS
========================================================= */

.project-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-width: 0;
  height: 100%;

  overflow: hidden;

  background: var(--color-surface);

  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);

  transition:
    transform var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-4px);

  border-color: rgba(var(--color-primary-rgb), 0.24);

  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.project-card-featured {
  border-color: rgba(var(--color-primary-rgb), 0.22);
}

/* =========================================================
   PROJECT IMAGE
========================================================= */

.project-image-wrapper {
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  flex-shrink: 0;

  background: var(--color-surface-secondary);
}

.project-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition:
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity var(--transition-normal);
}

.project-image.is-loading {
  opacity: 0.45;
}

.project-image.loaded {
  opacity: 1;
}

.project-card:hover .project-image {
  transform: scale(1.025);
}

/* =========================================================
   FEATURED BADGE
========================================================= */

.project-featured-badge {
  position: absolute;

  top: 16px;
  left: 16px;

  z-index: 2;

  display: inline-flex;
  align-items: center;

  min-height: 28px;

  padding: 0.35rem 0.65rem;

  border: 1px solid rgba(var(--color-primary-rgb), 0.28);
  border-radius: 999px;

  background: rgba(5, 8, 10, 0.82);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  color: var(--color-primary);

  font-family: "Geist", "Inter", sans-serif;
  font-size: 0.64rem;
  font-weight: 600;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================
   PROJECT CONTENT
========================================================= */

.project-content {
  display: flex;
  flex-direction: column;

  flex: 1;

  min-width: 0;

  padding: 1.5rem;
}

.project-header {
  min-width: 0;

  margin: 0;
}

.project-title {
  margin: 0;

  overflow: hidden;

  color: var(--color-text);

  font-family: "Geist", "Inter", sans-serif;

  font-size: 1.05rem;
  font-weight: 550;

  line-height: 1.35;

  letter-spacing: -0.015em;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   PROJECT DESCRIPTION
========================================================= */

.project-description {
  display: -webkit-box;

  margin: 0.5rem 0 0;

  overflow: hidden;

  color: var(--color-text-secondary);

  font-size: 0.82rem;
  font-weight: 350;

  line-height: 1.65;

  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* =========================================================
   PROJECT TECHNOLOGIES
========================================================= */

.project-technologies {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 0.4rem;

  margin-top: 1rem;
}

.project-technologies .tech-tag {
  min-height: 25px;

  padding: 0.35rem 0.55rem;

  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;

  background: var(--color-surface-secondary);

  color: var(--color-text-secondary);

  font-size: 0.64rem;
  font-weight: 500;

  line-height: 1;

  white-space: nowrap;
}

.project-technologies .tech-tag:hover {
  color: var(--color-primary);

  border-color: rgba(var(--color-primary-rgb), 0.18);

  background: rgba(var(--color-primary-rgb), 0.05);
}

.project-technologies .tech-tag-more {
  color: var(--color-primary);
}

/* =========================================================
   PROJECT FOOTER
========================================================= */

.project-footer {
  display: flex;
  flex-direction: column;

  margin-top: auto;

  padding-top: 1.5rem;
}

/* =========================================================
   UPDATED DATE
========================================================= */

.project-updated {
  display: flex;

  align-items: center;

  gap: 0.7rem;
}

.project-updated-icon {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 34px;

  width: 34px;
  height: 34px;

  border: 1px solid rgba(var(--color-primary-rgb), 0.25);
  border-radius: 50%;

  background: rgba(var(--color-primary-rgb), 0.035);

  color: var(--color-primary);
}

.project-updated-icon svg {
  width: 15px;
  height: 15px;

  stroke-width: 1.8;
}

.project-updated-content {
  display: flex;
  flex-direction: column;

  min-width: 0;

  gap: 0.1rem;
}

.project-updated-label {
  color: var(--color-text-secondary);

  font-size: 0.65rem;
  font-weight: 400;

  line-height: 1.25;
}

.project-updated-date {
  color: var(--color-text);

  font-size: 0.78rem;
  font-weight: 500;

  line-height: 1.35;
}

/* =========================================================
   PROJECT FOOTER DIVIDER
========================================================= */

.project-footer-divider {
  width: 100%;
  height: 1px;

  margin: 1.15rem 0 0.9rem;

  background: var(--color-border);
}

/* =========================================================
   PROJECT ACTIONS
========================================================= */

.project-actions {
  display: flex;

  align-items: center;
  justify-content: space-between;

  min-width: 0;

  gap: 1rem;
}

.project-actions-left {
  display: flex;

  align-items: center;

  min-width: 0;

  flex-wrap: wrap;

  gap: 0.5rem;
}

.project-action {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 0.4rem;

  min-height: 30px;

  margin: 0;

  padding: 0;

  border: 0;

  background: transparent;

  color: var(--color-text-secondary);

  font-family: "Geist", "Inter", sans-serif;

  font-size: 0.75rem;
  font-weight: 500;

  line-height: 1;

  text-decoration: none;

  cursor: pointer;

  transition:
    color var(--transition-fast),
    opacity var(--transition-fast);
}

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

.project-action-details {
  color: var(--color-text);
}

.project-action-details:hover {
  color: var(--color-primary);
}

.project-action-details::after {
  content: "";

  display: block;

  width: 3px;
  height: 3px;

  margin-left: 0.15rem;

  border-radius: 50%;

  background: rgba(128, 128, 128, 0.4);
}

.project-external-link {
  color: var(--color-text-secondary);
}

.project-action-github .si {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  font-size: 0.9rem;

  line-height: 1;
}

.project-action-demo svg {
  width: 14px;
  height: 14px;
}

.project-action-arrow {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 34px;

  width: 34px;
  height: 34px;

  border-radius: 50%;

  color: var(--color-text);

  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

.project-action-arrow svg {
  width: 18px;
  height: 18px;

  stroke-width: 1.7;
}

.project-card:hover .project-action-arrow {
  color: var(--color-primary);

  background: rgba(var(--color-primary-rgb), 0.06);

  transform: translateX(3px);
}

/* =========================================================
   PROJECT SKELETON
========================================================= */

.project-card-skeleton {
  pointer-events: none;
}

.project-card-skeleton .project-image-wrapper {
  min-height: 220px;
}

.project-card-skeleton .project-footer {
  margin-top: 1.5rem;
}

/* =========================================================
   PROJECT RESPONSIVE
========================================================= */

@media (max-width: 640px) {
  .project-content {
    padding: 1.25rem;
  }

  .project-title {
    font-size: 1rem;
  }

  .project-description {
    font-size: 0.78rem;

    -webkit-line-clamp: 3;
  }

  .project-technologies {
    gap: 0.35rem;
  }

  .project-technologies .tech-tag {
    padding: 0.32rem 0.5rem;

    font-size: 0.62rem;
  }

  .project-footer {
    padding-top: 1.25rem;
  }

  .project-actions {
    gap: 0.75rem;
  }

  .project-actions-left {
    gap: 0.4rem;
  }

  .project-action {
    font-size: 0.72rem;
  }
}

/* =========================================================
   EXPERIENCE
========================================================= */

.experience-list {
  position: relative;

  display: flex;
  flex-direction: column;

  width: 100%;
}

/*
 * Linha vertical da timeline.
 */
.experience-list::before {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;
  left: 188px;

  width: 1px;

  background: var(--border-color, rgba(255, 255, 255, 0.08));
}

/* =========================================================
   EXPERIENCE CARD
========================================================= */

.experience-card {
  position: relative;

  display: grid;

  grid-template-columns:
    160px
    minmax(0, 1fr);

  gap: 64px;

  padding: 0 0 56px;

  margin-bottom: 56px;

  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.experience-card:last-child {
  margin-bottom: 0;
}

/*
 * Ponto da timeline.
 */
.experience-card::before {
  content: "";

  position: absolute;

  top: 7px;
  left: 184px;

  z-index: 2;

  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: #c6f91f;

  box-shadow: 0 0 0 5px rgba(198, 249, 31, 0.09);
}

/* =========================================================
   META
========================================================= */

.experience-meta {
  display: flex;

  flex-direction: column;

  align-items: flex-end;

  gap: 8px;

  text-align: right;
}

.experience-period {
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;

  font-size: 1.4rem;
  font-weight: 500;

  color: #c6f91f;

  letter-spacing: 0.04em;

  text-transform: uppercase;
}

.experience-company {
  max-width: 150px;

  color: var(--text-muted, rgba(255, 255, 255, 0.45));

  font-size: 0.82rem;

  line-height: 1.5;
}

/* =========================================================
   CONTENT
========================================================= */

.experience-content {
  min-width: 0;
}

.experience-header {
  margin-bottom: 20px;
}

.experience-role {
  margin: 0 0 8px;

  color: var(--text-primary, #ffffff);

  font-family: "Geist", "Inter", sans-serif;

  font-size: clamp(1.35rem, 2vw, 1.85rem);

  font-weight: 450;

  line-height: 1.2;

  letter-spacing: -0.025em;
}

.experience-location {
  margin: 0;

  color: var(--text-muted, rgba(255, 255, 255, 0.38));

  font-size: 0.8rem;

  line-height: 1.5;
}

/* =========================================================
   DESCRIPTION
========================================================= */

.experience-description {
  max-width: 760px;

  margin: 0 0 22px;

  color: var(--text-secondary, rgba(255, 255, 255, 0.62));

  font-size: 0.98rem;

  font-weight: 350;

  line-height: 1.75;
}

/* =========================================================
   HIGHLIGHTS
========================================================= */

.experience-highlights {
  display: grid;

  gap: 10px;

  max-width: 760px;

  padding: 0;
  margin: 0 0 26px;

  list-style: none;
}

.experience-highlights li {
  position: relative;

  padding-left: 20px;

  color: var(--text-secondary, rgba(255, 255, 255, 0.58));

  font-size: 0.9rem;

  line-height: 1.65;
}

.experience-highlights li::before {
  content: "";

  position: absolute;

  top: 0.72em;

  left: 0;

  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: #c6f91f;
}

/* =========================================================
   TECHNOLOGIES
========================================================= */

.experience-technologies {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;
}

.experience-tech {
  display: inline-flex;

  align-items: center;

  min-height: 28px;

  padding: 5px 10px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 7px;

  background: rgba(255, 255, 255, 0.025);

  color: rgba(255, 255, 255, 0.52);

  font-family: "Geist Mono", Consolas, monospace;

  font-size: 0.67rem;

  letter-spacing: 0.02em;

  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.experience-tech:hover {
  color: #c6f91f;

  border-color: rgba(198, 249, 31, 0.3);

  background: rgba(198, 249, 31, 0.04);
}

/* =========================================================
   EXPERIENCE SKELETON
========================================================= */

.experience-card-skeleton {
  min-height: 180px;
}

/* =========================================================
   LIGHT THEME
========================================================= */

[data-theme="light"] .experience-list::before {
  background: rgba(13, 18, 27, 0.09);
}

[data-theme="light"] .experience-card {
  border-bottom-color: rgba(13, 18, 27, 0.09);
}

[data-theme="light"] .experience-role {
  color: #0d121b;
}

[data-theme="light"] .experience-company,
[data-theme="light"] .experience-location {
  color: rgba(13, 18, 27, 0.48);
}

[data-theme="light"] .experience-description,
[data-theme="light"] .experience-highlights li {
  color: rgba(13, 18, 27, 0.66);
}

[data-theme="light"] .experience-tech {
  color: rgba(13, 18, 27, 0.62);

  border-color: rgba(13, 18, 27, 0.09);

  background: rgba(13, 18, 27, 0.025);
}

/* =========================================================
   16. GITHUB
========================================================= */

.github-stat-card,
.github-panel {
  background: var(--color-surface);

  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);

  transition:
    border-color var(--transition-normal),
    transform var(--transition-normal);
}

.github-stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  min-height: 135px;

  padding: 1.25rem;
}

.github-stat-card:hover,
.github-panel:hover {
  border-color: rgba(var(--color-primary-rgb), 0.2);
}

.github-stat-value {
  color: var(--color-text);

  font-family: "Geist", sans-serif;
  font-size: 2rem;
  font-weight: 400;

  letter-spacing: -0.04em;
}

.github-stat-label {
  margin-top: 1rem;

  color: var(--color-text-secondary);

  font-size: 0.65rem;
  font-weight: 500;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.github-panel {
  min-height: 180px;

  padding: 1.5rem;
}

/* =========================================================
   17. SOCIAL LINKS
========================================================= */

.social-link {
  display: inline-flex;
  align-items: center;

  gap: 0.5rem;

  padding: 0.65rem 0.9rem;

  background: var(--color-surface);

  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);

  color: var(--color-text-secondary);

  font-size: 0.75rem;
  font-weight: 500;

  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.social-link:hover {
  color: var(--color-primary);

  border-color: rgba(var(--color-primary-rgb), 0.3);

  transform: translateY(-2px);
}

/* =========================================================
   18. FORM
========================================================= */

.form-input {
  display: block;

  width: 100%;

  padding: 0.95rem 1rem;

  color: var(--color-text);

  background: var(--color-surface);

  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);

  outline: none;

  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.form-input::placeholder {
  color: var(--color-text-secondary);

  opacity: 0.55;
}

.form-input:hover {
  border-color: rgba(128, 128, 128, 0.25);
}

.form-input:focus {
  border-color: rgba(var(--color-primary-rgb), 0.5);

  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.07);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: rgba(239, 68, 68, 0.45);
}

/* =========================================================
   19. PROJECT DETAIL MODAL
========================================================= */

.project-modal {
  position: fixed;
  inset: 0;

  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 1.5rem;

  background: rgba(0, 0, 0, 0.72);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.project-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-modal.hidden {
  display: none;
}

/* =========================================================
   PROJECT MODAL CARD
========================================================= */

.project-modal-card {
  position: relative;

  width: min(900px, 100%);
  max-height: 88vh;

  overflow-y: auto;
  overflow-x: hidden;

  background: var(--color-surface);

  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);

  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.02);

  opacity: 0;

  transform:
    translateY(16px)
    scale(0.97);

  transition:
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 220ms ease;
}

.project-modal.open .project-modal-card {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}

/* =========================================================
   PROJECT MODAL CLOSE
========================================================= */

.project-modal-close {
  position: absolute;

  top: 1rem;
  right: 1rem;

  z-index: 10;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  padding: 0;

  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);

  background: rgba(5, 8, 10, 0.82);

  color: rgba(255, 255, 255, 0.7);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  cursor: pointer;

  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

.project-modal-close:hover {
  color: var(--color-primary);

  border-color: rgba(
    var(--color-primary-rgb),
    0.35
  );

  background: rgba(
    var(--color-primary-rgb),
    0.08
  );

  transform: scale(1.05);
}

.project-modal-close svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   PROJECT MODAL DETAILS
========================================================= */

.project-modal-details {
  display: flex;
  flex-direction: column;
}

/* =========================================================
   PROJECT MODAL IMAGE
========================================================= */

.project-modal-image-wrapper {
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 8;

  overflow: hidden;

  background: var(--color-surface-secondary);
}

.project-modal-image-wrapper::after {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      to bottom,
      transparent 55%,
      rgba(5, 8, 10, 0.5) 100%
    );
}

.project-modal-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

/* =========================================================
   PROJECT MODAL BODY
========================================================= */

.project-modal-body {
  padding: 2rem;
}

/* =========================================================
   PROJECT MODAL HEADER
========================================================= */

.project-modal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 0.65rem;

  margin-bottom: 1rem;
}

.project-modal-title {
  width: 100%;

  margin: 0;

  color: var(--color-text);

  font-family: "Geist", "Inter", sans-serif;

  font-size: clamp(
    1.7rem,
    4vw,
    2.4rem
  );

  font-weight: 500;

  line-height: 1.1;

  letter-spacing: -0.04em;
}

.project-modal-header .project-category {
  display: inline-flex;
  align-items: center;

  min-height: 28px;

  padding: 0.35rem 0.65rem;

  border: 1px solid var(--color-border);
  border-radius: 999px;

  background: var(--color-surface-secondary);

  color: var(--color-text-secondary);

  font-size: 0.68rem;
  font-weight: 600;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================
   PROJECT MODAL DESCRIPTION
========================================================= */

.project-modal-description {
  max-width: 760px;

  margin: 0 0 1.75rem;

  color: var(--color-text-secondary);

  font-size: 0.95rem;
  font-weight: 350;

  line-height: 1.75;
}

/* =========================================================
   PROJECT MODAL SECTION
========================================================= */

.project-modal-section {
  margin-top: 1.5rem;
}

.project-modal-section-title {
  margin: 0 0 0.75rem;

  color: var(--color-text-secondary);

  font-size: 0.68rem;
  font-weight: 600;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =========================================================
   PROJECT MODAL TECHNOLOGIES
========================================================= */

.project-modal-body .project-technologies {
  display: flex;
  flex-wrap: wrap;

  gap: 0.45rem;

  margin-top: 0;
}

/* =========================================================
   PROJECT MODAL STATS
========================================================= */

.project-modal-stats {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 0.75rem;

  margin-top: 1.75rem;
}

.project-modal-stat {
  display: flex;
  align-items: center;

  gap: 0.75rem;

  min-width: 0;

  padding: 0.85rem;

  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);

  background: var(--color-surface-secondary);
}

.project-modal-stat > svg {
  flex-shrink: 0;

  width: 18px;
  height: 18px;

  color: var(--color-primary);
}

.project-modal-stat-content {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.project-modal-stat-content strong {
  overflow: hidden;

  color: var(--color-text);

  font-size: 0.82rem;
  font-weight: 600;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-modal-stat-content span {
  margin-top: 0.15rem;

  color: var(--color-text-secondary);

  font-size: 0.65rem;
}

/* =========================================================
   PROJECT MODAL ACTIONS
========================================================= */

.project-modal-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 0.65rem;

  margin-top: 1.75rem;
  padding-top: 1.5rem;

  border-top: 1px solid var(--color-border);
}

.project-modal-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 0.55rem;

  min-height: 44px;

  padding: 0 1rem;

  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);

  background: transparent;

  color: var(--color-text);

  font-family: "Geist", "Inter", sans-serif;

  font-size: 0.78rem;
  font-weight: 500;

  text-decoration: none;

  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

.project-modal-action:hover {
  color: var(--color-primary);

  border-color: rgba(
    var(--color-primary-rgb),
    0.35
  );

  background: rgba(
    var(--color-primary-rgb),
    0.06
  );

  transform: translateY(-1px);
}

.project-modal-action-primary {
  border-color: var(--color-primary);

  background: var(--color-primary);

  color: #05080a;
}

.project-modal-action-primary:hover {
  background: #d7ff49;

  color: #05080a;
}

/* =========================================================
   MODAL BODY LOCK
========================================================= */

body.modal-open {
  overflow: hidden;
}

/* =========================================================
   PROJECT MODAL RESPONSIVE
========================================================= */

@media (max-width: 768px) {
  .project-modal {
    padding: 0.9rem;
  }

  .project-modal-card {
    max-height: 92vh;

    border-radius: 20px;
  }

  .project-modal-image-wrapper {
    aspect-ratio: 16 / 9;
  }

  .project-modal-body {
    padding: 1.5rem 1.25rem;
  }

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

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

  .project-modal-action {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .project-modal {
    align-items: flex-end;

    padding: 0.6rem;
  }

  .project-modal-card {
    width: 100%;
    max-height: 94vh;

    border-radius: 20px;
  }

  .project-modal-body {
    padding: 1.35rem 1rem;
  }
}

/* =========================================================
   GITHUB LANGUAGES
========================================================= */

.github-language {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.github-language-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 1rem;
}

.github-language-info {
  display: flex;
  align-items: center;

  gap: 0.75rem;

  min-width: 0;
}

.github-language-icon {
  width: 32px;
  height: 32px;

  flex: 0 0 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;

  background: rgba(var(--color-primary-rgb), 0.08);

  border: 1px solid rgba(var(--color-primary-rgb), 0.12);

  color: var(--color-primary);
}

.github-language-icon .si {
  font-size: 0.95rem;

  line-height: 1;
}

.github-language-icon-fallback {
  font-size: 0.72rem;

  font-weight: 700;

  color: var(--color-primary);
}

.github-language-name {
  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

  font-size: 0.82rem;

  font-weight: 500;

  color: var(--color-text);
}

.github-language-percentage {
  flex-shrink: 0;

  font-family: monospace;

  font-size: 0.72rem;

  color: var(--color-text-secondary);
}

.github-language-progress {
  width: 100%;

  height: 4px;

  overflow: hidden;

  border-radius: 999px;

  background: rgba(128, 128, 128, 0.12);
}

.github-language-bar {
  display: block;

  height: 100%;

  border-radius: inherit;

  background: var(--color-primary);

  transition: width 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   20. TOAST
========================================================= */

.toast {
  position: fixed;

  right: 1.5rem;
  bottom: 1.5rem;

  z-index: 10000;

  display: flex;
  align-items: center;

  gap: 0.75rem;

  max-width: calc(100vw - 3rem);

  padding: 0.9rem 1.1rem;

  background: var(--color-surface);

  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);

  color: var(--color-text);

  font-size: 0.8rem;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);

  opacity: 0;

  visibility: hidden;

  transform: translateY(15px);

  transition:
    opacity var(--transition-normal),
    visibility var(--transition-normal),
    transform var(--transition-normal);
}

.toast.show {
  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}

/* =========================================================
   21. STATES
========================================================= */

.is-loading {
  pointer-events: none;

  opacity: 0.6;
}

.is-hidden {
  display: none !important;
}

.empty-state,
.error-state {
  padding: 4rem 1rem;

  text-align: center;

  color: var(--color-text-secondary);

  font-size: 0.875rem;
}

.error-state {
  color: #ef4444;
}

/* =========================================================
   22. UTILITIES
========================================================= */

.text-primary {
  color: var(--color-primary);
}

.bg-primary {
  background: var(--color-primary);
}

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

.surface {
  background: var(--color-surface);

  border: 1px solid var(--color-border);
}

/* =========================================================
   23. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }
}
