:root {
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #ee3577;
    --red: #dc3545;
    --orange: #f68e62;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #767575;
    --gray-dark: #434242;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #c2c2c2;
    --lightgray: #eeeeee;
    --dark: #434242;


    --primary: #3D696C;
    --secondary: #FFAF23;
    --text: #6b8b8d;
    --blue: #3a99ff;
    --hyperlink: #2CABD3;
    --bg-secondary: #EFF5F5;
    --beige: #FDF9EC;
    --cta: grey;
    --secondary-text: #a5a5a5;
    --navbar-height: 66px;
    --max-width: 1200px;
    --paragraph-max-width: 800px;


    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    /* Font Sizes */
    --font-normal: 1em;
    --font-small: 0.8125rem;
    
    --border-radius: 3px;
    /* Sidebar */
    --content-max-width: 860px;



    
}

@supports (--css: variables) {
    img {
      --max-width: attr(data-max-width length, 100%);
    }
  }




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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Public Sans', sans-serif;
    color: black;
    overflow-x: hidden;
    margin: initial;
    line-height: 1.4;
}





body > *:not(svg) {
    transition: 300ms ease-out;
}

h1,h2,h3,h4,p {
    margin: initial;
    padding: initial;
}

a {
    text-decoration: none;
    width: fit-content;
}

a:visited, a:link {
    color: initial;
}

a:hover {
    text-decoration: none;
}

img {
    object-fit: contain;
    object-position: 50% top;
    width: 100%;
    max-width: var(--max-width, length); /* Ensure fallback */
}

.row {
    display: flex;
    flex-direction: row;
}

.col {
    display: flex;
    flex-direction: column;
    padding: initial;
}

.wrap {
    flex-direction: initial;
    flex-wrap: wrap !important;
}

.row-section {
    display: flex;
    flex-direction: column;
    
}

.col-section {
    display: flex;
    flex-direction: row;
}

.margin {
    margin: auto;
}

.padding {
    padding: 1rem;
}

.margin-section {
    margin: 20px auto;
    padding: 1rem;
}

.justify {
    justify-content: center;
}

.align {
    align-items: center;
}

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

.col-space {
    align-items: space-between;
}

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

.gap4 {
    gap: 4px;
}

.gap8 {
    gap: 8px;
}

.gap12 {
    gap: 12px;
}

.gap16 {
    gap: 16px;
}

.gap20 {
    gap: 20px;
}

.gap24 {
    gap: 24px;
}

.gap32 {
    gap: 32px;
}

.gap40 {
    gap: 40px;
}


.h1 {
    font-size: 4rem;
    font-weight: 500;
}

.h2 {
    font-size: 2.25rem;
    font-weight: 500;
}

.h3 {
    font-size: 1.75rem;
    font-weight: 500;
}

.h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

.h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary-text);
}

p {
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

.p2 {
    font-size: 18px;
    line-height: normal;
    font-weight: 400;
}

.primary-button {
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 20px;
    background-color: var(--primary);
    width: fit-content;
    border: none;
    border-radius: var(--border-radius);
    color: white !important;
    transition: 200ms ease-out;
}

.primary-button:hover {
    opacity: 0.8;
}

.italics {
    font-style: italic;
}

.bg-beige {
    background-color: var(--beige);
}

.bg-blue {
    background-color: var(--bg-secondary);
}

.hyperlink {
    color: var(--hyperlink);
    transition: 150ms ease-out;
}

.hyperlink:hover {
    color: var(--hyperlink);
    opacity: 0.75;
    transition: 150ms ease-out;
}

form {
    width: 100%;
}

.form-control {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    height: 2.75rem;
    border-color: var(--light)
}

.logo{
    width:78px;
}
.social-list a {
    width: 32px;
    height: 32px;
    padding-top: 5px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    transition: all 0.2s ease-in-out;
    background-color: #fff
}

.social-list a:hover {
    color: var(--secondary);
    background-color: rgba(255, 255, 255, 0.8)
}

.container {
    max-width: var(--paragraph-max-width);
    margin: auto;
    padding: 1rem;
}

/* Not using anywhere */
.gradient-text:hover {
    --bg-size: 400%;
    --color-one: hsl(15 90% 55%);
    --color-two: hsl(40 95% 55%);
    background: linear-gradient(
        90deg,
        var(--color-one),
        var(--color-two),
        var(--color-one)
      )
      0 0 / var(--bg-size) 100%;
    color: transparent;
    background-clip: text;
  }
  
  @media (prefers-reduced-motion: no-preference) {
    .gradient-text {
      animation: move-bg 20s linear infinite;
    }
    @keyframes move-bg {
      to {
        background-position: var(--bg-size) 0;
      }
    }
}

/* Navbar */
#navbar-placeholder {
    height: var(--navbar-height);
}

