:root {
  --bg: #090909;
  --text: #f5f3ee;
  --muted: #a8a8a8;
  --accent: #c26a2d;
  --accent-hover: #d98236;
  --border: #2c2c2c;
  --about-bg-image: url("../Assets/About_me_bg.jpeg");
  --projects-bg-image: url("../Assets/Projects_bg.jpeg");
  --experience-bg-image: url("../Assets/About_me_bg.jpeg");
  --education-bg-image: url("../Assets/map.png");
  --contact-bg-image: url("../Assets/credit.png");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Oswald", sans-serif;
}

* {
  scrollbar-color: rgba(217, 130, 54, 0.78) rgba(245, 243, 238, 0.08);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  border: 1px solid rgba(245, 243, 238, 0.08);
  background: rgba(9, 9, 9, 0.5);
}

::-webkit-scrollbar-thumb {
  border: 2px solid rgba(9, 9, 9, 0.74);
  background: linear-gradient(180deg, rgba(217, 130, 54, 0.95), rgba(194, 106, 45, 0.62));
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(217, 130, 54, 1), rgba(217, 130, 54, 0.78));
}

main {
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow: hidden;
}

.site-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 9, 9, 0.76);
  backdrop-filter: blur(8px);
}

.site-notice-modal[hidden] {
  display: none;
}

.site-notice-card {
  width: min(460px, 100%);
  border: 1px solid rgba(217, 130, 54, 0.74);
  padding: 30px;
  background: rgba(14, 14, 14, 0.94);
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.site-notice-card h2 {
  color: var(--accent-hover);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-notice-card p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1rem;
}

.site-notice-card button {
  margin-top: 26px;
  border: 1px solid var(--accent);
  padding: 10px 24px;
  background: rgba(194, 106, 45, 0.16);
  color: var(--text);
  font: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-notice-card button:hover,
.site-notice-card button:focus-visible {
  background: var(--accent);
  outline: none;
}

.page-section {
  position: absolute;
  inset: 0;
  min-height: 100vh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease, visibility 650ms ease;
}

.page-section.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.hero {
  display: flex;
  align-items: center;
  padding: 48px 7vw 48px 260px;
  isolation: isolate;
}

.background-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  background: var(--bg);
}

.video-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.92) 0%, rgba(9, 9, 9, 0.72) 42%, rgba(9, 9, 9, 0.48) 100%),
    radial-gradient(circle at 75% 45%, rgba(194, 106, 45, 0.12), transparent 34%);
}

.home-button {
  position: fixed;
  top: 32px;
  left: 48px;
  z-index: 6;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 18px;
  background: rgba(9, 9, 9, 0.54);
  font-family: "Oswald", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  transition: border-color 220ms ease, color 220ms ease, transform 220ms ease, background 220ms ease;
}

.home-button:hover,
.home-button:focus-visible,
.home-button.is-active {
  color: var(--accent-hover);
  border-color: var(--accent);
  background: rgba(30, 30, 30, 0.72);
  transform: translateX(4px);
  outline: none;
}

.side-nav {
  position: fixed;
  top: 50%;
  left: 48px;
  z-index: 5;
  display: grid;
  gap: 20px;
  transform: translateY(-50%);
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.side-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 220ms ease, transform 220ms ease;
}

.side-nav a:hover,
.side-nav a:focus-visible,
.side-nav a.is-active {
  color: var(--accent-hover);
  transform: translateX(8px);
  outline: none;
}

