:root {
  /* Colours */
  --base-neutral: oklch(0.5 0.0023 229.62);
  --neutral-1: oklch(from var(--base-neutral) 0.1 c h);
  --neutral-2: oklch(from var(--base-neutral) 0.2 c h);
  --neutral-3: oklch(from var(--base-neutral) 0.3 c h);
  --neutral-4: oklch(from var(--base-neutral) 0.4 c h);
  --neutral-5: oklch(from var(--base-neutral) 0.5 c h);
  --neutral-6: oklch(from var(--base-neutral) 0.6 c h);
  --neutral-7: oklch(from var(--base-neutral) 0.7 c h);
  --neutral-8: oklch(from var(--base-neutral) 0.8 c h);
  --neutral-9: oklch(from var(--base-neutral) 0.95 c h);
  --neutral-9-transparent: oklch(from var(--neutral-9) l c h / 0.9);
  --neutral-7-transparent: oklch(from var(--neutral-7) l c h / 0.5);
  --accent-primary: oklch(0.6268 0.2325 303.9);
  --accent-secondary: oklch(0.8529 0.1312 99.05);
  --accent-primary-transparent: oklch(from var(--accent-primary) l c h / 0.5);
  /* Fonts */
  --heading-font: "Space Grotesk", sans-serif;
  --body-font: "Inter", sans-serif;
  /* Images */
  --bg-image: url(../images/bg-web-developer-image.jpg);
}

html {
  box-sizing: border-box;
}

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

html,
body {
  block-size: 100%;
}

body {
  background: var(--neutral-9);
  color: var(--neutral-1);
  margin: 0;
  font-family: var(--body-font);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Headings */
h1,
h2,
h3 {
  font-family: var(--heading-font);
  font-weight: 400;
  margin: 0;
}

h1 {
  font-size: 2.6rem;
  line-height: 0.85;
}

h2 {
  font-size: 1.625rem;
}

h3 {
  font-size: 1.5rem;
}

/* Links */
a {
  color: var(--accent-primary);
  font-family: var(--body-font);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Buttons */
.btn {
  background: var(--accent-primary);
  color: var(--neutral-9);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.75rem;
  display: inline-block;
  padding: 0.4375rem 0.4375rem;
  letter-spacing: 0.1em;
  line-height: 1;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--accent-secondary);
  color: var(--neutral-1);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px var(--neutral-5);
}

/* Content Wrapper */
.content-wrapper {
  margin-block: 0;
  margin-inline: auto;
  max-inline-size: 56.25rem;
}

.logo {
  max-inline-size: 5.625rem;
  font-size: 1.6rem;
  color: var(--neutral-9);
  text-decoration: none;
  font-family: var(--heading-font);
  text-align: center;
  display: inline-block;
  letter-spacing: -0.12em;
}
@media screen and (min-width: 43.813rem) {
  .logo {
    font-size: 2rem;
  }
}

/* Animated logo letters */
.letter {
  display: inline-block;
  transform-style: preserve-3d;
  animation: flipVertical 0.8s ease-out forwards, colorFill 0.4s linear forwards;
  transform-origin: center center;
}
.letter:nth-child(1) {
  animation-delay: 0s, 0.7s;
}
.letter:nth-child(2) {
  animation-delay: 0.1s, 0.8s;
}
.letter:nth-child(3) {
  animation-delay: 0.2s, 0.9s;
}

/* Navigation */
.navWrap {
  position: sticky;
  top: 0;
  z-index: 99;
  block-size: 3rem;
  inline-size: 100%;
  background-color: var(--accent-primary);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media screen and (min-width: 43.813rem) {
  .navWrap {
    display: grid;
    grid-template-columns: 6.25rem minmax(auto, 68.75rem);
    justify-content: center;
    block-size: auto;
    box-shadow: 0px 0.063rem 0.5rem var(--neutral-3);
  }
}

/* Hamburger Menu Button for Small Screens */
input#navToggle {
  display: none;
}
input#navToggle ~ label {
  position: relative;
  padding: 0.25rem;
  inline-size: 2rem;
  block-size: 2rem;
}
input#navToggle ~ label > span {
  content: "";
  display: block;
  position: absolute;
  block-size: 0.125rem;
  inline-size: 1.75rem;
  opacity: 1;
  background: var(--neutral-9);
  transition: 0.14s ease-in-out;
  top: 0.85rem;
}
input#navToggle ~ label > span::before {
  content: "";
  display: block;
  position: absolute;
  block-size: 0.125rem;
  inline-size: 1.75rem;
  opacity: 1;
  background: var(--neutral-9);
  transition: 0.14s ease-in-out;
  top: -0.5rem;
}
input#navToggle ~ label > span::after {
  content: "";
  display: block;
  position: absolute;
  block-size: 0.125rem;
  inline-size: 1.75rem;
  opacity: 1;
  background: var(--neutral-9);
  transition: 0.14s ease-in-out;
  top: 0.5rem;
}
@media screen and (min-width: 43.813rem) {
  input#navToggle ~ label {
    display: none;
  }
}
input#navToggle:checked ~ label > span {
  inline-size: 0;
  background: var(--neutral-1);
}
input#navToggle:checked ~ label > span::before {
  transform: rotateZ(45deg);
  top: 0;
}
input#navToggle:checked ~ label > span::after {
  transform: rotateZ(-45deg);
  top: 0;
}
input#navToggle:checked ~ nav {
  left: 0;
}

