/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        "Open Sans",
        sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0d0d0f;
    color: #f2f2f2;
    line-height: 1.6;
    overflow-x: hidden;
}

main {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    background: #111113;
    height: 76px;
    display: flex;
    justify-content: center;
    align-items: center;

    position: sticky;
    top: 0;
    z-index: 999;

    border-bottom: 1px solid #29292d;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    max-width: 1300px;
    height: 76px;

    margin: 0 auto;
    padding: 0 50px;
}


/* Logo */

#navbar__logo {
    display: flex;
    align-items: center;

    color: #f5f5f5;
    background: none;

    text-decoration: none;
    cursor: pointer;

    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;

    transition: color 0.2s ease;
}

#navbar__logo:hover {
    color: #c1121f;
}

.fa-gem {
    margin-right: 0.5rem;
}


/* Navigation */

.navbar__menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.navbar__links {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 76px;
    padding: 0 1rem;

    color: #d8d8d8;
    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 500;

    transition: color 0.2s ease;
}

.navbar__links:hover {
    color: #c1121f;
}


/* Navbar button */

.navbar__btn {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0 1rem;
    width: 100%;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;

    height: 40px;
    width: 100%;

    padding: 0 20px;

    border: 1px solid #c1121f;
    border-radius: 4px;

    background: #c1121f;
    color: #ffffff;

    text-decoration: none;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    background: #a80f1b;
    border-color: #a80f1b;
    transform: translateY(-1px);
}


/* =========================================================
   MOBILE NAVBAR
========================================================= */

@media screen and (max-width: 960px) {

    .navbar-container {
        height: 76px;
        padding: 0 30px;
    }

    .navbar__menu {
        display: grid;
        grid-template-columns: auto;

        width: 100%;
        height: 50vh;

        position: absolute;
        top: -100vh;

        margin: 0;

        background: #111113;

        opacity: 0;
        z-index: -1;

        border-bottom: 1px solid #29292d;

        transition:
            top 0.35s ease,
            opacity 0.35s ease;
    }

    .navbar__menu.active {
        top: 100%;
        opacity: 1;
        z-index: 99;
        height: 57vh;
    }

    #navbar__logo {
        padding-left: 25px;
    }

    .navbar__item {
        width: 100%;
    }

    .navbar__links {
        display: table;

        width: 100%;
        height: auto;

        padding: 2rem;

        text-align: center;
    }

    .navbar__links:hover {
        background: #18181b;
        color: #c1121f;
    }

    .navbar__btn {
        padding-bottom: 2rem;
    }

    .button {
        width: 80%;
        height: 52px;
        margin: 0 auto;
    }

    #mobile-menu {
        position: absolute;
        top: 20%;
        right: 5%;

        transform: translate(5%, 20%);
    }

    .navbar__toggle .bar {
        display: block;

        width: 25px;
        height: 3px;

        margin: 5px auto;

        background: #f5f5f5;

        cursor: pointer;

        transition: all 0.25s ease-in-out;
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 82vh;

    display: flex;
    justify-content: space-between;
    align-items: center;

    max-width: 1200px;

    margin: 0 auto;

    padding: 70px 50px;

    gap: 70px;
}

.hero__content {
    flex: 1;
}

.hero__content h1 {
    color: #f5f5f5;

    font-size: clamp(2.2rem, 5vw, 3.7rem);
    line-height: 1.1;

    font-weight: 750;

    margin-bottom: 15px;

    letter-spacing: -1px;
}

.hero__content h2 {
    color: #c1121f;

    font-size: clamp(1.1rem, 2vw, 1.35rem);

    font-weight: 600;

    margin-bottom: 22px;
}

.hero__content p {
    max-width: 620px;

    color: #a9a9ad;

    line-height: 1.8;

    font-size: 1.05rem;

    margin-bottom: 30px;
}