.hero-content {
  max-width: 880px;
  animation: fadeIn 1000ms ease both;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-family: "Oswald", sans-serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(5rem, 16vw, 13rem);
  line-height: 0.82;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tagline {
  margin-top: 28px;
  color: var(--text);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.home-footer {
  position: absolute;
  right: 7vw;
  bottom: 34px;
  display: flex;
  gap: 28px;
  align-items: center;
  color: var(--muted);
  font-family: "Oswald", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: fadeIn 1200ms ease 300ms both;
}

.home-footer::before {
  content: "";
  width: 72px;
  height: 1px;
  background: var(--accent);
}

.home-footer a,
.home-footer span {
  color: inherit;
  text-decoration: none;
  transition: color 220ms ease;
}

.home-footer a:hover,
.home-footer a:focus-visible {
  color: var(--accent-hover);
  outline: none;
}

.about-footer {
  position: fixed;
  right: 7vw;
  bottom: 34px;
  z-index: 10;
  display: flex;
  gap: 28px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  color: var(--muted);
  font-family: "Oswald", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 300ms ease, visibility 300ms ease;
}

body[data-active-section="about"] .about-footer {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.about-footer::before {
  content: "";
  width: 72px;
  height: 1px;
  background: var(--accent);
}

.about-footer a,
.about-footer span {
  color: inherit;
  text-decoration: none;
  transition: color 220ms ease;
}

.about-footer a:hover,
.about-footer a:focus-visible {
  color: var(--accent-hover);
  outline: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}

.about-section {
  position: absolute;
  isolation: isolate;
  overflow: hidden;
  padding: 86px 7vw 72px 260px;
  background: var(--bg);
  border-top: 1px solid rgba(245, 243, 238, 0.08);
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--bg);
}

.about-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.94) 0%, rgba(9, 9, 9, 0.82) 40%, rgba(9, 9, 9, 0.26) 68%, rgba(9, 9, 9, 0.06) 100%),
    linear-gradient(180deg, rgba(9, 9, 9, 0.18) 0%, rgba(9, 9, 9, 0.46) 100%);
  pointer-events: none;
}

.about-background-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 1;
}

.section-inner {
  position: relative;
  width: min(1120px, 100%);
}

.section-kicker {
  margin-bottom: 14px;
  color: var(--accent);
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-grid {
  width: min(720px, 52vw);
}

.about-copy h2 {
  max-width: 820px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.8rem, 5.8vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.about-copy p {
  max-width: 680px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.48;
  text-align: justify;
  text-align-last: left;
}

.projects-section {
  position: absolute;
  isolation: isolate;
  overflow: hidden;
  padding: 76px 7vw 76px 260px;
  background: var(--bg);
}

.projects-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(9, 9, 9, 0.92), rgba(9, 9, 9, 0.54)),
    var(--projects-bg-image),
    var(--about-bg-image);
  background-position: center;
  background-size: cover;
  opacity: 0.78;
}

.experience-section::before {
  background-image:
    linear-gradient(90deg, rgba(9, 9, 9, 0.92), rgba(9, 9, 9, 0.54)),
    var(--experience-bg-image);
}

.projects-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 22%, rgba(194, 106, 45, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(9, 9, 9, 0.2), rgba(9, 9, 9, 0.84));
}

.education-section {
  position: absolute;
  isolation: isolate;
  overflow-y: auto;
  padding: 46px 7vw 46px 260px;
  background: var(--bg);
}

.education-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(9, 9, 9, 0.9), rgba(9, 9, 9, 0.34), rgba(9, 9, 9, 0.82)),
    var(--education-bg-image);
  background-position: center;
  background-size: cover;
  opacity: 0.92;
}

.education-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 9, 9, 0.1), rgba(9, 9, 9, 0.84)),
    radial-gradient(circle at 54% 42%, rgba(217, 130, 54, 0.12), transparent 34%);
}

.education-content {
  position: relative;
  width: min(1240px, 100%);
  height: 100%;
}

.education-menu {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 28px;
  height: 100%;
}

.education-menu-header h2 {
  border-bottom: 1px solid rgba(245, 243, 238, 0.26);
  padding-bottom: 8px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 5vw, 5.3rem);
  line-height: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.education-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(245, 243, 238, 0.22);
}

.education-tab {
  position: relative;
  border: 0;
  padding: 22px 24px 20px;
  background: rgba(9, 9, 9, 0.28);
  color: var(--muted);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.7rem, 2.2vw, 2.45rem);
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease;
}

.animation-projects-section .education-tab {
  cursor: pointer;
}

