/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}



/* MY DESIGN */


@font-face {
    font-family: 'Boomshell';
    src: url('../work-folder/font/Boomshell\ Font\ Reguler.otf') format('opentype');
}

@font-face {
    font-family: 'DIN Condensed';
    src: url('../work-folder/font/DIN\ Condensed\ Web.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter Tight';
    src: url('../work-folder/font/inter-tight-v9-latin-regular.woff2') format('woff2');
}

:root {
    --bg-color: #f8f9fb;
    --text-primary: #1a1a1a;
    --text-secondary: #5e5e5e;
    --line-color: #dcdfe4;
    --purple: #a47ba7;
    --pink: #fad2d9;
    --yellow: #fef08a;
    --blue: #bfdbfe;
    --green: #d9f1cb;
    --dark: #2b2533;
    --font-sans: 'Inter Tight', sans-serif;
    --font-script: 'Boomshell', cursive;
    --font-display: 'DIN Condensed', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-color);
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-color);
    background-attachment: fixed;
    overflow-x: hidden;
}

main,
body>header,
body>footer {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px;
}

/* NAVBAR */
body>header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark);
    padding: 8px 10px;
    border-radius: 40px;
    margin: 30px auto;
    width: fit-content;
    min-width: 380px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    margin-right: 15px;
    margin-left: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

body>header>nav {
    display: flex;
    gap: 25px;
    margin-left: 20px;
}

body>header>nav>a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s;
}

body>header>nav>a:hover {
    color: #fff;
}

body>header>a:last-child {
    background: #d1b4d5;
    color: var(--dark);
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

/* JS Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* SECTIONS BASE */
section {
    padding: 70px 0;
    position: relative;
}

#index-page section {
    padding: 70px 0;
}

section>header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 40px;
}

section>header>h2 {
    background: var(--pink);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: capitalize;
}

section>header>img {
    width: 32px;
    margin: 10px 15px;
}

/* HERO (section 1) */
main>section:nth-of-type(1) {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0;
}

main>section:nth-of-type(1)>b {
    font-family: var(--font-display);
    font-size: clamp(6rem, 18vw, 15rem);
    color: transparent;
    -webkit-text-stroke: 1.5px #e5e7eb;
    line-height: 0.8;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.8;
    user-select: none;
}

main>section:nth-of-type(1)>header {
    position: relative;
    z-index: 5;
    margin-bottom: 0;
}

main>section:nth-of-type(1)>header>span {
    font-family: var(--font-script);
    font-size: clamp(3rem, 7vw, 5.5rem);
    color: var(--purple);
    position: absolute;
    top: -30px;
    left: -40px;
    transform: rotate(-12deg);
}

main>section:nth-of-type(1)>header>img {
    width: min(340px, 80vw);
    position: relative;
    z-index: 2;
    display: block;
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

main>section:nth-of-type(1)>h1 {
    font-family: var(--font-script);
    font-size: clamp(4.5rem, 12vw, 8rem);
    color: var(--purple);
    line-height: 0.8;
    margin-top: -80px;
    position: relative;
    z-index: 10;
    transform: rotate(-4deg);
    font-weight: 400;
    width: 100%;
    white-space: nowrap;
}

main>section:nth-of-type(1)>i {
    color: var(--purple);
    position: absolute;
    font-style: normal;
    font-size: 1.5rem;
}

main>section:nth-of-type(1)>i:nth-of-type(1) {
    top: 100px;
    right: 20%;
}

main>section:nth-of-type(1)>i:nth-of-type(2) {
    bottom: 150px;
    left: 15%;
}

/* WHAT I DO (section 2) */
main>section:nth-of-type(2)>div {
    position: relative;
    margin: 40px auto;
    width: 90%;
    padding: 10px 0;
}

main>section:nth-of-type(2)>div::before,
main>section:nth-of-type(2)>div::after {
    content: '';
    position: absolute;
    top: -30px;
    bottom: -30px;
    width: 1.5px;
    background: #b5bccb;
    z-index: 1;
}

main>section:nth-of-type(2)>div::before {
    left: 40px;
}

main>section:nth-of-type(2)>div::after {
    right: 40px;
}

main>section:nth-of-type(2)>div>ul {
    list-style: none;
    border: 1.5px solid #b5bccb;
    border-left: none;
    border-right: none;
    position: relative;
}

main>section:nth-of-type(2)>div>ul::before,
main>section:nth-of-type(2)>div>ul::after {
    content: '';
    position: absolute;
    left: -20px;
    right: -20px;
    height: 1.5px;
    background: #b5bccb;
    z-index: 1;
}

main>section:nth-of-type(2)>div>ul::before {
    top: -1.5px;
}

main>section:nth-of-type(2)>div>ul::after {
    bottom: -1.5px;
}

main>section:nth-of-type(2)>div>ul li:first-child::before,
main>section:nth-of-type(2)>div>ul li:first-child::after,
main>section:nth-of-type(2)>div>ul li:last-child::before,
main>section:nth-of-type(2)>div>ul li:last-child::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: url('images/portal-1.svg') no-repeat center/contain;
    z-index: 10;
}

