@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --white: rgb(255, 255, 255);
    --black: rgb(13, 13, 15);
    --mid-black: rgba(13, 13, 15, 0.7);
    --gray: rgba(13, 13, 15, 0.25);
    --panel-width: 20vw;
    --panel-height: 75px;
    --close-gallery-button-size: 50px;
}

* {
    margin: 0;
    padding: 0;
    color: var(--black);
}

html {
    display: flex;
    flex-direction: row;
    background-color: var(--white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    
}

p {
    font-family: 'EB Garamond', 'Garamond', serif;
}

h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    background: linear-gradient(to top, yellow 40%, transparent 40%);
    width: fit-content;
    height: fit-content;
}

h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    margin: 30px 20px;
    text-align: center;
    letter-spacing: 0.5rem;
}

h1:after {
    background-color: yellow;
    width: 50px;
    height: 10px;
}

a, #currentLink {
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    width: fit-content;
}

main {
    margin-left: var(--panel-width);
    box-sizing: border-box;
    padding: 50px 100px;
    width: auto;
    transform: rotate(1deg);

}

hr {
    margin: 50px -200px;
    height: 1px;
    border: none;
    background-color: var(--gray);
}

#sidePanel {
    width: var(--panel-width);
    overflow: hidden;
    box-sizing: border-box;
    padding: 100px 0px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    background-color: var(--white);
    z-index: 1;
    display: flex;
    flex-direction: column;
    border-right: solid 1px var(--gray);
}

#logo {
    max-width: 8rem;
    margin: 0 auto;
    display: block;
}

#links {
    display: grid;
    flex-direction: column;
    font-size: 1rem;
    justify-content: center;
    margin: auto 0;
}

#tagline {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 3rem;
    text-align: left;
    width: 35%;
}

#about {
    margin: -100px 0 100px 0;
    display: flex;
    flex-direction: row;
    height: 100% !important;
}

#about img {
   width: 50vw;
   right: -100px;
   position: absolute;
}

#about p {
    text-align: right;
    width: 25%;
    margin: 350px 0px 0 50px;
}

main section {
    margin-top: 0px;
}

.works {
    padding: 50px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 50px;
    align-content: center;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.work-group, .one-content {
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: row-reverse;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.work-group img, .one-content img {
    height: 200px;
    filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));;
    position: absolute;
}

.web-content img {
    height: 200px;
    filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));;
    position: absolute;
}

.work-group img:first-of-type {
    rotate: 10deg;
    z-index: 2;
    margin-left: 30px !important;
    margin-right: -30px !important;
}

.work-group img:nth-child(2) {
    rotate: 0deg;
    z-index: 1;
}

.work-group img:last-of-type {
    rotate: -10deg;
    z-index: 0;
    margin-right: 30px !important;
}

.work-group:hover img:first-of-type {
    rotate: 15deg;
}

.work-group:hover img:nth-child(2) {
    rotate: -5deg;
}

.work-group:hover img:last-of-type {
    rotate: -20deg;
}

.work-group p, .one-content p, .web-content p {
    z-index: 4;
    background: var(--mid-black);
    backdrop-filter: blur(10px);
    border: solid 1px rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.5rem 1rem;
    font-family: 'Inter', serif;
    position: absolute;
    height: fit-content;
    opacity: 0;
}

.work-group:hover p, .one-content:hover p, .web-content:hover p {
    opacity: 1;
}

.one-content:hover img, .web-content:hover img {
    transform: scale(1.1);
}

.web-content {
    height: 200px;
    width: 356px;
    cursor: pointer;
}

#gallery {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: white;
    z-index: 10;
    visibility: hidden;
}

#mainGallery {
    position: fixed;
    top: 0;
    bottom: var(--close-gallery-button-size);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    box-sizing: border-box;
}

#gallery button {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    height: var(--close-gallery-button-size);
    border: none;
    border-radius: none;
    background-color: var(--black);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
}

#mainGallery::-webkit-scrollbar {
    scrollbar-width: 0px;
}

#mainGallery img {
    display: block;
    margin-bottom: 0px;
}

#services {
    display: flex;
    flex-direction: row;
    gap: 100px;
}

#skills h1 {
    margin-bottom: 50px;
}

.bar {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
    margin-top: 20px;
    margin-left: 50px;
}

.indicator {
    height: 100%;
    width: var(--indicator-size);
    background-color: var(--black);
}

.bar p {
    /* font-style: italic; */
}

.bar-boarder {
    width: 50%;
    height: 1rem;
    border: solid 1px var(--black);
}

#contact {
    margin: 50px ;
    display: flex;
    flex-direction: column;
}

#contact h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    margin: 20px 0px 0px 0px;
    text-align: left;
    letter-spacing: 0rem;
}

#contact p {
    font-size: 1.3rem;
}

#contact a {
    font-size: 1rem;
    font-family: 'EB Garamond', 'Garamond', serif;
    text-transform: capitalize;
    margin: 5px 0px;
}

.active {
    font-weight: bold;
}

#currentLink {
    display: none;
}

@media only screen and (max-width: 1300px) {
    #about {
        margin: 50px;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }
    
    #about img {
        width: 75%;
        right: 0px;
        display: block;
        margin: 0 auto;
        position: relative;
    }
    
    #about p {
        text-align: left;
        width: 80%;
        margin: 50px 0px 0px 0px;
    }
}

@media only screen and (max-width: 1000px) {
    #about img {
        width: 100%;
        right: 0px;
        display: block;
        margin: 0 auto;
        position: relative;
    }
}

@media only screen and (max-width: 800px) {
    #sidePanel {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: auto;
        width: 100%;
        z-index: 10;
        border-right: none;
        border-bottom: solid 0px var(--gray);
        flex-direction: row;
        padding: 15px 50px;
        height: var(--panel-height);
        justify-content: space-between;
        align-items: center;
        backdrop-filter: blur(10px) saturate(2);
        background-color: rgba(255, 255, 255, 0.8);
    }

    #currentLink {
        display: block;
    }

    #logo {
        margin: 0px;
        height: 100%;
    }

    #links {
        display: none;
    }

    main {
        margin: 0px;
        margin-top: var(--panel-height);
        padding: 50px 20px;
    }

    .works {
        padding: 50px 0px;
    }
}