.animation-channel-link {
  margin: 12px 0 18px;
  color: var(--muted);
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.animation-channel-link a {
  color: var(--accent-hover);
  font-weight: 700;
}

.animation-channel-link a:hover,
.animation-channel-link a:focus-visible {
  color: var(--accent);
}

.animation-projects-section {
  overflow-y: auto;
}

.animation-projects-section .education-menu {
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: clamp(22px, 3vh, 34px);
}

.education-tab span {
  margin-right: 24px;
  color: var(--accent-hover);
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
}

.education-tab::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 0;
  left: 24px;
  height: 5px;
  background: var(--text);
  opacity: 0;
  transition: opacity 220ms ease;
}

.education-tab:hover,
.education-tab:focus-visible,
.education-tab.is-selected {
  background: rgba(20, 20, 20, 0.54);
  color: var(--text);
  outline: none;
}

.education-tab.is-selected::after {
  opacity: 1;
}

.education-feature {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  justify-self: center;
  width: min(620px, 100%);
  margin-bottom: 16px;
}

.animation-projects-section .education-feature {
  grid-template-columns: minmax(0, 1fr);
  width: min(760px, 100%);
  margin-bottom: clamp(28px, 4vh, 56px);
}

.education-feature-icon {
  display: grid;
  width: 154px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(245, 243, 238, 0.48);
  border-radius: 50%;
  background: rgba(9, 9, 9, 0.42);
}

.education-feature-icon img {
  width: 58%;
  height: 58%;
  object-fit: contain;
}

.education-feature-copy h3,
.education-info-panel h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.education-feature-copy h3 {
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  line-height: 0.96;
}

.education-feature-copy p {
  margin-top: 10px;
  color: var(--text);
  font-size: 1rem;
}

.education-feature-copy .education-program {
  color: var(--muted);
  font-family: "Oswald", sans-serif;
  font-size: 1.24rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.education-feature-copy strong {
  display: block;
  margin-top: 18px;
  color: var(--accent-hover);
  font-family: "Oswald", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.education-info-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1fr);
  gap: 42px;
  border: 1px solid rgba(245, 243, 238, 0.2);
  padding: 30px 42px;
  background: rgba(9, 9, 9, 0.5);
  backdrop-filter: blur(8px);
}

.education-info-panel > div + div {
  border-left: 1px solid rgba(245, 243, 238, 0.26);
  padding-left: 42px;
}

.education-info-panel h3 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
}

.education-learnings {
  display: grid;
  gap: 0;
  list-style: none;
}

.education-learnings li {
  border-bottom: 1px solid rgba(245, 243, 238, 0.16);
  padding: 10px 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.animation-project-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(34vh, 380px);
  border: 1px solid rgba(245, 243, 238, 0.18);
  background: #090909;
  object-fit: contain;
}

.animation-feature-video {
  align-self: center;
  justify-self: center;
}

