* {
    text-decoration: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --header-color: #2C2C2C;
    --text-color: white;
    --footer-color: #2C2C2C;
}

body {
    background-color: black;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    width: 100%;
    height: 100vh;
}

.header-top-bar {
    background: var(--header-color);
    padding: 0px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #ffffff;
    font-family: "Roboto", sans-serif;
    line-height: 1;
    cursor: pointer;
}

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24
}

main {
    font-family: sans-serif;
    color: var(--text-color);
}

main .main-card {
    background-color: #2C2C2C;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 80px auto auto auto;
    margin-bottom: 80px;
    border-radius: 50px;
    border: 2px solid grey;
    padding: 40px 20px 20px 20px;
}

main .main-card .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

main .main-card .profile-image {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 120px;
    width: 120px;
    border-radius: 50%;
    border: 2px solid grey;
    background-color: black;
}

main .main-card .container h1 {
    color: var(--text-color);
    text-align: center;
    margin: 50px;
    font-family: "Roboto", sans-serif;
}

main .main-card .container h4 {
    font-family: sans-serif;
    margin-bottom: 50px;
}

main .main-card .container .separator {
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 30px 0;
}

main .main-card .container .separator::before,
main .main-card .container .separator::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid grey;
}

main .main-card .container .separator::after {
    margin-left: 30px;
}

main .main-card .container .separator::before {
    margin-right: 30px;
}

.project-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1140px;
    margin: 0 auto;
    box-sizing: border-box;
}

.project-card {
    background-color: #252525;
    border: 2px solid #444444;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.project-card-img-wrapper {
    width: 100%;
    height: 225px;
    background: grey;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-card-img {
    height: 225px;
    width: 100%;
    object-fit: contain;
    display: block;
}

.project-card-content {
    padding: 20px;
    text-align: left;
}

.project-card-content h4 {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
}

.project-card-content p {
    margin: 0;
    margin-bottom: 30px;
    color: #b3b3b3;
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-card-content .view-code {
    border: 1px solid gainsboro;
    border-radius: 20px;
    background-color: #444444;
    color: white;
    display: inline-flex;
    padding: 20px;
    padding: 0.6rem 1.5rem;
    line-height: 1.5;
    cursor: pointer;
    gap: 5px;
}

.project-card-content .view-code .view {
    display: inline-flex;
    align-items: center;
    height: 20px;
    width: 20px;
    border: none;
    border-radius: 50%;
    align-content: center;
    gap: 5px;
}

.featured-project-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1140px;
    margin: 0 auto;
    box-sizing: border-box;
}

.featured-project-card {
    background-color: #252525;
    border: 2px solid #444444;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.featured-project-card-img-wrapper {
    width: 100%;
    height: 225px;
    background: grey;
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-project-card-img {
    height: 225px;
    width: 100%;
    object-fit: contain;
    display: block;
}

.featured-project-card-content {
    padding: 20px;
    text-align: left;
}

.featured-project-card-content h4 {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
}

.featured-project-card-content p {
    margin: 0;
    margin-bottom: 30px;
    color: #b3b3b3;
    font-size: 0.95rem;
    line-height: 1.5;
}

.featured-project-card-content .view-code {
    border: 1px solid gainsboro;
    border-radius: 20px;
    background-color: #444444;
    color: white;
    display: inline-flex;
    padding: 20px;
    padding: 0.6rem 1.5rem;
    line-height: 1.5;
    cursor: pointer;
    gap: 5px;
}

.featured-project-card-content .view-code .view {
    display: inline-flex;
    align-items: center;
    height: 20px;
    width: 20px;
    border: none;
    border-radius: 50%;
    align-content: center;
    gap: 5px;
}

.contacts-btn {
    display: flex;
    justify-content: center;
    margin: 0 10px 0 0;
    border: 1px solid gainsboro;
    border-radius: 20px;
    background-color: #444444;
    color: white;
    align-items: center;
    padding: 20px;
    padding: 0.6rem 1.5rem;
    line-height: 1.5;
    cursor: pointer;
    gap: 5px;
}

.contacts-btn .contacts-btn-img {
    display: inline-flex;
    align-items: center;
    height: 20px;
    width: 20px;
    border: none;
    border-radius: 50%;
    align-content: center;
    gap: 5px;
}

.download-btn {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    border: 1px solid gainsboro;
    border-radius: 20px;
    background-color: #444444;
    color: white;
    align-items: center;
    padding: 20px;
    padding: 0.6rem 1.5rem;
    line-height: 1.5;
    cursor: pointer;
    gap: 5px;
}

.download-btn .download-btn-img {
    display: inline-flex;
    align-items: center;
    height: 20px;
    width: 20px;
    border: none;
    border-radius: 50%;
    align-content: center;
    gap: 5px;
}

.tech-slider-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 30px 0;
    display: block;
    position: relative;
}

.tech-slider-wrapper::before,
.tech-slider-wrapper::after {
    content: "";
    height: 100%;
    width: 100px;
    position: absolute;
    top: 0;
    z-index: 2;
}

.tech-slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent);
}

.tech-slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.1), transparent);
}

.tech-stack-track {
    display: flex;
    gap: 50px;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
}

.tech-stack-track .icon {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;

    height: 56px !important;
    width: 56px !important;
    flex-shrink: 0 !important;
    border: none;
    border-radius: 12px;
    object-fit: contain;

    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.tech-stack-track .icon:hover {
    opacity: 1;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

main .main-card .container .footer-separator {
    display: flex;
    width: 100%;
    margin: 30px 0;
}

main .main-card .container .footer-separator::before,
main .main-card .container .footer-separator::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid grey;
}

main .main-card .container .footer-separator::after {
    margin-left: 0;
}

main .main-card .container .footer-separator::before {
    margin-right: 0;
}

main .main-card .container footer {
    color: grey;
    justify-content: space-evenly;
    margin: 30px 0;
}

.back-to-top .back-to-top-icon {
    cursor: pointer;
    background-color: #000000;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    height: 50px;
    width: 50px;
    border: none solid grey;
    border-radius: 50%;
}

::-webkit-scrollbar {
    background: #252525;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 600px) {

    .featured-project-card-grid {
        overflow: hidden;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .project-card-grid {
        overflow: hidden;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

}

@media (max-width: 796px) {

    .featured-project-card-grid {
        overflow: hidden;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .project-card-grid {
        overflow: hidden;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

}