main>section:nth-of-type(2)>div>ul li:first-child::before {
    top: -9px;
    left: 31px;
}

main>section:nth-of-type(2)>div>ul li:first-child::after {
    top: -9px;
    right: 31px;
}

main>section:nth-of-type(2)>div>ul li:last-child::before {
    bottom: -9px;
    left: 31px;
}

main>section:nth-of-type(2)>div>ul li:last-child::after {
    bottom: -9px;
    right: 31px;
}

main>section:nth-of-type(2)>div>ul li {
    padding: 22px 60px;
    display: flex;
    align-items: center;
    gap: 25px;
    border-bottom: 1px solid #b5bccb;
    position: relative;
}

main>section:nth-of-type(2)>div>ul li:last-child {
    border-bottom: none;
}

main>section:nth-of-type(2)>div>ul li img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

main>section:nth-of-type(2)>div>ul li span {
    font-size: 1.05rem;
    font-weight: 500;
}

/* ABOUT (HOMEPAGE SPECIFIC SECTION 3) */
main>section#about>p:first-of-type {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

main>section#about hgroup {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 30px;
}

main>section#about hgroup h3 {
    font-family: var(--font-display);
    font-size: clamp(5rem, 15vw, 10rem);
    line-height: 0.8;
    text-transform: uppercase;
}

main>section#about hgroup span {
    font-family: var(--font-script);
    font-size: clamp(3.5rem, 10vw, 7rem);
    color: var(--purple);
    transform: rotate(-10deg);
}

main>section#about>p:last-of-type {
    max-width: 650px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* PROJECTS (section 4) */
main>section:nth-of-type(4) menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

main>section:nth-of-type(4) figure {
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    border: 1px solid var(--line-color);
}

main>section:nth-of-type(4) figure picture img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
}

main>section:nth-of-type(4) figcaption {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

main>section:nth-of-type(4) figcaption h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

main>section:nth-of-type(4) figcaption span {
    font-size: 0.65rem;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 800;
    text-transform: uppercase;
}

/* Project Specific Tag Colors */
main>section:nth-of-type(4) figure:nth-child(1) figcaption span {
    background: var(--pink);
}

main>section:nth-of-type(4) figure:nth-child(2) figcaption span {
    background: var(--yellow);
}

main>section:nth-of-type(4) figure:nth-child(3) figcaption span {
    background: var(--blue);
}

main>section:nth-of-type(4) figure:nth-child(4) figcaption span {
    background: var(--yellow);
}

main>section:nth-of-type(4)>div {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

main>section:nth-of-type(4)>div>a {
    background: var(--pink);
    color: #1a1a1a;
    padding: 12px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(250, 210, 217, 0.4);
}

/* TOOLS BAR (aside) */
main>aside {
    border-top: 1.5px solid var(--line-color);
    border-bottom: 1.5px solid var(--line-color);
    padding: 30px 0;
    margin: 60px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
}

main>aside>i {
    color: var(--blue);
    font-style: normal;
}

/* EXPERIENCE (section 5 on index, section 4 on about) */
main#index-page>section:nth-of-type(5)>article,
#about-page>section:nth-of-type(4)>article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    padding-top: 40px;
}

main#index-page>section:nth-of-type(5)>article::before,
#about-page>section:nth-of-type(4)>article::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: -30px;
    left: 48%;
    width: 1.5px;
    background: #b5bccb;
    z-index: 1;
    /* Make sure it draws over things if needed */
}

