html {
    box-sizing: border-box;
    font-size: 62.5%;
    font-family: 'Courier New', Courier, monospace;
}

* {
    margin: 0;
    padding: 0;
    user-select: none;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .8rem;
    box-shadow: 0px .1rem .5rem 0px #888787;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 100;
}

.logo {
    height: 6rem;
    width: 6rem;
    background-color: black;
    border-radius: 50%;
    position: relative;
}

.logo-initials {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
}

.menu {
    position: relative;
    height: 0.4rem;
    width: 3rem;
    background-color: black;
    border-radius: 0.5rem;
    display: inline-block;
    transition: visibility 0.1s ease-in-out
}

/* Top bar */
.menu::before {
    content: "";
    position: absolute;
    top: -0.8rem;
    height: 0.4rem;
    width: 3rem;
    background-color: black;
    border-radius: 0.5rem;
    z-index: 101;
    transition: transform .6s ease-in-out, top .6s ease-in-out
}

/* Bottom bar */
.menu::after {
    content: "";
    position: absolute;
    top: 0.8rem;
    height: 0.4rem;
    width: 3rem;
    background-color: black;
    border-radius: 0.5rem;
    z-index: 101;
    transition: transform .6s ease-in-out, top .6s ease-in-out
}

.menu.open {
    visibility: hidden;
}

.menu.open::after {
    transform: rotate(-45deg);
    visibility: visible;
    top: 0;
}

.menu.open::before {
    transform: rotate(45deg);
    visibility: visible;
    top: 0;
}

.author-container {
    margin-top: 1rem;
    display: flex;
    width: 100%;
    height: 90vh;
}

.author-image-container {
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.author-image {
    height: 50rem;
    object-fit: cover;
}

.author-about {
    padding: 1rem;
    align-self: center;
    flex: 1;
}

.author-about {
    /* max-width: 800px; */
    /* margin: 4rem auto; */
    text-align: center;
    /* color: #fff; */
    font-family: "Playfair Display", "Georgia", serif;
}

.author-about p {
    font-size: 2.2rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.author-about p:first-letter {
    font-size: 3.6rem;
    font-weight: bold;
}

.author-about p:hover {
    transform: scale(1.02);
    text-shadow: 3px 3px 12px rgba(255, 255, 255, 0.4);
}

.menu-container {
    position: fixed;
    width: 20%;
    right: 0;
    height: 100%;
    top: 0;
    z-index: 100;
    background-color: white;
    transition: transform 0.3s ease;
    transform: translateX(100%);
    /* hidden by default */
}

.menu-container.active {
    transform: translateX(0);
    /* visible when active */
}

.backdrop {
    position: fixed;
    inset: 0;
    /* shorthand for top:0; right:0; bottom:0; left:0 */
    background-color: rgba(0, 0, 0, 0.5);
    /* semi-transparent black */
    z-index: 99;
    /* just below menu */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.backdrop.active {
    opacity: 1;
    visibility: visible;
}

.skills-scroll {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 3rem 0;
}

.skills-scroll h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.logos {
    display: flex;
    width: max-content;
    animation: scroll 25s linear infinite;
}

.logos-slide {
    display: flex;
    gap: 3rem;
}

.logos-slide img {
    height: 7rem;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.9);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logos-slide img:hover {
    filter: none;
    transform: scale(1.1);
}

/* Infinite scroll animation */
@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50.5%);
    }
}

/* Pause animation on hover */
.logos:hover {
    animation-play-state: paused;
}


.about {
    margin-top: 2rem;
    padding: 3rem 4rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    animation: rotateText 15s linear infinite;
}

.circle-text p {
    position: absolute;
    width: 100%;
    height: 100%;
    color: #f6c700;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    transform: rotate(0deg);
}

.circle-text p::before {
    content: attr(data-text);
}

.footer {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
    padding: 4rem;
}

.rotate {
    animation: rotatefull 25s linear infinite;
}

.footer .logo {
    border: 1px solid white;
}

/* Animation */
@keyframes rotatefull {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width:900px) {
    .author-about p {
        font-size: 1.8rem;
    }

}

@media (max-width: 768px) {
    .author-about p {
        font-size: 1.8rem;
    }

    .author-about p:first-letter {
        font-size: 3rem;
    }

    .author-container {
        height: auto;
        flex-direction: column;
    }

    .author-image {
        height: 50rem;
        width: 40rem;
    }

    .author-about {
        align-self: center;
        flex: 0;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .footer {
        gap: 3rem;
        grid-template-columns: 1fr;
    }
}

@media(max-width:600px) {
    .menu-container {
        width: 90%;
    }
}