:root {
 --main-color: #9BD2FF;
 --secondary-color: #56b3ff;
}

html {
    background-color: #212121;
    scroll-behavior: smooth;
}

body {
    font-family: Inter, sans-serif;
    overflow-x: hidden;
    margin: 0px;
    padding-right: 6rem;
    padding-left: 6rem;
    display: flex;
    justify-content: center;
}

.light {
    position: absolute;
    width: 0px;
    height: 0px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 200px 200px rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s, box-shadow 0.2s;
}

h1 {
    font-size: 3rem;
    line-height: 1;
    letter-spacing: -0.25;
    margin: 0;
}

h1 a {
    text-decoration: none;
}

h1, a {
    color: var(--main-color);
}

h2, h3 {
    color: white;
    margin-top: 0;
}

p {
    color: #C3C2C2;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

.p-space-below {
    margin-bottom: 0.75rem;
}

#page-body {
    display: flex;
    gap: 4rem;
    max-width: 70rem;
}

a.icon:hover, a.icon:focus {
    color: var(--secondary-color);
}

/* header and navigation */

header {
    flex: 1;
    box-sizing: border-box;
    padding-top: 6rem;
    padding-bottom: 6rem;
    position: sticky;
    top: 0;
    max-height: 100vh;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

#header-main-div {
    max-width: 25rem;
}

#header-main-div svg {
    position: absolute;
    margin-left: 10rem;
    margin-top: -7rem;
    z-index: -1;
}

#h2-header {
    font-size: 1.5rem;
    line-height: 1.75rem;
    letter-spacing: -.025em;
    font-weight: 700;
    margin-top: 1rem;
}

#p-header {
    font-size: 0.9rem;
}

#header-nav {
    display: block;
}

#header-nav ul {
    padding-left: 0;
    margin-top: 3rem;
}

#header-nav a {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    gap: 0.75rem;
}

#header-nav li {
    list-style-type: none;
    opacity: 80%;
}

#header-nav p {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1rem;
}

#header-links-section ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 1rem;
}

.line {
    background-color: #C3C2C2;
    height: 1px;
    width: 2rem;
}

.transition-line {
    transition-property: all;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .30s;
}

.nav-items {
    text-decoration: none;
}

/* active navigation */

.active span, .hover-active span {
    width: 4rem;
    background-color: white;
}

.active p, .hover-active p {
    color: white;
}

#header-nav li:has(a.active), #header-nav li:has(a.hover-active) {
    opacity: 100%;
}

/* main section */

main {
    flex: 2;
    box-sizing: border-box;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.mobile-section-header {
    display: none;
}

a.disabled {
    pointer-events: none;
}

.mobile-link {
    color: white;
}

/* about section */

#about-section {
    display: flex;
    gap: 2rem;
}

#header-links-section svg {
    width: 1.5rem; 
    height: 1.5rem;
}

.about-information-margin {
    margin-bottom: 2rem;
}

#about-information {
    width: 70%;
}

#about-image img {
    max-width: 100%; 
    height: auto; 
}

#about-image svg {
    position: absolute;
    margin-left: -5rem;
    margin-top: 18rem;
    width: 133px;
    height: 266px;
}

.section-end-margin {
    margin-bottom: 7rem;
}

#about-section #resume-link:hover {
    color: var(--secondary-color);
}

#hand {
    margin-bottom: -0.3rem;
}

/* containers */

.container {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    padding: 20px;
    margin-bottom: 1rem;
}

.container-year, .container-image {
    flex-basis: 20%;
    flex-grow: 1;
}

.container-info {
    flex-basis: 75%;
    flex-grow: 2;
}

.year-text {
    font-weight: 400;
    font-size: small;
}

.technology-stack {
    display: flex;
    gap: 10px;
}

.technology-container {
    background-color: var(--main-color);
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    background-color: rgba(155, 210, 255, 0.31);
}

.container-info p {
    font-size: 0.9rem;
}

.technology-text {
    color: var(--main-color);
    font-size: small;
}

.container-info h3 {
    margin-bottom: 0.75rem
}

.invisible {
    visibility: hidden;
}

.container-image img {
    border-radius: 10px;
    width: 8rem;
}

.container-image a {
    display: none;
}

/* container is hovered on */

.container-hovered {
    background-color: rgba(161, 208, 247, 0.116);
    border-radius: 10px;
}

.container-hovered h3 {
    color: var(--main-color);
}

.container-hovered svg {
    visibility: visible;
}

.change-opacity {
    opacity: 50%;
}

/* footer section */

footer {
    text-align: right;
}

footer p {
    font-size: 0.9rem
}

/* responsive */

@media screen and (max-width: 1050px) {
    header {
        position: static; 
    }

    #page-body {
        display: block;
    }
}

@media screen and (max-width: 700px) {

    #header-nav {
        display: none;
    }

    #header-links-section ul {
        margin-top: 3rem;
    } 

    .section-end-margin {
        margin-bottom: 3rem;
    }

    .mobile-section-header {
        display: inline-block;
        padding-bottom: 1rem;
    }

    #about-section {
        margin-bottom: 7rem;
    }

    #header-links-section svg {
        height: 2rem;
        width: 3rem;
    }

    #about-image svg {
        height: 200px;
        margin-top: -3rem;
    }

    #about-section {
        flex-direction: column-reverse; 
    }

    #about-image img {
        max-width: 50%; 
        padding-bottom: 2rem;
    }

    #about-information {
        width: 100%;
    }

    .container {
        display: inline;
        padding: 0;
        padding-bottom: 2rem;
    }

    .container-year, .container-image {
        padding-bottom: 1rem;
    }

    .container-image a {
        display: inline-block;
    }

    .container-image img {
        width: 100%;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    #portfolio-section .container {
        display: flex;
        flex-direction: column-reverse;
    }

    footer {
        text-align: left;
    }
}

