:root {
  --text-color: #1e6798;
  --accent-color: #c287f5;
  --content-color: #e5fefd;
  --dark-accent: #003d9e;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 3rem;
  --space-lg: 5rem;
  --space-xl: 7rem;

  /* Breakpoints */
  --breakpoint-lg: 1500px;
}

@font-face {
  font-family: 'header';
  src: url('../assets/fonts/hair1.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'body';
  src: url('../assets/fonts/revfont.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

html {
  font-size: clamp(1rem, 2vw, 1.5rem);
  scroll-behavior: smooth;
}

p, a{
  font-size:1.5rem;
}
h1, h4{
  font-family: 'header', sans-serif;
}
body {
  font-family: "body", sans-serif;
  font-size: 1rem; /* more standard base size */
  background: radial-gradient(ellipse, hsl(227, 100%, 72%) 0%, var(--content-color) 100%);
  color: var(--text-color);
  margin: 0;
}

/* Highlight color */
::selection {
  background-color: var(--accent-color);
  color: var(--content-color);
}

main,
header,
.contact,
.info,
.about-container
{
  /* Copy the styles you want from .container here */
  background: radial-gradient(ellipse, var(--content-color) 0%, #9ebeff 100%);
  margin: var(--space-sm);
  padding: var(--space-sm);
}

/* Unique border-radius shapes */
.border-1{
  border-radius: 17% 83% 23% 77% / 71% 26% 74% 29%;
}
.border-2{
  border-radius: 88% 12% 71% 29% / 23% 53% 47% 77%;
}
.border-3{
  border-radius: 59% 41% 70% 30% / 71% 66% 34% 29%;
}
.border-4{
  border-radius: 68% 32% 76% 24% / 19% 66% 34% 81%;
}
.border-5{
  border-radius: 50% 83% 45% 75% / 71% 20% 70% 30%;
}
header{
  padding: var(--space-sm);
}
.info{
  padding:var(--space-lg);
}
main{
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.about-container{
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
}


/* Headings */
h1 {
  font-size: 3rem;
  font-weight: 500;
  margin: var(--space-sm) 0;
  text-align: center;
}

h4 {
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
  margin: var(--space-sm) 0;
}

/* Centering utilities */
.center-contents {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;                /* lets them move to new line if too small */

}

.center-text {
  text-align: center;
}

/* Links */
a {
  text-decoration: none;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--text-color);
}

/* Navbar */
.navbar {
  font-size:3rem;
  display: flex;
  justify-content: space-around;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.5rem;
  color: var(--text-color);
  overflow: hidden;
  transition: color 0.5s ease;
  z-index: 1;
}

/* Growing background shape on nav links */
.nav-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(ellipse, var(--accent-color) 0%, var(--content-color) 50%);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  z-index: -1;
}

.works-link,
.works-link::before {
  border-radius: 74% 26% 28% 72% / 45% 48% 52% 55%;
}

.about-link,
.about-link::before {
  border-radius: 45% 55% 71% 29% / 46% 54% 46% 54%;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 200%;
  height: 200%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--content-color);
}

.nav-link.active {
  text-decoration: none;
}

/* Contact section */
.contact{
  padding-top:var(--space-md);
}
.contact-links {
  padding: 0 5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.contact-link {
  padding: 0.3rem;
  text-align: center;
}


/* Portfolio */
.portfolio-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.number,
.title,
.date {
  display: inline-block;
}

.work-image {
  width: 70%;
  position: relative;
  overflow: hidden;
  object-fit: cover;
  object-position: top;
  padding:1rem;
}

.short-description {
  color: var(--accent-color);
  font-style:italic;
}

.description {
  width: 65%;
}

.project-links {
  text-align: center;
}

/* About page */
.about-block {
  display: flex;
  flex-direction: column; /* Stack on mobile */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-sm)
}

.about-text {
  text-align: left;
  padding-bottom: var(--space-sm);
  margin-right: var(--space-sm)
}
.about-image {
  object-fit: contain;
  mix-blend-mode: hard-light;
  width:50%;
}

/* Responsive */
@media (min-width: 900px) {
  .about-block {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .about-text {
    width: 70%;
  }

  .about-image {
    width: 30%;
    height: auto;
    margin: 1rem;
  }
}

/* Resume */
.resume {
  padding: var(--space-md) var(--space-lg);
  font-size: 1rem;
  line-height: 1.3rem;
}

/* Illustration */
.illustration-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 16px;
  padding: var(--space-xl);
  width: 80%;
  margin: 0 auto;
}

.illustration-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  max-height:60vh;
}

.illustration-portrait {
  grid-row: span 2;
}

body {
  background-color: var(--accent-color);
}
canvas {
  position: fixed !important; /* overlay on everything */
  top: 0;
  left: 0;
  z-index: 1000;
  pointer-events: none; /* allows clicking through */
}
.images-container{
  display:flex;
  flex-direction: column;
  align-items:center;
}

.footer-container{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap
}