/* Navigation Bar */
nav {
  position: absolute;
  z-index: -1;
  top: 3rem;
  left: -110%;
  inline-size: 100%;
  transition: 0.22s ease-in-out;
}
@media screen and (min-width: 43.813rem) {
  nav {
    position: initial;
  }
}
nav::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: -1;
  block-size: 100vh;
  inline-size: 100vw;
  background-color: var(--neutral-5);
  background-size: cover;
}
@media screen and (min-width: 43.813rem) {
  nav::after {
    display: none;
  }
}
nav ul {
  list-style-type: none;
  padding-inline-start: 0;
}
@media screen and (min-width: 43.813rem) {
  nav ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
}
nav ul li a {
  display: inline-block;
  text-decoration: none;
  inline-size: 100%;
  padding: 1rem 2rem;
  color: var(--neutral-9);
  border-bottom: solid 1px var(--neutral-9);
  transition: all 0.3s ease;
}
@media screen and (min-width: 43.813rem) {
  nav ul li a {
    border-bottom: none;
  }
}
nav ul li a:hover {
  color: var(--neutral-1);
  background: var(--accent-secondary);
  padding-inline-start: 3rem;
}
@media screen and (min-width: 43.813rem) {
  nav ul li a:hover {
    background: transparent;
    color: var(--accent-secondary);
    transform: translateY(-2px);
    padding-inline-start: 2rem;
  }
}
nav ul li a.active {
  font-weight: 600;
  text-decoration: underline;
}
nav ul li:last-of-type::before {
  content: "";
  display: block;
  padding: 0.5rem;
}
@media screen and (min-width: 43.813rem) {
  nav ul li:last-of-type::before {
    display: none;
  }
}

