* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f2f0eb;
    --white: #faf9f6;
    --sage: #7a9080;
    --sage-light: #a8bfb0;
    --sage-dim: rgba(122,144,128,0.12);
    --pink: #d4899a;
    --pink-light: #ecc4cc;
    --pink-dark: #b06878;
    --dark: #2a3028;
    --dark-dim: #6a786a;
    --highlight: #7fb39a;
}

::selection {
    background: var(--highlight);
}

body {
    font-family: 'Libre Baskerville', Arial, Helvetica, sans-serif;
}

.main-header {
    position: relative;
    background: radial-gradient(ellipse at center, rgba(175, 26, 88, 0.08) 0%, transparent 60%),
    var(--bg);
    min-height: 100vh;
    padding: 12vw 6vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-header::before {
    position: absolute;
    content: '';
    inset: 0;
    background: repeating-linear-gradient(115deg, transparent 0px, transparent 140px, rgba(168, 191, 176, 0.4) 140px, rgba(168, 191, 176, 0.4) 142px);
}

.logo,
.hero {
    position: relative;
    z-index: 1;
}

.logo {
    display: block;
    font-size: 1.8rem;
    color: var(--sage);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 600;
    width: fit-content;
}

.logo span {
    color: var(--pink);
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-text h1 {
    color: var(--dark);
    margin-bottom: 0.6rem;
    font-size: clamp(1.7rem, 4vw, 3rem);
    max-width: 700px;
}

.hero-text h1 span {
    color: var(--sage-light);
    font-style: italic;
}

.hero-text p {
    color: var(--dark-dim);
    font-size: clamp(1.3rem, 1vw, 2rem);
    font-weight: 600;
    max-width: 600px;
    line-height: 1.6;
}

.laptop-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.laptop {
    position: relative;
    background: var(--pink-light);
    border-radius: 14px 14px 0 0;
    padding: 0.9vw 0.9vw 0;
}

.laptop img {
    display: block;
    width: 450px;
    position: relative;
    height: auto;
    border-radius: 9px 9px 0 0;
}

.laptop-base {
    height: 16px;
    background: var(--pink-light);
    border-radius: 0 0 10px 10px;
    position: relative;
    width: 115%;
}

.laptop-base::after {
    position: absolute;
    content: '';
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 5px;
    background: var(--pink);
    border-radius: 0 0 4px 4px;
}

.code {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 230px;
    height: 160px;
    border-radius: 8px;
    border: 1px solid var(--sage-light);
    overflow: hidden;
}

.dots {
    background: var(--sage-light);
    width: 100%;
    height: 20%;
    padding: 0.5vw;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50px;
}

.dots .dot:first-of-type {
    background: red;
}

.dots .dot:nth-child(2) {
    background: yellow;
}

.dots .dot:last-of-type {
    background: green;
}

.prompt {
    width: 100%;
    height: 80%;
    background: var(--sage);
    border-radius: 0 0 8px 8px;
    padding: 0.5vw 0.6vw;
    font-size: 0.65rem;
    line-height: 1.4;
    font-weight: 600;
    color: whitesmoke;
    font-family: 'JetBrains Mono', monospace;
}

.cl {
    color: plum;
}

.dact {
    color: deeppink;
}

.ep {
    color: burlywood;
}

.prompt p:nth-child(4),
.prompt p:nth-child(5) {
    margin-left: 1rem;
}

.projects {
    background: var(--white);
    padding: 6vw;
}

.projects h2 {
    font-size: 2.5rem;
    color: var(--dark);
    border-bottom: 2px solid var(--sage-light);
    padding: 0 0 1.5vw 1.6vw;
    margin-bottom: 4rem;
}

.project {
    height: 70vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.project:nth-child(2) {
    flex-direction: row-reverse;
}

.project:nth-child(2) .web-text {
    margin-left: 4rem;
}

.project-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.website {
    position: relative;
    background: var(--dark);
    border-radius: 14px 14px 0 0;
    padding: 0.9vw 0.9vw 0;
}

.website img {
    display: block;
    width: 100%;
    max-width: 400px;
    position: relative;
    height: auto;
    border-radius: 9px 9px 0 0;
}

.showcase-base {
    height: 16px;
    background: var(--dark);
    border-radius: 0 0 10px 10px;
    position: relative;
    width: 115%;
}

.showcase-base::after {
    position: absolute;
    content: '';
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 5px;
    background: var(--dark-dim);
    border-radius: 0 0 4px 4px;
}

.web-text h3 {
    color: var(--sage);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.web-text p {
    max-width: 550px;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.skills,
.web-btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills {
    font-weight: 600;
    font-size: 1.2rem;
}

.skills span:first-of-type {
    color: var(--sage);
    margin-right: 1rem;
}

.skills span:last-of-type {
    color: var(--pink-dark);
}

.project:last-of-type .skills span:nth-child(2) {
    color: var(--pink-dark);
    margin-right: 1rem;
}

.project:last-of-type .skills span:last-of-type {
    color: var(--dark);
}

.web-btn a {
    color: var(--dark);
    background: var(--pink);
    padding: 1.1vw;
    width: 140px;
    text-decoration: none;
    text-align: center;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.web-btn a:hover {
    background: var(--sage);
}

.second-section {
    min-height: 100vh;
    background: radial-gradient(ellipse at center, #c5869b15 0%, transparent 60%),
    var(--bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4vw 6vw;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.sara-des h2 {
    color: var(--pink-dark);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.sara-des p {
    max-width: 600px;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.4rem;
}

.sara-skills {
    margin-top: 1rem;
}

.sara-skills span {
    margin-right: 1rem;
    color: var(--sage);
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid var(--sage);
    padding: 0.5vw 1vw;
    background: var(--white);
}

.about-btn {
    margin-top: 1.5rem;
    display: flex;
    gap: 20px;
    width: 100%;
}

.about-btn a {
    display: block;
    margin-right: 1.5rem;
    background: var(--sage-light);
    border: 3px solid var(--pink-light);
    color: var(--dark-dim);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.5rem;
    text-align: center;
    font-style: italic;
    width: 30%;
    padding: 0.7vw ;
    transition: color 0.3s ease;
}

.about-btn a:hover {
    color: var(--dark);
}

.about-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 3rem;
}

.sd-logo {
    font-size: 12rem;
    font-family: 'Great Vibes', Arial, Helvetica, sans-serif;
}

.sd-logo span:first-of-type {
    color: var(--pink);
}

.sd-logo span:last-of-type {
    color: var(--sage);
    margin-left: -1.2rem;
}

.about-des {
    display: block;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.5rem;
    font-style: italic;
}

.about-des p:first-of-type {
    margin-right: 7rem;
    margin-bottom: 0.8rem;
}

.about-des p:last-of-type {
    margin-left: 12rem;
}

.about-des p:first-of-type span:first-of-type {
    color: var(--sage-light);
}

.about-des p:last-of-type span:last-of-type {
    color: var(--pink-light);
}

footer {
    background: var(--dark);
}

.form-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3vw 6vw 0 6vw;
}

.form-text h2 {
    color: var(--white);
    font-size: clamp(1.1rem, 1.8vw, 2.5rem);
}

.form-text h2 span {
    color: var(--pink);
    font-style: italic;
}

.form-text p {
    color: var(--sage-light);
    font-size: clamp(0.87rem, 1.1vw, 2rem);
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 4rem 0;
    padding: 2vw;
}

form > * {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--sage);
    resize: none;
    padding: 1.5vw 0;
    outline: none;
    width: 55%;
    max-width: 600px;
    font-weight: 500;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-family: 'Libre Baskerville', Arial, Helvetica, sans-serif;
    caret-color: var(--sage);
    scrollbar-width: none;
    color: var(--pink-light);
}

form input::placeholder,
form textarea::placeholder {
    color: var(--sage);
    font-weight: 600;
    font-size: 1.1rem;
}

form button {
    color: var(--pink-light);
    font-size: 1.2rem;
    border-bottom: none;
    cursor: pointer;
    width: fit-content;
    transition: color 0.3s ease;
    padding: 1vw 0 0 0;
}

form button:hover {
    color: var(--sage-light);
}

.rights {
    text-align: center;
    padding: 2.5vw 6vw;
    border-top: 1px solid var(--sage);
    color: var(--sage-light);
    font-weight: 500;
}

.rights span {
    color: var(--pink-light);
    letter-spacing: 0.8px;
}

@media (max-width: 767px) {
    .logo {
        margin-bottom: 2rem;
        margin-top: 2rem;
    }
    .main-header {
        min-height: 0;
        padding: 20vw 6vw;
    }
    .hero {
        flex-direction: column;
    }
    .laptop-showcase {
        width: 280px;
        margin: 6rem;
    }
    .laptop img {
        width: 100%;
        max-width: 280px;
    }
    .laptop-base {
        height: 12px;
    }
    .code {
        width: 200px;
        height: 135px;
        right: -1.6rem;
    }
    .dots {
        padding-left: 2vw;
    }
    .prompt {
        padding: 0.5vw 0.8vw;
        font-size: 0.6rem;
    }
    .prompt p:nth-child(4),
    .prompt p:nth-child(5) {
        margin-left: 0.6rem;
    }
    .projects h2 {
        text-align: center;
        padding: 0 0 8vw 0;
        margin: 6rem 0 9rem 0;
    }
    .project {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        height: auto;
    }
    .project:nth-child(2) {
        flex-direction: column;
    }
    .project:nth-child(2) .web-text {
        margin-left: 0;
    }
    .web-info {
        padding: 0 6vw;
    }
    .web-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 3rem 0 9rem 0;
    }
    .website {
        padding: 2vw 2vw 0;
    }
    .website img {
        width: 100%;
        max-width: 340px;
        height: auto;
    }
    .showcase-base {
        width: 110%;
        height: 12px;
    }
    .web-btn a {
        padding: 3vw;
        transition: background 0.3s ease;
    }
    .web-btn a:active {
        background: var(--sage);
    }
    .second-section {
        flex-direction: column;
        justify-content: center;
        padding: 12vw 6vw;
    }
    .about-text {
        margin-top: 3rem;
        align-items: center;
    }
    .sara-skills {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 1rem;
    }
    .sara-skills span {
        padding: 3vw;
        margin-right: 0;
    }
    .about-btn {
        margin-top: 1rem;
        justify-content: center;
    }
    .about-btn a {
        border-bottom-width: 1px;
        font-size: 20px;
        padding: 2.5vw;
        margin-right: 0;
        width: 45%;
    }
    .about-btn a:active {
        color: var(--dark);
    }
    .about-logo {
        margin-right: 0;
        margin-top: 7rem;
        margin-bottom: 4rem;
    }
    .sd-logo {
        font-size: 8rem;
    }
    .about-des p:first-of-type {
        margin-right: 0;
        margin-bottom: 0.8rem;
    }
    .about-des p:last-of-type {
        margin-left: 5rem;
    }
    .form-text {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20vw 8vw 0 8vw;
    }
    form {
        margin: 6rem 0;
    }
    form > * {
        width: 300px;
        padding: 1.5rem 0;
        border-width: 1px;
        font-size: 1rem;
    }
    form button:active {
        color: var(--sage-light);
    }
    .rights {
        padding: 6vw;
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .main-header {
        min-height: 80vh;
    }
    .hero {
        flex-direction: column;
    }
    .hero-text {
        margin-bottom: 5rem;
    }
    .code {
        right: -0.7rem;
        bottom: -1rem;
    }
    .projects h2 {
        padding: 3vw 0;
        text-align: center;
    }
    .project {
        flex-direction: column;
        justify-content: center;
        height: auto;
    }
    .project:nth-child(2) {
        flex-direction: column;
    }
    .project:nth-child(2) .web-text {
        margin-left: 0;
    }
    .project-showcase {
        margin-bottom: 4rem;
    }
    .web-text {
        margin-bottom: 6rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .web-text p {
        text-align: center;
    }
    .web-btn a {
        padding: 0.8rem;
    }
    .web-btn a:active {
        background: var(--sage);
    }
    .second-section {
        min-height: auto;
        flex-direction: column;
        justify-content: center;
        padding: 6vw;
    }
    .about-text {
        margin-bottom: 5rem;
        text-align: center;
        gap: 20px;
        margin-top: 4rem;
    }
    .about-text p {
        text-align: justify;
    }
    .sara-skills {
        margin-top: 0.8rem;
    }
    .about-btn {
        justify-content: center;
        margin-top: 2rem;
    }
    .about-btn a {
        width: 30%;
    }
    .about-btn a:active {
        color: var(--dark);
    }
    .about-logo {
        margin-top: 2rem;
        margin-bottom: 4rem;
    }
    footer {
        padding: 4vw 0 0 0;
    }
    form {
        margin: 6rem 0;
    }
    form > * {
        border-bottom-width: 1px;
    }
    form button:active {
        color: var(--sage-light);
    }
}