.hero__image {
    flex: 0 0 340px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image img {
    width: 320px;
    height: 320px;

    object-fit: cover;

    border-radius: 50%;

    border: 3px solid #c1121f;

    box-shadow: 0 0 0 8px #17171a;

    transition: transform 0.3s ease;
}

.hero__image img:hover {
    transform: scale(1.02);
}


/* Hero mobile */

@media screen and (max-width: 768px) {

    .hero {
        min-height: auto;

        flex-direction: column-reverse;

        text-align: center;

        padding: 70px 20px;

        gap: 40px;
    }

    .hero__image {
        flex-basis: auto;
    }

    .hero__image img {
        width: 240px;
        height: 240px;
    }

    .hero__content p {
        margin: 0 auto 30px;
    }

    .hero__content h1 {
        font-size: 2.2rem;
    }

    .hero__content h2 {
        font-size: 1rem;
    }
}


/* =========================================================
   GENERAL SECTION HEADINGS
========================================================= */

.focus h2,
.skills h2,
.education h2,
.previews h2,
.contact-links h2,
.quick-contact h2 {
    color: #f5f5f5;

    font-size: 2rem;
    font-weight: 700;

    text-align: center;

    margin-bottom: 45px;

    position: relative;
}

.focus h2::after,
.skills h2::after,
.education h2::after,
.previews h2::after,
.contact-links h2::after,
.quick-contact h2::after {
    content: "";

    display: block;

    width: 55px;
    height: 2px;

    background: #c1121f;

    margin: 12px auto 0;
}


/* =========================================================
   FOCUS
========================================================= */

.focus {
    padding: 90px 20px;
}

.focus p {
    max-width: 850px;

    margin: 20px auto;

    padding: 30px;

    background: #151517;

    color: #a9a9ad;

    line-height: 1.8;

    border: 1px solid #29292d;
    border-left: 3px solid #c1121f;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.focus p:hover {
    transform: translateY(-2px);
    border-color: #3a3a3f;
    border-left-color: #c1121f;
}


/* =========================================================
   SKILLS
========================================================= */

.skills {
    padding: 90px 20px;
}

.skills__grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));

    gap: 22px;

    max-width: 1100px;

    margin: 0 auto;
}

.skill__card {
    background: #151517;

    border: 1px solid #29292d;

    border-radius: 6px;

    padding: 32px 25px;

    text-align: center;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.skill__card:hover {
    transform: translateY(-4px);

    border-color: #c1121f;
}

.skill__card h3 {
    color: #c1121f;

    font-size: 1.2rem;

    margin-bottom: 14px;
}

.skill__card p {
    color: #a9a9ad;

    line-height: 1.7;

    font-size: 0.95rem;
}


/* =========================================================
   EDUCATION
========================================================= */

.education {
    padding: 90px 20px;
}

.education__card {
    max-width: 700px;

    margin: 0 auto;

    background: #151517;

    padding: 40px;

    border: 1px solid #29292d;
    border-top: 2px solid #c1121f;

    border-radius: 6px;

    text-align: center;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.education__card:hover {
    transform: translateY(-4px);

    border-color: #3a3a3f;
    border-top-color: #c1121f;
}

.education__card h3 {
    color: #c1121f;

    font-size: 1.4rem;

    margin-bottom: 18px;
}

.education__card p {
    color: #a9a9ad;

    font-size: 1rem;

    line-height: 1.8;

    margin: 7px 0;
}


/* =========================================================
   PROJECT PREVIEWS
========================================================= */

.previews {
    padding: 90px 20px;
}

.previews__grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 22px;

    max-width: 1100px;

    margin: 0 auto;
}

.preview__card {
    background: #151517;

    padding: 32px 25px;

    border: 1px solid #29292d;

    border-radius: 6px;

    text-align: center;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.preview__card:hover {
    transform: translateY(-4px);

    border-color: #c1121f;
}

.preview__card h3 {
    color: #c1121f;

    font-size: 1.2rem;

    margin-bottom: 14px;
}

.preview__card p {
    color: #a9a9ad;

    line-height: 1.7;

    margin-bottom: 22px;
}

.preview__card a {
    color: #f0f0f0;

    text-decoration: none;

    font-weight: 600;

    transition: color 0.2s ease;
}

.preview__card a:hover {
    color: #c1121f;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: #111113;

    padding: 25px 20px;

    text-align: center;

    color: #777;

    border-top: 1px solid #29292d;

    font-size: 0.9rem;
}


/* =========================================================
   PORTFOLIO PAGE
========================================================= */

.portfolio {
    width: 100%;

    padding: 70px 60px 100px;

    text-align: center;

    background: #0d0d0f;
}

.portfolio h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);

    margin-bottom: 70px;

    font-weight: 750;

    letter-spacing: -1px;

    color: #f5f5f5;
}


