/* ===== RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #edede9;
    --color-bg-alt: #ffffff;
    --color-text-main: #2f4550;
    --color-text-strong: #000000;
    --color-primary: #d5bdaf;
    --color-border: #d6ccc2;

    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;

    --spacing-small: 2rem;
    --spacing-medium: 4rem;
    --spacing-large: 6rem;
    --spacing-xlarge: 8rem;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.8;
    font-weight: 300;
    padding-top: 95px
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: var(--color-bg-alt);
    padding: 2rem 4rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-main);
    text-transform: lowercase;
    position: relative;
    font-weight: 400;
}

/* ===== FOOTER ===== */
footer {
    margin-top: auto;
    text-align: center;
    padding: 1rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-main);
}

footer p {
    margin: 0;
}

/* ===== HOME PAGE - HERO ===== */
.intro-text {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--color-bg);
    color: var(--color-text-strong);
    z-index: 1;
}

.intro-text h1,
.intro-text h2 {
    font-family: var(--font-display);
    font-weight: 300;
    color: var(--color-text-strong);
    margin: 0;
}

.intro-text h1 {
    font-size: 7rem;
    margin: 1rem 0;
    text-transform: uppercase;
}

.intro-text h2 {
    font-size: 1.2rem;
    text-transform: uppercase;
}

.intro-text h2:first-child {
    margin-bottom: 0;
}

.intro-text h2:last-child {
    position: sticky;
}

/* ===== ABOUT PAGE ===== */
.about-container {
    display: flex;
    justify-content: center;
}

.about-content,
.about-skills,
.about-socials {
    padding: 0 4rem;
    margin: 120px 0 6rem;
}

.about-content {
    max-width: 500px;
}

.about-skills,
.about-socials {
    max-width: 900px;
}

.about-content h1,
.about-skills h1,
.about-socials h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-text-strong);
    margin-bottom: 2rem;
}

.about-socials h2 {
    font-size: 2rem;
}

.about-content p {
    color: var(--color-text-main);
    line-height: 2;
    max-width: 700px;
    margin-bottom: 2rem;
    font-weight: 300;
}

.about-images {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(3, 1fr);
}

.about-images img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background-color: transparent;
}

.about-images img:hover {
    border-color: var(--color-primary);
}

.about-socials {
    margin: 3rem auto;
    text-align: center;
}

.about-socials ul {
    display: grid;
    grid-template-columns: auto auto;
    gap: 3rem;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.nav-links a:hover,
.about-socials a {
    transition: color 0.2s ease;
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 300;
}

.nav-links a:hover,
.about-socials a:hover {
    color: var(--color-primary);
}

/* ===== POST AREA ===== */
.post-container {
    max-width: 900px;
    width: 80%;
    margin: 1px auto 6rem;
    padding: 2rem 2rem;
    background: var(--color-bg-alt);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}


.post-container h1 {
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-text-strong);
    margin-bottom: 2rem;
    text-align: left;
}

.post-caption {
    margin-bottom: 2rem;
}

#description {
    width: 100%;
    min-height: 180px;
    padding: 1.2rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--color-text-main);
    background: var(--color-bg);
    resize: vertical;
    margin-bottom: 2rem;
    line-height: 1.8;
}

#description:focus {
    outline: none;
    border-color: var(--color-primary);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-preview {
    margin-top: 1.5rem;
}

#imgpreview {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: cover;
}

.post-button {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

#postButton {
    width: 100%;
    padding: 1.2rem;
    background: var(--color-text-main);
    color: var(--color-bg-alt);
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#postButton:hover {
    background: var(--color-text-strong);
}

/* ===== GALLERY ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 2fr);
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.image-description {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(39, 35, 35, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 80vh;
    object-fit: contain;
}

#modalDescription {
    color: white;
    text-align: center;
    padding: 60px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #bbb;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    :root {
        --spacing-small: 1.5rem;
        --spacing-medium: 2.5rem;
        --spacing-large: 3.5rem;
    }

    nav {
        padding: 1.5rem 2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .intro-text h1 {
        font-size: 3.5rem;
    }

    .intro-text h2 {
        font-size: 1rem;
    }

    .intro-text h2:first-child,
    .intro-text h2:last-child {
        font-size: 0.9rem;
    }

    .about-container {
        flex-direction: column;
    }

    .about-content,
    .about-skills,
    .about-socials {
        padding: 0 2rem;
        margin: 2rem auto;
        max-width: 100%;
    }

    .about-content {
        margin-top: 80px;
    }

    .about-content h1,
    .about-skills h1 {
        font-size: 2rem;
    }

    .about-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .about-socials ul {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .post-container {
        width: 85%;
        padding: 2rem;
        margin-top: 80px;
    }
}