
:root {
    --about-primary-color: #31572c;
    --about-secondary-color: #c0d887;
    --projects-primary-color: #005e8d;
    --projects-secondary-color: #8bd3f4;
    --contact-primary-color: #d45f00;
    --contact-secondary-color: #fedb83;
}

body {
    width: 100%;
    margin: 0;
    padding: 0px;
    background-color: #faf9f6;
}

a {
    text-decoration: none;
    cursor: crosshair;
    color: black;
}

h1 {
    margin-top: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    font-size: 50px;
    text-align: center;
    line-height: 60px;
    overflow: hidden;
}

strong {
    font-weight: 700;
    font-style: italic;
    font-size: 80px;
}

h2 {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    font-size: 20px;
    margin-top: 10px;
}

p {
    display: block;
    margin: 50px auto;
    width: 300px;
    text-align: end;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
   
}

.masked-text {
    margin: 0 auto;
    font-size: 85px;
    font-weight: 700;
    font-style: italic;
    line-height: 0.8;
    color: transparent;
    background-image: url('https://images.unsplash.com/photo-1714548213572-7943d5fd3528?q=80&w=1932&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: 200%;
    background-position: 0 50%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-background 5s infinite alternate linear;
}

@keyframes animate-background {
    0% {
        background-position: 0 50%;
    }
    100% {
        background-position: 100% 50%;
    }
    }

.index-navigation {
    margin-top: 60px;
    text-align: center;
    
}

.link {
    font-family: 'Inter', sans-serif;
    display: block;
    margin: 10px auto;
    text-decoration: none;
    color: #373737;
    font-size: 100px;
    font-weight: 100;
    line-height: 75px;
    text-transform: lowercase;
    cursor: crosshair;
}

.top {
    width: fit-content;
    transform: translateX(-100px);
    transition: all 100ms ease-in-out;
}

.top:hover {
    
    font-style: italic;
}

.middle {
    width: fit-content;
    transform: translateX(130px);
    transition: all 100ms ease-in-out;
}

.middle:hover {
    
    font-style: italic;
}

.bottom {
    width: fit-content;
    font-style: italic;
    transform: translateX(12px);
    transition: all 100ms ease-in-out;
}

.bottom:hover {
    
    font-style: normal;
}

#about {
    margin: 400px 0;
    width: 100%;
}

.about-parent {
    margin: 0 auto;
    border-radius: 30px;
    padding: 20px;
    max-width: 700px;
}

.about-title {
    position: relative;
    text-align: center;
    top: 26px;
    left: -30px;
}

.about-me-section {
    padding: 30px;
}

.about-text {
    margin-top: 10px;
    max-width: 90%;
}

p .emphasis {
    font-size: 15px;
    font-weight: 700;
}

.selfie {
    display: block;
    width: 300px;
    min-width: 100px;
    margin: 10px auto;
    border-radius: 30px;
}

.about-theme-bg {
    background-color: var(--about-secondary-color);
    color: var(--about-primary-color)
}

.about-theme {
    color: var(--about-primary-color);
}

#projects {
    margin: 0 0 400px 0;
    width: 100%;
}

.projects-theme {
    color: var(--projects-primary-color);
}

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

.projects-grid {
    margin-bottom: 75px;
    gap: 10px;
    padding: 30px;
}

.projects-title {
    position: relative;
    top: 26px;
    left: 50px;
}

.projects-parent {
    border-radius: 30px;
    padding: 20px;
    margin-top: 0;
}

.project-container {
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    max-width: 400px;
    height: 500px;
    text-align: center;
}

.project-preview-img {
    border-radius: 10px;
}

.project-title {
    font-size: 22px;
    margin-top: 10px;
    color: var(--projects-primary-color);
}

.project-description {
    font-size: 16px;
    font-weight: 300;
}

.project-button {
    margin: 15px;
    padding: 7px 12px;
    border: none;
    border-radius: 20px;
    background-color: var(--projects-primary-color);
    transition: all 150ms ease-in-out;
}

.project-button a {
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-size: 14px;
}

.project-button:hover {
    background-color: var(--projects-accent-color);
    transform: scale(1.05);
}

#contact {
    margin: 0 0 200px 0;
    width: 100%;
}

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

.contact-theme {
    color: var(--contact-primary-color);
}

.contact-parent {
    width: 550px;
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
    border-radius: 30px;
}

.contact-section {
    padding: 30px;
}

.contact-title {
    position: relative;
    text-align: center;
    top: 26px;
}

.contact-paragraph {
    color: var(--contact-primary-color);
    text-align: center;
    font-size: 25px;
    font-weight: 200;
}

#email {
    text-align: center;
    margin: 5px auto;
    text-decoration: none;
    font-size: 50px;
    font-weight: 100;
    line-height: 70px;
    text-transform: lowercase;
    cursor: crosshair;
    transition: all 150ms ease-in-out;
}

#email:hover {
    font-style: italic;
}

.social-icons {
    margin: 0 auto 50px auto;
    width: 100%;
    font-size: 35px;
    text-align: center;
    line-height: 2;
    transition: all 200ms ease-in-out;
}

.social-icon a {
    text-decoration: none;
    margin: 20px;
    
}

.social-icon:hover {
    opacity: 0.7;
}

.footer-credit {
    text-align: center;
    margin-bottom: 30px;
    font-family: monospace;
    font-size: 12px;
}

@media (max-width: 576px) {
    h1 {
        font-size: 30px;
        line-height: 1;
    }
    h1 strong {
        font-size: 35px;
    }
    h2 {
        font-size: 15px;
    }
    
    .nav-link {
        font-size: 11px;
    }

    .link {
        font-size: 70px;
        line-height: 0.7;
    }
    .top {
        transform: none;
    }
    .middle {
        transform: none;
    }
    .masked-text {
        font-size: 50px;
    }
    
    p {
        margin: 0 auto 20px auto;
        text-align: center;
        font-size: 12px
    }
    p .emphasis {
        font-size: 12px;
    }

    .selfie {
        display: block;
        margin: 0 auto;
        margin-bottom: 40px;
    }

    .projects-title {
        left: 15px;
    }

    #email {
        font-size: 25px;
    }

    .footer-credit {
        font-size: 10px;
    }
}