.navbar {
    width: 100%;
    height: var(--navbar-height);
    position: fixed;
    top:0;
    left: 0;
    z-index:9999;
    transition:all .2s;
    background-color: var(--beige);
    box-shadow: 0px 4px 20px rgba(0,0,0,0.1);
}

.navbar-content {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar ul {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    transition: left 0.3s;
}

.navbar-content ul li a:hover {
    color: var(--secondary);
}

.navbar .checkbox {
    display: block;
    cursor: pointer;
}

.navbar input {
    display: none;
}

.navbar ul {
    position: absolute;
    width: 100%;
    height: calc(100vh);
    left: -100%;
    top: 50px;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    padding: initial;
}

.navbar #check:checked ~ ul {
    left: 0;
    background-color: white;
    overflow: hidden;
  }

/* Homepage */
.hero {
    margin: auto;
}

.hero-section {
    padding: 1rem 2rem;
    color: var(--primary);
}

.hero-section p:first-child {
    max-width: 400px;
}

.hero img {
    --max-width: 300px;
    
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-text-container .reveal-text {
        position: relative;
        color: transparent;
        width: fit-content;
        animation: showText forwards;
        animation-delay: 1000ms;
    }
    
    .reveal-text-container .reveal-bg {
        position: absolute;
        height: 100%;
        width: 0%;
        background: var(--primary);
        left: 0;
        top: 0;
        animation: revealTextLeft 1200ms ease-out;
    }
    
    @keyframes revealTextLeft {
        80% {
        width: 100%;
        left: 0;
        }
    
        100% {
        width: 0%;
        left: 100%;
        }
    }

    
    #hero-subtext p {
        position: relative;
        color: transparent;
        animation: revealText 1.5s forwards;
        animation-delay: 2000ms;
        overflow: hidden;
    }

    #hero-subtext p:first-child::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--beige); /* Adjust this color to match your background */
        animation: slideDown 450ms forwards;
        animation-delay: inherit; /* Inherit delay from parent */
        z-index: 1; /* Ensure the block is above the text */
    }

    #hero-subtext p:last-child a {
        color: var(--primary);
        font-weight: 600;

        
    }

    #hero-subtext p:last-child a:hover {
        text-decoration: underline;
    }

    #hero-subtext p:last-child {
        animation-delay: 3500ms;
    }

    #hero-subtext p:last-child::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--beige); /* Adjust this color to match your background */
        animation: slideRight 1s forwards;
        animation-delay: inherit; /* Inherit delay from parent */
        z-index: 1; /* Ensure the block is above the text */
    }

    @keyframes revealText {
        to {
            color: var(--primary);
        }
    }

    @keyframes slideDown {
        to {
            top: 100%;
        }
    }

    @keyframes slideRight {
        to {
            left: 100%;
        }
    }
    
    @keyframes showText {
        to {
            color: var(--primary);
        }
    }
}

.project {
    width: 100%;
    padding: 4rem 1rem;
}

.project a {
    width: 100%;
    max-width: 850px;
}

.project-thumbnail {
    width: 95%;
    max-width: 850px;
    max-height: 500px;
    border-radius: 3px;
    margin: 20px;
    background-repeat: no-repeat; 
    background-size: contain;
}

#work {
    scroll-margin-top: 100px;
}

.project-thumbnail {
    position: relative;
    transform-style: preserve-3d;
    transition: transform linear;
}

@media screen and (prefers-reduced-motion: no-preference) and (min-width: 64rem){ /* 1024px */
    .project:hover .project-thumbnail {
        transform: perspective(5000px) rotateY(var(--rotateX)) rotateX(var(--rotateY));
    }
}

.project-thumbnail::before,
.project-thumbnail::after {
  content: "";
  position: absolute;
  border-radius: inherit;
}

.project-thumbnail::before {
    inset: 1rem;
    background: black;
    z-index: -1;
    transform: translateZ(-50px);
    filter: blur(15px);
    opacity: 0.5;
    border-radius: 2px;
  }

  .project-thumbnail::after {
    z-index: -2;
    inset: -1rem;
    background: linear-gradient(60deg, #96745d, #b78c65, #d0a675, #e3c18a, #f2d9a5, #fbedc4, #fffbe9);
    transform: translateZ(-50px);
    border-radius: 6px;
  }

/* About */

.two-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: auto;
}

.three-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: auto;
}

#portrait-gallery {
    width: 100%;
    max-width: 480px;
}

#about-skills {
    max-width: var(--max-width);
    padding: 1rem;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

#about-quote {
    max-width: 600px;
    padding: 20px 1rem;
    font-weight: 300;
}

#about-quote > p:nth-child(2) {
    font-size: 20px;
    letter-spacing: 0.48px;
    line-height: normal;
    font-weight: 300;
}