.contact-btn {
  display: flex;
  justify-content: center;
  inline-size: 40%;
  margin: auto;
  padding: 0.4rem 0.6rem;
  border: none;
  border-radius: 4px;
  background: var(--neutral-9);
  color: var(--neutral-1);
  font-family: var(--body-font);
  letter-spacing: 0.063rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
@media screen and (min-width: 43.813rem) {
  .contact-btn {
    inline-size: auto;
    background: var(--neutral-9);
    color: var(--neutral-1);
    letter-spacing: normal;
    box-shadow: none;
    margin-inline-start: 1rem;
  }
}
.contact-btn:hover {
  background-color: var(--accent-secondary);
  color: var(--neutral-1);
  box-shadow: 0 2px 4px var(--neutral-5);
}
@media screen and (min-width: 43.813rem) {
  .contact-btn:hover {
    transform: translateY(-2px);
  }
}

.contact-btn {
  anchor-name: --contact-anchor;
}

.contact-popover {
  inline-size: auto;
  container-name: contact-panel;
  container-type: inline-size;
  margin: 0;
  padding: 1.25rem;
  border: none;
  background-color: var(--neutral-9);
}

.contact-panel {
  inline-size: 100%;
  padding: 1.25rem;
}

.contact-popover:popover-open {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-popover:popover-open img {
  inline-size: 100%;
  max-inline-size: 15rem;
  border-radius: 0.25rem;
  border: solid 2px var(--accent-primary);
}

.contact-popover:popover-open h3,
.contact-popover:popover-open p {
  margin: 0;
  text-align: center;
  max-inline-size: 20rem;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0.75rem;
}

.close-btn {
  position: absolute;
  inset-inline-end: 1rem;
  inset-block-start: 1rem;
  background: none;
  border: none;
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: var(--accent-primary);
  cursor: pointer;
  order: -1;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.close-btn:hover {
  background: var(--neutral-7-transparent);
}

@media (max-width: 28.149rem) {
  .contact-popover:popover-open {
    inline-size: 100vw;
    block-size: 100vh;
    max-inline-size: 100vw;
    margin: 0;
    padding: 0;
  }
}
@media (min-width: 28.15rem) and (max-width: 43.75rem) {
  .contact-popover::backdrop {
    background: var(--neutral-7-transparent);
  }
}
@media screen and (min-width: 43.76rem) {
  .contact-popover {
    position-anchor: --contact-anchor;
    inset-block-start: anchor(bottom);
    inset-inline-end: anchor(right);
    margin-block-start: 0.5rem;
    inset-block-end: auto;
    inset-inline-start: auto;
    inline-size: clamp(18rem, 33.333vw, 33.333vw);
    border-radius: 0.25rem;
  }
  .contact-popover::backdrop {
    background: var(--neutral-7-transparent);
  }
}
@container contact-panel (max-width: 27.8rem) {
  .contact-panel {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    margin: 0;
  }
  .contact-popover:popover-open img {
    max-inline-size: 12.5rem;
  }
  .contact-info {
    margin-block-start: 2.5rem;
  }
}
@container contact-panel (min-width: 27.813rem) and (max-width: 43.75rem) {
  .contact-panel {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
  }
  .bio-description {
    display: none;
  }
}
@container contact-panel (min-width: 43.813rem) {
  .contact-panel {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
  }
  .bio-description {
    display: block;
  }
}
/* Home Page */
.home {
  background: var(--bg-image) no-repeat center;
  background-size: cover;
  display: flex;
  flex-direction: column;
}
.home .content-wrapper {
  flex: 1 0 auto;
  padding: 0.625rem;
}
@media screen and (min-width: 40.625rem) {
  .home .content-wrapper {
    padding: 1.875rem;
  }
}

.content-bg {
  background: var(--neutral-9-transparent);
  padding: 1.25rem;
}
@media screen and (min-width: 40.625rem) {
  .content-bg {
    padding: 1.875rem;
  }
}

/* Resume Page */
.resume .content-wrapper {
  padding: 1.875rem;
}

.resume header::before {
  background: var(--bg-image) center;
  background-size: cover;
  content: "";
  display: block;
  block-size: 12.5rem;
}

.resume-section {
  margin-block-end: 3.125rem;
}
.resume-section h2 {
  border-block-end: 2px dashed var(--neutral-5);
}

@media screen and (min-width: 31.25rem) {
  .resume header::before {
    block-size: 23.4375rem;
  }
  h1 {
    font-size: 3.6rem;
  }
  h2 {
    font-size: 2rem;
  }
}
@media screen and (min-width: 36.875rem) {
  h1 {
    font-size: 4.375rem;
  }
  h2 {
    font-size: 2.25rem;
  }
}
/* Projects & Animations Page */
.projects header::before,
.animations header::before {
  background: var(--bg-image) center;
  background-size: cover;
  content: "";
  display: block;
  block-size: 12.5rem;
}
@media screen and (min-width: 41.75rem) {
  .projects header::before,
  .animations header::before {
    block-size: 23.4375rem;
  }
}

.projects .content-wrapper,
.animations .content-wrapper {
  padding: 1.875rem;
}

.projects-title,
.animations-title {
  border-block-end: 2px dashed var(--neutral-5);
}

.project-wrapper,
.animation-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1em 0;
}

/* Projects */
.project-item {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.625rem;
  align-content: space-between;
  padding: 1rem;
  border-radius: 0.25rem;
  box-shadow: var(--neutral-1) 0 0 0 0.063px;
}
@media screen and (min-width: 41.75rem) {
  .project-item {
    grid-template-rows: subgrid;
    grid-row: span 4;
  }
}
.project-item h3 {
  font-size: 1.2rem;
}
@media screen and (min-width: 27.125rem) {
  .project-item h3 {
    font-size: 1.5rem;
  }
}
@media screen and (min-width: 41.75rem) {
  .project-item h3 {
    font-size: 1.1rem;
  }
}
@media screen and (min-width: 47rem) {
  .project-item h3 {
    font-size: 1.3rem;
  }
}
.project-item img {
  display: block;
  inline-size: 100%;
  border-radius: 0.25rem;
}
.project-item .btn {
  inline-size: fit-content;
}

/* Animations */
.animation-item {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-block-size: 16rem;
  padding: 1rem;
  border-radius: 0.25rem;
  box-shadow: var(--neutral-1) 0 0 0 0.063px;
  overflow: hidden;
  position: relative;
}
.animation-item h3 {
  position: relative;
  z-index: 1;
  color: var(--neutral-1);
}
@media screen and (min-width: 27.125rem) {
  .animation-item h3 {
    font-size: 1.5rem;
  }
}
@media screen and (min-width: 41.75rem) {
  .animation-item h3 {
    font-size: 1.1rem;
  }
}
@media screen and (min-width: 47rem) {
  .animation-item h3 {
    font-size: 1.3rem;
  }
}
.animation-item:nth-child(1)::before {
  content: "";
  position: absolute;
  inset: 0;
  animation: morphSquare 4s ease-in-out infinite;
}
.animation-item:nth-child(2), .animation-item:nth-child(3) {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
}
.animation-item:nth-child(2) h3, .animation-item:nth-child(3) h3 {
  grid-row: 2;
  align-self: flex-end;
  justify-self: center;
}

@media screen and (min-width: 41.75rem) {
  .project-wrapper {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto 1fr auto;
  }
  .animation-wrapper {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
  }
}
.breath-text {
  grid-row: 1;
  align-self: center;
  justify-self: center;
  font-size: 3rem;
  font-family: var(--heading-font);
  text-transform: uppercase;
  color: var(--accent-primary);
  margin: 0;
  animation: breathGlow 3s ease-in-out infinite;
}

.directional-blend-container {
  position: relative;
  inline-size: 16rem;
  block-size: 16rem;
  margin: 0 auto;
  background: var(--neutral-3);
  overflow: hidden;
  border-radius: 8px;
  isolation: isolate;
}

.blend-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blend-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  mix-blend-mode: overlay;
  animation: blendOverlay 4s ease-in-out infinite;
}

/* SVG Animation */
.svg-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-block-size: 31.25rem;
  padding: 2rem 1rem;
}