main#index-page>section:nth-of-type(5)>article::after,
#about-page>section:nth-of-type(4)>article::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20px;
    right: -20px;
    height: 1.5px;
    background: #b5bccb;
    box-shadow: none;
    /* Reset from earlier */
}

main#index-page>section:nth-of-type(5)>article>section,
#about-page>section:nth-of-type(4)>article>section {
    padding-left: 60px;
    border-left: 1.5px solid #b5bccb;
    position: relative;
    padding-top: 0;
    padding-bottom: 20px;
}

main>section:nth-of-type(5) hgroup,
#about-page>section:nth-of-type(4) hgroup {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

main>section:nth-of-type(5) mark,
#about-page>section:nth-of-type(4) mark {
    position: absolute;
    left: -20px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0;
}

main>section:nth-of-type(5) article>section:nth-of-type(1) mark,
#about-page>section:nth-of-type(4) article>section:nth-of-type(1) mark {
    background: var(--yellow) !important;
}

main>section:nth-of-type(5) article>section:nth-of-type(2) mark,
#about-page>section:nth-of-type(4) article>section:nth-of-type(2) mark {
    background: var(--purple) !important;
}

main>section:nth-of-type(5) h4,
#about-page>section:nth-of-type(4) h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    text-align: left;
}

main>section:nth-of-type(5) p,
#about-page>section:nth-of-type(4) p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: left;
    margin: 10px 0;
}

main>section:nth-of-type(5) time,
#about-page>section:nth-of-type(4) time {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
}



/* FOOTER */
footer {
    border-top: 1px solid var(--line-color);
    padding: 120px 0 60px 0;
    margin-top: 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 20px;
}

footer>div {
    display: flex;
    align-items: center;
    gap: 20px;
}

footer>div>a>img {
    width: 22px;
    height: 22px;
}

footer>div>a:last-child {
    background: var(--pink);
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.85rem;
}

/* RESPONSIVENESS */
@media (max-width: 900px) {

    main,
    body>header,
    body>footer {
        padding: 0 20px;
    }

    main>section:nth-of-type(1)>b {
        font-size: 10rem;
    }
}

@media (max-width: 768px) {
    main>section:nth-of-type(4) menu {
        grid-template-columns: 1fr;
    }




    main>section:nth-of-type(3) hgroup {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    main>section:nth-of-type(3) hgroup span {
        margin-top: -20px;
    }
}

@media (max-width: 480px) {
    body>header {
        min-width: auto;
        width: 95%;
    }

    body>header>nav {
        gap: 10px;
    }

    main>section:nth-of-type(1)>h1 {
        font-size: 4rem;
        margin-top: -60px;
    }

    main>section:nth-of-type(1)>b {
        font-size: 6rem;
    }

    footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ABOUT PAGE CSS — RE-RE-RESTORING FULL HIGH-FIDELITY DESIGN */

/* Active link logic (powered by JS) */
body>header>nav>a.active {
    color: #fff;
    font-weight: 700;
}

#about-page {
    padding-top: 40px;
}

/* Default Section header with pink tag hint */
#about-page section header {
    display: block;
    margin-bottom: 30px;
}

#about-page section header h2 {
    display: inline-block;
    background: #fbd3d9;
    padding: 3px 14px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #1a1a1a;
    text-transform: none;
}

#about-page section header img {
    display: block;
    width: 28px;
    margin-left: 20px;
    margin-top: -5px;
}

/* ── Section 1: Hero ── */
#about-page>section:nth-of-type(1) article {
    display: block;
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
}

#about-page>section:nth-of-type(1) article aside>header {
    position: absolute;
    top: 70px;
    left: 45%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    z-index: 10;
}

#about-page>section:nth-of-type(1) article aside {
    text-align: left;
}

#about-page>section:nth-of-type(1) article aside h1 {
    font-family: var(--font-script);
    color: var(--purple);
    font-size: clamp(3.5rem, 12vw, 6.5rem);
    line-height: 1.1;
    margin-bottom: 40px;
    font-weight: 400;
    text-align: left;
}

#about-page>section:nth-of-type(1) article aside p:first-of-type {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 25px;
}

#about-page>section:nth-of-type(1) article aside hgroup {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 40px;
}

#about-page>section:nth-of-type(1) article aside hgroup h3 {
    font-family: var(--font-display);
    font-size: clamp(5rem, 15vw, 9rem);
    text-transform: uppercase;
    line-height: 0.8;
}

