* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: "DM Sans", sans-serif;
    color: #1E1E1E;
}

body {
    background-color: #FAFAFA;
}

button {
    transition: all ease 350ms;
    cursor: pointer;
    font-family: "Roboto Mono", monospace;
    outline: none;
    font-weight: 400;
}

.highlight {
    font-family: "DM Serif Text", serif;
    font-weight: 400;
    font-style: italic;
}

a {
    font-family: "Roboto Mono", monospace;
}

section {
    padding-inline: 40px;
}

.container {
    margin: 0 auto;
    max-width: 1320px;
}

/* ─── NAVBAR ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding-top: 20px;
    z-index: 999999;
    transform: translateY(-100%);
    opacity: 0;
    animation: slideDown 1s ease forwards;
}

.navbar .logo {
    cursor: pointer;
}

@keyframes slideDown {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #1E1E1E;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.navbar .links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar .links a {
    text-decoration: none;
    font-size: 16px;
    line-height: 20px;
    color: #1E1E1E;
    transition: all ease 250ms;
}

.navbar .links a:hover {
    opacity: 66%;
}

.navbar .links a.active {
    border-bottom: 1px solid #1E1E1E;
    padding-bottom: 2px;
}

.navbar .links button {
    border-radius: 40px;
    background-color: #1E1E1E;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    line-height: 20px;
    border: none;
    padding: 15px 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.navbar .links button::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #FFD600;
    z-index: -1;
    transition: height 0.3s ease;
}

.navbar .links button:hover::before {
    height: 100%;
}

.navbar .links button:hover {
    color: #000;
}

.navbar .links button:hover img {
    filter: invert(100);
}

/* Mobile menu — hidden on desktop */
.mobile-menu {
    display: none;
}

.menu {
    display: flex;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: #fff;
    padding: 150px 20px 0;
    flex-direction: column;
    gap: 20px;
    transition: all ease 500ms;
    transform: translateX(100%);
}

.menu a {
    font-size: 20px;
    line-height: 26px;
    transition: all ease 300ms;
    text-decoration: none;
}

.menu .menu-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(30, 30, 30, .1);
}

