/* Hero section */
img.ascii-cloud {
    position: absolute;
}

img#ascii-cloud-left {
    top: 2px;
    left: -260px;
    width: 760px;
}

section.hero {
    width: 100%;
    display: flex;
    height: 420px;
    margin-top: 255px;
}
.name {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.name img {
    position: relative;
}
.name-wrapper {
    position: relative;
    margin-top: 60px;
}
.name-wrapper::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 40px;
    right: -20px;
    top: -10px;
    background: url("/assets/img/big-heart-deco.svg") no-repeat center;
    background-size: contain;
}
.name-wrapper::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 40px;
    left: 90px;
    bottom: -35px;
    background: url("/assets/img/small-heart-deco.svg") no-repeat center;
    background-size: contain;
}
.roles {
    background-image: url("/assets/img/ascii-cloud2.png");
    background-repeat: no-repeat;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.roles ul {
    font-size: 1.75rem;
    list-style-image: url("/assets/img/bullet-star.svg");
}
.roles ul li {
    height: 40px;
    position: relative;
    margin-bottom: 10px;
    font-family: pixelify-sans;
}
.roles ul li:nth-child(1) {
    left: -10px;
}
.roles ul li:nth-child(2) {
    left: -90px;
}
.roles ul li:nth-child(3) {
    left: 70px;
}
/* Projects section */
.projects-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.7s ease both;
}
.projects-title {
    font-family: pixelify-sans;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* filter chips */
.filter-bar {
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.6rem;
    margin-bottom: 3rem;
}
.filter-chip {
    padding: 0.3rem 1rem;
    border: 1.5px solid var(--accent);
    background: transparent;
    transition: background 0.15s, color 0.15s;
    user-select: none;
    letter-spacing: 0.06em;
}
.filter-chip:hover, .filter-chip.active {
    background: var(--accent);
    color: var(--bg);
    cursor: pointer;
}

/* Projects section */
section.projects{
    padding: 4rem 4rem 6rem;
    /* position: relative; */
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    position: relative;
}

.project-card {
    border: 1.5px solid #323A43;
    background: var(--bg);
    backdrop-filter: blur(4px);
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.3s;
}

.project-card-inner {
    padding: 1.5rem;
    position: relative; z-index: 2;
}

.project-num {
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.project-screen {
    width: 100%;
    height: 200px;
    margin-bottom: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    transition: height 0.3s;
}
.project-screen img {
    width: 100%; 
    height: 100%; 
    object-fit: contain;
    object-position: top;
    transition: transform 0.5s ease;
}
.project-card:hover .project-screen img { 
    transform: rotate(-2deg) scale(1.1);
}
.project-card:hover {
    cursor: pointer;
}
.project-bg{
    background: radial-gradient(ellipse at center, var(--bg) 0%, var(--bg) 60%, rgba(247,249,252,0) 90%, rgba(247,249,252,0) 100%);
}

.project-name {
    /* font-size: clamp(1.1rem, 1.8vw, 1.5rem); */
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-serif);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.project-desc {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--accent);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}
.project-tags {
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.project-tag {
    font-size: 1rem;
    padding: 0.2rem 0.7rem;
    border: 1px solid var(--accent);
    font-family: var(--font-mono);
    color: var(--accent);
    background: var(--bg);
}
/* see more button — hidden by default, shown on hover */
.see-more-btn {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    border: 1.5px solid var(--accent);
    padding: 0.4rem 1rem;
    color: var(--accent);
    background-color: var(--light-yellow);
    box-shadow: 2px 2px var(--accent);
    text-decoration: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s, transform 0.25s, background 0.15s;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
}
.project-card:hover .see-more-btn {
    opacity: 1; transform: translateY(0);
    pointer-events: auto;
}

/* stars decoration — appear on card hover */
.card-stars {
    position: absolute; 
    inset: 0;
    pointer-events: none; 
    z-index: 1;
    opacity: 0; 
    transition: opacity 0.3s;
}
.project-card:hover .card-stars { 
    opacity: 1; 
}
.card-star, .contact-star {
    position: absolute;
    font-size: 1rem;
    color: rgba(50,58,67,0.35);
    animation: starTwinkle 1.5s ease-in-out infinite;
}
@keyframes starTwinkle {
    0%,100% { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(15deg); }
}
.contact-stars {
    position: absolute; 
    inset: 0;
    pointer-events: none; 
    z-index: -1;
    transition: opacity 0.3s;
}

/* projects bunnies background */
.projects-bunnies-bg {
    position: absolute;
    top: 335px;
    left: 23vw;
    right: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.8;
    width: 50vw;
}
.projects-bunnies-bg svg { width: 100%; }

section.contact {
    padding: 4rem 4rem 6rem;
    position: relative;
}
.contact-bubble-text{
    background-image: url('../assets/img/bubble.svg');
    background-repeat: no-repeat;
    min-width: 340px;
    display: flex;
    flex-direction: column;
    height: 280px;
    padding-block: 1rem;
    padding-inline: 1.5rem;
}
.contact-bubble-title {
    margin-block: 0.3rem 1rem;
    font-family: 'pixelify-sans';
    font-size: 2rem;
    /* background: radial-gradient(ellipse at center, var(--bg) 0%, var(--bg) 60%, rgba(247,249,252,0) 90%, rgba(247,249,252,0) 100%); */
}
.email-wrapper{
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-block: 0.5rem;
    /* background: radial-gradient(ellipse at center, var(--bg) 0%, var(--bg) 60%, rgba(247,249,252,0) 90%, rgba(247,249,252,0) 100%); */
}
.email-wrapper img {
    width: 30px;
}
a.contact-email{
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
    text-decoration: none;
    color: var(--text);
}
figure.avatar{
    margin: 0;
    margin-top: 5rem;
}
figure.avatar img {
    max-width: 600px;
}
.contact-wrapper{
    display: flex;
    width: 100%;
    justify-content: right;
    padding-right: 4rem;
}
.email-wrapper:hover a {
  text-decoration: underline;
}
.contact-bunnies-bg {
    position: absolute;
    bottom: 0;
    left: 23vw;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.8;
    width: 50vw;
}
/* .roles ul {
    font-size: 1.75rem;
    list-style-image: url("/assets/img/bullet-star.svg");
}
.roles ul li {
    height: 40px;
    position: relative;
    margin-bottom: 10px;
    font-family: pixelify-sans;
} */