#about-page>section:nth-of-type(1) article aside hgroup span {
    font-family: var(--font-script);
    color: var(--purple);
    font-size: clamp(4rem, 10vw, 7rem);
    transform: rotate(-10deg);
    display: inline-block;
}

#about-page>section:nth-of-type(1) article aside p:not(:first-of-type) {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b4b4b;
    margin-bottom: 25px;
}

#about-page>section:nth-of-type(1) article figure {
    position: absolute;
    top: 20px;
    right: 0;
    width: 38%;
    max-width: 380px;
    z-index: 5;
}

#about-page>section:nth-of-type(1) article figure img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

#about-page>section:nth-of-type(1) article figure .sparkle {
    position: absolute;
    color: var(--purple);
    font-size: 2.5rem;
}

#about-page>section:nth-of-type(1) article figure .sparkle:nth-of-type(1) {
    top: 50px;
    right: -25px;
}

#about-page>section:nth-of-type(1) article figure .sparkle:nth-of-type(2) {
    bottom: -15px;
    left: -40px;
}

/* ── Section 2: Skills Sketch Box ── */
#about-page>section:nth-of-type(2) article {
    position: relative;
    padding: 60px 40px;
    margin: 40px 0;
}

/* Crossing lines border effect */
#about-page>section:nth-of-type(2) article::before,
#about-page>section:nth-of-type(2) article::after {
    content: '';
    position: absolute;
    background: transparent;
    pointer-events: none;
    z-index: 0;
}

#about-page>section:nth-of-type(2) article::before {
    top: 30px;
    bottom: 30px;
    left: -30px;
    right: -30px;
    border-top: 4px solid #b5bccb;
    border-bottom: 4px solid #b5bccb;
}

#about-page>section:nth-of-type(2) article::after {
    left: 40px;
    right: 40px;
    top: -30px;
    bottom: -30px;
    border-left: 4px solid #b5bccb;
    border-right: 4px solid #b5bccb;
}

#about-page>section:nth-of-type(2) menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

#about-page>section:nth-of-type(2) menu>div {
    display: none;
}

#about-page>section:nth-of-type(2) menu figure {
    width: 100px;
    height: 100px;
    background: #fff;
    border: 1.5px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    margin: 0;
}

#about-page>section:nth-of-type(2) menu figure img {
    max-width: 55px;
    max-height: 55px;
    object-fit: contain;
}

/* ── Section 3: Educational Background ── */
#about-page>section:nth-of-type(3) article {
    position: relative;
    padding-top: 20px;
}

#about-page>section:nth-of-type(3) article>section {
    display: flex;
    gap: 40px;
    position: relative;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 0;
}

/* Base Vertical Line stretching down */
#about-page>section:nth-of-type(3) article>section::before {
    content: '';
    position: absolute;
    left: 37px;
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: #b5bccb;
    z-index: 1;
}

#about-page>section:nth-of-type(3) article>section:last-child::before {
    bottom: 0;
}

#about-page>section:nth-of-type(3) article>section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5px;
    background: #b5bccb;
    z-index: 0;
}

#about-page>section:nth-of-type(3) article>section mark {
    position: absolute;
    left: 37px;
    transform: translateX(-50%);
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 800;
    font-size: 2rem;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.1);
    z-index: 2;
    top: 50px;
}

#about-page>section:nth-of-type(3) article>section:nth-child(1) mark {
    background: #fee2a0;
}

#about-page>section:nth-of-type(3) article>section:nth-child(2) mark {
    background: #a2d7f8;
}

#about-page>section:nth-of-type(3) article>section:nth-child(3) mark {
    background: #f9bad9;
}

#about-page>section:nth-of-type(3) article>section h4 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

#about-page>section:nth-of-type(3) article>section hgroup {
    padding-left: 120px;
}

/* Tools Bar Marquee */
#tools-marquee {
    display: flex;
    justify-content: space-around;
    padding: 30px 0;
    border-top: 1.5px solid #1a1a1a;
    border-bottom: 1.5px solid #1a1a1a;
    margin: 80px 0;
    font-weight: 700;
    text-transform: uppercase;
}

#tools-marquee i {
    color: var(--purple);
    font-style: normal;
}



/* ── Contact Section ── */
section#contact>div>div:last-child {
    display: none;
}



