@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --bg-main: #f4efe7;
  --bg-soft: #fffaf3;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text-main: #10233f;
  --text-soft: #4c5d77;
  --line: rgba(16, 35, 63, 0.14);
  --line-strong: rgba(16, 35, 63, 0.2);
  --accent: #d97706;
  --accent-dark: #9a3412;
  --accent-soft: rgba(217, 119, 6, 0.12);
  --navy: #0f172a;
  --teal: #0f766e;
  --shadow-lg: 0 24px 60px rgba(16, 35, 63, 0.12);
  --shadow-md: 0 16px 30px rgba(16, 35, 63, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.65;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(217, 119, 6, 0.18), transparent 22rem),
    radial-gradient(circle at 90% 10%, rgba(15, 118, 110, 0.16), transparent 22rem),
    linear-gradient(180deg, #fbf6ef 0%, #f3ede3 52%, #efe6da 100%);
}

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

a {
  color: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.4;
  pointer-events: none;
}

.page-shell::before {
  top: 4rem;
  right: -8rem;
  background: rgba(217, 119, 6, 0.28);
  animation: ambientFloat 12s ease-in-out infinite;
}

.page-shell::after {
  top: 42rem;
  left: -10rem;
  background: rgba(15, 118, 110, 0.22);
  animation: ambientFloat 15s ease-in-out infinite reverse;
}

.site-header,
.section,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  padding-top: 1.4rem;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 1rem;
  z-index: 10;
  animation: headerReveal 700ms ease both;
}

.logo,
.nav-links a,
.btn,
.contact-list a {
  text-decoration: none;
}

.logo {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.95fr);
  gap: 2rem;
  align-items: center;
  padding: 5rem 0 4rem;
}

.eyebrow,
.card-kicker,
.profile-label {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.hero-copy h1,
.section-heading h2,
.profile-card h2,
.panel h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  margin: 0.65rem 0 1rem;
  max-width: 12ch;
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 0.95;
  color: var(--navy);
}

.hero-intro {
  margin: 0;
  max-width: 38rem;
  font-size: 1.05rem;
  color: var(--text-soft);
}

.hero-actions,
.availability-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-actions {
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 3.25rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.btn::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -35%;
  width: 28%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: rotate(18deg) translateX(-240%);
  transition: transform 520ms ease;
  pointer-events: none;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: rotate(18deg) translateX(560%);
}

.btn-primary {
  color: #fffaf5;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  box-shadow: 0 14px 28px rgba(154, 52, 18, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 18px 34px rgba(154, 52, 18, 0.28);
}

.btn-secondary,
.btn-ghost {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.64);
  border-color: var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(16, 35, 63, 0.28);
  background: rgba(255, 255, 255, 0.88);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.3rem;
}

.panel,
.stat-card,
.profile-card {
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.stat-card {
  padding: 1.2rem;
  border-radius: var(--radius-md);
  animation: softFloat 6s ease-in-out infinite;
}

.stat-card:nth-child(2) {
  animation-delay: 0.9s;
}

.stat-card:nth-child(3) {
  animation-delay: 1.8s;
}

.stat-card p {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
  font-size: 0.93rem;
}

.stat-value {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.profile-card {
  padding: 1rem;
  border-radius: var(--radius-xl);
  position: relative;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.profile-card::after {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem auto;
  width: 6rem;
  height: 6rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.18), rgba(15, 118, 110, 0.18));
  z-index: 0;
}

.profile-image-wrap,
.profile-card-body {
  position: relative;
  z-index: 1;
}

.profile-image-wrap {
  border-radius: 26px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.profile-image {
  width: 100%;
  height: min(28rem, 48vw);
  min-height: 20rem;
  object-fit: cover;
  transition: transform 500ms ease;
}

.profile-card-body {
  padding: 0.4rem 0.3rem 0.7rem;
}

.profile-card h2 {
  margin: 0.55rem 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.05;
}

.profile-card p {
  margin: 0;
  color: var(--text-soft);
}

.profile-card:hover,
.profile-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(16, 35, 63, 0.14);
}

.profile-card:hover .profile-image,
.profile-card:focus-within .profile-image {
  transform: scale(1.04);
}

.profile-points,
.skill-list,
.contact-list {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
}

.profile-points li,
.skill-list li {
  position: relative;
  padding-left: 1.4rem;
}

.profile-points li + li,
.skill-list li + li,
.contact-list li + li {
  margin-top: 0.72rem;
}

.profile-points li::before,
.skill-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
}

.section {
  padding: 1.25rem 0 0;
}

.section + .section {
  margin-top: 2.5rem;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 1.6rem;
}

.section-heading::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  margin-top: 0.95rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transition: width 560ms ease;
}

.section.fade-in.appear .section-heading::after {
  width: 5.5rem;
}

.section-heading h2 {
  margin: 0.55rem 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
}

.about-layout,
.about-cards {
  display: grid;
  gap: 1rem;
}

.about-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  align-items: start;
  margin-bottom: 1rem;
}

.about-main {
  padding: 1.8rem;
}

.about-lead {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--navy) !important;
}

.about-side {
  min-height: 100%;
}

