*, *::before, *::after {
    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(--white);
    overflow-x: hidden;
    min-height: 100vh;
}

.title-font {
    font-family: 'AnastasiaScriptC', cursive;
    font-size: 90px;
    font-weight: normal;
    letter-spacing: 1px;
    line-height: 0.95;
}

section {
    padding: 35px 60px;
    margin: 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.works,
.contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding-bottom: 70px;
    background: transparent;
}

.hero-image-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px 0;
    width: 100%;
}

.hero-image {
    width: 580px;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 10px;
    flex-wrap: wrap;
    overflow: visible;
}

.hero-bottom .title-font {
    line-height: 1.1;
    padding-top: 10px;
}

.hero-tagline {
    font-size: 18px;
}

.works h2,
.contacts h2 {
    margin: 0 0 20px 0;
    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);
}

.works h2.visible,
.contacts h2.visible {
    opacity: 1;
    transform: translateY(0);
}

.categories,
.social-links {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    margin: 0;
    gap: 20px;
}

.category-card,
.social-link {
    padding: 25px 40px;
    border-radius: 30px;
    text-align: center;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(50px);
    transition:
        transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.6s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
    font-size: 18px;
    word-wrap: break-word;
    text-decoration: none;
    color: var(--espresso);
}

.category-card:first-child,
.social-link:first-child {
    margin-top: 30px;
}

.category-card.visible,
.social-link.visible {
    opacity: 1;
    transform: translateY(0);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    background: var(--peony);
}

.social-link {
    text-decoration: none;
    color: var(--espresso);
    display: block;
}

.social-link:hover {
    transform: translateY(-4px);
    background: var(--espresso);
    color: var(--white);
}

.contacts-note {
    margin-top: 40px;
    font-size: 14px;
    color: var(--espresso);
    text-align: center;
}

.hero-animate {
    opacity: 0;
    transform: translateY(40px);
    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);
}

.hero-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

#shader-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shader-text {
    transition: color 0.3s ease;
    color: var(--espresso);
}

.shader-text.shader-lit {
    color: var(--white) !important;
}

.contacts h2 {
    color: var(--espresso);
}

@media (max-width: 1000px) {
    section {
        padding: 40px 25px;
    }

    .hero {
        padding: 40px 25px;
        min-height: 50vh;
    }

    .hero-image-wrap {
        margin-top: 28px;
        margin-bottom: 25px;
    }

    .title-font {
        font-size: 75px;
        line-height: 1;
    }

    .works h2,
    .contacts h2 {
        font-size: 70px;
        width: 100%;
        text-align: center;
        padding: 0 10px;
    }

    .hero > .title-font {
        display: flex;
        flex-direction: column;
    }

    .word-designer {
        padding-left: 60px;
    }

    .hero-image {
        width: 100%;
    }

    .hero-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-tagline {
        align-self: flex-start;
        margin-bottom: 40px;
        font-size: 15px;
        max-width: 80%;
        margin-left: 20px;
    }

    .hero-bottom .title-font {
        text-align: right;
        padding-right: 15px;
        line-height: 1.1;
        padding-top: 1px;
    }

    .category-card,
    .social-link {
        padding: 20px 25px;
        border-radius: 24px;
        font-size: 17px;
    }

    .category-card:first-child,
    .social-link:first-child {
        margin-top: 18px;
    }

    a {
        text-decoration: none;
    }

    .contacts-note {
        margin-top: 24px;
        font-size: 15px;
    }
}