/* =========================================================
   DREAMSLEEART
   MONOCHROME ARTIST WEBSITE
   ========================================================= */


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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #080808;
    color: #f2f2f2;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
}

::selection {
    background: #ffffff;
    color: #000000;
}


/* =========================
   NAVIGATION
   ========================= */

header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

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

    padding: 25px 5%;

    z-index: 1000;

    mix-blend-mode: difference;
}

.logo {
    font-size: 14px;
    font-weight: 700;

    letter-spacing: 4px;

    white-space: nowrap;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    position: relative;

    color: white;

    text-decoration: none;

    font-size: 11px;

    letter-spacing: 3px;

    transition: opacity 0.3s ease;
}

nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0;
    height: 1px;

    background: white;

    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}


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

.hero {
    min-height: 100vh;

    position: relative;

    display: flex;

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

    text-align: center;

    padding: 120px 5%;

    border-bottom: 1px solid #252525;
}

.hero::before {
    content: "001";

    position: absolute;

    left: 5%;
    bottom: 35px;

    font-size: 11px;

    letter-spacing: 3px;

    color: #666;
}

.hero::after {
    content: "SCROLL ↓";

    position: absolute;

    right: 5%;
    bottom: 35px;

    font-size: 10px;

    letter-spacing: 3px;

    color: #666;
}

.hero-content {
    width: 100%;
    max-width: 1200px;

    animation: heroAppear 1.2s ease forwards;
}

@keyframes heroAppear {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

}

.small-text {
    font-size: 10px;

    letter-spacing: 5px;

    color: #777;

    margin-bottom: 25px;
}

h1 {
    font-size: clamp(35px, 6vw, 75px);

    line-height: 0.9;

    letter-spacing: -4px;

    font-weight: 800;

    margin-bottom: 35px;

    transform: translateX(-40px);
}

.hero p {
    max-width: 500px;

    margin: auto;

    color: #999;

    line-height: 1.8;

    font-size: 14px;
}

.button {
    display: inline-block;

    margin-top: 40px;

    padding: 14px 25px;

    border: 1px solid #555;

    color: white;

    text-decoration: none;

    font-size: 10px;

    letter-spacing: 4px;

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

.button:hover {
    background: white;

    color: black;

    border-color: white;
}


/* =========================
   GENERAL SECTIONS
   ========================= */

.section {
    position: relative;

    padding: 150px 7%;

    border-bottom: 1px solid #252525;
}

.section h2 {
    font-size: clamp(60px, 10vw, 150px);

    line-height: 0.85;

    letter-spacing: -5px;

    font-weight: 800;

    margin-bottom: 80px;
}


/* =========================
   ART SECTION
   ========================= */

#art::before {
    content: "02 / SELECTED WORK";

    display: block;

    margin-bottom: 25px;

    font-size: 10px;

    letter-spacing: 4px;

    color: #666;
}

.gallery {
    display: grid;

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

    gap: 25px;

    align-items: start;
}


/* First artwork */

.art-card:nth-child(1) {
    grid-column: 1 / 8;
}


/* Second artwork */

.art-card:nth-child(2) {
    grid-column: 8 / 13;

    margin-top: 120px;
}


/* Third artwork */

.art-card:nth-child(3) {
    grid-column: 3 / 11;

    margin-top: 80px;
}


.art-card {
    position: relative;

    overflow: hidden;
}

.art-card img {
    width: 100%;

    display: block;

    filter: grayscale(100%);

    transition:
        filter 0.7s ease,
        transform 0.7s ease;
}

.art-card:hover img {
    filter: grayscale(0%);

    transform: scale(1.035);
}

.art-card h3 {
    margin-top: 18px;

    font-size: 11px;

    letter-spacing: 3px;

    font-weight: 400;

    color: #aaa;
}

.art-card::before {
    content: "ARTWORK";

    position: absolute;

    top: 15px;
    left: 15px;

    z-index: 2;

    font-size: 9px;

    letter-spacing: 3px;

    color: white;

    opacity: 0;

    transition: opacity 0.4s ease;
}

.art-card:hover::before {
    opacity: 1;
}


/* =========================
   STORIES
   ========================= */

.stories {
    background: #101010;
}

.stories::before {
    content: "03 / STORY ARCHIVE";

    display: block;

    margin-bottom: 25px;

    font-size: 10px;

    letter-spacing: 4px;

    color: #666;
}

.story-list {
    width: 100%;
}

.story {
    position: relative;

    display: grid;

    grid-template-columns: 80px 1fr 1fr;

    gap: 30px;

    padding: 40px 0;

    border-top: 1px solid #333;

    transition:
        padding-left 0.4s ease,
        background 0.4s ease;
}

.story:last-child {
    border-bottom: 1px solid #333;
}

.story:hover {
    padding-left: 20px;
}

.story span {
    color: #555;

    font-size: 11px;

    letter-spacing: 2px;
}

.story h3 {
    font-size: clamp(20px, 3vw, 38px);

    font-weight: 500;

    letter-spacing: -1px;
}

.story p {
    color: #777;

    font-size: 13px;

    line-height: 1.7;
}


/* =========================
   ABOUT
   ========================= */

