/* =================================
   RESET
================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: #252324;
    color: white;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =================================
   COLOURS
================================= */

:root {
    --background: #252324;
    --purple: #c000b5;
    --purple-light: #e100d2;
    --text: #ffffff;
    --muted: #999596;
    --card: #302d2f;
}


/* =================================
   NAVBAR
================================= */

.navbar {
    height: 62px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 20;
}


.logo {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}


.navbar nav {
    display: flex;
    gap: 30px;
}


.navbar nav a {
    font-size: 1.25rem;
    color: #aaa;
    transition: 0.3s;
}


.navbar nav a:hover {
    color: var(--purple-light);
}


/* =================================
   HERO
================================= */

.hero {
    min-height: 510px;
    padding: 80px 7% 40px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}


.hero-content {
    position: relative;
    z-index: 3;
    animation: heroText 1s ease forwards;
}


.hero-content h1 {
    font-size: clamp(50px, 7vw, 82px);
    line-height: 0.94;
    font-weight: 800;
    letter-spacing: -3px;
}


.hero-content h1 span {
    color: var(--purple-light);
}


.hero-content p {
    margin-top: 15px;
    font-size: 1.45rem;
    font-weight: 500;
    color: #eee;
}


/* =================================
   HERO CHARACTER
================================= */

.hero-character {
    position: absolute;
    right: 9%;
    bottom: 15px;
    width: 330px;
    animation:
        characterEntrance 1.2s ease forwards,
        floating 4s ease-in-out 1.2s infinite;
}


.hero-character img {
    width: 100%;
    height: 470px;
    display: block;
}


/* =================================
   SCROLL BUTTON
================================= */

.scroll-button {

    position: absolute;
    left: 34%;
    bottom: 45px;
    width: 47px;
    height: 47px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #373b45;
    color: #ddd;
    font-size: 27px;
    transition: 0.3s;
    animation: buttonAppear 1s ease 1s both;
}


.scroll-button:hover {
    background: var(--purple);
    transform: translateY(-5px);
}


.scroll-button span {
    animation: arrowBounce 1.5s infinite;
}


/* =================================
   ABOUT
================================= */

.about {
    min-height: 430px;
    padding: 80px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}


.about-content {
    width: 45%;
    position: relative;
    z-index: 3;
}


.about h2 {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 25px;
    font-weight: 800;
}


.about h2 span {
    color: var(--purple-light);
}


.about p {
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.7;
    margin-bottom: 12px;
}


.about-character {
    width: 330px;
    margin-right: 10%;
    animation: floating 5s ease-in-out infinite;
}


.about-character img {
    width: 100%;
    display: block;
}


/* =================================
   WORKS
================================= */

.works {
    position: relative;
    padding: 70px 7% 100px;
    overflow: hidden;
}


.works-heading h2 {
    font-size: 39px;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 22px;
}


.works-heading h2 span {
    color: var(--purple-light);
}


/* =================================
   FILTERS
================================= */

.filters {
    display: flex;
    gap: 9px;
    margin-bottom: 30px;
}


.filter {
    border: none;
    outline: none;
    cursor: pointer;
    padding: 7px 17px;
    border-radius: 20px;
    color: white;
    background: #333034;
    font-family: inherit;
    font-size: 1.26rem;
    transition:
        background 0.3s,
        transform 0.3s;
}


.filter:hover {
    transform: translateY(-2px);
    background: #4a4649;
}


.filter.active {
    background: var(--purple-light);
    box-shadow: 0 0 15px rgba(210,0,190,0.35);
}


/* =================================
   PROJECT GRID
================================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
}


/* =================================
   PROJECT CARD
================================= */

.project-card {
    cursor: pointer;
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;

}


.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}


.project-image {
    height: 170px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #302d2f;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 11px;
    box-shadow:
        0 0 0 rgba(200,0,180,0);
    overflow: hidden;
    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}


.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition:
        transform 0.5s ease;
}


.project-card:hover .project-image {
    transform: translateY(-8px);
    border-color: var(--purple);
    box-shadow:
        0 12px 35px rgba(180,0,170,0.22);
}


.project-card:hover .project-image img {
    transform: scale(1.07);
}


/* =================================
   PROJECT TEXT
================================= */

