/* Global box-sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent !important;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Headings */
h1, h3 {
    text-align: center;
}

h3 {
    font-weight: 400;
}

/* Profile Section */
.profile {
    margin-top: 50px;
    margin-bottom: 20px;
    display: block;
}

.avatar {
    position: relative;
    width: fit-content;
    margin: 0 auto;
    padding: 0;
}

.avatar img {
    position: relative;
    z-index: 2;
    width: 120px;
}

@keyframes pulse {
    to {
        opacity: 0;
        transform: scale(1);
    }
}

.avatar::before,
.avatar::after {
    animation: pulse 2s linear infinite;
    border: #fff solid 8px;
    border-radius: 50%;
    box-sizing: border-box;
    content: ' ';
    height: 140%;
    left: -20%;
    opacity: 0.6;
    position: absolute;
    top: -20%;
    transform: scale(0.714);
    width: 140%;
    z-index: 1;
}

.avatar::after {
    animation-delay: 1s;
}

/* Social Buttons */
.social {
    margin: auto;
    padding-top: 20px;
    width: 300px;
    display: flex;
    justify-content: space-between;
}

.social-btn {
    padding: 10px;
    background-color: aquamarine;
    border: none;
    border-radius: 40px;
    width: 40px;
    height: 40px;
    font-weight: bold;
    font-size: large;
    color: #03191b;
    cursor: pointer;
}

.normal-btn {
    cursor: pointer;
    margin: auto;
    display: block;
    margin-top: 20px;
    position: relative;
    padding: 10px 20px;
    border-radius: 7px;
    border: 1px solid aquamarine;
    font-size: 14px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    background: transparent;
    color: #fff;
    overflow: hidden;
    transition: all 0.2s ease-in;
}

.normal-btn:hover,
.social-btn:hover {
    color: black;
    background: aquamarine;
    box-shadow: 0 0 30px 5px rgba(127, 255, 212, 0.815);
    transition: all 0.2s ease-out;
}

.normal-btn:hover::before {
    animation: sh02 0.5s linear;
}

.normal-btn::before {
    content: '';
    display: block;
    width: 0;
    height: 86%;
    position: absolute;
    top: 7%;
    left: 0%;
    opacity: 0;
    background: #fff;
    box-shadow: 0 0 50px 30px #fff;
    transform: skewX(-20deg);
}

@keyframes sh02 {
    from {
        opacity: 0;
        left: 0%;
    }

    50% {
        opacity: 1;
    }

    to {
        opacity: 0;
        left: 100%;
    }
}

.normal-btn:active {
    box-shadow: 0 0 0 0 transparent;
    transition: box-shadow 0.2s ease-in;
}

/* Overlay */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

#overlay img {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Projects Section */
.projects {
    position: relative;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    margin-top: 50px;
}

.projects h2 {
    text-align: center;
    margin-bottom: 20px;
    color: aquamarine;
}

.project {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid aquamarine;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.2s ease-in, box-shadow 0.2s ease-in;
}

.project:hover {
    background: aquamarine;
    color: #001111;
    box-shadow: 0 0 30px 5px rgba(127, 255, 212, 0.815);
}

.project-title {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.project-description {
    font-size: 1em;
    line-height: 1.5;
}

/* Lottie Animation */
#lottieAnimation {
    width: 100px;
    height: 100px;
    margin: 35px auto;
}

/* Media Queries */
@media only screen and (min-width: 992px) {
    /* for desktop */
}

@media only screen and (min-width: 768px) {
    /* for tablet */
    .profile {
        width: 100px;
    }

    .social {
        width: 250px;
    }

    .social-btn {
        width: 50px;
        height: 50px;
    }
}

@media only screen and (max-width: 768px) {
    /* for phones */
    .profile {
        width: 80px;
    }

    .social {
        width: 250px;
    }

    .social-btn {
        width: 50px;
        height: 50px;
    }
}
