:root {
    --dark-blue: #110a33;
    --black: #000000;
    --pink: #F92C86;
    --purple: #5A54F8;
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-blue);
    font-family: 'Quicksand', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--white);
}

header {
    background-color: var(--black);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.left-navbar a {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    margin-top: 10px;
    font-weight: 600;
}

.left-navbar a img {
    padding: 20px 15px 10px 20px;
    width: 40px;
}

.right-navbar {
    display: flex;
}

.right-navbar a {
    padding: 20px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.4s ease;
}

.right-navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-image: linear-gradient(to right, var(--pink), var(--purple));
    transition: width 0.4s ease;
}

.right-navbar a:hover {
    background-image: linear-gradient(to right, var(--pink), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.right-navbar a:hover::after {
    width: 60%;
}

#homepage {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--black);
    min-height: calc(100vh - 80px);
    padding: 40px;
    flex-wrap: wrap;
}

#homepage::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.05;
    z-index: 1;
}

.profile {
    margin: 20px;
    display: block;
    height: 342px;
    width: 280px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 0 16px 0 rgba(255, 255, 255, .4);
    position: relative;
    z-index: 2;
}

.homepage-description {
    margin: 20px 0 20px 20px;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.name h1 {
    margin-bottom: 20px;
    padding-right: 50px;
    color: var(--white);
    line-height: 1.2;
    font-size: 64px;
    font-weight: 800;
}

.tag {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 25px;
}

.tag div button {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: border-color 0.4s ease-out 0.3s;
}

.tag div button .anibutton span {
    position: relative;
    z-index: 4;
}

.tag div button::before,
.tag div button::after,
.tag div button .anibutton::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-101%);
}

.tag div button::before {
    background-color: rgba(249, 44, 134, 0.5);
    z-index: 0;
    transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1);
}

.tag div button::after {
    background-color: rgba(249, 44, 134, 0.75);
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1) 0.15s;
}

.tag div button .anibutton::before {
    background-image: linear-gradient(to right, var(--pink), var(--purple));
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1) 0.3s;
}

.tag div button:hover::before,
.tag div button:hover::after,
.tag div button:hover .anibutton::before {
    transform: translateX(0);
}

.tag div button:hover {
    border-color: transparent;
}

.homepage-description a {
    text-decoration: none;
}

.homepage-button {
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 30px;
    background: linear-gradient(to right, #411bff, #ff2f66);
    padding: 25px 50px;
    color: var(--white);
    border: none;
    clip-path: polygon(10% 0%, 95% 0%, 100% 40%, 90% 100%, 5% 100%, 0% 60%);
    transition: 0.5s;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.homepage-button span {
    z-index: 3;
}

.homepage-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(249, 44, 134, 0.5);
    z-index: 0;
    transform: translateX(-101%);
    transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1);
}

.homepage-button:hover::before {
    transform: translateX(0);
}

#about {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background-color: var(--dark-blue);
    text-align: center;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--white);
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.3),
        0 0 12px rgba(90, 84, 248, 0.4);
}

.about-container {
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    padding: 30px 40px;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-container p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    text-align: justify;
    margin: 0;
}

#projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background-color: var(--black);
    text-align: center;
}

.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

.main-projects,
.side-projects {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.7);
}

.project-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-item:hover img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 10, 51, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.details-button {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.project-item:hover .details-button {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.details-button:hover {
    background-color: var(--white);
    color: var(--dark-blue);
}

.main-projects .project-item {
    width: calc(50% - 10px);
    height: 350px;
}

.side-projects .project-item {
    width: calc(16.66% - 17px);
    height: 150px;
}

#contact {
    padding: 80px 20px;
    background-color: var(--black);
    text-align: center;
}

.contact-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: -20px;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-image: linear-gradient(to right, var(--pink), var(--purple));
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.social-links a svg {
    width: 24px;
    height: 24px;
}

.wave-container {
    line-height: 0;
    background-color: var(--black);
}

footer {
    background-color: var(--dark-blue);
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}


@media (max-width: 1024px) {
    .side-projects .project-item {
        width: calc(33.33% - 14px);
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }

    .left-navbar a {
        margin-bottom: 10px;
    }

    main {
        margin-top: 120px;
    }

    #homepage {
        flex-direction: column;
        padding: 20px;
    }

    .name h1 {
        font-size: 48px;
        text-align: center;
    }

    .tag {
        justify-content: center;
    }

    .homepage-description {
        margin: 20px 0;
        text-align: center;
    }

    .main-projects .project-item {
        width: 100%;
        height: 250px;
    }

    .side-projects .project-item {
        width: calc(50% - 10px);
    }
}