/* ============================================
   Dan Erwin Magno — Portfolio
   ============================================ */

/* --- Reset & Custom Properties --- */
*,
*::before,
*::after {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

:root {
   --bg-primary: #f0eeeb;
   --bg-secondary: #e8e6e2;
   --bg-card: #dddad5;
   --bg-card-hover: #d4d0ca;
   --border: #c5c1ba;
   --border-hover: #9e9a92;
   --text-primary: #1c1917;
   --text-secondary: #57534e;
   --text-tertiary: #a8a29e;
   --accent: #dc2626;
   --accent-hover: #b91c1c;
   --accent-subtle: rgba(220, 38, 38, 0.08);
   --accent-glow: rgba(220, 38, 38, 0.12);
   --green: #16a34a;
   --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
   --container: 1140px;
   --radius-sm: 6px;
   --radius-md: 10px;
   --radius-lg: 16px;
   --radius-xl: 24px;
   --ease: cubic-bezier(0.4, 0, 0.2, 1);
   --ease-out: cubic-bezier(0, 0, 0.2, 1);
   --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
   scroll-behavior: smooth;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
   scroll-padding-top: 80px;
}

/* Theme transition on scroll — applied globally so all elements sync */
[data-theme-transitioning] *,
[data-theme-transitioning] *::before,
[data-theme-transitioning] *::after,
[data-theme-transitioning] {
   transition:
      background-color 0.6s var(--ease),
      color 0.6s var(--ease),
      border-color 0.6s var(--ease),
      box-shadow 0.6s var(--ease),
      fill 0.6s var(--ease),
      stroke 0.6s var(--ease) !important;
}

/* Dark theme override (toggled via JS on scroll) */
[data-theme="dark"] {
   --bg-primary: #0a0a0b;
   --bg-secondary: #111113;
   --bg-card: #18181b;
   --bg-card-hover: #1f1f23;
   --border: #27272a;
   --border-hover: #3f3f46;
   --text-primary: #fafaf9;
   --text-secondary: #a8a29e;
   --text-tertiary: #78716c;
   --accent: #f87171;
   --accent-hover: #ef4444;
   --accent-subtle: rgba(248, 113, 113, 0.1);
   --accent-glow: rgba(248, 113, 113, 0.15);
   --green: #34d399;
}

[data-theme="dark"] .nav--scrolled {
   background: rgba(10, 10, 11, 0.9);
}

[data-theme="dark"] .mobile-menu {
   background: rgba(10, 10, 11, 0.97);
}

[data-theme="dark"] .project-row__tags span,
[data-theme="dark"] .accordion-item__tags span {
   background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .hero__pill--green {
   border-color: rgba(52, 211, 153, 0.3);
}

[data-theme="dark"] .chip--github {
   color: #c9d1d9;
}

body {
   font-family: var(--font);
   background: var(--bg-primary);
   color: var(--text-primary);
   line-height: 1.6;
   overflow-x: hidden;
}

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

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

button {
   font-family: inherit;
   border: none;
   background: none;
   cursor: pointer;
   color: inherit;
}

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

/* --- Scrollbar --- */
::-webkit-scrollbar {
   width: 8px;
}

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

::-webkit-scrollbar-thumb {
   background: var(--border);
   border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
   background: var(--border-hover);
}

/* --- Scroll Progress --- */
.scroll-progress {
   position: fixed;
   top: 0;
   left: 0;
   width: 0%;
   height: 2px;
   background: linear-gradient(90deg, var(--accent), #f87171);
   z-index: 1001;
   transition: width 0.1s linear;
}

/* --- Cursor Follower --- */
.cursor-dot {
   position: fixed;
   top: 0;
   left: 0;
   width: 20px;
   height: 20px;
   border-radius: 50%;
   border: 1.5px solid var(--accent);
   pointer-events: none;
   z-index: 9999;
   transform: translate(-50%, -50%) scale(1);
   opacity: 0;
   transition:
      transform 0.25s var(--ease),
      opacity 0.2s var(--ease),
      border-color 0.3s var(--ease),
      background-color 0.25s var(--ease);
   mix-blend-mode: exclusion;
}

.cursor-dot--visible {
   opacity: 1;
}

.cursor-dot--hover {
   transform: translate(-50%, -50%) scale(1.8);
   background-color: var(--accent);
   opacity: 0.35;
}

.cursor-dot--hidden {
   opacity: 0 !important;
   transform: translate(-50%, -50%) scale(0.4);
}

@media (max-width: 1024px) {
   .cursor-dot {
      display: none;
   }
}

/* --- Layout --- */
.container {
   width: 100%;
   max-width: var(--container);
   margin: 0 auto;
   padding: 0 24px;
}

.section {
   padding: 120px 0;
   position: relative;
}

/* --- Noise Texture Overlay --- */
body::before {
   content: "";
   position: fixed;
   inset: 0;
   background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
   pointer-events: none;
   z-index: 0;
}

/* --- Navigation --- */
.nav {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   z-index: 100;
   padding: 0 24px;
   transition:
      background 0.3s var(--ease),
      border-color 0.3s var(--ease),
      backdrop-filter 0.3s var(--ease);
   border-bottom: 1px solid transparent;
}

.nav--scrolled {
   background: rgba(240, 238, 235, 0.92);
   backdrop-filter: blur(16px) saturate(1.5);
   -webkit-backdrop-filter: blur(16px) saturate(1.5);
   border-bottom-color: var(--border);
}

.nav__container {
   max-width: var(--container);
   margin: 0 auto;
   display: flex;
   align-items: center;
   justify-content: space-between;
   height: 72px;
}

.nav__logo {
   font-size: 1.125rem;
   font-weight: 700;
   letter-spacing: -0.02em;
   transition:
      opacity 0.2s var(--ease),
      color 0.6s var(--ease);
}

.nav__logo:hover {
   opacity: 0.8;
}

.nav__logo-dot {
   color: var(--accent);
}

.nav__links {
   display: flex;
   align-items: center;
   gap: 32px;
}

.nav__link {
   font-size: 0.875rem;
   color: var(--text-secondary);
   transition: color 0.2s var(--ease);
   font-weight: 450;
}

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

.nav__link--cta {
   color: var(--accent);
   padding: 8px 18px;
   border: 1px solid var(--accent);
   border-radius: var(--radius-sm);
   font-weight: 500;
   transition:
      background 0.2s var(--ease),
      color 0.2s var(--ease);
}

.nav__link--cta:hover {
   background: var(--accent);
   color: var(--bg-primary);
}

.nav__toggle {
   display: none;
   flex-direction: column;
   gap: 5px;
   width: 28px;
   padding: 4px 0;
   z-index: 110;
}

.nav__toggle span {
   display: block;
   width: 100%;
   height: 2px;
   background: var(--text-primary);
   border-radius: 2px;
   transition:
      transform 0.3s var(--ease),
      opacity 0.3s var(--ease);
}

.nav__toggle--active span:first-child {
   transform: translateY(3.5px) rotate(45deg);
}

.nav__toggle--active span:last-child {
   transform: translateY(-3.5px) rotate(-45deg);
}

/* --- Mobile Menu --- */
.mobile-menu {
   position: fixed;
   inset: 0;
   z-index: 99;
   background: rgba(240, 238, 235, 0.98);
   backdrop-filter: blur(24px);
   -webkit-backdrop-filter: blur(24px);
   display: flex;
   align-items: center;
   justify-content: center;
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.4s var(--ease);
}

.mobile-menu--open {
   opacity: 1;
   pointer-events: all;
}

.mobile-menu__inner {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 28px;
}

.mobile-menu__link {
   font-size: 1.75rem;
   font-weight: 600;
   color: var(--text-secondary);
   transition:
      color 0.2s var(--ease),
      transform 0.3s var(--ease-spring);
   transform: translateY(20px);
   opacity: 0;
}

.mobile-menu--open .mobile-menu__link {
   transform: translateY(0);
   opacity: 1;
}

.mobile-menu--open .mobile-menu__link:nth-child(1) {
   transition-delay: 0.1s;
}
.mobile-menu--open .mobile-menu__link:nth-child(2) {
   transition-delay: 0.15s;
}
.mobile-menu--open .mobile-menu__link:nth-child(3) {
   transition-delay: 0.2s;
}
.mobile-menu--open .mobile-menu__link:nth-child(4) {
   transition-delay: 0.25s;
}

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

.mobile-menu__link--cta {
   color: var(--accent);
   font-size: 1.25rem;
   margin-top: 12px;
   padding: 12px 28px;
   border: 1px solid var(--accent);
   border-radius: var(--radius-md);
}

/* --- Hero --- */
.hero {
   min-height: 100vh;
   min-height: 100dvh;
   display: flex;
   align-items: stretch;
   padding: 0;
   position: relative;
   overflow: hidden;
}

.hero__container {
   display: flex;
   flex-direction: column;
   justify-content: center;
   padding-top: 100px;
   padding-bottom: 48px;
   flex: 1;
}

.hero__top {
   margin-bottom: auto;
}

.hero__label {
   display: inline-block;
   font-size: 0.75rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.12em;
   color: var(--text-tertiary);
   padding-top: 20px;
}

.hero__name {
   display: flex;
   flex-direction: column;
   font-size: clamp(4rem, 12.5vw, 13rem);
   font-weight: 900;
   line-height: 0.88;
   letter-spacing: -0.04em;
   text-transform: lowercase;
   margin: auto 0;
   padding: 24px 0;
}

.hero__name-line {
   display: block;
   white-space: nowrap;
}

.hero__bottom {
   display: flex;
   align-items: flex-end;
   justify-content: space-between;
   gap: 40px;
   margin-top: auto;
}

.hero__cta {
   display: inline-flex;
   align-items: center;
   gap: 10px;
   align-self: flex-start;
   padding: 14px 28px;
   background: var(--accent);
   color: #fff;
   font-size: 1rem;
   font-weight: 700;
   letter-spacing: 0.01em;
   text-decoration: none;
   border-radius: 100px;
   margin-top: 32px;
   transition:
      opacity 0.2s var(--ease),
      transform 0.2s var(--ease);
}

.hero__cta:hover {
   opacity: 0.88;
   transform: translateY(-2px);
}

.hero__bio {
   font-size: 0.9375rem;
   line-height: 1.7;
   color: var(--text-secondary);
   max-width: 340px;
}

.hero__badges {
   display: flex;
   flex-direction: column;
   align-items: flex-end;
   gap: 8px;
   flex-shrink: 0;
}

.hero__pill {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 8px 18px;
   border: 1px solid var(--border);
   border-radius: 100px;
   font-size: 0.75rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.06em;
   color: var(--text-secondary);
   white-space: nowrap;
   transition: border-color 0.2s ease;
}

.hero__pill:hover {
   border-color: var(--border-hover);
}

.hero__pill--green {
   color: var(--green);
   border-color: rgba(22, 163, 74, 0.3);
}

.hero__pill-dot {
   width: 7px;
   height: 7px;
   background: var(--green);
   border-radius: 50%;
   animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
   0%,
   100% {
      opacity: 1;
      box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
   }
   50% {
      opacity: 0.8;
      box-shadow: 0 0 0 6px rgba(22, 163, 74, 0);
   }
}

/* --- Buttons --- */
.btn {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   font-size: 0.9375rem;
   font-weight: 550;
   padding: 13px 26px;
   border-radius: var(--radius-md);
   transition: all 0.25s var(--ease);
   cursor: pointer;
   white-space: nowrap;
}

.btn--primary {
   background: var(--accent);
   color: #fff;
}

.btn--primary:hover {
   background: var(--accent-hover);
   transform: translateY(-1px);
   box-shadow: 0 8px 30px rgba(220, 38, 38, 0.25);
}

.btn--ghost {
   color: var(--text-secondary);
   border: 1px solid var(--border);
   background: transparent;
}

.btn--ghost:hover {
   border-color: var(--border-hover);
   color: var(--text-primary);
   background: var(--bg-card);
}

.btn--lg {
   padding: 16px 32px;
   font-size: 1rem;
}

/* --- Section Header --- */
.section__header {
   margin-bottom: 64px;
}

.section__label {
   display: inline-block;
   font-size: 0.75rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   color: var(--accent);
   margin-bottom: 16px;
}

.section__title {
   font-size: clamp(2rem, 4vw, 2.75rem);
   font-weight: 700;
   letter-spacing: -0.03em;
   margin-bottom: 16px;
}

.section__description {
   font-size: 1.0625rem;
   color: var(--text-secondary);
   max-width: 520px;
   line-height: 1.65;
}

/* --- Projects --- */
.projects {
   background: var(--bg-secondary);
}

.projects__list {
   border-top: 1px solid var(--border);
}

.project-row {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 24px;
   padding: 28px 24px;
   margin: 0 -24px;
   border-bottom: 1px solid var(--border);
   text-decoration: none;
   position: relative;
   border-radius: var(--radius-md);
}

.project-row::before {
   content: "";
   position: absolute;
   inset: 0;
   background: var(--bg-card);
   border-radius: var(--radius-md);
   opacity: 0;
   z-index: -1;
   transition: opacity 0.25s ease;
}

.project-row:hover::before {
   opacity: 1;
}

.project-row__left {
   display: flex;
   align-items: flex-start;
   gap: 24px;
   flex: 1;
   min-width: 0;
}

.project-row__num {
   font-size: 0.8125rem;
   font-weight: 600;
   color: var(--text-tertiary);
   font-variant-numeric: tabular-nums;
   padding-top: 6px;
   flex-shrink: 0;
   width: 28px;
}

.project-row__info {
   min-width: 0;
}

.project-row__name {
   font-size: clamp(1.25rem, 2.5vw, 1.75rem);
   font-weight: 700;
   letter-spacing: -0.025em;
   line-height: 1.2;
   margin-bottom: 6px;
   transition: color 0.2s var(--ease);
}

.project-row:hover .project-row__name {
   color: var(--accent);
}

.project-row__desc {
   font-size: 0.875rem;
   color: var(--text-tertiary);
   line-height: 1.5;
   max-width: 480px;
   transition: color 0.2s var(--ease);
}

.project-row:hover .project-row__desc {
   color: var(--text-secondary);
}

.project-row__right {
   display: flex;
   align-items: center;
   gap: 28px;
   flex-shrink: 0;
}

.project-row__meta {
   display: flex;
   flex-direction: column;
   align-items: flex-end;
   gap: 8px;
}

.project-row__role {
   font-size: 0.75rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.06em;
   color: var(--accent);
}

.project-row__tags {
   display: flex;
   gap: 5px;
}

.project-row__tags span {
   padding: 3px 8px;
   font-size: 0.6875rem;
   font-weight: 500;
   background: rgba(0, 0, 0, 0.05);
   border: 1px solid var(--border);
   color: var(--text-tertiary);
   border-radius: 100px;
   white-space: nowrap;
}

.project-row__arrow {
   color: var(--text-tertiary);
   flex-shrink: 0;
   transition:
      color 0.2s var(--ease),
      transform 0.3s var(--ease-spring);
}

.project-row:hover .project-row__arrow {
   color: var(--accent);
   transform: translate(3px, -3px);
}

/* Project Preview (mouse-tracking) */
.project-preview {
   position: fixed;
   width: 280px;
   height: 175px;
   border-radius: var(--radius-md);
   overflow: hidden;
   pointer-events: none;
   z-index: 1000;
   opacity: 0;
   transform: scale(0.92);
   transition:
      opacity 0.25s ease,
      transform 0.25s ease;
   box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.18),
      0 0 0 1px rgba(0, 0, 0, 0.08);
}

.project-preview--visible {
   opacity: 1;
   transform: scale(1);
}

.project-preview__img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: none;
}

.project-preview__img[src]:not([src=""]) {
   display: block;
}

.project-preview__img[src]:not([src=""]) + .project-preview__fallback {
   display: none;
}

.project-preview__fallback {
   width: 100%;
   height: 100%;
   background: var(--bg-card);
   display: flex;
   align-items: center;
   justify-content: center;
}

@media (max-width: 1024px) {
   .project-preview {
      display: none;
   }
}

/* --- Skills --- */
.skills {
   overflow: hidden;
}

.skills .section__header {
   text-align: center;
   margin-bottom: 48px;
}

.skills .section__description {
   margin-left: auto;
   margin-right: auto;
}

/* --- Marquee --- */
.marquee {
   position: relative;
   padding: 8px 0;
   overflow: hidden;
}

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

.marquee::before {
   left: 0;
   background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 100%);
}