.project-info {
    text-align: center;
    padding-top: 15px;
}


.project-info h3 {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 3px;
}


.project-info p {
    font-size: 1.45rem;
    color: #ddd;
}

/* =====================================================
   CONTACT PAGE — UI/UX PORTFOLIO CSS CONTINUATION
   ===================================================== */

.contact-section {
    position: relative;
    overflow: hidden;
    padding: 100px 7% 110px;
    min-height: 820px;
}

/* -----------------------------
   CONTACT HEADING
----------------------------- */

.contact-heading {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto 75px;
    text-align: center;
    animation: contactHeadingReveal 1s ease forwards;
}

.small-heading {
    margin-bottom: 15px;
    color: #d000a8;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 3px;
}

.contact-heading h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(45px, 6vw, 70px);
    line-height: .95;
    font-weight: 800;
    letter-spacing: -3px;
}

.contact-heading h1 span {
    color: #d000a8;
}

.heading-text {
    max-width: 470px;
    margin: 23px auto 0;
    color: #929091;
    font-size: 1.25rem;
    line-height: 1.8;
}


/* -----------------------------
   MAIN CONTACT LAYOUT
----------------------------- */

.contact-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 70px;
    max-width: 1100px;
    margin: 0 auto;
}


/* -----------------------------
   CONTACT INFORMATION
----------------------------- */

.contact-info {
    padding-top: 15px;
    animation: contactLeftReveal .9s ease .2s both;
}

.contact-info h2 {
    max-width: 390px;
    margin: 0 0 18px;
    color: #fff;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
}

.contact-info h2 span {
    color: #d000a8;
}

.contact-info > p {
    max-width: 390px;
    margin: 0 0 38px;
    color: #929091;
    font-size: 11px;
    line-height: 1.8;
}


/* -----------------------------
   CONTACT DETAILS
----------------------------- */

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.contact-item {
    display: flex;
    align-items: center;
    width: fit-content;
    gap: 13px;
    text-decoration: none;
    transition: transform .3s ease;
}

.contact-item:hover {
    transform: translateX(7px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: #302d2f;
    color: #d000a8;
    font-size: 1.25rem;
    font-weight: 600;
    transition:
        background .3s ease,
        color .3s ease,
        box-shadow .3s ease;
}

.contact-item:hover .contact-icon {
    background: #d000a8;
    color: #fff;
    box-shadow: 0 0 22px rgba(208,0,168,.25);
}

.contact-item small {
    display: block;
    margin-bottom: 3px;
    color: #686566;
    font-size: .95rem;
    letter-spacing: .3px;
}

.contact-item strong {
    display: block;
    color: #ddd;
    font-size: 1.15rem;
    font-weight: 500;
}


/* -----------------------------
   CONTACT FORM
----------------------------- */

.contact-form-container {
    padding: 31px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 13px;
    background: #2d2a2c;
    box-shadow: 0 20px 50px rgba(0,0,0,.16);
    animation: contactRightReveal .9s ease .2s both;
}

.input-group {
    margin-bottom: 19px;
}

.input-group label {
    display: block;
    margin-bottom: 7px;
    color: #d4d1d2;
    font-size: 1.125rem;
    font-weight: 500;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid rgba(255,255,255,.08);
    outline: none;
    border-radius: 6px;
    background: #242223;
    color: #fff;
    font-family: inherit;
    font-size: 1.125rem;
    transition:
        border-color .3s ease,
        box-shadow .3s ease,
        background .3s ease;
}

.input-group input {
    height: 42px;
}

.input-group textarea {
    min-height: 125px;
    resize: vertical;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: #5e5b5c;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #d000a8;
    background: #282627;
    box-shadow:
        0 0 0 3px rgba(208,0,168,.07);
}


/* -----------------------------
   SEND BUTTON
----------------------------- */

#submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 43px;
    gap: 10px;
    border: none;
    border-radius: 6px;
    background: #d000a8;
    color: #fff;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform .3s ease,
        background .3s ease,
        box-shadow .3s ease;
}

#submit-btn span {
    font-size: 1.125rem;
    transition: transform .3s ease;
}

#submit-btn:hover {
    transform: translateY(-3px);
    background: #e000b7;
    box-shadow:
        0 10px 25px rgba(208,0,168,.22);
}

