@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');

:root {
    --color-dark: #161616;
    --color-bg: #0C0C0C;
    --color-light: #f3f3f3;
    --color-accent: #00ffbc;
    --font-base: 'Lexend Deca', sans-serif;
    --step-0: clamp(1.13rem, calc(0.99rem + 0.65vw), 1.50rem);
    --step-1: clamp(1.35rem, calc(1.17rem + 0.91vw), 1.88rem);
    --step-2: clamp(1.62rem, calc(1.37rem + 1.26vw), 2.34rem);
    --step-3: clamp(1.94rem, calc(1.60rem + 1.72vw), 2.93rem);
    --step-4: clamp(2.33rem, calc(1.87rem + 2.31vw), 3.66rem);
    --step-5: clamp(2.80rem, calc(2.18rem + 3.09vw), 4.58rem);
    --step-6: clamp(3.36rem, calc(2.54rem + 4.11vw), 5.72rem);
}

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

/*testing graph*/
  
html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    text-rendering: optimizeSpeed;
    font-family: var(--font-base);
    color: var(--color-light);
    line-height: 1.4;
    min-height: 100vh;
    opacity: 1;
    transition:
        background-color 1s ease,
        opacity          0.5s ease-in-out;
    background-color: #0C0C0C;
    padding-bottom: var(--step-6);
}

body.light-text,
body.light-text * {
  color: #fff;
}

body.dark-text,
body.dark-text * {
  color: #000;
}
  
  /* Fade-in class makes the content visible */
  body.fade-in {
    opacity: 1;
  }
  
  /* Fade-out class hides the content */
  body.fade-out {
    opacity: 0;
  }

main{
    display: block;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

#bg-fixed {
    background-attachment: fixed;
}
    
.bg {
    position: fixed;
    inset: 0;
    background: transparent url('/assets/img/noise-transparent.png') repeat;
    background-repeat: repeat;
    scale: 1.5;
    animation: bg-animation .2s infinite;
    opacity: .8;
    transform-origin: center center;
    visibility: visible;
    pointer-events: none;
    z-index: 3;
}

h1, h2, h3, h4 {
    font-weight: 600;
}

h1 {
    font-size: 6rem;
    line-height: 100%;
}

@media (max-width: 900px) {
    h1{
      font-size: var(--step-6)
    }
}

.study-case-title{
    font-size: var(--step-4);
}

h2 {
    font-size: var(--step-6);
    line-height: 90%;
}

h3 {
    font-size: var(--step-3);
    line-height: 1.1;
}

h4 {
    font-size: var(--step-2);
    line-height: 1.2;
}

h5 {
    font-size: var(--step-0);
    font-weight: 400;
}

p, li {
    font-size: 1.125rem;
    font-weight: 200;
    line-height: 160%;
}

a {
    font-size: 1.125rem;
    text-decoration: none;
    color: inherit;
}

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

.balance{
    text-wrap: balance;
}

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

span {
    font-size: .8rem;
}

nav a{
    font-size: 1rem;
}

li {
    margin-inline-start: 1rem;
}

nav {
    display: flex;
    justify-content:space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 4rem;
}

section{
    margin: 0 auto;
    padding-block: 6rem;
    font-size: inherit;
}

.section-block-tiny{
    margin-block: 3rem;
}

.section-block-m{
    margin-block: 10rem;
}

.flex{
    display: flex;
}

.col{
    flex-direction: column;
}

@media (max-width: 700px) {
    .col-700 {
        display: flex;
        flex-direction: column;
    }
}

.w-30ch{
    max-width: 30ch;
}

.w-70ch{
    max-width: 70ch;
}

.w-100ch{
    max-width: 100ch;
}

.width-100{
    width: 100%;
}

.align-items-c{
    align-items: center;
}

.justify-content-c{
    justify-content: center;
}

.space-between{
    justify-content: space-between;
}

@media (max-width: 700px) {
    .space-between {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}

.gap-xxs{
    gap: .4rem;
}

.gap-tiny{
    gap: 1rem;
}

.gap-s{
    gap: var(--step-1);
}

.gap-m{
    gap: var(--step-3);
}

.gap-l{
    gap: var(--step-6);
}

.wrap{
    flex-wrap: wrap;
}

.border-bottom {
    border-bottom: 1px solid var(--color-light);
    padding-block-end: 2rem;
}

.underlined {
  --underline-progress: 0%;
  --underline-thickness: .15rem;    /* ← tweak this to whatever height you want */
  --underline-offset: 1.5rem;       /* ← distance below the text baseline */

  display: inline-block;
  font-size: 1.125rem;
  color: inherit;
  /* use vars for size & position */
  background-image: linear-gradient(to right, #fff 0%, #fff 100%);
  background-repeat: no-repeat;
  background-position: 0 var(--underline-offset);
  background-size: var(--underline-progress) var(--underline-thickness);
}

#hero {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

#hero-container {
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--step-1);
}

