@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css");

:root {
    --bg: #0f0f10;
    --fg: #e6e6e6;
    --muted: #9a9a9a;
    --accent: #b23a3a; /* vermelho queimado */
    --grain: rgba(255, 255, 255, 0.03);
}

*{
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body{
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", Arial,
    sans-serif;
    color: var(--fg);
    background: radial-gradient(
        800px 600px at 8% 8%,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0) 70%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    radial-gradient(
        circle at 20% 10%,
        rgba(255, 255, 255, 0.03),
        transparent 40%
    ),
    var(--bg);
    letter-spacing: 0.2px;
    overflow-x: hidden;
}

body *{
    position: relative;
}

/*.grain{
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        var(--grain) 3px
    );
    pointer-events: none !important;
    mix-blend-mode: overlay;
    opacity: 0.8;
}*/

header {
    width: 100%;
    background: rgba(15, 15, 16, 0.95);
    backdrop-filter: blur(10px);
    padding: 24px 28px;
    border-bottom: 1px solid #1c1c1d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 99999 !important;
}

.menu-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 24px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    gap: 36px;
    align-items: center;
}

nav a {
    position: relative;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 4px 0;
    transition: color 0.25s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1px;
    background: var(--fg);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

nav a:hover {
    color: var(--fg);
}

nav a:hover::after {
    opacity: 0.6;
    transform: scaleX(1);
}

#hamburguer-menu{
    display: none;
    background: transparent;
    border: none;
}

.closed {
    display: block;
    width: 24px;
    height: 24px;
    color: var(--muted);
}

.open{
    display: none;
}

@media (max-width: 1024px) {
    #hamburguer-menu {
        display: flex;
        align-items: center;
        justify-content: center;
    }
        nav {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        padding: 24px;
        background: rgba(15, 15, 16, 0.95);
        z-index: 99999;

        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;

        transition: 
            transform 0.35s ease-out,
            opacity 0.3s ease-out;
    }

    .nav-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

.btn {
    padding: 14px 18px;
    border: 1px solid #2a2a2b;
    color: var(--fg);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-size: 12px;
}

.btn.primary {
    border-color: var(--accent);
    background: transparent;
}

.btn:hover {
    background: #151516;
    transition: 500ms;
}

/* Main content page */
section {
    padding: 72px 28px;
    border-top: 1px solid #1c1c1d;
}


/*Hero Section*/
.hero{
    padding: 96px 28px 72px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
}

.kicker {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
}

h1 {
    font-size: 56px;
    line-height: 1.05;
    margin: 14px 0 18px;
}

.hero p {
    color: #cfcfcf;
    max-width: 520px;
    font-size: 18px;
}

.cta {
    margin-top: 28px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-art {
    border: 1px dashed #2a2a2b;
    padding: 24px;
    color: var(--muted);
}

.block{
    height: 150px;
    border: 1px solid #2a2a2b;
    margin-bottom: 14px;
    background-color: #121213;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 42px;
    }
}

.container{
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .container {
        width: 100%;
    }
}

/*About section*/
.about {
    padding: 96px 28px;
}

.about-inner{
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    line-height: 1.1;
    margin: 14px 0 16px;
}

.about-text p {
    color: #cfcfcf;
    max-width: 520px;
    font-size: 17px;
}

.about-image {
    height: 320px;
    border: 1px solid #2a2a2b;
    background-color: #121213;
    background-image: url("../assets/about-work.jpg");
    background-size: cover;
    background-position: center;
}

@media (max-width: 1024px) {
    .about-inner{
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 260px;
    }

    .about-text h2 {
        font-size: 30px;
    }
}

/*Open files section*/
.open-files {
    padding: 96px 28px;
}

.open-files-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.open-files-actions{
    margin-top: 28px;
}

.file-thumb{
    background-size: cover;
    background-position: center;
    height: 120px;
    border: 1px solid #2a2a2b;
    background-color: #121213;
}

.open-files-preview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.file-thumb:nth-child(1) {
    background-image: url("../assets/psd-1.jpg");
}