.marquee::after {
   right: 0;
   background: linear-gradient(270deg, var(--bg-primary) 0%, transparent 100%);
}

.marquee__track {
   display: flex;
   width: max-content;
   gap: 16px;
}

.marquee__track--left {
   animation: marquee-left 40s linear infinite;
}

.marquee__track--right {
   animation: marquee-right 45s linear infinite;
}

.marquee:hover .marquee__track {
   animation-play-state: paused;
}

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

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

.marquee__group {
   display: flex;
   gap: 16px;
   flex-shrink: 0;
}

/* --- Chip (Individual Skill Card) --- */
.chip {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 12px 20px 12px 16px;
   background: var(--bg-card);
   border: 1px solid var(--border);
   border-radius: var(--radius-md);
   white-space: nowrap;
   transition:
      border-color 0.25s var(--ease),
      transform 0.25s var(--ease),
      box-shadow 0.25s var(--ease);
   cursor: default;
   user-select: none;
}

.chip:hover {
   border-color: var(--border-hover);
   transform: translateY(-2px);
   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.chip__icon {
   width: 22px;
   height: 22px;
   flex-shrink: 0;
}

.chip span {
   font-size: 0.875rem;
   font-weight: 520;
   color: var(--text-secondary);
   transition: color 0.2s var(--ease);
}

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

/* Chip color accents */
.chip--vuejs {
   color: #42b883;
}
.chip--vuejs:hover {
   border-color: rgba(66, 184, 131, 0.4);
   background: rgba(66, 184, 131, 0.06);
}

.chip--react {
   color: #61dafb;
}
.chip--react:hover {
   border-color: rgba(97, 218, 251, 0.4);
   background: rgba(97, 218, 251, 0.06);
}

.chip--nextjs {
   color: #e5e5e5;
}
.chip--nextjs:hover {
   border-color: rgba(229, 229, 229, 0.3);
   background: rgba(229, 229, 229, 0.06);
}

.chip--typescript {
   color: #3178c6;
}
.chip--typescript:hover {
   border-color: rgba(49, 120, 198, 0.4);
   background: rgba(49, 120, 198, 0.06);
}

.chip--javascript {
   color: #f7df1e;
}
.chip--javascript:hover {
   border-color: rgba(247, 223, 30, 0.35);
   background: rgba(247, 223, 30, 0.05);
}

.chip--tailwind {
   color: #38bdf8;
}
.chip--tailwind:hover {
   border-color: rgba(56, 189, 248, 0.4);
   background: rgba(56, 189, 248, 0.06);
}

.chip--html {
   color: #e44d26;
}
.chip--html:hover {
   border-color: rgba(228, 77, 38, 0.4);
   background: rgba(228, 77, 38, 0.06);
}

.chip--css {
   color: #264de4;
}
.chip--css:hover {
   border-color: rgba(38, 77, 228, 0.4);
   background: rgba(38, 77, 228, 0.06);
}

.chip--gsap {
   color: #88ce02;
}
.chip--gsap:hover {
   border-color: rgba(136, 206, 2, 0.4);
   background: rgba(136, 206, 2, 0.06);
}

.chip--motion {
   color: #f472b6;
}
.chip--motion:hover {
   border-color: rgba(244, 114, 182, 0.4);
   background: rgba(244, 114, 182, 0.06);
}

.chip--php {
   color: #777bb4;
}
.chip--php:hover {
   border-color: rgba(119, 123, 180, 0.4);
   background: rgba(119, 123, 180, 0.06);
}

.chip--wordpress {
   color: #21759b;
}
.chip--wordpress:hover {
   border-color: rgba(33, 117, 155, 0.4);
   background: rgba(33, 117, 155, 0.06);
}

.chip--elementor {
   color: #92003b;
}
.chip--elementor:hover {
   border-color: rgba(146, 0, 59, 0.4);
   background: rgba(146, 0, 59, 0.06);
}

.chip--prisma {
   color: #e5e5e5;
}
.chip--prisma:hover {
   border-color: rgba(229, 229, 229, 0.3);
   background: rgba(229, 229, 229, 0.06);
}

.chip--postgresql {
   color: #336791;
}
.chip--postgresql:hover {
   border-color: rgba(51, 103, 145, 0.4);
   background: rgba(51, 103, 145, 0.06);
}

.chip--mysql {
   color: #4479a1;
}
.chip--mysql:hover {
   border-color: rgba(68, 121, 161, 0.4);
   background: rgba(68, 121, 161, 0.06);
}

.chip--github {
   color: #57534e;
}
.chip--github:hover {
   border-color: rgba(201, 209, 217, 0.3);
   background: rgba(201, 209, 217, 0.06);
}

.chip--figma {
   color: #a259ff;
}
.chip--figma:hover {
   border-color: rgba(162, 89, 255, 0.4);
   background: rgba(162, 89, 255, 0.06);
}

.chip--seo {
   color: #06b6d4;
}
.chip--seo:hover {
   border-color: rgba(6, 182, 212, 0.4);
   background: rgba(6, 182, 212, 0.06);
}

.chip--schema {
   color: #fbbf24;
}
.chip--schema:hover {
   border-color: rgba(251, 191, 36, 0.35);
   background: rgba(251, 191, 36, 0.05);
}

.chip--a11y {
   color: #34d399;
}
.chip--a11y:hover {
   border-color: rgba(22, 163, 74, 0.4);
   background: rgba(22, 163, 74, 0.06);
}

.chip--semrush {
   color: #ff622d;
}
.chip--semrush:hover {
   border-color: rgba(255, 98, 45, 0.4);
   background: rgba(255, 98, 45, 0.06);
}

.chip--gsc {
   color: #4285f4;
}
.chip--gsc:hover {
   border-color: rgba(66, 133, 244, 0.4);
   background: rgba(66, 133, 244, 0.06);
}

.chip--ai {
   color: #a78bfa;
}
.chip--ai:hover {
   border-color: rgba(167, 139, 250, 0.4);
   background: rgba(167, 139, 250, 0.06);
}

/* --- Services --- */
.services {
   background: var(--bg-secondary);
}

.services__accordion {
   border-top: 1px solid var(--border);
}

.accordion-item {
   border-bottom: 1px solid var(--border);
}

.accordion-item__trigger {
   display: flex;
   align-items: center;
   justify-content: space-between;
   width: 100%;
   padding: 24px 0;
   background: none;
   border: none;
   color: inherit;
   cursor: pointer;
   gap: 24px;
   text-align: left;
   font-family: inherit;
}

.accordion-item__left {
   display: flex;
   align-items: center;
   gap: 24px;
   min-width: 0;
}

.accordion-item__num {
   font-size: 0.8125rem;
   font-weight: 600;
   color: var(--text-tertiary);
   font-variant-numeric: tabular-nums;
   flex-shrink: 0;
   width: 28px;
}

.accordion-item__title {
   font-size: clamp(1.125rem, 2vw, 1.375rem);
   font-weight: 650;
   letter-spacing: -0.02em;
   transition: color 0.2s var(--ease);
}

.accordion-item__trigger:hover .accordion-item__title {
   color: var(--accent);
}

.accordion-item__right {
   display: flex;
   align-items: center;
   gap: 20px;
   flex-shrink: 0;
}

.accordion-item__hint {
   font-size: 0.8125rem;
   color: var(--text-tertiary);
   white-space: nowrap;
}

.accordion-item__icon {
   width: 20px;
   height: 20px;
   position: relative;
   flex-shrink: 0;
}

.accordion-item__icon span {
   position: absolute;
   top: 50%;
   left: 50%;
   width: 14px;
   height: 1.5px;
   background: var(--text-tertiary);
   border-radius: 1px;
   transition:
      transform 0.3s var(--ease),
      background 0.2s var(--ease);
}

.accordion-item__icon span:first-child {
   transform: translate(-50%, -50%);
}

.accordion-item__icon span:last-child {
   transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-item[data-open="true"] .accordion-item__icon span:last-child {
   transform: translate(-50%, -50%) rotate(0deg);
}

.accordion-item[data-open="true"] .accordion-item__icon span {
   background: var(--accent);
}

.accordion-item__panel {
   display: grid;
   grid-template-rows: 0fr;
   transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item[data-open="true"] .accordion-item__panel {
   grid-template-rows: 1fr;
}

.accordion-item__content {
   overflow: hidden;
   padding: 0 0 0 52px;
}

.accordion-item__content > * {
   padding-bottom: 28px;
}

.accordion-item__content > *:last-child {
   padding-bottom: 0;
   margin-bottom: 28px;
}

.accordion-item__content p {
   font-size: 0.9375rem;
   line-height: 1.7;
   color: var(--text-secondary);
   margin-bottom: 16px;
   max-width: 560px;
}

.accordion-item__tags {
   display: flex;
   flex-wrap: wrap;
   gap: 6px;
}

.accordion-item__tags span {
   padding: 4px 10px;
   font-size: 0.75rem;
   font-weight: 500;
   background: rgba(0, 0, 0, 0.05);
   border: 1px solid var(--border);
   color: var(--text-tertiary);
   border-radius: 100px;
}

/* --- Experience --- */
.experience {
   background: var(--bg-secondary);
}

.experience__timeline {
   display: flex;
   flex-direction: column;
   gap: 2px;
}

.experience-card {
   display: grid;
   grid-template-columns: 200px 1fr;
   gap: 40px;
   padding: 36px 0;
   border-bottom: 1px solid var(--border);
}

.experience-card:first-child {
   border-top: 1px solid var(--border);
}

.experience-card__date {
   display: flex;
   gap: 6px;
   font-size: 0.875rem;
   color: var(--text-tertiary);
   font-weight: 450;
   padding-top: 2px;
   white-space: nowrap;
}

.experience-card__date-separator {
   color: var(--border-hover);
}

.experience-card__header {
   margin-bottom: 12px;
}

.experience-card__title {
   font-size: 1.125rem;
   font-weight: 650;
   letter-spacing: -0.01em;
   margin-bottom: 4px;
}

.experience-card__company {
   font-size: 0.875rem;
   color: var(--accent);
   font-weight: 500;
}

.experience-card__text {
   font-size: 0.9375rem;
   line-height: 1.65;
   color: var(--text-secondary);
   margin-bottom: 16px;
   max-width: 560px;
}

.experience-card__tags {
   display: flex;
   flex-wrap: wrap;
   gap: 6px;
}

.experience-card__tags span {
   padding: 4px 10px;
   font-size: 0.75rem;
   font-weight: 500;
   background: var(--accent-subtle);
   color: var(--accent);
   border-radius: 100px;
}

.experience__education {
   margin-top: 48px;
   padding: 28px;
   background: var(--bg-card);
   border: 1px solid var(--border);
   border-radius: var(--radius-lg);
}

.experience__education-label {
   font-size: 0.6875rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   color: var(--text-tertiary);
   margin-bottom: 16px;
}

.experience__education-items {
   display: flex;
   flex-direction: column;
   gap: 12px;
}

.experience__education-item {
   display: flex;
   align-items: baseline;
   gap: 16px;
}

.experience__education-degree {
   font-size: 0.9375rem;
   font-weight: 600;
}

.experience__education-school {
   font-size: 0.875rem;
   color: var(--text-tertiary);
}

/* --- Testimonials --- */
.testimonials {
   padding-bottom: 100px;
}

.testimonials .section__header {
   margin-bottom: 48px;
}

.testimonials__marquee {
   padding: 8px 0;
}

.testimonials__marquee .marquee__track {
   gap: 24px;
}

.testimonials__marquee .marquee__group {
   gap: 24px;
}

.testimonials__marquee .marquee__track--left {
   animation-duration: 60s;
}

.testimonial-card {
   flex-shrink: 0;
   width: 380px;
   padding: 28px 28px 24px;
   background: var(--bg-card);
   border: 1px solid var(--border);
   border-radius: var(--radius-lg);
   display: flex;
   flex-direction: column;
   gap: 20px;
   transition:
      border-color 0.25s var(--ease),
      transform 0.25s var(--ease),
      box-shadow 0.25s var(--ease);
   cursor: default;
   user-select: none;
}

.testimonial-card:hover {
   border-color: var(--border-hover);
   transform: translateY(-3px);
   box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.testimonial-card__quote {
   font-size: 0.9375rem;
   line-height: 1.65;
   color: var(--text-secondary);
   position: relative;
   padding-left: 16px;
   border-left: 2px solid var(--accent);
}

.testimonial-card__author {
   display: flex;
   align-items: center;
   gap: 12px;
   margin-top: auto;
}

.testimonial-card__avatar {
   width: 36px;
   height: 36px;
   border-radius: 50%;
   background: var(--accent);
   color: #fff;
   font-size: 0.75rem;
   font-weight: 700;
   display: flex;
   align-items: center;
   justify-content: center;
   letter-spacing: 0.02em;
   flex-shrink: 0;
}

.testimonial-card__info {
   display: flex;
   flex-direction: column;
   gap: 2px;
}

.testimonial-card__name {
   font-size: 0.875rem;
   font-weight: 600;
   color: var(--text-primary);
}

.testimonial-card__role {
   font-size: 0.8125rem;
   color: var(--text-tertiary);
}

/* --- Contact --- */
.contact {
   padding: 140px 0;
}

.contact__inner {
   text-align: center;
   max-width: 640px;
   margin: 0 auto;
}

.contact__title {
   font-size: clamp(2rem, 4.5vw, 3rem);
   font-weight: 750;
   letter-spacing: -0.035em;
   line-height: 1.1;
   margin-bottom: 20px;
   margin-top: 16px;
}

.contact__title-accent {
   background: linear-gradient(135deg, var(--accent) 0%, #ef4444 60%, #fca5a5 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
}

.contact__text {
   font-size: 1.0625rem;
   color: var(--text-secondary);
   line-height: 1.7;
   margin-bottom: 36px;
}

.contact__actions {
   display: flex;
   justify-content: center;
   gap: 14px;
   margin-bottom: 40px;
   flex-wrap: wrap;
}

.contact__info {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 12px;
   font-size: 0.875rem;
   color: var(--text-tertiary);
}

.contact__info a {
   color: var(--text-secondary);
   transition: color 0.2s var(--ease);
}

.contact__info a:hover {
   color: var(--accent);
}

.contact__info-divider {
   opacity: 0.4;
}

/* --- Footer --- */
.footer {
   padding: 24px 0;
   border-top: 1px solid var(--border);
}

.footer__inner {
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.footer__copy {
   font-size: 0.8125rem;
   color: var(--text-tertiary);
}

.footer__top {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   font-size: 0.8125rem;
   color: var(--text-tertiary);
   transition: color 0.2s var(--ease);
}

.footer__top:hover {
   color: var(--text-secondary);
}

/* --- Reveal Animations --- */
.reveal {
   opacity: 0;
   transform: translateY(28px);
   transition:
      opacity 0.7s var(--ease-out),
      transform 0.7s var(--ease-out);
}

.reveal--visible {
   opacity: 1;
   transform: translateY(0);
}

/* Hero reveals are instant on load */
.hero .reveal {
   transition-duration: 0.8s;
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
   .section {
      padding: 96px 0;
   }

   .project-row__desc {
      display: none;
   }

   .experience-card {
      grid-template-columns: 160px 1fr;
      gap: 24px;
   }

   .accordion-item__hint {
      display: none;
   }

   .testimonial-card {
      width: 320px;
      padding: 24px 22px 20px;
   }
}

/* Tablet Portrait */
@media (max-width: 768px) {
   .nav__links {
      display: none;
   }

   .nav__toggle {
      display: flex;
   }

   .section {
      padding: 80px 0;
   }

   .hero {
      min-height: auto;
   }

   .hero__container {
      padding-top: 90px;
      padding-bottom: 40px;
      min-height: 100vh;
      min-height: 100dvh;
   }

   .hero__name {
      font-size: clamp(3rem, 11vw, 7rem);
   }

   .hero__bottom {
      flex-direction: column;
      align-items: flex-start;
      gap: 28px;
   }

   .hero__badges {
      align-items: flex-start;
      flex-direction: row;
      flex-wrap: wrap;
   }

   .projects__grid {
      grid-template-columns: 1fr;
      gap: 20px;
   }

   .project-row {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
   }

   .project-row__right {
      flex-direction: row-reverse;
      justify-content: space-between;
      width: 100%;
   }

   .project-row__meta {
      align-items: flex-start;
   }

   .accordion-item__trigger {
      padding: 20px 0;
   }

   .accordion-item__content {
      padding-left: 0;
   }

   .marquee::before,
   .marquee::after {
      width: 60px;
   }

   .testimonial-card {
      width: 280px;
      padding: 20px 18px 18px;
   }

   .testimonial-card__quote {
      font-size: 0.875rem;
   }

   .experience-card {
      grid-template-columns: 1fr;
      gap: 8px;
      padding: 28px 0;
   }

   .experience-card__date {
      font-size: 0.8125rem;
   }

   .experience__education-item {
      flex-direction: column;
      gap: 4px;
   }

   .section__header {
      margin-bottom: 48px;
   }

   .contact {
      padding: 96px 0;
   }

   .contact__title {
      font-size: clamp(1.75rem, 6vw, 2.5rem);
   }
}

/* Mobile */
@media (max-width: 480px) {
   .container {
      padding: 0 18px;
   }

   .hero__container {
      padding-top: 80px;
      padding-bottom: 32px;
   }

   .hero__name {
      font-size: clamp(2.5rem, 14vw, 5rem);
      line-height: 0.92;
   }

   .hero__bio {
      font-size: 0.875rem;
      max-width: 100%;
   }

   .hero__pill {
      padding: 6px 14px;
      font-size: 0.6875rem;
   }

   .section {
      padding: 64px 0;
   }

   .project-row__left {
      gap: 14px;
   }

   .project-row__num {
      width: 22px;
      font-size: 0.75rem;
   }

   .accordion-item__left {
      gap: 14px;
   }

   .accordion-item__num {
      width: 22px;
      font-size: 0.75rem;
   }

   .contact__actions {
      flex-direction: column;
      align-items: center;
   }

   .contact__info {
      flex-direction: column;
      gap: 4px;
   }

   .contact__info-divider {
      display: none;
   }

   .footer__inner {
      flex-direction: column;
      gap: 12px;
      text-align: center;
   }
}

/* --- Prefers Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
   *,
   *::before,
   *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
   }

   html {
      scroll-behavior: auto;
   }

   .reveal {
      opacity: 1;
      transform: none;
   }
}