.animation-projects-section .education-info-panel {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.animation-projects-section .education-info-panel h3 {
  color: var(--accent-hover);
}

.animation-video-description {
  max-width: 840px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.animation-video-description + h3 {
  margin-top: 4px;
}

.education-skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.education-skills span {
  border: 1px solid rgba(245, 243, 238, 0.2);
  padding: 16px 18px;
  background: rgba(9, 9, 9, 0.26);
  color: var(--muted);
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.contact-section {
  position: absolute;
  isolation: isolate;
  overflow-y: auto;
  padding: 48px 7vw 42px 260px;
  background: var(--bg);
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(9, 9, 9, 0.94), rgba(9, 9, 9, 0.44), rgba(9, 9, 9, 0.9)),
    var(--contact-bg-image);
  background-position: center;
  background-size: cover;
  opacity: 0.86;
}

.contact-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 48% 28%, rgba(245, 243, 238, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(9, 9, 9, 0.22), rgba(9, 9, 9, 0.88));
}

.contact-content {
  position: relative;
  display: grid;
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
  text-align: center;
}

.contact-header h2,
.credits-panel h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-header h2 {
  border-bottom: 1px solid rgba(245, 243, 238, 0.24);
  padding-bottom: 18px;
  font-size: clamp(4rem, 7vw, 7.4rem);
  line-height: 0.9;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid rgba(245, 243, 238, 0.2);
  padding-bottom: 22px;
}

.contact-grid a,
.contact-grid div {
  min-height: 86px;
  border-right: 1px solid rgba(245, 243, 238, 0.16);
  padding: 12px 18px;
  color: var(--muted);
  text-decoration: none;
  transition: color 220ms ease, background 220ms ease;
}

.contact-grid a:nth-child(3n),
.contact-grid div:nth-child(3n) {
  border-right: 0;
}

.contact-resume-link {
  grid-column: 2;
  border-left: 1px solid rgba(245, 243, 238, 0.16);
}

.contact-grid a:hover,
.contact-grid a:focus-visible {
  background: rgba(245, 243, 238, 0.04);
  color: var(--text);
  outline: none;
}

.contact-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-hover);
  font-family: "Oswald", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.credits-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-family: "Oswald", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-message {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.credits-panel {
  display: grid;
  gap: 20px;
}

.credits-panel h3 {
  border-bottom: 1px solid rgba(245, 243, 238, 0.22);
  padding-bottom: 18px;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.95;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(245, 243, 238, 0.18);
  background: rgba(9, 9, 9, 0.44);
  text-align: left;
  backdrop-filter: blur(7px);
}

.credits-grid div {
  min-height: 132px;
  border-right: 1px solid rgba(245, 243, 238, 0.15);
  padding: 20px 22px;
}

.credits-grid div:nth-child(3n) {
  border-right: 0;
}

.credits-grid p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.contact-footer-line {
  color: var(--muted);
  font-family: "Oswald", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.projects-shell {
  display: grid;
  grid-template-columns: minmax(380px, 0.86fr) minmax(420px, 1fr);
  gap: 38px;
  height: 100%;
  min-height: 0;
}

.projects-list-panel,
.project-detail-panel {
  border: 1px solid rgba(245, 243, 238, 0.14);
  background: rgba(9, 9, 9, 0.48);
  backdrop-filter: blur(8px);
}

.projects-list-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 34px;
}

.projects-list-panel h2,
.project-detail-copy h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.projects-list-panel h2 {
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: 0.9;
}

.projects-intro {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 243, 238, 0.18);
  color: var(--muted);
  font-size: 1rem;
}

.project-list {
  display: grid;
  gap: 16px;
  margin-top: 36px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 10px;
}

.project-subdivision {
  color: var(--accent-hover);
  font-family: "Oswald", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-card + .project-subdivision {
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 243, 238, 0.14);
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 120px;
  border: 1px solid rgba(245, 243, 238, 0.1);
  padding: 14px;
  background: rgba(20, 20, 20, 0.76);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.project-card::before,
.project-card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: 0;
  transition: opacity 220ms ease;
}

.project-card::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent-hover);
  border-left: 2px solid var(--accent-hover);
}

.project-card::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--accent-hover);
  border-bottom: 2px solid var(--accent-hover);
}

.project-card:hover,
.project-card:focus-visible,
.project-card.is-selected {
  border-color: rgba(217, 130, 54, 0.78);
  background: rgba(30, 30, 30, 0.88);
  transform: translateX(5px);
  outline: none;
}

.project-card:hover::before,
.project-card:hover::after,
.project-card:focus-visible::before,
.project-card:focus-visible::after,
.project-card.is-selected::before,
.project-card.is-selected::after {
  opacity: 1;
}