/* Mobile Adjustments */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    body>header {
        width: 100%;
        margin: 15px auto;
        padding: 10px;
    }

    body>header>nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 20px;
        right: 20px;
        background: var(--dark);
        padding: 20px;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 99;
    }

    body>header>nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    body>header>nav>a {
        padding: 5px 10px;
        border-radius: 5px;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    #about-page>section:nth-of-type(1) article {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #about-page>section:nth-of-type(1) article aside h1 {
        font-size: clamp(3rem, 15vw, 4.5rem);
        margin-bottom: 20px;
    }

    #about-page>section:nth-of-type(1) article aside>header {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 20px;
    }

    #about-page>section:nth-of-type(1) article aside hgroup {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }

    #about-page>section:nth-of-type(2) menu {
        grid-template-columns: repeat(2, 1fr);
    }

    main>section:nth-of-type(5)>article,
    #about-page>section:nth-of-type(4) article {
        grid-template-columns: 1fr;
    }

    main>section:nth-of-type(5)>article::before,
    #about-page>section:nth-of-type(4) article::before {
        display: none;
    }
}

/* ── Projects Page (#projects-page) ── */
#projects-page section:nth-of-type(1) {
    padding-top: 40px;
    padding-bottom: 80px;
    min-height: unset;
    display: block;
    text-align: left;
}

#projects-page section:nth-of-type(1)>header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-direction: row;
}

#projects-page section:nth-of-type(1)>header>h2 {
    padding: 6px 16px;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-transform: none;
}

#projects-page section:nth-of-type(1)>header>img {
    width: 28px;
    height: auto;
    margin: 0;
}

#projects-page section:nth-of-type(1)>nav {
    display: flex;
    gap: 15px;
    margin-bottom: 60px;
    background: transparent;
    padding: 0;
    border: none;
    position: static;
    width: auto;
    border-radius: 0;
}

#projects-page section:nth-of-type(1)>nav>a {
    padding: 8px 30px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-primary);
    border: 2px solid #1a1a1a;
    background: transparent;
}

#projects-page section:nth-of-type(1)>nav>a:first-child {
    background: var(--pink);
    border-color: var(--pink);
}

nav#ui-page>a:first-child {
    background: transparent;
    border-color: #1a1a1a;
}

nav#ui-page>a:last-child {
    background: var(--pink);
    border-color: var(--pink);
}

#projects-page section:nth-of-type(1)>article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

#projects-page section:nth-of-type(1)>article>figure:nth-child(9):last-child {
    grid-column: 1 / -1;
}

#projects-page section:nth-of-type(1)>article:has(> figure:nth-child(5):last-child) {
    grid-template-columns: repeat(6, 1fr);
}

#projects-page section:nth-of-type(1)>article:has(> figure:nth-child(5):last-child)>figure:nth-child(1),
#projects-page section:nth-of-type(1)>article:has(> figure:nth-child(5):last-child)>figure:nth-child(2) {
    grid-column: span 3;
}

#projects-page section:nth-of-type(1)>article:has(> figure:nth-child(5):last-child)>figure:nth-child(3),
#projects-page section:nth-of-type(1)>article:has(> figure:nth-child(5):last-child)>figure:nth-child(4),
#projects-page section:nth-of-type(1)>article:has(> figure:nth-child(5):last-child)>figure:nth-child(5) {
    grid-column: span 2;
}

#projects-page section:nth-of-type(1)>article>figure {
    position: relative;
    padding: 15px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

#projects-page section:nth-of-type(1)>article>figure>a {
    display: contents;
}

#projects-page section:nth-of-type(1)>article>figure::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid #1a1a1a;
    pointer-events: none;
}

#projects-page section:nth-of-type(1)>article>figure::after {
    content: '';
    position: absolute;
    top: 5px;
    left: -6px;
    right: 4px;
    bottom: -5px;
    border: 2px solid #1a1a1a;
    transform: rotate(0.8deg);
    pointer-events: none;
}

#projects-page section:nth-of-type(1)>article>figure img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 2;
}

/* ── Contact Page (#contact-page) ── */
#contact-page section:nth-of-type(1) {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 60px 0;
    min-height: unset;
    text-align: left;
    gap: 80px;
}

#contact-page section:nth-of-type(1) article {
    flex: 0.35;
    position: relative;
    padding: 0;
}

#contact-page section:nth-of-type(1) article mark {
    background: var(--pink);
    display: inline-block;
    padding: 4px 12px;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

