/*==================*/
/*Main Navigation*/
/*================== */

.main-nav > ul {
    margin: 0 auto;
    max-width: 1100px;
    display: flex;
    flex-direction: row-reverse;
    gap: 1.5em;
    font-size: 1rem;
    list-style-type: none;
    color: white;
    font-weight: bold;
    z-index: 2;
}

ul > a {
    cursor: pointer;
    z-index: 2;
}

ul > a:hover {
    color: var(--pink);
    transition: all ease 0.3s;
}

/*==================*/
/*side Navigation*/
/*================== */
.side-nav {
    position: fixed;
    display: flex;
    flex-direction: column;
    gap: 1em;
    z-index: 1;
    top: 50%;
    left: 5%;
    transform: translate(-50%, -50%);
}
.nav-bullet {
    position: relative;
    height: 17px;
    width: 17px;
    border-radius: 15px;
    border: none;

    cursor: pointer;
    background-color: white;
}
.nav-bullet:nth-child(1):before {
    content: "Home";
}
.nav-bullet:nth-child(2):before {
    content: "About";
}
.nav-bullet:nth-child(3):before {
    content: "Projects";
}
.nav-bullet:nth-child(4):before {
    content: "Skills";
}
.nav-bullet:nth-child(5):before {
    content: "Contact";
}
.nav-bullet::before {
    position: absolute;
    left: 20px;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: bold;
    opacity: 0;
    transition: all ease 0.3s;
    pointer-events: none;
}
.nav-bullet:hover::before {
    opacity: 1;
    transform: translateX(10px);
}

/*
==================
Burger Navigation
================== */
.burger-icon {
    z-index: 2;
    position: fixed;
    top: 30px;
    right: 30px;
    cursor: pointer;
    width: 30px;
    display: none;
}
.burger-nav {
    position: fixed;
    background: linear-gradient(rgb(103, 50, 90, 0.99), rgb(40, 11, 68, 0.99));
    z-index: 4;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 1em;
    transform: translateX(100vw);
    transition: all ease 0.3s;
    display: none;
}
.burger-active {
    position: fixed;
    background: linear-gradient(rgb(103, 50, 90, 0.97), rgb(40, 11, 68, 0.97));
    z-index: 4;
    width: 100vw;
    height: 100vh;
    padding: 1em;
    transform: translateX(0);
    transition: all ease 0.3s;
}

.burger-nav img {
    float: right;
    width: 35px;
    cursor: pointer;
}
.burger-nav ul {
    list-style: none;
    margin: 2em 1em;
    padding: 0;
}
.burger-nav ul li {
    margin: 2em 0;
    cursor: pointer;
}
.burger-nav div {
    margin: 3em 1em;
}
.burger-nav div h4 {
    color: rgb(255, 255, 255, 0.5);
    font-size: larger;
}
.burger-nav div a {
    display: block;
    margin: 1em 0;
}

/* =======================
Section Hero
===================== */

.centered-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;

    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.profile-pic {
    width: 26vw;
}

.pinkShade {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 0;
    background: linear-gradient(rgb(255, 143, 143, 0.5), rgb(255, 143, 143, 0));
    animation: delayShowPinkshade 2s ease forwards 2s;
    pointer-events: none;
}
@keyframes delayShowPinkshade {
    to {
        opacity: 1;
        height: 50vh;
    }
}

.wavelines-hero {
    opacity: 80%;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 95%;
    height: 98%;

}
.wavelines-hero path:nth-child(1) {
    stroke-dasharray: 2716;
    stroke-dashoffset: 2716;
    animation: wavy 3s ease forwards 1s;
}
.wavelines-hero path:nth-child(2) {
    stroke-dasharray: 2661;
    stroke-dashoffset: 2661;
    animation: wavy 3s ease forwards 1.5s;
}
@keyframes wavy {
    to {
        stroke-dashoffset: 0;
    }
}
h1 {
    color: white;
    margin: 0;
    text-align: center;
    font-size: clamp(2.4rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
h1 > span {
    color: var(--pink);
}
.welcome-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(50px);
}

/* ---- Hero: on-load entrance ----
   Hero is above the fold, so it animates on load (not on scroll). The heading,
   subline, CTAs, and work-link rise in sequence while the profile pic settles
   in from a soft scale; the wavelines and pink-shade continue their own load
   animations. Gated behind .js so no-JS ships the hero fully visible. Delays
   overlap the waveline draw so the whole hero reads as one arrival. */
.js .welcome-msg > h1,
.js .welcome-msg > .hero-subline,
.js .welcome-msg > .buttons-hero,
.js .welcome-msg > .hero-work-link {
    opacity: 0;
    transform: translateY(22px);
    animation: heroRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--reveal-delay, 0s);
}
.js .welcome-msg > h1 {
    --reveal-delay: 0.15s;
}
.js .welcome-msg > .hero-subline {
    --reveal-delay: 0.3s;
}
.js .welcome-msg > .buttons-hero {
    --reveal-delay: 0.45s;
}
.js .welcome-msg > .hero-work-link {
    --reveal-delay: 0.6s;
}
.js .profile-pic {
    opacity: 0;
    animation: heroPicIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.35s;
}
@keyframes heroRise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes heroPicIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.welcome-msg > p {
    color: white;
    margin: 10px 0;
    font-weight: lighter;
}