.about-summary {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.about-summary li {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.about-summary li:first-child {
  padding-top: 0;
  border-top: 0;
}

.about-summary strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.about-summary span {
  color: var(--text-soft);
}

.about-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-card {
  min-height: 100%;
}

.about-main,
.about-side,
.about-card,
.skill-card,
.timeline-item,
.contact-panel,
.availability-card {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.about-main:hover,
.about-side:hover,
.about-card:hover,
.skill-card:hover,
.timeline-item:hover,
.contact-panel:hover,
.availability-card:hover,
.about-main:focus-within,
.about-side:focus-within,
.about-card:focus-within,
.skill-card:focus-within,
.timeline-item:focus-within,
.contact-panel:focus-within,
.availability-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px rgba(16, 35, 63, 0.12);
  border-color: rgba(16, 35, 63, 0.18);
}

.panel {
  border-radius: var(--radius-lg);
  padding: 1.45rem;
}

.panel p {
  margin: 0;
  color: var(--text-soft);
}

.panel p + p {
  margin-top: 0.9rem;
}

.panel h3 {
  margin: 0.45rem 0 0.7rem;
  font-size: 1.3rem;
  line-height: 1.08;
  color: var(--navy);
}

.info-card {
  min-height: 100%;
}

.skills-grid,
.projects-grid,
.contact-layout {
  display: grid;
  gap: 1rem;
}

.skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-card {
  min-height: 100%;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.timeline-content p {
  margin: 0;
}

.timeline-marker {
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  box-shadow: 0 0 0 8px rgba(15, 118, 110, 0.08);
}

.timeline-date {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.timeline-place {
  color: var(--text-soft);
}

.experience-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
}

.experience-list li + li {
  margin-top: 0.4rem;
}

.project-menu {
  position: relative;
  overflow: hidden;
  padding: 1.1rem 1.1rem 1.2rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 36px rgba(16, 35, 63, 0.08);
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.12), transparent 12rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
}

.project-menu::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent 70%);
  pointer-events: none;
}

.project-menu-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1rem;
  margin-bottom: 0.95rem;
}

.project-menu-text {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.project-filter {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  padding: 0.38rem;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(16, 35, 63, 0.08);
  border-radius: 999px;
  background: rgba(16, 35, 63, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.project-tab,
.project-subtab {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.project-tab::before,
.project-subtab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 55%);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
  z-index: 0;
}

.project-tab > *,
.project-subtab > * {
  position: relative;
  z-index: 1;
}

.project-tab {
  min-height: 3rem;
  padding: 0.76rem 1.22rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 244, 248, 0.9));
  color: var(--navy);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(16, 35, 63, 0.06);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.project-tab:hover,
.project-tab:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(16, 35, 63, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(244, 247, 250, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 12px 22px rgba(16, 35, 63, 0.1);
}

.project-tab:hover::before,
.project-tab:focus-visible::before {
  opacity: 1;
}

.project-tab.is-active {
  color: #fffaf5;
  border-color: transparent;
  background: linear-gradient(135deg, #10233f 0%, #1d4773 54%, #0f766e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 30px rgba(16, 35, 63, 0.24);
}

.project-subfilter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(16, 35, 63, 0.08);
  align-items: center;
}

.project-subfilter[hidden] {
  display: none !important;
}

.project-subtab {
  min-height: 2.55rem;
  padding: 0.66rem 1rem;
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 247, 249, 0.9));
  color: var(--text-soft);
  font-size: 0.95rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 16px rgba(16, 35, 63, 0.05);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.project-subtab:hover,
.project-subtab:focus-visible {
  transform: translateY(-2px);
  color: var(--navy);
  border-color: rgba(16, 35, 63, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 248, 250, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 12px 20px rgba(16, 35, 63, 0.08);
}

.project-subtab:hover::before,
.project-subtab:focus-visible::before {
  opacity: 1;
}

.project-subtab.is-active {
  color: #fffaf5;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 22px rgba(154, 52, 18, 0.2);
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 470px));
  align-items: start;
  justify-content: center;
  justify-items: center;
  perspective: 1400px;
}

.project-card[hidden] {
  display: none !important;
}

.project-card {
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  --card-lift: 0px;
  --card-scale: 1;
  --shadow-opacity: 0.18;
  --glow-opacity: 0;
  --glow-x: 50%;
  --glow-y: 50%;
  width: min(100%, 470px);
  padding: 0;
  overflow: visible;
  position: relative;
  isolation: isolate;
  cursor: pointer;
  transform-origin: center center;
  transform-style: preserve-3d;
  transform:
    perspective(1400px)
    translateY(var(--card-lift))
    rotateX(var(--rotate-x))
    rotateY(var(--rotate-y))
    scale(var(--card-scale));
  box-shadow:
    0 16px 28px rgba(16, 35, 63, 0.08),
    0 5px 12px rgba(16, 35, 63, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.82);
  transition:
    transform 140ms ease-out,
    box-shadow 180ms ease,
    border-color 180ms ease,
    filter 180ms ease;
  will-change: transform;
}

.project-card::before,
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
}