#contact-page section:nth-of-type(1) article .contact-arrow {
    position: absolute;
    top: 50px;
    left: 170px;
    width: 60px;
    height: auto;
}

#contact-page section:nth-of-type(1) article p {
    margin-top: 50px;
    font-size: 1.15rem;
    color: #1a1a1a;
    line-height: 1.6;
}

#contact-page section:nth-of-type(1) form {
    flex: 0.65;
}

#contact-page section:nth-of-type(1) form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 50px 0;
}

#contact-page section:nth-of-type(1) form label {
    display: flex;
    align-items: flex-end;
}

#contact-page section:nth-of-type(1) form mark {
    font-weight: 600;
    margin-right: 20px;
    padding: 2px 6px;
    white-space: nowrap;
    font-size: 1.1rem;
    border-left: 2px solid #1a1a1a;
}

#contact-page section:nth-of-type(1) form fieldset:nth-of-type(1) mark {
    background: var(--pink);
}

#contact-page section:nth-of-type(1) form fieldset:nth-of-type(2) mark {
    background: #fae488;
}

#contact-page section:nth-of-type(1) form fieldset:nth-of-type(3) mark {
    background: #8bd2fa;
}

#contact-page section:nth-of-type(1) form input {
    flex: 1;
    border: none;
    border-bottom: 2px solid #1a1a1a;
    padding: 6px 0 8px 10px;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    color: #1a1a1a;
}

#contact-page section:nth-of-type(1) form button {
    background: var(--pink);
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    float: right;
    cursor: pointer;
    margin-top: 10px;
    color: #1a1a1a;
}

#contact-page section:nth-of-type(2),
section#contact {
    padding: 40px 0 0 0;
    min-height: unset;
}

#contact-page section:nth-of-type(2)>div,
section#contact>div {
    background: var(--green);
    border-radius: 25px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
}

#contact-page section:nth-of-type(2) article,
section#contact article {
    max-width: 60%;
    position: relative;
    z-index: 2;
}

#contact-page section:nth-of-type(2) article h3,
section#contact article h2 {
    font-family: var(--font-sans);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

#contact-page section:nth-of-type(2) article h3 i,
section#contact article h2 i {
    color: var(--purple);
    font-style: normal;
    font-size: 1.5rem;
}

#contact-page section:nth-of-type(2) article h3 span {
    color: transparent;
    -webkit-text-stroke: 0.5px #1a1a1a;
}

#contact-page section:nth-of-type(2) article address p,
section#contact article p {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 5px;
    font-style: normal;
}

section#contact article p {
    font-weight: normal;
    color: var(--text-primary);
    line-height: 1.5;
}

section#contact article a {
    background: var(--pink);
    color: #1a1a1a;
    padding: 15px 35px;
    border-radius: 35px;
    display: inline-block;
    margin-top: 30px;
    text-decoration: none;
    font-weight: 600;
}

#contact-page section:nth-of-type(2) aside,
section#contact aside {
    position: relative;
    width: 320px;
    height: 240px;
}

#contact-page section:nth-of-type(2) aside div,
section#contact aside div {
    position: absolute;
    width: 1.5px;
    height: 100%;
    background: #9ca3af;
    top: 0;
}

#contact-page section:nth-of-type(2) aside div:nth-of-type(1),
section#contact aside div:nth-of-type(1) {
    left: 25%;
}

#contact-page section:nth-of-type(2) aside div:nth-of-type(2),
section#contact aside div:nth-of-type(2) {
    left: 50%;
}

#contact-page section:nth-of-type(2) aside div:nth-of-type(3),
section#contact aside div:nth-of-type(3) {
    left: 75%;
}

#contact-page section:nth-of-type(2) aside hr,
section#contact aside hr {
    position: absolute;
    width: 100%;
    height: 1.5px;
    background: #9ca3af;
    border: none;
    margin: 0;
    left: 0;
}

#contact-page section:nth-of-type(2) aside hr:nth-of-type(1),
section#contact aside hr:nth-of-type(1) {
    top: 35%;
}

#contact-page section:nth-of-type(2) aside hr:nth-of-type(2),
section#contact aside hr:nth-of-type(2) {
    top: 65%;
}

#contact-page section:nth-of-type(2) aside span,
section#contact aside span {
    position: absolute;
    color: var(--purple);
    font-size: 2rem;
    line-height: 1;
    transform: translate(-50%, -50%);
    /* perfectly center sparkle */
    z-index: 5;
}

