:root {
    --purple: #E65AE2;
    --darker-purple: #833686;
    --black: #000000;
    --header: #070911;
    --hero-sub: #cdcdcfd4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: var(--black);
    font-family: 'Lato', sans-serif;
}

a {
    color: white;
    text-decoration: none;
}
li {
    list-style: none;
}
/*Header*/
.nav {
    padding: 1rem;
    background-color: var(--header);
    border-radius: 12px;
    opacity: 80%;
    width: max-content;
    margin: 2rem;
    position: fixed;
    z-index: 1;
}
.nav div {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.25rem;
}
.nav hr {
    border: 1px solid white;
    width: 20px;
}

.inactive {
    filter: blur(5px);
    opacity: 30%;
    pointer-events: none;
}
.hide {
    display: none;
}
.sidebar {
    color: white;
    height: 100dvh;
    width: 100dvw;
    padding: 2rem;
    position: fixed;
    z-index: 1000;
}
.sidebar a {
    font-size: 20px;
    font-weight: bold;
    list-style: none;
}
.x {
    width: 30px;
    height: 30px;
}
.x svg {
    width: 100%;
    height: 100%;
}
.sidebar-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sidebar-icon svg {
    width: 25px;
    height: 25px;
    color: var(--darker-purple);
}
.nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80%;
}
.nav-center ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem
}

/*Hero*/
.hero {
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url("/image/download\ \(4\).jfif");
    background-size: cover;
    background-position: center;
}

.center {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}
.hero p {
    font-size: 14px;
    color: var(--hero-sub);
}
.hero h1 {
    font-size: 32px;
    color: white;
}
.color {
    color: var(--purple);
}
.hero button {
    height: 36px;
    width: 244px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    color: black;
}

/*About*/
.about {
    margin: 2rem 0;
    color: white;
    padding: 3.5rem 1rem;
}
.about span {
    text-align: center;
}
.QAs {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin-top: 2rem;
}
.QA {
    border: 1px solid var(--darker-purple);
    padding: 1rem;
    border-radius: 16px;
}
.Q {
    font-size: 14px;
    
}
.A {
    font-size: 12px;
    color: var(--hero-sub);
}
.QA-icon {
    width: 20px;
    height: 20px;
    border-radius: 16px;
}
.QA-icon img {
    width: 100%;
    height: 100%;
}
.about-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    justify-content: space-between;
}
.about-me-header p:last-of-type {
    font-size: 12px;
    color: var(--hero-sub);
}
/*stack*/
.stacks {
    color: white;
    border: 1px solid var(--darker-purple);
    border-radius: 16px;
    margin: 1rem;
    padding: 1rem;
}
.stacks-title {
    text-align: center;
}
.stack-img {
    width: 35px;
    height: 35px;
}
.stack-img img {
    width: 100%;
    height: 100%;
}
.stack {
    border: 1px solid var(--darker-purple);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    
}

.glow {
            box-shadow: 0 0 20px var(--darker-purple);
            transform: scale(1.1);
        }

.stack-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border-radius: 12px;
    padding: 2rem;
}
.stack p {
    font-size: 12px;
}

/*Projects*/
.project {
    color: white;
    padding: 2rem 0;
    background-color: #100411;
    margin: 4rem 0;
}
.project-section-title {
    text-align: center;
}
.clap {
    font-size: 12px;
    color: var(--hero-sub);
}
.project-cover {
    width: 100%;
    aspect-ratio: 3/1.5;
    margin: 1rem 0;   
}
.project-cover img {
    width: 100%;
    height: 100%;
}
.project-stack-img {
    width: 23px;
    height: 23px;
}
.project-stack-img img {
    width: 100%;
    height: 100%;
}
.project-card span p:first-of-type {
    font-size: 18px;
}
.project-card span p:last-of-type {
    font-size: 12px;
    margin-top: 0.5rem;
}
.project-card {
    margin: 1.5rem 1rem;
    background-color: #070A12;
    border: 1px solid #0F1119;
    padding: 1rem;
    border-radius: 24px;
}
.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.project-card-stack {
    overflow: hidden;
    width: 60%;
}
.project-card button {
    padding: 3px 23px;
    border-radius: 5px;
    border: none;
    color: black;
}
.stack-used {
    display: flex;
    gap: 2rem;
    animation: scroll var(--animation-duration) linear infinite;
    width: max-content;
    
}
.scroll-col {
    display: flex;
    gap: 2rem;
}