.about {
    min-height: 80vh;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.about::before {
    content: "04 / THE ARTIST";

    display: block;

    margin-bottom: 25px;

    font-size: 10px;

    letter-spacing: 4px;

    color: #666;
}

.about h2 {
    max-width: 1000px;
}

.about > p:last-child {
    max-width: 650px;

    font-size: 18px;

    line-height: 1.9;

    color: #888;
}


/* =========================
   SOCIALS
   ========================= */

#socials {
    padding: 150px 7%;

    text-align: center;

    border-bottom: 1px solid #252525;
}

#socials .small-text {
    margin-bottom: 25px;
}

#socials h2 {
    font-size: clamp(45px, 9vw, 120px);

    line-height: 0.9;

    letter-spacing: -5px;

    margin-bottom: 35px;
}

.social-intro {
    max-width: 550px;

    margin: auto;

    color: #777;

    line-height: 1.8;

    font-size: 13px;
}

.social-links {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 55px;
}

.social-links a {
    position: relative;

    padding: 16px 25px;

    border: 1px solid #333;

    color: #aaa;

    text-decoration: none;

    font-size: 10px;

    letter-spacing: 3px;

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

.social-links a:hover {
    color: black;

    background: white;

    border-color: white;
}


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

footer {
    padding: 45px 7%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    color: #555;

    font-size: 10px;

    letter-spacing: 3px;
}

footer p {
    margin: 0;
}

.copyright {
    margin-top: 80px;

    color: #444;

    font-size: 9px;

    letter-spacing: 3px;
}


/* =========================
   SCROLLBAR
   ========================= */

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #080808;
}

::-webkit-scrollbar-thumb {
    background: #333;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}


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

@media (max-width: 800px) {

    header {
        padding: 20px;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 9px;

        letter-spacing: 2px;
    }

    .hero {
        padding: 100px 25px;
    }

    h1 {
        font-size: clamp(55px, 17vw, 100px);

        letter-spacing: -5px;

        transform: none;
    }

    .section {
        padding: 100px 25px;
    }

    .section h2 {
        font-size: 65px;

        letter-spacing: -4px;
    }


    /* Mobile gallery */

    .gallery {
        display: flex;

        flex-direction: column;

        gap: 60px;
    }

    .art-card:nth-child(1),
    .art-card:nth-child(2),
    .art-card:nth-child(3) {
        width: 100%;

        margin-top: 0;
    }


    /* Mobile stories */

    .story {
        display: grid;

        grid-template-columns: 45px 1fr;

        gap: 15px;

        padding: 30px 0;
    }

    .story p {
        grid-column: 2;

        margin-top: 5px;
    }


    /* Mobile socials */

    #socials {
        padding: 100px 25px;
    }

    #socials h2 {
        letter-spacing: -3px;
    }

    .social-links {
        flex-direction: column;

        align-items: stretch;
    }

    .social-links a {
        text-align: center;
    }


    /* Mobile footer */

    footer {
        padding: 35px 25px;

        flex-direction: column;

        gap: 15px;

        text-align: center;
    }

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

.portfolio-hero {
    min-height: 75vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 150px 7%;

    border-bottom: 1px solid #252525;
}

.portfolio-hero h1 {
    font-size: clamp(60px, 12vw, 160px);

    line-height: 0.85;

    margin-bottom: 35px;

    transform: none;
}

.portfolio-hero > p:last-child {
    max-width: 600px;

    color: #888;

    line-height: 1.8;

    font-size: 15px;
}


/* PORTFOLIO SECTIONS */

.portfolio-section {
    padding: 130px 7%;

    border-bottom: 1px solid #252525;
}

.portfolio-section h2 {
    font-size: clamp(50px, 9vw, 120px);

    line-height: 0.85;

    letter-spacing: -5px;

    margin-bottom: 80px;
}

.dark-section {
    background: #101010;
}


/* PORTFOLIO GRID */

.portfolio-grid {
    display: grid;

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

    gap: 80px 30px;
}


/* PORTFOLIO ITEM */

.portfolio-item {
    position: relative;
}

.portfolio-item img {
    width: 100%;

    display: block;

    filter: grayscale(100%);

    transition:
        filter 0.7s ease,
        transform 0.7s ease;
}

.portfolio-item:hover img {
    filter: grayscale(0%);

    transform: scale(1.02);
}


/* INFORMATION UNDER IMAGE */

.portfolio-info {
    display: grid;

    grid-template-columns: 50px 1fr;

    gap: 10px;

    margin-top: 20px;
}

.portfolio-info span {
    color: #555;

    font-size: 10px;

    letter-spacing: 2px;
}

.portfolio-info h3 {
    font-size: 14px;

    letter-spacing: 3px;

    font-weight: 400;
}

.portfolio-info p {
    grid-column: 2;

    color: #666;

    font-size: 11px;

    letter-spacing: 1px;
}


/* PORTFOLIO END */

.portfolio-end {
    min-height: 70vh;

    padding: 150px 7%;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;
}

.portfolio-end h2 {
    font-size: clamp(50px, 9vw, 120px);

    letter-spacing: -5px;

    margin-bottom: 45px;
}


/* MOBILE */

@media (max-width: 700px) {

    .portfolio-hero {
        min-height: 70vh;

        padding: 120px 25px;
    }

    .portfolio-hero h1 {
        font-size: 65px;
    }

    .portfolio-section {
        padding: 100px 25px;
    }

    .portfolio-section h2 {
        font-size: 60px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .portfolio-end {
        padding: 100px 25px;
    }

}