.hero-kicker {
    margin: 0 0 0.6em 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(255, 255, 255, 0.75);
}

.hero-subline {
    max-width: 34ch;
    margin: 1em 0 0 0;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.5;
    color: rgb(255, 255, 255, 0.9);
    text-wrap: pretty;
}

.buttons-hero {
    margin: 2em 0 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
}

/* Hero CTAs carry longer labels than the site's default pills, so they size
   to content instead of the fixed 110px width used elsewhere. */
.buttons-hero button {
    width: auto;
    height: auto;
    padding: 0.7em 1.6em;
    white-space: nowrap;
}

/* Primary CTA: filled coral, the one solid button in the hero */
.hero-primary-btn {
    background-color: var(--pink);
    color: var(--purple);
    font-weight: 600;
}
.hero-primary-btn:hover {
    background-color: white;
    color: var(--purple);
}

.hero-work-link {
    margin-top: 40px;
    font-size: 0.95rem;
    font-weight: 300;
    color: rgb(255, 255, 255, 0.8);
    transition: color ease 0.3s, border-color ease 0.3s;
}
/*.hero-work-link:hover {*/
/*  color: var(--pink);*/
/*  border-color: var(--pink);*/
/*}*/

/* Scroll cue: quiet first-visit orientation, fades in after the hero settles */
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 2.2rem;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    opacity: 0;
    color: rgb(255, 255, 255, 0.7);
    animation: scrollCueIn 0.8s ease forwards 2.4s;
}
.scroll-cue:hover {
    color: var(--pink);
}
.scroll-cue-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.scroll-cue-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: scrollCueBob 1.8s ease-in-out infinite;
}
@keyframes scrollCueIn {
    to {
        opacity: 1;
    }
}
@keyframes scrollCueBob {
    0%,
    100% {
        transform: translateY(0) rotate(45deg);
    }
    50% {
        transform: translateY(6px) rotate(45deg);
    }
}

/* Reduced motion: every entrance resolves to its visible end-state, instantly.
   Nothing is gated behind a transition, so content is never hidden. Each new
   reveal added below must land here too, or a motion-averse visitor sees a
   blank section. */
@media (prefers-reduced-motion: reduce) {
    /* All wavelines: render fully drawn, no draw-in. */
    .wavelines-hero path:nth-child(1),
    .wavelines-hero path:nth-child(2),
    .js .wavelines-about path,
    .js #about.is-visible .wavelines-about path,
    .js .wavelines-projects path,
    .js #projects.is-visible .wavelines-projects path {
        animation: none;
        stroke-dashoffset: 0;
    }

    /* Hero content: no rise, no scale-in. */
    .js .welcome-msg > h1,
    .js .welcome-msg > .hero-subline,
    .js .welcome-msg > .buttons-hero,
    .js .welcome-msg > .hero-work-link,
    .js .profile-pic {
        opacity: 1;
        transform: none;
        animation: none;
    }

    /* About entrance: land on the visible end-state. */
    .js #about .about-article h2,
    .js #about .about-article p,
    .js #about .about-div > a,
    .js #about .about-service > li,
    .js #about #resume-btn-mobile {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .js #about .ellipse-about {
        opacity: 1;
        transform: translate(-50%, -50%);
        filter: none;
        transition: none;
    }

    /* Projects entrance: heading/copy/CTA + tiles land in place. The CTA keeps
       its baseline translateY(40px) resting offset. */
    .js #projects .article-projects > *,
    .js #projects .singleProject {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .js #projects .article-projects > a {
        transform: translateY(40px);
    }

    /* Skills entrance: copy + chips land in place. */
    .js #skills .article-skills > *,
    .js #skills .skills-ul > li {
        opacity: 1;
        transform: none;
        transition: none;
    }

    /* Contact entrance: closing message lands in place. */
    .js #contact .closingMsg-contact > * {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .pinkShade {
        animation: none;
        opacity: 1;
        height: 50vh;
    }
    .scroll-cue {
        animation: none;
        opacity: 1;
    }
    .scroll-cue-arrow {
        animation: none;
    }
}

.primary-btn {
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 3em;
    background-color: transparent;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}
.work-btn {
    width: 110px;
    height: 28px;
    border: 2px solid var(--pink);
    border-radius: 3em;
    background-color: transparent;
    color: var(--pink);
    font-size: 1rem;
    cursor: pointer;
}

.primary-btn:hover {
    color: var(--purple);
    background-color: white;
    transition: all ease 0.3s;
}
.work-btn:hover {
    background-color: var(--pink);
    transition: all ease 0.3s;
    color: var(--purple);
}

@media(max-width:480px){
    .centered-wrapper {
        width: 92vw;
        gap: 0.8em;
    }
    .buttons-hero {
        margin: 24px 0;
    }
}

@media(max-width:1120px){
    .main-nav {
        display: none;
    }
    .profile-pic {
        display: none;
    }
    .side-nav {
        display: none !important;
    }
    .wavelines-hero {
        display: none;
    }

    .welcome-msg p {
        text-align: center;
        margin-top: 1em;
    }
    .hero-subline {
        max-width: 42ch;
        font-size: 1.05rem;
    }
    .scroll-cue {
        display: none;
    }
    .burger-nav {
        display: block;
    }
    .burger-icon {
        display: block;
    }

}