#coding-animation {
  max-inline-size: 100%;
  block-size: auto;
}

/* Browser window */
.browser-window {
  animation: fadeIn 0.5s ease-in 0.5s both;
}

/* Code lines typing */
.code-line-1 {
  animation: typewriter 0.8s steps(20) 1.5s both;
}

.code-line-2 {
  animation: typewriter 0.8s steps(20) 2s both;
}

.code-line-3 {
  animation: typewriter 0.8s steps(20) 2.5s both;
}

.code-line-4 {
  animation: typewriter 0.8s steps(20) 3s both;
}

.code-line-5 {
  animation: typewriter 0.8s steps(20) 3.5s both;
}

.code-line-6 {
  animation: typewriter 0.8s steps(20) 4s both;
}

/* Cursor blink */
.cursor {
  animation: blink 0.7s infinite 1s;
}

/* Coffee cup steam */
.steam-1 {
  animation: steam 2s ease-in-out infinite 1s;
}

.steam-2 {
  animation: steam 2s ease-in-out infinite 1.3s;
}

.steam-3 {
  animation: steam 2s ease-in-out infinite 1.6s;
}

/* Browser dots pulse */
.browser-dot {
  animation: pulse 2s ease-in-out infinite 2s;
}
.browser-dot:nth-child(2) {
  animation-delay: 2.2s;
}
.browser-dot:nth-child(3) {
  animation-delay: 2.4s;
}

/* Keyboard key press */
.keyboard {
  animation: keyPress 0.3s ease-in-out infinite 2s;
}

/* Work Experience Page */
.work-item {
  margin: 1.875rem 0;
}
@media screen and (min-width: 53.75rem) {
  .work-item {
    display: grid;
    grid-template-columns: 18.75rem 1fr;
    column-gap: 1.25rem;
  }
}

.work-details p {
  margin: 0;
}

@media screen and (min-width: 53.75rem) {
  .work-summary p:first-child {
    margin-block-start: 0;
  }
}
/* Education Page */
.education-item {
  margin: 1.875rem 0;
}
.education-item p {
  margin: 0;
}