/* =========================================================
   TIMELINE
========================================================= */

.timeline {
    position: relative;

    max-width: 1000px;

    margin: 0 auto;
}

.timeline::before {
    content: "";

    position: absolute;

    width: 2px;

    background: #c1121f;

    top: 0;
    bottom: 0;

    left: 50%;

    transform: translateX(-50%);
}


/* Timeline items */

.planet-container {
    width: 50%;

    padding: 30px;

    position: relative;
}

.planet-container.left {
    left: 0;

    text-align: right;
}

.planet-container.right {
    left: 50%;

    text-align: left;
}


/* =========================================================
   PLANETS
========================================================= */

.planet {
    width: 100px;
    height: 100px;

    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: 0 auto 20px;

    font-weight: 700;

    color: #ffffff;

    border: 2px solid #f5f5f5;

    cursor: pointer;

    box-shadow: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.planet:hover {
    transform: scale(1.06);

    border-color: #c1121f;

    box-shadow: none;
}


/* Keep existing planet classes compatible */

.planet.green {
    background: #26382d;
    color: #d8f5df;
}

.planet.blue {
    background: #252d40;
    color: #dce5ff;
}

.planet.purple {
    background: #33283d;
    color: #eadcff;
}

.planet.red {
    background: #4a161d;
    color: #ffffff;
}


/* =========================================================
   PROJECT CARDS
========================================================= */

.project-card {
    background: #151517;

    border: 1px solid #29292d;

    border-radius: 6px;

    padding: 28px;

    box-shadow: none;

    text-align: center;

    position: relative;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.project-card::before {
    display: none;
}

.project-card:hover {
    transform: translateY(-4px);

    border-color: #c1121f;
}

.project-info h2 {
    color: #c1121f;

    font-size: 1.35rem;

    letter-spacing: 0.3px;

    margin-bottom: 10px;
}

.project-info p {
    color: #a9a9ad;

    line-height: 1.7;
}


/* Connector lines */

.planet-container.left::after,
.planet-container.right::after {
    content: "";

    position: absolute;

    top: 79px;

    width: 60px;
    height: 2px;

    background: #c1121f;

    box-shadow: none;
}

.planet-container.left::after {
    right: -30px;
}

.planet-container.right::after {
    left: -30px;
}


/* =========================================================
   RESUME PAGE
========================================================= */

.resume-page {
    text-align: center;

    padding: 70px 30px 100px;
}

.resume-page iframe {
    width: 100%;
    max-width: 900px;

    min-height: 1000px;

    border: 1px solid #29292d;

    border-radius: 4px;

    box-shadow: none;
}

.resume-btn {
    display: inline-block;

    margin-top: 25px;

    padding: 12px 28px;

    background: #c1121f;

    color: #ffffff;

    text-decoration: none;

    border: 1px solid #c1121f;

    border-radius: 4px;

    font-weight: 600;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.resume-btn:hover {
    background: #a80f1b;

    transform: translateY(-2px);
}


/* =========================================================
   CONTACT PAGE
========================================================= */

.contact-page {
    max-width: 1200px;

    margin: 0 auto;

    padding: 80px 30px 100px;
}


/* Contact hero */

.contact-hero {
    text-align: center;

    margin-bottom: 70px;
}

.contact-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3rem);

    color: #f5f5f5;

    margin-bottom: 15px;

    letter-spacing: -0.5px;
}

.contact-hero h1::after {
    content: "";

    display: block;

    width: 55px;
    height: 2px;

    background: #c1121f;

    margin: 15px auto 0;
}

.contact-hero p {
    max-width: 700px;

    margin: 25px auto 0;

    color: #a9a9ad;

    line-height: 1.8;

    font-size: 1.05rem;
}


/* =========================================================
   CONTACT LINKS
========================================================= */

.contact-links {
    margin-bottom: 70px;
}

.contact-links h2 {
    margin-bottom: 45px;
}

.contact-links__grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
}