.line-separator {
    width: 100px;
    border-top: 1px solid#DDDDDD;
    margin: 0px auto;
}

.scroll-button {
    display: block;
    cursor: pointer;
    height: 80px;
    width: 80px;
    position: relative;
    margin-top: -20px;
    margin-bottom: 20px;
    visibility: hidden;
    opacity: 0;
    animation: cssAnimation 1s ease-out 6s;
    animation-fill-mode: forwards;
}

@keyframes cssAnimation {
    to {
        visibility: visible;
        opacity: 1;
    }
}

.down-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0px;
    height: 30px;
    border: 2px solid #EDE8DA;
    border-radius: 2px;
  }

  .down-arrow:after {
    content: " ";
    position: absolute;
    top: 12px;
    left: -7.9px;
    width: 16px;
    height: 16px;
    border-bottom: 4px solid #EDE8DA;
    border-right: 4px solid #EDE8DA;
    border-radius: 4px;
    transform: rotateZ(45deg);
  }

  @media screen and (prefers-reduced-motion: no-preference){
    .down-arrow {    
        animation: float 3s infinite;
      }

    @keyframes float {
        0% {
          margin-top: 0;
        }
        50% {
          margin-top: 20px;
        }
        100% {
          margin-top: 0;
        }
    }
}
  
  
  
  

/* Work Entry */
@media (prefers-reduced-motion: no-preference) {
    .fade > * {
        scale: 0.8; 
        opacity: 0;
        animation: fade-in linear forwards;
        animation-timeline: view();
        animation-range: entry -100px;
    }
}

 @keyframes fade-in {
    to {
      scale: 1; opacity: 1;  
    }
 }

.work-intro {
    width: 100%;
    max-width: 1040px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    
}
.work-intro-detail {
    width: 100%;
    max-width: 460px;
    text-align: center;
}

.work-paragraph {
    width: 100%;
    max-width: var(--paragraph-max-width);
}

.testimonial {
    width:fit-content;
    padding: 10px;
    max-width: 310px;
    border-left: 1px solid black;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 400;
    font-style: italic;
}

#work-persona {
    height:max-content;
    font-size: 14px;
    font-weight: 200;
}

#work-persona div:nth-child(2) {
    height: 100%;
    justify-content: space-between;
}

#sandbox-gallery {
    max-width: 1076px;
}

/* Footer */

.footer {
    background-color: var(--beige);
    padding: 40px 0px;
}

.footer img {
    width: initial;
}

.footer div a {
    width: fit-content;
    height: fit-content;
}

.footer h3 {
    color: black;
    font-size: 20px;
    font-weight: 500;
}

@media screen and (min-width: 48rem) { /* 768px */
    .navbar .checkbox {
        display: none;
    }

    .navbar ul {
        position: initial;
        margin: initial;
        width: fit-content;
        height: auto;
        left: initial;
        top: initial;
        flex-direction: row;
        gap: 3rem;
    }

    .hero-section {
        padding: 4rem 0rem 4rem 2rem;
        display: flex;
        flex-direction: column;
        margin-bottom: var(--navbar-height);
        margin-top: 80px;
    }

    #hero-subtext {
        max-width: 400px;
    }

    .hero img {
        --max-width: 450px;
    }
    
    .scroll-button {
        margin-top: -80px;
        margin-bottom: 80px;
    }

    .row-section {
        flex-direction: row;
    }

    .col-section {
        flex-direction: column;
    }

    .margin-section {
        margin: 40px auto;
        padding: 2rem;
    }

    .two-col {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }

    .two-col > * {
        width: calc(100%/2);
    }

    .three-col {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }

    .three-col > * {
        width: calc(100%/3);
    }

    #about-skills {
        gap: 80px;
    }


}

@media screen and (min-width: 65.625rem) { /* 1050px */
    .hero-section {
        
        margin-top: 80px;
    }
    
    .work-intro {
        justify-content: space-between;
        align-items: baseline;
    }
    
    .work-intro-detail {
        text-align: left;
    }
}

@media screen and (min-width: 90rem) { /* 1440px */
    .hero-section {
        padding: 12rem 6rem;
        margin-top: initial;
    }

    .row-section {
        flex-direction: row;
    }

    .col-section {
        flex-direction: column;
    }

    .margin-section {
        margin: 80px auto;
        padding: initial;
    }

    .two-col {
        width: fit-content;
        display: flex;
        flex-direction: row;
        max-width: var(--max-width);
        gap: 80px;
    }

    .three-col {
        width: fit-content;
        display: flex;
        flex-direction: row;
        max-width: var(--max-width);
        gap: 80px;
    }

    #about-skills {
        gap: 120px;
    }
}