/* Logo Animation */
@keyframes flipVertical {
  0% {
    transform: rotateY(-180deg);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
    transform: rotateY(-90deg);
  }
  100% {
    transform: rotateY(0deg);
    opacity: 1;
  }
}
@keyframes colorFill {
  0% {
    text-shadow: none;
  }
  40% {
    color: var(--accent-secondary);
    text-shadow: 0 0 0.04rem var(--neutral-9);
  }
  50% {
    color: var(--accent-secondary);
    text-shadow: 0 0 0.1rem var(--neutral-9);
  }
  60% {
    color: var(--accent-secondary);
    text-shadow: 0 0 0.04rem var(--neutral-9);
  }
  100% {
    text-shadow: none;
  }
}
/* Animations Showcase */
/* Animation 1: Morphing Square */
@keyframes morphSquare {
  0% {
    transform: rotateY(0deg);
    clip-path: polygon(50% 10%, 90% 50%, 50% 90%, 10% 50%);
    background: var(--accent-primary);
  }
  50% {
    transform: rotateY(180deg);
    clip-path: polygon(20% 20%, 80% 20%, 80% 80%, 20% 80%);
    background: var(--accent-secondary);
  }
  100% {
    transform: rotateY(360deg);
    clip-path: polygon(50% 10%, 90% 50%, 50% 90%, 10% 50%);
    background: var(--accent-primary);
  }
}
/* Animation 2: Breathing Glow */
@keyframes breathGlow {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1) drop-shadow(0 0 1px var(--accent-primary)) drop-shadow(0 0 0px var(--accent-primary));
    letter-spacing: normal;
    color: var(--accent-primary);
  }
  25% {
    filter: brightness(1.15) drop-shadow(0 0 1px var(--accent-primary)) drop-shadow(0 0 3px var(--accent-primary));
    color: var(--accent-primary);
  }
  50% {
    transform: scale(1.15);
    filter: brightness(1.3) drop-shadow(0 0 8px var(--accent-secondary)) drop-shadow(0 0 12px var(--accent-secondary));
    letter-spacing: 0.1em;
    color: var(--accent-secondary);
  }
  75% {
    filter: brightness(1.15) drop-shadow(0 0 1px var(--accent-primary)) drop-shadow(0 0 3px var(--accent-primary));
    color: var(--accent-primary);
  }
}
/* Animation 3: Directional Blend Shift */
@keyframes blendOverlay {
  0% {
    transform: translateX(-100%);
    background: var(--accent-primary);
  }
  25% {
    transform: translateX(0);
    background: var(--accent-primary);
  }
  49.9% {
    transform: translateX(0);
    background: var(--accent-primary);
  }
  50% {
    transform: translateX(100%);
    background: var(--accent-secondary);
  }
  75% {
    transform: translateX(0);
    background: var(--accent-secondary);
  }
  100% {
    transform: translateX(0);
    background: var(--accent-secondary);
  }
}
/* SVG Animation */
/* Browser window */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Code lines typing */
@keyframes typewriter {
  from {
    inline-size: 0;
  }
  to {
    inline-size: 100%;
  }
}
/* Cursor blink */
@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}
/* Coffee cup steam */
@keyframes steam {
  0% {
    opacity: 0.8;
    transform: translateY(0) translateX(0);
  }
  50% {
    opacity: 0.4;
    transform: translateY(-10px) translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) translateX(0);
  }
}
/* Browser dots pulse */
@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
/* Keyboard key press */
@keyframes keyPress {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(2px);
  }
}
footer {
  background: var(--neutral-2);
  color: var(--neutral-8);
  text-align: center;
  padding: 0.625rem;
}
@media screen and (min-width: 53.75rem) {
  footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
  }
}
@media screen and (min-width: 53.75rem) {
  footer p {
    margin: 0;
  }
}
footer a {
  color: var(--accent-secondary);
}
footer a:hover {
  color: var(--accent-primary);
}

.socials {
  list-style-type: none;
  padding: 0;
}
@media screen and (min-width: 53.75rem) {
  .socials {
    margin: 0;
  }
}
.socials li {
  display: inline-block;
  margin-inline-start: 0.625rem;
  vertical-align: middle;
}
.socials img {
  inline-size: 2rem;
  display: block;
  transition: all 0.3s ease;
}
.socials img:hover {
  opacity: 0.5;
}

/*# sourceMappingURL=styles.css.map */