/*reach out*/
.reach-out {
    color: white;
    padding: 4rem 2rem;
}
.reach-section p {
    text-align: center;
}
.step-card {
    border: 1px solid var(--darker-purple);
    border-radius: 24px;
    padding: 2rem;
    margin: 2rem 0;
}
.step-card span {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}
.plugin {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}
.plugin img {
    width: 100%;
    height: 100%;
}
.w {
    font-size: 24px;
    font-weight: bold;
    line-height: 2rem;
}
.des {
    font-size: 12px;
    color: var(--hero-sub);
}

/*footer*/

footer {
    height: calc(100dvh - 68px);
    background-color: black;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 20%;
}
footer h2 {
    font-size: 36px;
    font-weight: lighter;
}
.reach {
    color: var(--hero-sub);
    
}
footer a {
    color: var(--hero-sub);
}
footer a, footer p {
    font-size: 16px;
}
footer hr {
    border: 1px solid var(--hero-sub);
    opacity: 50%;
    width: 100%
}
.copywrite {
    color: var(--purple);
    font-size: 14px;
    font-weight: 100;
}
.contact-me {
    background-color: var(--darker-purple);
    border-radius: 12px;
    height: 46px;
    width: 178px;
    color: white;
    border: none;
}
.footer-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.footer-contact a {
    margin: 1rem;
}
.footer-span-1 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4rem;
}
.footer-span-2 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}



/*responsive part */