#contact-page section:nth-of-type(2) aside span:nth-of-type(1),
section#contact aside span:nth-of-type(1) {
    top: 35%;
    left: 50%;
}

#contact-page section:nth-of-type(2) aside span:nth-of-type(2),
section#contact aside span:nth-of-type(2) {
    top: 65%;
    left: 75%;
}

/* ── responsive ── */


@media (max-width: 768px) {

    main,
    body>header,
    body>footer {
        padding: 0 25px;
    }

    body>header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        min-width: 100%;
        border-radius: 20px;
        padding: 15px;
        margin: 15px auto;
    }

    body>header>nav {
        margin-left: 0;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Home Hero */
    main>section:nth-of-type(1) {
        min-height: auto;
        padding: 60px 0;
    }

    main>section:nth-of-type(1)>header>span {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        display: block;
        margin-bottom: -10px;
    }

    main>section:nth-of-type(1)>header>img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    main>section:nth-of-type(1)>h1 {
        margin-top: 10px;
        transform: none;
        white-space: normal;
        line-height: 1.1;
    }

    /* "What i do?" */
    main>section:nth-of-type(2)>div {
        width: 100%;
    }

    main>section:nth-of-type(2)>div::before,
    main>section:nth-of-type(2)>div::after {
        display: none;
    }

    main>section:nth-of-type(2)>div>ul li {
        padding: 15px 20px;
    }

    /* Projects Grid */
    main>section:nth-of-type(4) menu {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Experience Grid */
    main>section:nth-of-type(5)>article {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    main>section:nth-of-type(5)>article::before,
    main>section:nth-of-type(5)>article::after {
        display: none;
    }

    /* About Page Updates */
    #about-page section:nth-of-type(1) article {
        flex-direction: column;
        gap: 40px;
    }

    #about-page section:nth-of-type(1) article aside {
        padding-right: 0;
    }

    #about-page section:nth-of-type(1) article figure {
        margin: 0 auto;
    }

    #about-page section:nth-of-type(2) menu {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    main>section:nth-of-type(5)>article>section,
    #about-page section:nth-of-type(3) article section,
    #about-page section:nth-of-type(4) article section {
        border-left: none;
        padding-left: 0;
        margin-top: 30px;
    }

    main>section:nth-of-type(5)>article>section mark,
    #about-page section:nth-of-type(3) article section mark,
    #about-page section:nth-of-type(4) article section mark {
        position: static;
        margin-bottom: 10px;
        transform: none;
    }

    #about-page section:nth-of-type(4) article {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #about-page section:nth-of-type(4) article::before,
    #about-page section:nth-of-type(4) article::after {
        display: none;
    }

    /* Contact Page/Form updates */
    #contact-page section:nth-of-type(1) {
        flex-direction: column;
        gap: 30px;
        padding-top: 40px;
    }

    #contact-page section:nth-of-type(1) article,
    #contact-page section:nth-of-type(1) form {
        flex: 1;
        padding: 0;
        width: 100%;
    }

    #contact-page section:nth-of-type(1) article .contact-arrow {
        display: none;
    }

    #contact-page section:nth-of-type(1) form {
        margin-top: 20px;
    }

    #contact-page section:nth-of-type(1) form label {
        flex-direction: column;
        align-items: flex-start;
    }

    #contact-page section:nth-of-type(1) form mark {
        margin-bottom: 5px;
        border-left: none;
        padding: 4px 8px;
        border-radius: 4px;
    }

    #contact-page section:nth-of-type(1) form input {
        width: 100%;
        padding-left: 0;
    }

    /* Global Contact Promo Box adjustments */
    #contact-page section:nth-of-type(2)>div,
    section#contact>div {
        flex-direction: column;
        padding: 30px;
        align-items: flex-start;
    }

    #contact-page section:nth-of-type(2) article,
    section#contact article {
        max-width: 100%;
    }

    #contact-page section:nth-of-type(2) article h3,
    section#contact article h2 {
        font-size: 1.8rem;
    }

    #contact-page section:nth-of-type(2) aside,
    section#contact aside {
        width: 100%;
        height: 180px;
        margin-top: 30px;
        align-self: center;
    }

    /* Footer */
    footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 30px 0;
    }
}