.nav-logo-box{
    width: 5rem;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#nav-logo {
    width: 4rem;
    margin: .5rem;
    fill: white;
    filter: grayscale(100%);
    mix-blend-mode: difference;
    transition: transform 0.3s ease-in-out;
}

#nav-logo:hover{
    transform: scale(0.9);
}

.pills-w {
    justify-content: space-between;
}

.pill {
    background-color: var(--color-bg);
    color: var(--color-light);
    font-size: 1.125rem;
    padding: .6rem;
    border: 1px var(--color-light) solid;
    width: fit-content;
}

.pill-alt {
    background-color: #2C2C2C;
    color: var(--color-light);
    font-size: 1rem;
    padding: .6rem;
    width: fit-content;
    text-wrap: nowrap;
}

.pill:hover{
    background-color: var(--color-light);
    color: var(--color-bg);
}

.resume-list{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px var(--color-light) solid;
}

@keyframes spin {
  from { transform: rotate(-20deg); }
  to   { transform: rotate(340deg); }
}

#giorrisnt-astronaut {
  display: block;
  max-width: 100%;
  border-radius: 100%;
  animation: spin var(--spin-duration, 180s) linear infinite;
}

#circle {
  position: fixed;
  top: 0;
  left: 0;
  margin: 0; 
  width: 0.2rem; 
  height: 0.2rem; 
  background-color: #ffffff;
  border-radius: 50%;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 998;
  transform: translate(-50%, -50%);
  transition: width 0.8s, height 0.8s;
}


@media (max-width: 900px) {
    #circle {
      display: none;
    }
}

.menu-arrow{
    width: 1.1rem;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
    align-self: flex-start;
}

a:hover .menu-arrow {
    transform: translateY(4px);
}

.menu-arrow-external {
    width: 1.1rem;
    display: inline-block;
    transform: rotate(-135deg);
    transition: transform 0.3s ease-in-out;
    will-change: transform;
    align-self: flex-start;
}

a:hover .menu-arrow-external {
    transform: translateX(4px) rotate(-120deg);
}

.menu-arrow,
.menu-arrow-external {
  filter: invert(0);
  transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.email-copy {
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 2px;
  font-size: 1.125rem;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: underline;
    & span{
        font-size: 1.125rem;
    }
        & img{
            width: 1.1rem;
            align-self: flex-start;
            filter: invert(1);
            transition: transform 0.3s ease-in-out;
            will-change: transform;
        }
            &:hover {
                img {
                transform: scale(0.9);
            }
            }
}

.email-copy .copy-icon,
.email-copy .copy-label {
  transition: all 0.2s ease-in-out;
}

.button-label {
  text-decoration: underline;
}

body.dark-text .menu-arrow,
body.dark-text .menu-arrow-external {
  filter: invert(1);
}

.role-container{
    min-width: 300px;
}

.arrow-icon{
    width: 2rem;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--color-light);
    border: 2px solid var(--color-light);
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 1000;
}

@media (max-width: 600px) {
    .back-to-top {
        bottom: .6rem;
        right: .6rem;
    }
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top img {
    width: 1.5rem;
    height: 1.5rem;
    transform: rotate(-90deg);
    filter: invert(100%);
}

.back-to-top:hover {
    background-color: var(--color-bg);
    border: 2px solid var(--color-light);
}

.back-to-top:hover img {
    filter: invert(0%); 
}
  
@keyframes bg-animation {
    0% { transform: translate(0,0) }
    10% { transform: translate(-5%,-5%) }
    20% { transform: translate(-10%,5%) }
    30% { transform: translate(5%,-10%) }
    40% { transform: translate(-5%,15%) }
    50% { transform: translate(-10%,5%) }
    60% { transform: translate(15%,0) }
    70% { transform: translate(0,10%) }
    80% { transform: translate(-15%,0) }
    90% { transform: translate(10%,5%) }
    100% { transform: translate(5%,0) }
}

.project-img {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--step-2);
}

.project-img img {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

@media (max-width: 700px) {
  .project-img {
    aspect-ratio: 1 / 1;
    border-radius: var(--step-0);
  }
  .project-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

.project-img:hover img,
.project-img:focus-within img {
  transform: scale(1.02);
}

html, body {
  overflow-x: hidden;
}

@media (max-width: 700px) {
    .hide-700 {
      display: none;
    }
}

.show-700 {
  opacity: 0;
  transition: opacity 0.3s ease;
}
@media (max-width:700px) {
  .show-700 {
    display: block;
    opacity: 1;
  }
}

/* Tooltip styles for coming soon functionality */
.tooltip-coming-soon {
  position: relative;
  cursor: pointer;
}

.cursor-tooltip {
  position: fixed;
  background-color: white;
  color: black;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 99999;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  mix-blend-mode: normal;
  isolation: isolate;
}