/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background-color: #d8e0e2;
    color: #1d1923;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
    orphans: 2;
    widows: 2;
}

/* Noise texture overlays */
.noise-overlay {
    position: absolute;
    pointer-events: none;
    background-image: url('noise-texture.png');
    background-size: 137px 74px;
    background-position: top left;
    background-repeat: repeat;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.noise-1 {
    top: -23px;
    left: -55px;
    width: 436px;
    height: 287px;
    z-index: 1;
    -webkit-mask-image: url('noise-mask-1.svg');
    mask-image: url('noise-mask-1.svg');
    -webkit-mask-size: 556px 508px;
    mask-size: 556px 508px;
    -webkit-mask-position: -205px -175px;
    mask-position: -205px -175px;
}

.noise-2 {
    top: -37px;
    left: 60px;
    width: 571px;
    height: 236px;
    z-index: 2;
    -webkit-mask-image: url('noise-mask-2.svg');
    mask-image: url('noise-mask-2.svg');
    -webkit-mask-size: 480px 472px;
    mask-size: 480px 472px;
    -webkit-mask-position: -5px -197px;
    mask-position: -5px -197px;
}

/* Navigation */
.nav {
    position: relative;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.nav-logo {
    height: 80px;
    width: auto;
    transition: opacity 0.2s;
}

.nav-logo:hover {
    opacity: 0.6;
}

.nav-links-about {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #000;
    text-decoration: none;
    font-size: 18px;
    font-weight: 450;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
    opacity: 0.6;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link-active {
    opacity: 1;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 4rem;
    position: relative;
    z-index: 10;
}

/* Intro Section */
.intro {
    margin-bottom: 10rem;
}

.intro-title {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 300;
    font-style: italic;
    max-width: 1000px;
    color: #1d1923;
    text-wrap: balance;
    orphans: 2;
    widows: 2;
}

/* Work Section */
.work {
    display: grid;
    gap: 8rem;
}

.project {
    display: grid;
    gap: 3rem;
}

.project-header {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
    padding-bottom: 1.5rem;
}

.project-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    font-size: 18px;
    font-weight: 450;
    letter-spacing: 0.5px;
    line-height: 24px;
    color: #6e6876;
    orphans: 2;
    widows: 2;
}

.project-company {
    text-align: left;
}

.project-role {
    text-align: center;
}

.project-description {
    text-align: right;
}

/* Project Images */
.project-images {
    display: grid;
    gap: 2rem;
}

.project-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.project-image-rounded {
    border-radius: 20px;
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-title {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 300;
    font-style: italic;
    color: #1d1923;
    margin-bottom: 3rem;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    color: #1d1923;
    text-wrap: pretty;
}

.about-text p {
    margin-bottom: 1.5rem;
    orphans: 2;
    widows: 2;
}

.about-section-title {
    font-size: 24px;
    font-weight: 500;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #1d1923;
}

.about-link {
    color: #1d1923;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.about-link:hover {
    opacity: 0.6;
}

/* Password Protection */
.password-overlay {
    padding: 4rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.password-container {
    max-width: 500px;
    width: 100%;
    text-align: center;
    padding: 3rem 2.5rem;
    background-color: #fff;
    border-radius: 8px;
}

.password-description {
    font-size: 18px;
    color: #1d1923;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.password-input {
    width: 100%;
    max-width: 342px;
    padding: 14px 16px;
    font-size: 16px;
    font-family: 'IBM Plex Sans', sans-serif;
    background-color: #fff;
    border: 1px solid #a6a6bb;
    border-radius: 8px;
    transition: border-color 0.2s;
    color: #68687d;
}

.password-input::placeholder {
    color: #68687d;
}

.password-input:focus {
    outline: none;
    border-color: #1d1923;
}

.password-submit {
    width: 100%;
    max-width: 342px;
    padding: 10px 20px;
    font-size: 16px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 500;
    background-color: #fff;
    color: #1d1923;
    border: 1px solid #1d1923;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
}

.password-submit:hover {
    background-color: #1d1923;
    color: #fff;
}

.password-error {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 1rem;
    min-height: 20px;
}

/* Footer */
.footer {
    padding: 8rem 2rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.footer-text {
    font-size: 14px;
    color: rgba(125, 125, 125, 0.64);
    line-height: 22.4px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.social-link:hover {
    opacity: 0.6;
}

.social-link svg {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .noise-overlay {
        display: none;
    }

    .nav {
        padding: 1rem;
    }

    .nav-logo {
        height: 60px;
    }

    .nav-links-about {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 16px;
    }

    .container {
        padding: 3rem 1rem 2rem;
    }

    .about-title {
        font-size: 40px;
    }

    .about-text {
        font-size: 16px;
    }

    .about-section-title {
        font-size: 20px;
    }

    .password-container {
        padding: 2rem 1.5rem;
    }

    .password-description {
        font-size: 16px;
    }

    .intro {
        margin-bottom: 6rem;
    }

    .intro-title {
        font-size: 40px;
    }

    .project-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        font-size: 16px;
    }

    .project-company,
    .project-role,
    .project-description {
        text-align: left;
    }

    .work {
        gap: 5rem;
    }

    .project {
        gap: 2rem;
    }

    .project-images {
        gap: 1.5rem;
    }

    .footer {
        padding: 5rem 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .intro-title {
        font-size: 32px;
    }

    .nav-logo {
        height: 50px;
    }

    .nav-links-about {
        gap: 1rem;
    }

    .nav-link {
        font-size: 14px;
    }

    .about-title {
        font-size: 32px;
    }

    .about-text {
        font-size: 16px;
    }

    .about-section-title {
        font-size: 18px;
    }

    .password-container {
        padding: 1.5rem 1rem;
    }

    .password-title {
        font-size: 24px;
    }

    .password-description {
        font-size: 16px;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
    }

    .project-info {
        font-size: 14px;
    }

    .work {
        gap: 4rem;
    }
}