.project-card::before {
  inset: auto 1.2rem -1.4rem 1.2rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(16, 35, 63, var(--shadow-opacity));
  filter: blur(22px);
  opacity: 1;
  z-index: 0;
}

.project-card::after {
  background:
    radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 48%);
  opacity: var(--glow-opacity);
  z-index: 2;
}

.project-card > * {
  position: relative;
  z-index: 1;
  transition: transform 260ms ease;
}

.project-card.is-tilting,
.project-card:hover,
.project-card:focus-within {
  box-shadow:
    0 20px 34px rgba(16, 35, 63, 0.14),
    0 42px 86px rgba(16, 35, 63, 0.3);
  border-color: rgba(16, 35, 63, 0.18);
  filter: saturate(1.06) brightness(1.01);
}

.project-card.is-tilting::before,
.project-card:hover::before,
.project-card:focus-within::before {
  transform: translateY(0.55rem) scale(1.04);
}

.project-card.is-tilting .project-media,
.project-card:hover .project-media,
.project-card:hover .project-media-alt,
.project-card.is-tilting .project-media-alt,
.project-card:focus-within .project-media,
.project-card:focus-within .project-media-alt {
  transform: translateZ(34px);
}

.project-card.is-tilting .project-body,
.project-card:hover .project-body,
.project-card:focus-within .project-body {
  transform: translateZ(22px);
}

.project-card.is-tilting .project-actions,
.project-card.is-tilting .project-badge,
.project-card:hover .project-actions,
.project-card:hover .project-badge,
.project-card:focus-within .project-actions,
.project-card:focus-within .project-badge {
  transform: translateZ(42px);
}

.project-media {
  position: relative;
  min-height: 12rem;
  background: #e6d9c7;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  transition: transform 260ms ease;
}

.project-media img {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  object-fit: cover;
}

.project-media-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(16, 35, 63, 0.12), rgba(16, 35, 63, 0.02) 36%, rgba(16, 35, 63, 0.18));
  pointer-events: none;
}

.project-media-alt {
  display: grid;
  place-content: center;
  gap: 0.85rem;
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background:
    radial-gradient(circle at top, rgba(217, 119, 6, 0.22), transparent 12rem),
    linear-gradient(145deg, #10233f 0%, #183157 45%, #0f766e 100%);
  color: #fffaf5;
  transition: transform 260ms ease;
}

.project-media-stage {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 13rem),
    linear-gradient(145deg, #5b3a1e 0%, #8b5e34 42%, #d97706 100%);
}

.project-media-stage-alt {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.14), transparent 13rem),
    linear-gradient(145deg, #17304f 0%, #1c4b73 48%, #0f766e 100%);
}

.project-media-alt p {
  margin: 0;
  color: rgba(255, 250, 245, 0.84);
  font-size: 1.02rem;
}

.project-badge {
  display: inline-flex;
  justify-self: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 260ms ease;
  color: #fffaf5;
  box-shadow: 0 10px 18px rgba(16, 35, 63, 0.18);
}

.project-body {
  padding: 1.15rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transition: transform 260ms ease;
}

.project-tags {
  margin-top: 0.85rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
  transition: transform 260ms ease;
}

.project-actions .btn {
  min-height: 2.9rem;
  padding: 0.75rem 1.1rem;
}

.contact-layout {
  grid-template-columns: 1.15fr 0.85fr;
}

.contact-panel,
.availability-card {
  min-height: 100%;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding-bottom: 0.78rem;
  border-bottom: 1px solid var(--line);
}

.contact-list span {
  min-width: 6.5rem;
  font-weight: 800;
  color: var(--navy);
}

.contact-list a {
  color: var(--accent-dark);
  word-break: break-word;
}

.contact-list li {
  transition: transform 180ms ease, border-color 180ms ease;
}

.contact-list li:hover {
  transform: translateX(4px);
  border-color: rgba(16, 35, 63, 0.24);
}

.site-footer {
  padding: 3rem 0 2.4rem;
}

.site-footer p {
  margin: 0;
  text-align: center;
  color: var(--text-soft);
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ambientFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(1.2rem, -1rem, 0) scale(1.04);
  }
}

@keyframes softFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes headerReveal {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .page-shell::before,
  .page-shell::after,
  .stat-card,
  .navbar,
  .project-card,
  .project-card::before,
  .project-card::after,
  .project-card > *,
  .profile-card,
  .profile-image,
  .btn::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1080px) {
  .hero,
  .contact-layout,
  .projects-grid,
  .skills-grid,
  .about-layout,
  .about-cards {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 14ch;
  }

  .profile-image {
    height: min(32rem, 70vw);
  }
}

@media (max-width: 820px) {
  .navbar {
    border-radius: 28px;
    justify-content: center;
  }

  .logo {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding-top: 3rem;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section,
  .site-footer {
    width: min(calc(100% - 1.2rem), var(--max-width));
  }

  .navbar {
    padding-inline: 1rem;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.5rem, 10vw, 3.4rem);
  }

  .btn {
    width: 100%;
  }

  .profile-card,
  .panel,
  .stat-card {
    border-radius: 18px;
  }

  .contact-list li {
    padding-bottom: 0.95rem;
  }
}