.menu button {
    background-color: #1E1E1E;
    color: #fff;
    border: none;
    padding: 16px 26px;
    border-radius: 8px;
    font-size: 18px;
    line-height: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ─── CAPTION ─── */
.caption {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 20px;
    color: rgba(30, 30, 30, .4);
    font-family: "Roboto Mono", monospace;
}

/* ─── PORTFOLIO HERO ─── */
.portfolio-hero {
    padding-top: 180px;
    padding-bottom: 100px;
    background: url(../assets/bg/portfolio_bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.portfolio-hero .caption {
    color: rgba(255, 255, 255, 0.40);
}

.portfolio-hero .container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.portfolio-hero h1 {
    max-width: 700px;
    font-size: 80px;
    line-height: 95px;
    font-weight: 500;
    color: #fff;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.9s ease forwards;
    animation-delay: 0.4s;
}

.portfolio-hero h1 .highlight {
    color: #fff;
}

.portfolio-hero .right-col {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.9s ease forwards;
    animation-delay: 0.7s;
}

.portfolio-hero .right-col p {
    max-width: 380px;
    font-size: 20px;
    line-height: 28px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 30px;
}

.portfolio-hero .right-col .stats {
    display: flex;
    gap: 50px;
}

.portfolio-hero .right-col .stats .stat h3 {
    font-size: 56px;
    line-height: 56px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 6px;
}

.portfolio-hero .right-col .stats .stat p {
    font-size: 16px;
    line-height: 22px;
    color: rgba(255, 255, 255, 0.60);
    margin-bottom: 0;
}

.portfolio-hero .right-col .stats .vd {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ─── FILTER BAR ─── */
.filter-bar {
    padding-top: 60px;
    padding-bottom: 60px;
    border-bottom: 1px dashed rgba(30, 30, 30, .2);
}

.filter-bar .container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-bar .filter-label {
    font-family: "Roboto Mono", monospace;
    font-size: 14px;
    color: rgba(30, 30, 30, .4);
    margin-right: 10px;
}

.filter-bar button {
    padding: 12px 22px;
    border-radius: 30px;
    border: 1px solid rgba(30, 30, 30, .2);
    background: transparent;
    font-size: 14px;
    line-height: 18px;
    color: rgba(30, 30, 30, .6);
    font-family: "Roboto Mono", monospace;
}

.filter-bar button.active,
.filter-bar button:hover {
    background-color: #1E1E1E;
    color: #fff;
    border-color: #1E1E1E;
}

/* ─── PROJECTS GRID ─── */
.projects-section {
    padding-top: 100px;
    padding-bottom: 160px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.project-card.featured {
    grid-column: span 2;
}

.project-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(30, 30, 30, .1);
    background: #fff;
    transition: all ease 400ms;
    cursor: pointer;
}

.project-card:hover {
    border-color: #1E1E1E;
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(30, 30, 30, .08);
}

.project-card .card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1E1E1E;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-card.featured .card-image {
    aspect-ratio: 21 / 8;
}

.project-card .card-image .img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-card .card-image .placeholder-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card .card-image .placeholder-bg span {
    font-family: "DM Serif Text", serif;
    font-style: italic;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.06);
    user-select: none;
}

.project-card.featured .card-image .placeholder-bg span {
    font-size: 140px;
}

.card-img-grano  { background: linear-gradient(135deg, #2C3E50 0%, #3D5A73 100%); }
.card-img-mm     { background: linear-gradient(135deg, #D4A0B0 0%, #8B5A7A 100%); }
.card-img-urban  { background: linear-gradient(135deg, #4A7C59 0%, #2D5F3F 100%); }
.card-img-seo    { background: linear-gradient(135deg, #1E1E1E 0%, #3A3A3A 100%); }
.card-img-email  { background: linear-gradient(135deg, #F3C403 0%, #E5A800 100%); }

.project-card .card-body {
    padding: 40px;
}

.project-card .tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.project-card .tag {
    padding: 8px 16px;
    border: 1px solid rgba(30, 30, 30, .15);
    border-radius: 30px;
    font-family: "Roboto Mono", monospace;
    font-size: 13px;
    line-height: 16px;
    font-weight: 400;
    color: rgba(30, 30, 30, .6);
}

.project-card .card-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.project-card h3 {
    font-size: 42px;
    line-height: 52px;
    font-weight: 500;
}

.project-card h4 {
    font-size: 28px;
    line-height: 36px;
    font-family: "DM Serif Text", serif;
    font-weight: 400;
    font-style: italic;
    color: rgba(30, 30, 30, .5);
    margin-bottom: 20px;
}

.project-card p {
    font-size: 18px;
    line-height: 26px;
    color: rgba(30, 30, 30, .7);
    max-width: 600px;
}

.project-card .arrow-btn {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(30, 30, 30, .2);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all ease 300ms;
    padding: 0;
}

.project-card:hover .arrow-btn {
    background-color: #FFD600;
    border-color: #FFD600;
}

.project-card .arrow-btn svg {
    width: 18px;
    height: 18px;
}

/* ─── CTA ─── */
.cta {
    text-align: center;
    padding-top: 140px;
    padding-bottom: 0;
}

.cta h2 {
    margin: 0 auto 10px;
    font-size: 80px;
    line-height: 100px;
    max-width: 800px;
    font-weight: 400;
}

.cta p {
    max-width: 620px;
    margin: 0 auto 30px;
    font-size: 22px;
    line-height: 29px;
    font-weight: 400;
}

.cta button {
    background-color: #1E1E1E;
    color: #fff;
    border: none;
    padding: 18px 30px;
    border-radius: 30px;
    font-size: 20px;
    line-height: 22px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 100px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta button img {
    height: 18px;
    padding-top: 2px;
}

.cta button::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #FFD600;
    z-index: -1;
    transition: height 0.3s ease;
}

.cta button:hover::before {
    height: 100%;
}

.cta button:hover {
    color: #000;
}

.cta button:hover img {
    filter: invert(100);
}

.cta .banner {
    display: block;
    margin: 0 auto;
}

/* ─── FOOTER ─── */
.footer {
    background-color: #1E1E1E;
    padding-top: 120px;
    padding-bottom: 40px;
}

.footer .main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-bottom: 120px;
    border-bottom: 1px solid rgba(255, 255, 255, .20);
}

.footer .col.double {
    grid-column: span 2;
}

.footer .col .footer-logo {
    display: block;
    margin-bottom: 50px;
}

.footer .col .media {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.footer .col .media .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    border: 1px solid #fff;
    background: rgba(255, 255, 255, .20);
    backdrop-filter: blur(5px);
    cursor: pointer;
    transition: all ease 300ms;
}

.footer .col .media .icon:hover {
    background-color: #F3C403;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    font-size: 20px;
    line-height: 26px;
    transition: all ease 300ms;
    text-decoration: none;
}

.footer-links span {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.50);
}

.footer .col .footer-links a {
    color: rgba(255, 255, 255, .70);
}

.footer .col .footer-links a:hover {
    color: #F3C403;
}

.footer .col.double .footer-links a {
    color: rgba(255, 255, 255, 1);
}

.footer .col.double .footer-links a:hover {
    color: #F3C403;
}

.footer .col h3 {
    margin-bottom: 30px;
    font-size: 24px;
    line-height: 30px;
    font-weight: 500;
    font-family: "Roboto Mono", monospace;
    color: #fff;
}

.copyright {
    padding-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.copyright a {
    font-size: 16px;
    line-height: 22px;
    transition: all ease 300ms;
    text-decoration: none;
    color: rgba(255, 255, 255, .70);
}

.copyright a:hover {
    color: #fff;
}

/* ─── DIVIDER ─── */
.divider {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed rgba(30, 30, 30, .2);
    margin: 5px 0;
}


/* ================================================================
   RESPONSIVE BREAKPOINTS — matching index.css system exactly
   1200px → 980px → 850px → 650px → 400px
   ================================================================ */

/* ── 1200px ── */
@media screen and (max-width: 1200px) {
    .cta .banner {
        width: 100%;
    }

    .portfolio-hero h1 {
        font-size: 66px;
        line-height: 80px;
    }

    .projects-grid {
        gap: 24px;
    }
}

/* ── 980px ── */
@media screen and (max-width: 980px) {

    /* Hero — stack columns */
    .portfolio-hero .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .portfolio-hero h1 {
        font-size: 55px;
        line-height: 68px;
        max-width: 100%;
    }

    .portfolio-hero .right-col p {
        max-width: 100%;
    }

    /* Projects — keep 2-col but reduce card body padding */
    .project-card .card-body {
        padding: 30px;
    }

    .project-card h3 {
        font-size: 32px;
        line-height: 42px;
    }

    .project-card h4 {
        font-size: 22px;
        line-height: 30px;
    }

    /* CTA */
    .cta h2 {
        font-size: 60px;
        line-height: 80px;
        max-width: 100%;
    }

    /* Footer */
    .footer .main {
        grid-template-columns: repeat(1, 1fr);
        gap: 80px;
    }

    .footer .col.double {
        grid-column: span 1;
    }

    .footer .col .footer-logo {
        margin-bottom: 30px;
    }

    .footer .col .media {
        margin-top: 30px;
    }
}

/* ── 850px — hamburger breakpoint ── */
@media screen and (max-width: 850px) {

    /* Hide desktop nav, show hamburger */
    .navbar .links {
        display: none;
    }

    .mobile-menu {
        display: flex;
        width: 50px;
        height: 50px;
        min-width: 50px;
        max-width: 50px;
        overflow: hidden;
        border-radius: 50px;
    }

    .mobile-menu .open {
        width: 50px;
        min-width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #1E1E1E;
        transition: all ease 450ms;
    }

    .mobile-menu .close {
        width: 50px;
        min-width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #F3C403;
        transition: all ease 450ms;
    }

    /* Hero */
    .portfolio-hero {
        padding-top: 140px;
        padding-bottom: 70px;
    }

    .portfolio-hero h1 {
        font-size: 45px;
        line-height: 58px;
    }

    .portfolio-hero .right-col .stats .stat h3 {
        font-size: 42px;
        line-height: 42px;
    }

    /* Filter bar — allow wrapping on smaller screens */
    .filter-bar {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .filter-bar button {
        padding: 10px 18px;
        font-size: 13px;
    }

    /* Projects — single column */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card.featured {
        grid-column: span 1;
    }

    .project-card.featured .card-image {
        aspect-ratio: 16 / 9;
    }

    .projects-section {
        padding-top: 60px;
        padding-bottom: 100px;
    }

    /* CTA */
    .cta {
        padding-top: 100px;
    }

    .cta h2 {
        font-size: 45px;
        line-height: 60px;
    }

    .cta p {
        font-size: 18px;
        line-height: 26px;
        margin: 0 auto 20px;
    }

    .cta button {
        padding: 16px 46px;
        font-size: 18px;
        line-height: 20px;
        margin-bottom: 60px;
    }

    /* Footer */
    .footer {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .footer .col .footer-logo {
        width: 180px;
    }
}

/* ── 650px ── */
@media screen and (max-width: 650px) {

    section {
        padding-inline: 20px;
    }

    .caption {
        margin-bottom: 10px;
        font-size: 14px;
        line-height: 18px;
    }

    /* Hero */
    .portfolio-hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .portfolio-hero h1 {
        font-size: 38px;
        line-height: 50px;
    }

    .portfolio-hero .right-col p {
        font-size: 18px;
        line-height: 26px;
    }

    .portfolio-hero .right-col .stats {
        gap: 30px;
    }

    .portfolio-hero .right-col .stats .stat h3 {
        font-size: 36px;
        line-height: 36px;
    }

    /* Filter */
    .filter-bar .filter-label {
        width: 100%;
        margin-right: 0;
        margin-bottom: 4px;
    }

    .filter-bar button {
        padding: 9px 14px;
        font-size: 12px;
    }

    /* Cards */
    .project-card .card-body {
        padding: 24px 20px;
    }

    .project-card h3 {
        font-size: 26px;
        line-height: 34px;
    }

    .project-card h4 {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 12px;
    }

    .project-card p {
        font-size: 16px;
        line-height: 24px;
    }

    .project-card .tag {
        font-size: 11px;
        padding: 6px 12px;
    }

    .project-card .arrow-btn {
        width: 42px;
        height: 42px;
    }

    /* CTA */
    .cta {
        padding-top: 80px;
    }

    .cta h2 {
        font-size: 36px;
        line-height: 45px;
    }

    .cta button {
        padding: 16px 28px;
        font-size: 18px;
        margin-bottom: 60px;
    }

    /* Footer */
    .footer .main {
        gap: 40px;
    }

    .footer-links a {
        font-size: 18px;
        line-height: 24px;
    }

    .footer .col h3 {
        margin-bottom: 20px;
        font-size: 22px;
        line-height: 28px;
    }

    .copyright {
        flex-direction: column;
        align-items: start;
        gap: 15px;
    }
}

/* ── 400px ── */
@media screen and (max-width: 400px) {

    .portfolio-hero h1 {
        font-size: 32px;
        line-height: 42px;
    }

    .portfolio-hero .right-col .stats .stat h3 {
        font-size: 30px;
        line-height: 30px;
    }

    .portfolio-hero .right-col .stats {
        gap: 20px;
    }

    .project-card .card-body {
        padding: 20px 16px;
    }

    .project-card h3 {
        font-size: 22px;
        line-height: 30px;
    }

    .project-card h4 {
        font-size: 16px;
        line-height: 24px;
    }

    .project-card .arrow-btn {
        width: 36px;
        height: 36px;
    }

    .project-card .arrow-btn svg {
        width: 14px;
        height: 14px;
    }

    .cta h2 {
        font-size: 30px;
        line-height: 40px;
    }

    .cta button {
        padding: 16px 24px;
        font-size: 16px;
        margin-bottom: 60px;
        margin-top: 30px;
    }

    .cta button img {
        height: auto;
    }
}