.project-card strong {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-card small,
.project-type {
  color: var(--accent-hover);
  font-family: "Oswald", sans-serif;
  font-size: 0.98rem;
}

.project-thumb,
.project-hero-image {
  display: block;
  background-color: #121212;
  background-position: center;
  background-size: cover;
  filter: saturate(0.78) contrast(1.08);
}

.project-thumb {
  height: 86px;
}

.project-thumb-dizzy {
  background-image:
    linear-gradient(rgba(9, 9, 9, 0.05), rgba(9, 9, 9, 0.28)),
    url("../Assets/machete.png"),
    radial-gradient(circle at 50% 70%, rgba(245, 243, 238, 0.5), transparent 18%),
    linear-gradient(135deg, #0d1112, #2b2f2d);
}

.project-thumb-ocean {
  background-image:
    linear-gradient(rgba(9, 9, 9, 0.04), rgba(9, 9, 9, 0.3)),
    url("../Assets/torch.png"),
    radial-gradient(circle at 44% 54%, rgba(80, 138, 158, 0.7), transparent 20%),
    linear-gradient(135deg, #071116, #1f4a5b);
}

.project-hero-image.project-thumb-ocean {
  background-image:
    linear-gradient(rgba(9, 9, 9, 0.04), rgba(9, 9, 9, 0.3)),
    url("../Assets/whale.png"),
    radial-gradient(circle at 44% 54%, rgba(80, 138, 158, 0.7), transparent 20%),
    linear-gradient(135deg, #071116, #1f4a5b);
}

.project-thumb-echoes {
  background-image:
    linear-gradient(rgba(9, 9, 9, 0.05), rgba(9, 9, 9, 0.32)),
    url("../Assets/wrench.png"),
    radial-gradient(circle at 48% 42%, rgba(168, 168, 168, 0.38), transparent 18%),
    linear-gradient(135deg, #151515, #393733);
}

.project-thumb-urban {
  background-image:
    linear-gradient(rgba(9, 9, 9, 0.05), rgba(9, 9, 9, 0.35)),
    url("../Assets/bow.png"),
    radial-gradient(circle at 52% 50%, rgba(194, 106, 45, 0.28), transparent 22%),
    linear-gradient(135deg, #1e1913, #40342a);
}

.project-thumb-recipe {
  background-image:
    linear-gradient(rgba(9, 9, 9, 0.05), rgba(9, 9, 9, 0.34)),
    url("../Assets/sic.png"),
    radial-gradient(circle at 34% 34%, rgba(117, 157, 108, 0.58), transparent 22%),
    radial-gradient(circle at 72% 64%, rgba(217, 130, 54, 0.48), transparent 20%),
    linear-gradient(135deg, #111411, #2f4430 52%, #4b2f20);
}

.project-hero-image.project-thumb-recipe {
  background-image:
    linear-gradient(rgba(9, 9, 9, 0.05), rgba(9, 9, 9, 0.34)),
    url("../Assets/receipit.png"),
    radial-gradient(circle at 34% 34%, rgba(117, 157, 108, 0.58), transparent 22%),
    radial-gradient(circle at 72% 64%, rgba(217, 130, 54, 0.48), transparent 20%),
    linear-gradient(135deg, #111411, #2f4430 52%, #4b2f20);
}

.experience-thumb-multimedia {
  background-image:
    linear-gradient(rgba(9, 9, 9, 0.05), rgba(9, 9, 9, 0.34)),
    url("../Assets/gun2.png"),
    radial-gradient(circle at 30% 42%, rgba(217, 130, 54, 0.5), transparent 24%),
    linear-gradient(135deg, #111414, #2d312e 48%, #49311f);
}

.experience-thumb-animation {
  background-image:
    linear-gradient(rgba(9, 9, 9, 0.08), rgba(9, 9, 9, 0.36)),
    url("../Assets/gun3.png"),
    radial-gradient(circle at 58% 38%, rgba(245, 243, 238, 0.28), transparent 18%),
    linear-gradient(135deg, #111111, #383530 52%, #151515);
}

.experience-thumb-design {
  background-image:
    linear-gradient(rgba(9, 9, 9, 0.04), rgba(9, 9, 9, 0.32)),
    url("../Assets/gun1.png"),
    radial-gradient(circle at 68% 54%, rgba(92, 132, 142, 0.5), transparent 20%),
    linear-gradient(135deg, #101416, #22383b 50%, #2f2a24);
}

.project-detail-panel {
  display: grid;
  grid-template-rows: minmax(260px, 0.8fr) auto;
  overflow: hidden;
}

.project-hero-image {
  position: relative;
  z-index: 0;
  overflow: hidden;
  min-height: 280px;
  border-bottom: 1px solid rgba(245, 243, 238, 0.12);
}

.project-video-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #090909;
  object-fit: contain;
}

.project-video-frame[hidden] {
  display: none;
}

.project-detail-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 34px 34px 28px;
  background: rgba(9, 9, 9, 0.48);
}

.project-detail-copy h3 {
  font-size: clamp(2.6rem, 4.8vw, 4.8rem);
  line-height: 1;
}

.project-type {
  margin-top: 8px;
  font-size: 1.1rem;
}

.project-source-link {
  width: fit-content;
  margin-top: 14px;
  color: var(--accent-hover);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.project-source-link:hover,
.project-source-link:focus-visible {
  color: var(--accent);
}

.project-source-link[hidden] {
  display: none;
}

.project-description {
  max-width: 640px;
  min-height: 0;
  max-height: min(30vh, 250px);
  margin-top: 22px;
  overflow-y: auto;
  padding-right: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.project-description p {
  margin: 0;
}

.detail-bullet-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 18px;
  border-left: 2px solid rgba(217, 130, 54, 0.84);
  background:
    linear-gradient(90deg, rgba(217, 130, 54, 0.12), rgba(9, 9, 9, 0.1));
  list-style: none;
}

.detail-bullet-list li {
  position: relative;
  padding-left: 24px;
}

.detail-bullet-list li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--accent-hover);
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 0 18px rgba(217, 130, 54, 0.4);
}

.experience-section .project-detail-panel {
  grid-template-rows: minmax(250px, 0.55fr) auto;
}

.experience-section .project-detail-copy {
  padding: 56px 34px 24px;
}

.experience-section .project-detail-copy h3 {
  font-size: clamp(2.4rem, 4.2vw, 4.2rem);
  line-height: 1.12;
}

.experience-section .project-description {
  max-height: min(26vh, 220px);
  margin-top: 18px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.experience-section .detail-bullet-list {
  gap: 6px;
  padding: 12px 18px;
}

.experience-section .detail-bullet-list li {
  padding-left: 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .home-button {
    top: 24px;
    left: 28px;
  }

  .side-nav {
    top: 28px;
    right: 28px;
    left: 174px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
    transform: none;
  }

  .side-nav a {
    font-size: 0.78rem;
  }

  .hero {
    padding: 124px 6vw 84px;
  }

  .about-section,
  .projects-section,
  .education-section,
  .contact-section {
    overflow-y: auto;
    padding-right: 5vw;
    padding-left: 5vw;
  }

  .about-section {
    padding-top: 124px;
  }

  .projects-section {
    padding-top: 124px;
    padding-bottom: 64px;
  }

  .education-section,
  .contact-section {
    padding-top: 118px;
    padding-bottom: 64px;
  }

  .about-grid {
    width: min(720px, 68vw);
  }

  .projects-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .projects-list-panel {
    padding: 28px;
  }

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

  .project-card {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 104px;
  }

  .project-card strong {
    font-size: 1.48rem;
  }

  .project-thumb {
    height: 72px;
  }

  .project-detail-panel {
    grid-template-rows: minmax(240px, 36vw) auto;
  }

  .education-content,
  .education-menu {
    height: auto;
  }

  .education-menu {
    grid-template-rows: auto auto auto;
  }

  .education-info-panel {
    grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1fr);
    gap: 28px;
    padding: 26px 30px;
  }

  .education-info-panel > div + div {
    padding-left: 28px;
  }

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

  .contact-grid a:nth-child(3n),
  .contact-grid div:nth-child(3n) {
    border-right: 1px solid rgba(245, 243, 238, 0.16);
  }

  .contact-grid a:nth-child(2n),
  .contact-grid div:nth-child(2n) {
    border-right: 0;
  }

  .contact-resume-link {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(420px, 100%);
    border-left: 0;
  }

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

  .credits-grid div:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 820px) {
  .home-button {
    top: 24px;
    left: 28px;
    padding: 9px 14px;
    font-size: 0.75rem;
  }

  .hero {
    align-items: flex-end;
    padding: 148px 28px 92px;
  }

  .home-footer {
    right: auto;
    bottom: 28px;
    left: 28px;
    flex-wrap: wrap;
    gap: 10px 16px;
    max-width: calc(100% - 56px);
    font-size: 0.68rem;
  }

  .home-footer::before {
    width: 42px;
  }

  .about-footer {
    right: auto;
    bottom: 28px;
    left: 28px;
    flex-wrap: wrap;
    gap: 10px 16px;
    max-width: calc(100% - 56px);
    font-size: 0.68rem;
  }

  .about-footer::before {
    width: 42px;
  }

  .about-section {
    overflow-y: auto;
    padding: 96px 28px 108px;
  }

  .about-background-video {
    object-position: 68% center;
  }

  .projects-section {
    overflow-y: auto;
    padding: 146px 28px 108px;
  }

  .education-section {
    overflow-y: auto;
    padding: 146px 28px 80px;
  }

  .education-content {
    height: auto;
  }

  .education-menu {
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 24px;
    height: auto;
  }

  .education-menu-header h2 {
    font-size: 3.2rem;
  }

  .education-tabs {
    grid-template-columns: 1fr;
  }

  .education-tab {
    padding: 14px 16px;
    font-size: 1.65rem;
  }

  .education-feature {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
    justify-self: stretch;
  }

  .education-feature-icon {
    width: 92px;
  }

  .education-feature-copy h3 {
    font-size: 2.2rem;
  }

  .education-feature-copy .education-program {
    font-size: 0.86rem;
  }

  .education-feature-copy p {
    font-size: 0.88rem;
  }

  .education-info-panel {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 24px;
  }

  .education-info-panel > div + div {
    border-top: 1px solid rgba(245, 243, 238, 0.22);
    border-left: 0;
    padding-top: 24px;
    padding-left: 0;
  }

  .education-skills {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 146px 28px 80px;
  }

  .contact-grid,
  .credits-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid a,
  .contact-grid div,
  .credits-grid div {
    border-right: 0;
    border-bottom: 1px solid rgba(245, 243, 238, 0.15);
  }

  .contact-grid a:nth-child(3n),
  .contact-grid div:nth-child(3n),
  .credits-grid div:nth-child(3n) {
    border-bottom: 1px solid rgba(245, 243, 238, 0.15);
  }

  .contact-grid a:last-child,
  .contact-grid div:last-child,
  .credits-grid div:last-child {
    border-bottom: 0;
  }

  .contact-resume-link {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }

  .experience-section {
    overflow-y: auto;
    padding: 104px 28px 32px;
  }

  .projects-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .experience-section .projects-shell {
    height: auto;
  }

  .projects-list-panel,
  .project-detail-panel {
    padding: 0;
  }

  .projects-list-panel {
    padding: 28px;
  }

  .project-card {
    grid-template-columns: 96px 1fr;
    min-height: 94px;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  .project-thumb {
    height: 66px;
  }

  .project-detail-panel {
    grid-template-rows: 220px auto;
  }

  .experience-section .project-detail-panel {
    grid-template-rows: 180px auto;
  }

  .project-detail-copy {
    padding: 28px;
  }

  .experience-section .project-detail-copy {
    padding: 38px 20px 18px;
  }

  .experience-section .project-detail-copy h3 {
    font-size: 2.25rem;
    line-height: 1.12;
  }

  .experience-section .project-type {
    font-size: 0.9rem;
  }

  .experience-section .project-description {
    max-height: min(30vh, 210px);
    margin-top: 14px;
    font-size: 0.76rem;
    line-height: 1.28;
  }

  .experience-section .detail-bullet-list {
    gap: 5px;
    padding: 12px 14px;
  }

  .about-section::after {
    background:
      linear-gradient(90deg, rgba(9, 9, 9, 0.94) 0%, rgba(9, 9, 9, 0.84) 58%, rgba(9, 9, 9, 0.42) 100%),
      linear-gradient(180deg, rgba(9, 9, 9, 0.36) 0%, rgba(17, 17, 17, 0.9) 100%);
  }

  .about-grid {
    width: 100%;
  }

  .about-copy p {
    font-size: 0.95rem;
  }

  .side-nav {
    top: 76px;
    left: 28px;
    right: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    transform: none;
  }

  .side-nav a {
    font-size: 0.78rem;
  }
}
