* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --espresso: #3E2723;
    --peony: #F4C9D6;
    --white: #FFFFFF;
}

@font-face {
    font-family: 'anastasiascriptC';
    src: url('/fonts/anastasiascriptc.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    color: var(--espresso);
    background: var(--peony);
    overflow-x: hidden;
}

.title-font {
    font-family: 'AnastasiaScriptC', cursive;
    font-size: 90px;
    font-weight: normal;
    letter-spacing: 1px;
    line-height: 0.95;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: 
        opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94),
        transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}

.title-font.visible {
    opacity: 1;
    transform: translateY(0);
}

section {
    padding: 35px 60px 55px;
}

section h2 {
    margin: 0 0 45px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 930px;
    margin: 0 auto;
}

.project-card {
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(50px);
    transition:
        opacity 0.6s ease,
        transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94),
        box-shadow 0.3s ease;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.project-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

.project-description {
    font-size: 16px;
    line-height: 2;
    flex-grow: 1;
}

.project-button {
    margin-top: 15px;
    font-weight: 500;
    align-self: flex-start;
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: var(--espresso);
    background: transparent;
    border: 2px solid var(--espresso);
    border-radius: 30px;
    cursor: pointer;
    transition: 
        box-shadow 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.project-button:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    background: var(--espresso);
    color: var(--white);
}

.project-button:active,
.project-button:focus,
.project-button:focus-visible {
    outline: none;
    background: transparent !important;
    color: var(--espresso) !important;
}

.project-link {
    text-decoration: none;
}

@media (max-width: 768px) {
    .title-font {
        font-size: 70px;
    }

    .project-title {
        font-size: 17px;
    }

    .project-description {
        font-size: 15px;
    }

    .project-button {
        font-size: 15px;
    }
    
    .project-button:hover {
        background: transparent;
        color: var(--espresso);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    section {
        padding: 40px 25px 50px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 100%;
    }
}