*,
*::before,
*::after {
    box-sizing: border-box;
}
/* ========================================
   ALKOTÁSAIM OLDAL – BEVEZETŐ
======================================== */

.myworks-intro {
    text-align: center;

    width: 90%;
    max-width: 1200px;

    margin: 50px auto;
    padding: 30px 20px;

    background-color: #fffaf3;

    border: 1px solid #d8b36a;
    border-radius: 18px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.myworks-intro h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.myworks-divider {
    margin: 10px 0 20px;
    font-size: 24px;
}

.myworks-intro p {
    font-size: 18px;
    line-height: 1.7;
}
/* ========================================
   ALKOTÁSAIM – FŐ KATEGÓRIÁK
======================================== */

.myworks-categories {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto 60px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.myworks-category-card {
    min-height: 190px;
    padding: 25px 15px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    text-decoration: none;

    background-color: #fffaf3;
    border: 1px solid #d8b36a;
    border-radius: 18px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);

    color: inherit;
}

.myworks-category-card .category-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.myworks-category-card h2 {
    margin: 0 0 10px;
}

.myworks-category-card p {
    margin: 0;
    line-height: 1.5;
}
.category-icon img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    display: block;
}
/* =========================
   REFERENCIA MUNKÁK
========================= */

.myworks-references {
    width: 100%;
    margin-top: 70px;
    padding: 70px 20px 90px;
    background-color: #eadcca;
    box-sizing: border-box;
}

.references-heading {
    max-width: 1000px;
    margin: 0 auto 50px;
    text-align: center;
    color: #5a3b2e;
}

.references-heading h2 {
    margin: 0;
    font-size: 42px;
    font-weight: 700;
}

.references-divider {
    margin: 25px 0;
    font-size: 22px;
}

.references-heading p {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
}
/* =========================
   REFERENCIA KÁRTYÁK
========================= */

.references-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.reference-card {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 18px;
}
.reference-card-inner {
    width: 100%;
    height: 100%;
}
.reference-card-front {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.reference-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

.reference-card-front {
    width: 100%;
    height: 100%;
    background-color: #fdf8f1;
    border: 1px solid #c99746;
    border-radius: 18px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;
    color: #5a3b2e;
}
.reference-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

.reference-card {
    perspective: 1000px;
}

.reference-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
}

.reference-card-front,
.reference-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}
.reference-card:hover .reference-card-inner {
    transform: rotateY(180deg);
}

.reference-card-back {
    transform: rotateY(180deg);

    /* pezsgő-arany, selymes hátlap */
    background:
        radial-gradient(
            circle at 28% 22%,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.25) 22%,
            transparent 42%
        ),
        linear-gradient(
            135deg,
            #fffaf1 0%,
            #f8e9cf 38%,
            #fff7e8 62%,
            #ead1a6 100%
        );
}
    /* innen folytatódik a mostani kódod */
.reference-card-back {
    transform: rotateY(180deg);

    /* pezsgő-arany, selymes hátlap */
    background:
        radial-gradient(
            circle at 28% 22%,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.25) 22%,
            transparent 42%
        ),
        linear-gradient(
            135deg,
            #fffaf1 0%,
            #f8e9cf 38%,
            #fff7e8 62%,
            #ead1a6 100%
        );

    border: 1px solid #c99746;
    border-radius: 18px;
    box-sizing: border-box;

    box-shadow:
        inset 0 0 14px rgba(255, 255, 255, 0.8),
        inset 0 0 3px rgba(154, 101, 34, 0.25),
        0 5px 12px rgba(91, 59, 24, 0.12);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 29px;
    text-align: center;
    color: #5a3b2e;
}
.reference-card-back h3 {
    margin: 0 0 15px;
    font-size: 21px;
}

.reference-card-back p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}