@media (min-width: 768px) {
    .sidebar a {
        font-size: 32px;
    }
    .sidebar-icon svg {
        width: 35px;
        height: 35px;
    }

    /* Hero */
    .hero {
        padding: 0 3rem;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero button {
        height: 42px;
        width: 260px;
        font-size: 16px;
    }

    /* About */
    .about {
        padding: 5rem 3rem;
    }

    .about-me-header p:first-of-type {
        font-size: 28px;
    }

    .about-me-header p:last-of-type {
        font-size: 14px;
    }

    .QAs {
        flex-direction: row;
        gap: 2rem;
    }

    .QA {
        flex: 1;
        padding: 1.5rem;
    }

    .Q {
        font-size: 16px;
    }

    .A {
        font-size: 14px;
    }

    /* Stack */
    .stacks {
        margin: 2rem 3rem;
        padding: 2rem;
    }

    .stacks-title {
        font-size: 24px;
        margin-bottom: 1rem;
    }

    .stack-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 3rem;
    }

    .stack {
        padding: 0.75rem;
    }

    .stack p {
        font-size: 14px;
    }

    .stack-img {
        width: 40px;
        height: 40px;
    }

    /* Project */
    .project {
        padding: 4rem 3rem;
    }

    .project-section-title p:first-of-type {
        font-size: 28px;
    }

    .project-section-title .clap {
        font-size: 14px;
    }

    .project-card {
        margin: 2rem 0;
        padding: 1.5rem;
    }

    .project-card span p:first-of-type {
        font-size: 22px;
    }

    .project-card span p:last-of-type {
        font-size: 14px;
    }

    .project-cover {
        aspect-ratio: 2.5/1;
        max-height: 300px;
    }

   

    .project-card button {
        padding: 8px 28px;
        font-size: 14px;
    }

    .project-stack-img {
        width: 26px;
        height: 26px;
    }

    /* Reach*/
    .reach-out {
        padding: 5rem 3rem;
    }

    .reach-section p:first-of-type {
        font-size: 28px;
    }

    .reach-section .clap {
        font-size: 14px;
    }

    .step-card {
        display: flex;
        align-items: center;
        gap: 2rem;
        padding: 2rem 2.5rem;
        margin: 1.5rem 0;
    }

    .step-card span {
        text-align: left;
        margin-top: 0;
    }

    .plugin {
        flex-shrink: 0;
    }

    .w {
        font-size: 26px;
    }

    .des {
        font-size: 14px;
    }

    /* Footer */
    footer {
        padding: 5rem 3rem;
    }

    footer h2 {
        font-size: 48px;
    }

    .contact-me {
        height: 52px;
        width: 200px;
        font-size: 16px;
    }

    .footer-contact {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-contact a {
        font-size: 18px;
    }
}


@media (min-width: 1024px) {
    /* Hero */
    .hero {
        padding: 0 5rem;
    }

    .hero h1 {
        font-size: 56px;
    }

    .hero p {
        font-size: 20px;
    }

    .hero button {
        height: 48px;
        width: 280px;
        font-size: 18px;
    }

    /* About */
    .about {
        padding: 6rem 2rem;
        max-width: 1400px;
        margin: 3rem auto;
    }

    .about-me-header p:first-of-type {
        font-size: 36px;
    }

    .about-me-header p:last-of-type {
        font-size: 16px;
    }

    .QAs {
        gap: 2.5rem;
        margin-top: 3rem;
    }

    .QA {
        padding: 2rem;
    }

    .Q {
        font-size: 18px;
    }

    .A {
        font-size: 15px;
    }

    /* Stack */
    .stacks {
        margin: 3rem auto;
        padding: 1rem;
        max-width: 1400px;
    }

    .stacks-title {
        font-size: 32px;
        margin-bottom: 2rem;
    }

    .stack-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
        padding: 3rem 2rem;
    }

    .stack {
        padding: 1rem;
    }

    .stack p {
        font-size: 15px;
    }

    .stack-img {
        width: 45px;
        height: 45px;
    }

    /* Project */
    .project {
        padding: 6rem 5rem;
    }

    .project-section-title {
        margin-bottom: 3rem;
    }

    .project-section-title p:first-of-type {
        font-size: 36px;
    }

    .project-section-title .clap {
        font-size: 16px;
        margin-top: 0.5rem;
    }

    .project-card {
        max-width: 1400px;
        margin: 2.5rem auto;
        padding: 2rem;
        display: grid;
        grid-template-columns: 45% 55%;
        gap: 2rem;
        align-items: stretch;
    }

    .project-card > a,
    .project-card > .project-cover {
        grid-row: 1 / 3;
    }
    
    .project-card span p:first-of-type {
        font-size: 30px;
    }

    .project-card span p:last-of-type {
        font-size: 17px;
        line-height: 1.6;
    }
    .project-card span {
        padding-right: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    .project-card span p:first-of-type {
        font-size: 28px;
    }

    .project-card span p:last-of-type {
        font-size: 16px;
        color: var(--hero-sub);
    }

    .project-cover {
        height: 100%;
        border-radius: 16px;
        overflow: hidden;
        margin: 0;
    }

    .project-cover {
        aspect-ratio: 2.5/1.5;
        max-height: 400px;
    }

    .project-cover img {
        object-fit: fill;
    }

    .project-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        align-self: end;
        padding-bottom: 2rem;
    }
    .project-card button {
        padding: 10px 180px;
        font-size: 16px;
    }

    .project-stack-img {
        width: 28px;
        height: 28px;
    }

    /* Reach Out*/
    .reach-out {
        padding: 6rem 5rem;
        max-width: 1400px;
        margin: 0 auto;
    }

    .reach-section p:first-of-type {
        font-size: 36px;
    }

    .reach-section .clap {
        font-size: 16px;
        margin-top: 0.5rem;
    }

    .step-card {
        gap: 3rem;
        padding: 3rem;
        margin: 2rem 0;
    }

    .plugin {
        width: 120px;
        height: 120px;
    }

    .w {
        font-size: 28px;
        line-height: 2.5rem;
    }

    .des {
        font-size: 15px;
        line-height: 1.6;
    }

    /* Footer */
    footer {
        padding: 6rem 5rem;
        min-height: 100vh;
    }

    footer h2 {
        font-size: 64px;
        line-height: 1.2;
    }

    .footer-span-1 {
        max-width: 900px;
        margin: 0 auto;
    }

    .contact-me {
        height: 56px;
        width: 220px;
        font-size: 18px;
    }

    .footer-contact a {
        font-size: 20px;
    }

    .copywrite {
        font-size: 16px;
    }
}


@media (min-width: 1440px) {
    .hero h1 {
        font-size: 72px;
    }

    .about,
    .stacks,
    .reach-out {
        max-width: 1600px;
    }

    .project-card {
        max-width: 1600px;
    }

    .stack-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* mini animation */
@media (min-width: 768px) {
    .hero button:hover {
        transform: scale(1.05);
        cursor: pointer;
    }

    .QA:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(230, 90, 226, 0.3);
    }

    .stack:hover {
        box-shadow: 0 0 25px var(--darker-purple);
        transform: scale(1.08);
    }

    .project-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 40px rgba(230, 90, 226, 0.2);
    }

    .project-cover:hover {
        transform: scale(1.03);
    }

    .project-card button:hover {
        transform: scale(1.1);
        cursor: pointer;
    }

    .step-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(230, 90, 226, 0.25);
    }

    .contact-me:hover {
        transform: scale(1.08);
        background-color: var(--purple);
        cursor: pointer;
    }

    footer a:hover {
        color: var(--purple);
    }

    
    .hero button,
    .QA,
    .stack,
    .project-card,
    .project-cover,
    .project-card button,
    .step-card,
    .contact-me,
    footer a {
        transition: all 0.3s ease;
    }
}