.file-thumb:nth-child(2) {
    background-image: url("../assets/psd-2.jpg");
}

.file-thumb:nth-child(3) {
    background-image: url("../assets/psd-3.jpg");
}

@media (max-width: 1024px) {
    .open-files-inner {
        grid-template-columns: 1fr;
    }

    .open-files-text h2 {
        font-size: 30px;
    }
}

/*Services section*/
#services{
    display: flex;
    flex-direction: row;
    gap: 28px;
    width: 100%;
}

.card {
    width: 100%;
    border: 1px solid #2a2a2b;
    padding: 24px;
    background: #121213;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.card p {
    margin: 0;
    color: #c7c7c7;
}

@media (max-width: 1024px) {
    #services {
        flex-direction: column;
    }

    .open-files-text h2 {
        font-size: 30px;
    }
}

/* Work Section */
.selected-work {
    padding-top: 72px;
}

.selected-header {
    max-width: 520px;
    margin-bottom: 32px;
}

.selected-desc {
    margin: 10px 0 0;
    color: #cfcfcf;
    font-size: 15px;
    line-height: 1.5;
}

.poster {
    height: 100%;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.poster-link {
    display: block;
    width: 100%;
    height: 100%;
}

.poster-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 2fr 1fr 1.2fr 1fr;
    gap: 24px;
    width: 100%;
    aspect-ratio: 16 / 10;
}

.poster.a {
    background-image: url("../assets/work-1.jpg");
}

.poster.b {
    background-image: url("../assets/work-2.jpg");
}

.poster.c {
    background-image: url("../assets/work-3.jpg");
}

.poster.d {
    background-image: url("../assets/work-4.jpg");
}

.poster.e {
    background-image: url("../assets/work-5.jpg");
}

.poster-link:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
}


.poster-link:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}


.poster-link:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}


.poster-link:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 3;
}


.poster-link:nth-child(5) {
    grid-column: 1 / -1;
    grid-row: 4;
}

.poster-link:hover .poster {
    transform: translateY(-10px);
    filter: brightness(0.75);
}

@media (max-width: 1024px) {
    .poster-grid {
        display: flex;
        flex-direction: column;
        aspect-ratio: auto;
    }

    .poster-link{
        grid-column: 1;
    }

    .poster {
        height: 120px;
    }
}
@media (max-width: 426px) {
    .poster {
        height: 80px;
    }
}

/*Contact section*/
.contact-inner{
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.contact-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.contact-text h2 {
    font-size: 36px;
    line-height: 1.1;
    margin: 0 0 14px;
}

.contact-text p {
    color: #cfcfcf;
    max-width: 520px;
    font-size: 17px;
}

.contact-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

@media (max-width: 1024px) {
    .contact-inner {
        grid-template-columns: 1fr;
    }

    .contact-actions {
        justify-content: flex-start;
    }

    .contact-text h2 {
        font-size: 30px;
    }
}

/*Footer*/
footer{
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 48px 28px;
    border-top: 1px solid #1c1c1d;
    color: var(--muted);
    display: grid;
    gap: 24px;
}

.footer-cta {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
}

.footer-cta .instagram{
    display: flex;
    align-items: center;
    padding: 12px 16px;
}

.footer-cta i{
    font-size: 18px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-right: 12px;
    text-align: right;
}

.footer-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.footer-link {
    font-size: 13px;
    color: var(--fg);
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.footer-link:hover {
    opacity: 0.6;
}

.footer-logo {
    color: var(--fg);
    text-decoration: none;
}

.footer-logo:hover {
    text-decoration: underline;
}

@media (max-width: 425px) {
    footer{
        display: grid;
        grid-template-columns: 1fr;
        align-items: center;
    }

    .footer-cta {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr ;
    }

    
    .footer-cta .footer-contact{
        text-align: left;
        grid-row: 1;
    }
    
    .footer-cta .btn{
        grid-column: 1/span 2;
        grid-row: 2;
        text-align: center;
    }
    
    .footer-cta .instagram{
        grid-column: 2;
        grid-row: 1;
        max-width: 52px;
    }
}