.contact-card {
    background: #151517;

    border: 1px solid #29292d;

    border-radius: 6px;

    padding: 32px 20px;

    text-align: center;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-4px);

    border-color: #c1121f;
}

.contact-card h3 {
    color: #c1121f;

    font-size: 1.2rem;

    margin-bottom: 12px;
}

.contact-card p {
    color: #a9a9ad;

    line-height: 1.6;

    word-break: break-word;
}

.contact-card a {
    color: #a9a9ad;

    text-decoration: none;

    transition: color 0.2s ease;
}

.contact-card a:hover {
    color: #c1121f;
}


/* =========================================================
   CONTACT DETAILS
========================================================= */

.contact-details-section {
    max-width: 1000px;

    margin: 0 auto 80px;

    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    gap: 20px;
}

.contact-detail {
    background: #151517;

    border: 1px solid #29292d;

    border-radius: 6px;

    padding: 25px;

    text-align: center;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.contact-detail:hover {
    transform: translateY(-3px);

    border-color: #c1121f;
}

.contact-detail h3 {
    color: #c1121f;

    font-size: 1.05rem;

    margin-bottom: 10px;
}

.contact-detail p {
    color: #a9a9ad;

    line-height: 1.6;
}


/* =========================================================
   QUICK CONTACT
========================================================= */

.quick-contact {
    max-width: 800px;

    margin: 0 auto;

    background: #151517;

    padding: 45px;

    border: 1px solid #29292d;

    border-top: 2px solid #c1121f;

    border-radius: 6px;

    box-shadow: none;
}

.quick-contact h2 {
    margin-bottom: 12px;
}

.quick-contact > p {
    text-align: center;

    color: #888;

    margin: 20px auto 35px;

    max-width: 600px;
}


/* =========================================================
   CONTACT FORM
========================================================= */

.quick-contact .contact__form {
    display: flex;

    flex-direction: column;

    gap: 22px;
}

.quick-contact .contact__row {
    display: flex;

    gap: 30px;
}

.quick-contact .contact__row .contact__group {
    flex: 1;
}

.quick-contact .contact__group label {
    display: block;

    font-size: 0.8rem;

    font-weight: 650;

    letter-spacing: 0.8px;

    text-transform: uppercase;

    color: #c1121f;

    margin-bottom: 8px;
}

.quick-contact .contact__group input,
.quick-contact .contact__group textarea {
    width: 100%;

    background: #101012;

    color: #f5f5f5;

    border: 1px solid #303035;

    border-radius: 4px;

    padding: 12px;

    font-size: 1rem;

    font-family: inherit;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.quick-contact .contact__group input:focus,
.quick-contact .contact__group textarea:focus {
    outline: none;

    background: #121214;

    border-color: #c1121f;
}

.quick-contact .contact__group textarea {
    resize: vertical;

    min-height: 140px;
}

.quick-contact .contact__group input::placeholder,
.quick-contact .contact__group textarea::placeholder {
    color: #666;
}


/* =========================================================
   SEND BUTTON
========================================================= */

.quick-contact .contact__button {
    display: flex;

    justify-content: center;
    align-items: center;

    width: 200px;

    padding: 13px 30px;

    margin: 12px auto 0;

    background: #c1121f;

    color: #ffffff;

    border: 1px solid #c1121f;

    border-radius: 4px;

    font-size: 1rem;

    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

.quick-contact .contact__button:hover {
    background: #a80f1b;

    border-color: #a80f1b;

    transform: translateY(-2px);

    box-shadow: none;
}

.quick-contact .contact__button:active {
    transform: translateY(0);
}

.quick-contact .contact__button:focus {
    outline: 2px solid rgba(193, 18, 31, 0.4);

    outline-offset: 3px;

    box-shadow: none;
}


/* =========================================================
   GENERAL CONTACT FORM
========================================================= */

.contact {
    max-width: 700px;

    margin: 80px auto;
}

.contact__form {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.contact__form input,
.contact__form textarea {
    width: 100%;

    background: #101012;

    color: #f5f5f5;

    border: 1px solid #303035;

    border-radius: 4px;

    padding: 12px;
}

.contact__form input:focus,
.contact__form textarea:focus {
    outline: none;

    border-color: #c1121f;
}

.contact__group input::placeholder,
.contact__group textarea::placeholder {
    color: #666;
}

.contact__group textarea {
    width: 100%;
}

.contact__row {
    display: flex;

    gap: 30px;
}

.contact__row .contact__group {
    flex: 1;
}

.contact__group label {
    display: block;

    font-size: 0.8rem;

    font-weight: 650;

    letter-spacing: 0.8px;

    text-transform: uppercase;

    color: #c1121f;

    margin-bottom: 8px;
}

.contact h2 {
    font-size: 2rem;

    color: #f5f5f5;

    margin-bottom: 0.75rem;

    text-align: center;
}

.contact h2::after {
    content: "";

    display: block;

    width: 55px;
    height: 2px;

    background: #c1121f;

    margin: 12px auto 0;
}

.contact p {
    text-align: center;

    color: #888;

    margin-bottom: 2rem;
}

.contact__info {
    margin-top: 30px;

    text-align: center;

    color: #a9a9ad;
}

.contact__info p {
    margin: 8px 0;
}

.contact__info a {
    color: #c1121f;

    text-decoration: none;

    transition: color 0.2s ease;
}

.contact__info a:hover {
    color: #e03542;
}


/* =========================================================
   OPPORTUNITY BANNER
========================================================= */

.opportunity-banner {
    width: 100%;

    background: #3a0d13;

    color: #ffffff;

    text-align: center;

    padding: 11px 20px;

    border-top: 1px solid #65141d;
    border-bottom: 1px solid #65141d;

    position: relative;

    z-index: 998;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.opportunity-banner p {
    margin: 0;

    font-size: 0.9rem;

    font-weight: 600;

    letter-spacing: 0.3px;
}

.opportunity-banner span {
    color: #ffffff;

    margin-right: 8px;
}

.opportunity-banner:hover {
    background: #4a1017;

    border-color: #7a1822;
}


/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 900px) {

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

    .contact-details-section {
        grid-template-columns: 1fr;

        max-width: 600px;
    }

    .hero {
        gap: 40px;
    }

    .portfolio {
        padding-left: 30px;
        padding-right: 30px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 768px) {

    main {
        padding: 10px;
    }

    .hero {
        padding: 60px 20px;
    }

    .focus,
    .skills,
    .education,
    .previews {
        padding: 65px 20px;
    }

    .focus h2,
    .skills h2,
    .education h2,
    .previews h2,
    .contact-links h2,
    .quick-contact h2 {
        font-size: 1.7rem;
    }

    .portfolio {
        padding: 55px 20px 80px;
    }

    .portfolio h1 {
        margin-bottom: 50px;
    }

    /* Timeline becomes single column */

    .timeline::before {
        left: 20px;

        transform: none;
    }

    .planet-container,
    .planet-container.left,
    .planet-container.right {
        width: 100%;

        left: 0;

        padding: 30px 0 30px 55px;

        text-align: left;
    }

    .planet {
        margin: 0 0 18px;

        width: 80px;
        height: 80px;
    }

    .planet-container.left::after,
    .planet-container.right::after {
        left: 20px;

        right: auto;

        top: 70px;

        width: 35px;

        transform: translateX(-100%);
    }

    .project-card {
        padding: 25px 20px;
    }

    .contact-page {
        padding: 60px 20px 80px;
    }

    .contact-hero {
        margin-bottom: 55px;
    }

    .contact-hero h1 {
        font-size: 2.2rem;
    }

    .contact-hero p {
        font-size: 1rem;
    }

    .contact-links {
        margin-bottom: 60px;
    }

    .contact-links__grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .contact-card {
        padding: 28px 20px;
    }

    .quick-contact {
        padding: 35px 25px;
    }

    .quick-contact .contact__row {
        flex-direction: column;

        gap: 20px;
    }

    .quick-contact .contact__button {
        width: 100%;

        max-width: 250px;
    }

    .contact__row {
        flex-direction: column;

        gap: 20px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media screen and (max-width: 480px) {

    .navbar-container {
        padding: 0 20px;
    }

    #navbar__logo {
        padding-left: 10px;

        font-size: 1.5rem;
    }

    .hero__image img {
        width: 210px;
        height: 210px;
    }

    .hero__content h1 {
        font-size: 2rem;
    }

    .hero__content p {
        font-size: 0.95rem;
    }

    .skill__card,
    .preview__card {
        padding: 28px 20px;
    }

    .education__card {
        padding: 30px 22px;
    }

    .quick-contact {
        padding: 30px 20px;
    }

    .opportunity-banner {
        padding: 10px 15px;
    }

    .opportunity-banner p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================================
   PROJECT PAGE
========================================================= */

.project-page {
    max-width: 1000px;

    margin: 0 auto;

    padding: 80px 30px 100px;
}

.project-page h1 {
    color: #f5f5f5;

    font-size: clamp(2.4rem, 5vw, 3.4rem);

    line-height: 1.15;

    font-weight: 750;

    letter-spacing: -1px;

    text-align: center;

    margin-bottom: 20px;
}

.project-intro {
    max-width: 750px;

    margin: 0 auto 30px;

    color: #a9a9ad;

    text-align: center;

    font-size: 1.05rem;

    line-height: 1.8;
}


/* =========================================================
   PROJECT TAGS
========================================================= */

.project-tags {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

    margin: 25px 0 60px;
}

.project-tags span {
    padding: 7px 14px;

    background: #151517;

    color: #d8d8d8;

    border: 1px solid #29292d;

    border-radius: 4px;

    font-size: 0.85rem;

    transition:
        border-color 0.2s ease,
        color 0.2s ease;
}

.project-tags span:hover {
    border-color: #c1121f;

    color: #ffffff;
}


/* =========================================================
   PROJECT SECTIONS
========================================================= */

.project-page h2 {
    color: #f5f5f5;

    font-size: 1.7rem;

    font-weight: 700;

    margin-top: 55px;

    margin-bottom: 20px;

    position: relative;
}

.project-page h2::after {
    content: "";

    display: block;

    width: 45px;

    height: 2px;

    background: #c1121f;

    margin-top: 10px;
}

.project-page p {
    color: #a9a9ad;

    line-height: 1.8;

    font-size: 1rem;
}

.project-page ul {
    padding-left: 25px;

    color: #a9a9ad;

    line-height: 1.8;
}

.project-page li {
    margin-bottom: 8px;
}


/* =========================================================
   ARCHITECTURE / PROJECT IMAGE
========================================================= */

.project-page img {
    display: block;

    width: 100%;

    max-width: 900px;

    height: auto;

    margin: 30px auto;

    border: 1px solid #29292d;

    border-radius: 6px;

    background: #151517;
}


/* =========================================================
   PROJECT LINKS
========================================================= */

.project-links {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 15px;

    margin-top: 60px;
}

.project-links a {
    display: inline-block;

    padding: 12px 24px;

    background: #c1121f;

    color: #ffffff;

    border: 1px solid #c1121f;

    border-radius: 4px;

    text-decoration: none;

    font-weight: 600;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.project-links a:hover {
    background: #a80f1b;

    border-color: #a80f1b;

    transform: translateY(-2px);
}


/* =========================================================
   PROJECT PAGE MOBILE
========================================================= */

@media screen and (max-width: 768px) {

    .project-page {
        padding: 60px 20px 80px;
    }

    .project-page h1 {
        font-size: 2.2rem;
    }

    .project-page h2 {
        font-size: 1.5rem;
    }

    .project-links {
        flex-direction: column;
    }

    .project-links a {
        width: 100%;

        text-align: center;
    }
}

.project-link {
    display: block;
    color: inherit;
    text-decoration: none;
}