#submit-btn:hover span {
    transform: translateX(5px);
}

#submit-btn:active {
    transform: translateY(0);
}


/* -----------------------------
   FORM STATUS
----------------------------- */

#form-status {
    min-height: 15px;
    margin-top: 11px;
    text-align: center;
    color: #d000a8;
    font-size: 1.125rem;
}


/* -----------------------------
   DECORATIVE UI/UX CODE
----------------------------- */

.code-decoration {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    color: rgba(208,0,168,.15);
    font-family: monospace;
    font-size: 12px;
    line-height: 2.2;
    white-space: nowrap;
}

.decoration-one {
    top: 190px;
    left: 2%;
    transform: rotate(-17deg);
    animation:
        contactDecorationOne
        6s ease-in-out infinite;
}

.decoration-two {
    right: 2%;
    bottom: 150px;
    transform: rotate(14deg);
    animation:
        contactDecorationTwo
        7s ease-in-out infinite;
}


/* -----------------------------
   CONTACT PAGE ANIMATIONS
----------------------------- */

@keyframes contactHeadingReveal {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@keyframes contactLeftReveal {

    from {
        opacity: 0;
        transform: translateX(-45px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}

@keyframes contactRightReveal {

    from {
        opacity: 0;
        transform: translateX(45px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}

@keyframes contactDecorationOne {

    0%,
    100% {
        margin-top: 0;
        opacity: .15;
    }

    50% {
        margin-top: -15px;
        opacity: .25;
    }

}

@keyframes contactDecorationTwo {

    0%,
    100% {
        margin-top: 0;
        opacity: .15;
    }

    50% {
        margin-top: 15px;
        opacity: .25;
    }

}


/* -----------------------------
   TABLET
----------------------------- */

@media (max-width: 850px) {

    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
        max-width: 650px;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info h2,
    .contact-info > p {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-details {
        align-items: center;
    }
}
/* -----------------------------
   MOBILE
----------------------------- */

@media (max-width: 520px) {

    .contact-section {
        min-height: auto;
        padding: 70px 6% 80px;
    }

    .contact-heading {
        margin-bottom: 52px;
    }

    .small-heading {
        font-size: 1.125rem;
        letter-spacing: 0.125rem;
    }

    .contact-heading h1 {
        font-size: 2.6875rem;
        letter-spacing: -0.0625rem;
    }

    .heading-text {
        font-size: 1.125rem;
    }

    .contact-info h2 {
        font-size: 1.375rem;
    }

    .contact-info > p {
        font-size: 1.125rem;
    }

    .contact-form-container {
        padding: 21px;
        border-radius: 10px;
    }

    .input-group input {
        height: 40px;
    }

    .input-group textarea {
        min-height: 115px;
    }

    .code-decoration {
        font-size: 8px;
    }

    .decoration-one {
        top: 230px;
        left: -30px;
    }

    .decoration-two {
        right: -30px;
        bottom: 170px;
    }

}


/* =================================
   FOOTER
================================= */

.footer {

    min-height: 180px;
    padding: 45px 7%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    border-top: 1px solid rgba(255,255,255,0.03);
}


.footer-links {
    display: flex;
    gap: 30px;
}


.footer-links a {
    color: #bbb;
    font-size: 1.125rem;
    display: flex;
    gap: 5px;
    transition: 0.3s;
}


.footer-links a:hover {
    color: var(--purple-light);
}


.socials {
    display: flex;
    gap: 15px;
}


.socials a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #353840;
    color: #fff;
    font-size: 1.25rem;
    transition: 0.3s;
}


.socials a:hover {
    background: var(--purple);
    color: white;
    transform: translateY(-5px);
}


/* =================================
   ANIMATIONS
================================= */


/* Hero text */

@keyframes heroText {

    from {
        opacity: 0;
        transform: translateX(-70px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Character entrance */

@keyframes characterEntrance {

    from {
        opacity: 0;
        transform: translateX(100px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}


/* Floating character */

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}


/* Arrow */

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }
}


/* Button */

@keyframes buttonAppear {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =================================
   SECTION REVEAL
================================= */

.section-reveal {

    opacity: 0;
    transform: translateY(70px);
    transition:
        opacity 1s ease,
        transform 1s ease;
}


.section-reveal.show {
    opacity: 1;
    transform: translateY(0);
}


/* =================================
   DECORATIVE BACKGROUND
================================= */

.works::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(
            circle,
            rgba(190,0,170,0.18) 1px,
            transparent 1px
        );

    background-size: 35px 35px;
    opacity: 0.18;
    pointer-events: none;
    animation: backgroundMove 20s linear infinite;
}


@keyframes backgroundMove {

    from {
        background-position: 0 0;
    }

    to {
        background-position: 300px 300px;
    }
}


/* =================================
   MOBILE
================================= */

@media (max-width: 800px) {

    .navbar {
        padding: 0 6%;
    }


    .navbar nav {
        gap: 15px;
    }


    .hero {

        min-height: 650px;
        padding: 70px 7%;
        align-items: flex-start;
    }


    .hero-content {
        margin-top: 20px;
    }

    .hero-content h1 {
        font-size: 55px;
    }

    .hero-character {
        width: 280px;
        right: 4%;
        bottom: 70px;
    }


    .scroll-button {
        left: 7%;
        bottom: 30px;
    }

    .about {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 70px;
    }


    .about-content {
        width: 100%;
    }


    .about-character {
        width: 270px;
        align-self: center;
        margin: 40px 0 0;
    }


    .works-heading h2 {
        font-size: 2.25rem;
    }


    .project-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =================================
   SMALL PHONES
================================= */

@media (max-width: 520px) {

    .navbar {
        height: 58px;
    }


    .logo {
        font-size: 1rem;
    }


    .navbar nav a {
        font-size: .85rem;
    }

    .hero {
        min-height: 610px;
    }


    .hero-content h1 {
        font-size: 3rem;
        letter-spacing: -2px;
    }


    .hero-content p {
        font-size: 1.25rem;
    }


    .hero-character {
        width: 245px;
        right: 0;
        bottom: 65px;
    }


    .about {
        padding: 65px 7%;
    }


    .about h2 {
        font-size: 32px;
    }


    .about p {
        font-size: 1.125rem;
    }


    .project-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }


    .project-image {
        height: 190px;
    }


    .filters {
        flex-wrap: wrap;
    }


    .footer-links {
        gap: 15px;
    }

}

/* =========================
   SELECTED WORKS
========================= */

.selected-works {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 80px 7%;
    background: #242223;
    color: #fff;
}


/* =========================
   SECTION HEADING
========================= */

.section-heading {
    margin-bottom: 70px;
    font-size: 20px;
    font-weight: 500;
    color: #777;
}

.section-heading span {
    color: #777;
}

.section-heading {
    color: #fff;
}

.section-heading::first-line {
    color: #777;
}


/* =========================
   PROJECT LAYOUT
========================= */

.work-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
    max-width: 1250px;
    margin: 0 auto 115px;
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}


/* Show project when scrolling */

.work-item.show {
    opacity: 1;
    transform: translateY(0);
}


/* =========================
   AUTOMATIC ALTERNATING
========================= */

/* 1st, 3rd, 5th */

.work-item:nth-of-type(odd) {
    flex-direction: row;
}


/* 2nd, 4th, 6th */

.work-item:nth-of-type(even) {
    flex-direction: row-reverse;
}


/* Keep compatibility with your
   existing .reverse class */

.work-item.reverse {
    flex-direction: row-reverse;
}


/* =========================
   PROJECT IMAGE
========================= */

.work-image {
    position: relative;
    flex: 1;
    min-width: 45%;
    max-width: 570px;
    border-radius: 14px;
    overflow: hidden;
    background: #333;
}

.work-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-image:hover img {
    transform: scale(1.04);
}


/* =========================
   PROJECT INFORMATION
========================= */

.work-info {
    flex: 1;
    max-width: 540px;
}

.work-info h2 {
    margin: 0 0 10px;
    font-size: 1.85rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.work-info h2 span {
    color: #d000a8;
}


/* =========================
   META
========================= */

.meta {
    margin: 4px 0;
    font-size: 1.125rem;
    line-height: 1.4;
    color: #ddd;
}

.meta strong {
    color: #d000a8;
}


/* =========================
   SUBHEADINGS
========================= */

.work-info h3 {
    margin: 20px 0 3px;
    font-size: 1.75rem;
    color: #d000a8;
}


/* =========================
   DESCRIPTION
========================= */

.work-info > p:not(.meta) {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.4;
    color: #eee;
}


/* =========================
   DECORATIVE CODE
========================= */

.selected-works::before {
    content:
        "<html>   </>   CSS   {}   #div   01"
        "\A"
        "display: flex;   margin;   padding;"
        "\A"
        "JavaScript   HTML   CSS";
    white-space: pre;
    position: absolute;
    top: 160px;
    left: 15px;
    font-family: monospace;
    font-size: 1.125rem;
    line-height: 2.4;
    color: rgba(190, 0, 160, 0.22);
    transform: rotate(-15deg);
    pointer-events: none;
}

.selected-works::after {
    content:
        "HTML  CSS  JS"
        "\A"
        "01   <div>   {}"
        "\A"
        "padding: 20px;"
        "\A"
        "display: flex;";

    white-space: pre;
    position: absolute;
    right: 20px;
    bottom: 80px;
    font-family: monospace;
    font-size: 1.125rem;
    line-height: 2.4;
    color: rgba(190, 0, 160, 0.22);
    transform: rotate(-15deg);
    pointer-events: none;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    .selected-works {
        padding: 60px 6%;
    }

    .work-item,
    .work-item.reverse {
        flex-direction: column;
        gap: 35px;
        margin-bottom: 90px;
    }

    .work-image {
        width: 100%;
        min-width: 100%;
    }

    .work-info {
        width: 100%;
        max-width: 100%;
    }

    .work-info h2 {
        font-size: 1.75rem;
    }

    .work-info > p:not(.meta) {
        font-size: 1.25rem;
        line-height: 1.55;
    }
}


/* =========================
   SMALL PHONES
========================= */

@media (max-width: 500px) {

    .selected-works {
        padding: 45px 5%;
    }

    .section-heading {
        margin-bottom: 50px;

        font-size: 1.25rem;
    }

    .work-item {
        gap: 25px;
        margin-bottom: 75px;
    }

    .work-info h2 {
        font-size: 1.35rem;
    }

    .work-info h3 {
        margin-top: 18px;
    }

    .work-info > p:not(.meta) {
        font-size: 1.125rem;
    }

    .selected-works::before,
    .selected-works::after {
        font-size: 1.125rem;
    }
}

/* =========================
   SCROLL REVEAL
========================= */

.work-item {
    opacity: 0;
    transform: translateY(70px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.work-item.show {
    opacity: 1;
    transform: translateY(0);
}


/* =========================
   IMAGE REVEAL
========================= */

.work-image {
    overflow: hidden;
}

.work-image img {
    transform: scale(1.08);
    transition: transform 1s ease;
}

.work-item.show .work-image img {
    transform: scale(1);
}


/* =========================
   HOVER IMAGE
========================= */

.work-image:hover img {
    transform: scale(1.05);
}


/* =========================
   TEXT REVEAL
========================= */

.work-info {
    opacity: 0;
    transform: translateX(40px);
    transition:
        opacity 0.8s ease 0.2s,
        transform 0.8s ease 0.2s;
}

.work-item.reverse .work-info {
    transform: translateX(-40px);
}

.work-item.show .work-info {
    opacity: 1;
    transform: translateX(0);
}


/* =========================
   SECTION HEADING
========================= */

.section-heading {
    opacity: 0;
    transform: translateY(30px);
    animation: headingReveal 1s ease forwards;
}

@keyframes headingReveal {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* =====================================================
   RESPONSIVE FIXES — TARGETED CORRECTIONS
   ===================================================== */


/* =====================================================
   1. HERO IMAGE — MOBILE
   Prevent the character from entering the hero text
   ===================================================== */

@media (max-width: 800px) {

    .hero {
        position: relative;
        min-height: 680px;
        padding: 65px 7% 40px;
        overflow: hidden;
    }

    .hero-content {
        position: relative;
        z-index: 5;
        width: 100%;
    }

    .hero-content h1 {
        position: relative;
        z-index: 6;
    }

    .hero-content p {
        position: relative;
        z-index: 6;
    }

    .hero-character {
        position: absolute;
        width: 245px;
        right: 50%;
        bottom: 45px;
        transform: translateX(50%);
        z-index: 1;
        pointer-events: none;
    }

    .hero-character img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .scroll-button {
        z-index: 7;
    }
}


/* =====================================================
   2. SMALL PHONES — HERO
   ===================================================== */

@media (max-width: 520px) {

    .hero {
        min-height: 650px;
        padding: 60px 7% 35px;
    }

    .hero-content {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 3rem;
        line-height: .94;
        letter-spacing: -2px;
    }

    .hero-content p {
        margin-top: 13px;
        font-size: 1.25rem;
    }

    .hero-character {
        width: 225px;
        right: 50%;
        bottom: 48px;
        transform: translateX(50%);
    }

    .hero-character img {
        width: 100%;
        height: auto;
    }

    .scroll-button {
        left: 7%;
        bottom: 25px;
    }
}


/* =====================================================
   3. PROJECT PAGE — MOBILE LAYOUT
   ===================================================== */

@media (max-width: 900px) {

    .selected-works {
        overflow: hidden;
    }

    .work-item,
    .work-item.reverse {
        display: flex;
        flex-direction: column !important;
        align-items: stretch;
        width: 100%;
        gap: 30px;
        margin-bottom: 85px;
    }

    .work-image {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        flex: none;
    }

    .work-image img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }

    .work-info {
        width: 100%;
        max-width: 100%;
        flex: none;
        opacity: 1;
        transform: none !important;
    }

    .work-info h2 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .work-info h3 {
        margin-top: 20px;
    }

    .work-info > p:not(.meta) {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        overflow: visible;
        opacity: 1;
        visibility: visible;
        font-size: 1.25rem;
        line-height: 1.65;
    }

    .meta {
        font-size: 1.25rem;
    }
}


/* =====================================================
   4. SMALL PHONES — PROJECT DESCRIPTIONS
   ===================================================== */

@media (max-width: 500px) {

    .selected-works {
        padding: 50px 6%;
    }

    .work-item,
    .work-item.reverse {
        gap: 25px;
        margin-bottom: 75px;
    }

    .work-image {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        border-radius: 11px;
    }

    .work-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .work-info {
        width: 100%;
        opacity: 1;
        transform: none !important;
    }

    .work-info h2 {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    .work-info h3 {
        margin-top: 18px;
        margin-bottom: 5px;
        font-size: 2.25rem;
    }

    .work-info > p:not(.meta) {
        display: block;
        width: 100%;
        max-width: none;
        height: auto;
        max-height: none;
        overflow: visible;
        opacity: 1;
        visibility: visible;
        font-size: 1.35rem;
        line-height: 1.65;
        color: #eee;
    }

    .meta {
        font-size: 1.25rem;
        line-height: 1.5;
    }
}

/* =====================================================
   MOBILE HERO — IMAGE BELOW CONTENT
   ===================================================== */

@media (max-width: 800px) {

    .hero {
        min-height: auto;
        padding: 65px 7% 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: hidden;
    }

    /* Text stays at the top */
    .hero-content {
        width: 100%;
        position: relative;
        z-index: 2;
        text-align: left;
    }

    .hero-content h1 {
        font-size: 3rem;
        line-height: .94;
        letter-spacing: -2px;
    }

    .hero-content p {
        margin-top: 13px;
        font-size: 1.25rem;
    }

    /* Image goes BELOW the text */
    .hero-character {
        position: relative;
        width: 250px;
        right: auto;
        bottom: auto;
        transform: none;
        margin-top: 35px;
        z-index: 1;
        pointer-events: none;
    }

    .hero-character img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }

    .scroll-button {
        position: relative;
        left: auto;
        bottom: auto;
        margin-top: 25px;
        align-self: flex-start;
        z-index: 3;
    }
}

/* Smaller phones */
@media (max-width: 520px) {

    .hero {
        padding: 55px 7% 35px;
    }

    .hero-content h1 {
        font-size: 3rem;
        line-height: .95;
        letter-spacing: -1.5px;
    }

    .hero-content p {
        font-size: 1.125rem;
    }

    .hero-character {
        width: 220px;
        margin-top: 30px;
    }

    .scroll-button {
        margin-top: 20px;
    }
}