@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=Jersey+10&family=VT323&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #EEDCEF;
    color: #3F1C26;
    font-family: 'DotGothic16', monospace;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

::selection {
    background: #59438D;
    color: #EEDCEF;
}

.navbar {
    width: 100%;
    padding: 22px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

.home-link {
    position: relative;
    font-family: 'VT323', monospace;
    font-size: 1.35rem;
    color: #EEDCEF;
    padding: 5px 12px;
    background: #3F1C26;
    border: 3px solid #723D51;
    border-top-color: #59438D;
    border-left-color: #723D51;
    box-shadow:
        4px 4px 0 #24132C,
        inset 2px 2px 0 rgba(255,255,255,0.16),
        inset -2px -2px 0 rgba(0,0,0,0.3);
    text-shadow: 1px 1px 0 #24132C;
    border-radius: 10px;
    transition:
        transform 0.12s steps(2),
        background 0.12s steps(2),
        border-color 0.12s steps(2),
        box-shadow 0.12s steps(2);
}

.home-link::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: rgba(255,255,255,0.2);
    pointer-events: none;
}

.home-link::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 5px;
    right: 5px;
    height: 2px;
    background: rgba(20,15,35,0.4);
    pointer-events: none;
}

.home-link span {
    color: #EEDCEF;
    margin-right: 5px;
    text-shadow: 0 0 7px rgba(89,67,141,0.65);
}

.home-link:hover {
    color: #EEDCEF;
    background: #59438D;
    border-top-color: #EEDCEF;
    border-left-color: #EEDCEF;
    border-right-color: #24132C;
    border-bottom-color: #24132C;
    transform: translate(-2px, -2px);
    box-shadow:
        6px 6px 0 #24132C,
        0 0 16px rgba(89,67,141,0.3),
        inset 2px 2px 0 rgba(255,255,255,0.2),
        inset -2px -2px 0 rgba(0,0,0,0.22);
}

.home-link:hover span {
    color: #EEDCEF;
}

.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-links a {
    position: relative;
    display: inline-block;
    min-width: 92px;
    padding: 9px 15px 8px;
    color: #EEDCEF;
    background: #3F1C26;
    border: 3px solid #723D51;
    border-top-color: #59438D;
    border-left-color: #723D51;
    font-family: 'VT323', monospace;
    font-size: 1.15rem;
    line-height: 1.1;
    text-align: center;
    letter-spacing: 0.02em;
    box-shadow:
        4px 4px 0 #24132C,
        inset 2px 2px 0 rgba(255,255,255,0.18),
        inset -2px -2px 0 rgba(0,0,0,0.28);
    border-radius: 10px;
    transition:
        transform 0.12s steps(2),
        background 0.12s steps(2),
        border-color 0.12s steps(2),
        box-shadow 0.12s steps(2);
}

.nav-links a::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: rgba(255,255,255,0.16);
    pointer-events: none;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 5px;
    right: 5px;
    height: 2px;
    background: rgba(20,15,35,0.35);
    pointer-events: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: #EEDCEF;
    background: #59438D;
    border-top-color: #EEDCEF;
    border-left-color: #EEDCEF;
    border-right-color: #24132C;
    border-bottom-color: #24132C;
    transform: translate(-2px, -2px);
    box-shadow:
        6px 6px 0 #24132C,
        0 0 14px rgba(89,67,141,0.28),
        inset 2px 2px 0 rgba(255,255,255,0.22),
        inset -2px -2px 0 rgba(0,0,0,0.22);
}

.nav-links a:active {
    transform: translate(2px, 2px);
    background: #3F1C26;
    border-top-color: #24132C;
    border-left-color: #24132C;
    border-right-color: #723D51;
    border-bottom-color: #723D51;
    box-shadow:
        1px 1px 0 #24132C,
        inset 2px 2px 0 rgba(0,0,0,0.22),
        inset -2px -2px 0 rgba(255,255,255,0.12);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #3F1C26;
    font-size: 1.7rem;
    cursor: pointer;
}

.gallery-hero {
    min-height: 600px;
    padding: 108px 8% 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    overflow: hidden;
    background: #EEDCEF;
}

.hero-content {
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: 'Jersey 10', monospace;
    font-size: clamp(2.1rem, 5vw, 4.4rem);
    line-height: 1.3;
    letter-spacing: 0.03em;
    color: #3F1C26;
    text-shadow: 4px 4px 0 rgba(175,125,135,0.5);
}

.hero-content h1 span {
    color: #59438D;
}

.hero-description {
    max-width: 600px;
    margin-top: 30px;
    color: rgba(63,28,38,0.75);
    font-family: 'DotGothic16', monospace;
    font-size: 1.0rem;
    line-height: 1.9;
    font-weight: bold;
    letter-spacing: 0.04em;
}


.hero-visual-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(160deg, #2C1533 0%, #1A0E20 100%);
    border: 3px solid #723D51;
    border-top-color: #59438D;
    border-left-color: #59438D;
    border-right-color: #24132C;
    border-bottom-color: #24132C;
    box-shadow:
        5px 5px 0 #24132C,
        inset 0 0 0 2px rgba(238,220,239,0.06);
    overflow: hidden;
}

.hero-visual-frame::before,
.hero-visual-frame::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: rgba(238,220,239,0.8);
    border-style: solid;
    pointer-events: none;
}

.hero-visual-frame::before {
    top: 7px;
    left: 7px;
    border-width: 3px 0 0 3px;
}

.hero-visual-frame::after {
    bottom: 7px;
    right: 7px;
    border-width: 0 3px 3px 0;
}

.hero-visual-starfield {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 18% 28%, rgba(238,220,239,0.85), transparent),
        radial-gradient(2px 2px at 68% 62%, rgba(238,220,239,0.55), transparent),
        radial-gradient(1.5px 1.5px at 40% 78%, rgba(238,220,239,0.5), transparent),
        radial-gradient(1.5px 1.5px at 85% 22%, rgba(238,220,239,0.7), transparent),
        radial-gradient(2px 2px at 55% 40%, rgba(238,220,239,0.4), transparent),
        radial-gradient(1px 1px at 30% 55%, rgba(238,220,239,0.6), transparent),
        radial-gradient(1px 1px at 78% 82%, rgba(238,220,239,0.45), transparent);
}

.hero-visual-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'VT323', monospace;
    font-size: 2.3rem;
    color: #EEDCEF;
    text-shadow: 0 0 12px rgba(89,67,141,0.7);
}

.hero-visual--side .hero-visual-icon {
    font-size: 3.1rem;
}

.hero-visual-caption {
    margin-top: 12px;
}

.caption-label {
    display: block;
    color: #AF7D87;
    font-family: 'DotGothic16', monospace;
    font-size: 0.7rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.hero-visual-caption p {
    color: rgba(63,28,38,0.7);
    font-family: 'DotGothic16', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.hero-visual--inline {
    max-width: 220px;
    margin-top: 34px;
}

.hero-visual--side {
    width: 380px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}


.section-divider {
    height: 60px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.divider-rule {
    flex: 1;
    max-width: 340px;
    height: 1px;
    background: rgba(89,67,141,0.15);
}

.divider-star {
    color: rgba(89,67,141,0.35);
    font-size: 0.9rem;
    line-height: 1;
}

.gallery-section {
    padding: 100px 8%;
    position: relative;
    background: #EEDCEF;
}

.section-heading {
    margin-bottom: 45px;
    position: relative;
    z-index: 2;
}

.section-heading h2 {
    font-family: 'Jersey 10', monospace;
    font-size: clamp(1.5rem, 3.6vw, 2.6rem);
    line-height: 1.6;
    color: #3F1C26;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 45px;
    position: relative;
    z-index: 2;
}

.filter-button {
    padding: 9px 15px;
    border: 1px solid rgba(89,67,141,0.4);
    background: rgba(89,67,141,0.06);
    color: rgba(63,28,38,0.7);
    font-family: 'DotGothic16', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.filter-button:hover {
    color: #24132C;
    border-color: #59438D;
    background: rgba(89,67,141,0.14);
    transform: translateY(-2px);
}

.filter-button.active {
    color: #EEDCEF;
    background: #59438D;
    border-color: #59438D;
    box-shadow: 4px 4px 0 #3F1C26;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 46px 34px;
    position: relative;
    z-index: 2;
}

.gallery-item {
    position: relative;
    display: block;
    background: #3F1C26;
    padding: 14px 14px 38px;
    border: 4px solid #723D51;
    border-top-color: #59438D;
    border-left-color: #59438D;
    border-right-color: #24132C;
    border-bottom-color: #24132C;
    box-shadow:
        6px 6px 0 #24132C,
        inset 2px 2px 0 rgba(255,255,255,0.14),
        inset -2px -2px 0 rgba(0,0,0,0.35);
    overflow: visible;
    cursor: pointer;
    transition:
        transform 0.15s steps(3),
        box-shadow 0.15s steps(3),
        border-color 0.15s steps(3);
}


.gallery-item:nth-child(1) { transform: rotate(-3deg); }
.gallery-item:nth-child(2) { transform: rotate(2.2deg); }
.gallery-item:nth-child(3) { transform: rotate(-1.4deg); }
.gallery-item:nth-child(4) { transform: rotate(3.4deg); }
.gallery-item:nth-child(5) { transform: rotate(-2.6deg); }
.gallery-item:nth-child(6) { transform: rotate(1.6deg); }
.gallery-item:nth-child(7) { transform: rotate(-3.8deg); }
.gallery-item:nth-child(8) { transform: rotate(2.8deg); }
.gallery-item:nth-child(9) { transform: rotate(-1deg); }


.gallery-item:hover {
    transform: rotate(0deg) translate(-4px, -10px) scale(1.03);
    border-top-color: #EEDCEF;
    border-left-color: #EEDCEF;
    box-shadow:
        10px 10px 0 #24132C,
        0 0 26px rgba(89,67,141,0.3),
        inset 2px 2px 0 rgba(255,255,255,0.2),
        inset -2px -2px 0 rgba(0,0,0,0.3);
}

.gallery-item:active {
    transform: rotate(0deg) translate(1px, 1px) scale(0.99);
    box-shadow:
        3px 3px 0 #24132C,
        inset 2px 2px 0 rgba(0,0,0,0.3);
}

.gallery-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: visible;
}

.placeholder-image {
    background: #24132C;
    border: 3px solid #24132C;
    border-top-color: #170a17;
    border-left-color: #170a17;
    border-right-color: #723D51;
    border-bottom-color: #723D51;
    box-shadow: inset 3px 3px 0 rgba(0,0,0,0.5);
}


.placeholder-content {
    position: absolute;
    inset: unset;
    top: -18px;
    left: 50%;
    transform: translateX(-50%) rotate(-4deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #59438D;
    border: 3px solid #723D51;
    border-top-color: #EEDCEF;
    border-left-color: #EEDCEF;
    border-right-color: #24132C;
    border-bottom-color: #24132C;
    box-shadow:
        3px 3px 0 #24132C,
        inset 1px 1px 0 rgba(255,255,255,0.2);
    padding: 5px 10px 4px;
    z-index: 5;
}

.gallery-item:nth-child(even) .placeholder-content {
    transform: translateX(-50%) rotate(5deg);
}

.placeholder-content span {
    color: #EEDCEF;
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    line-height: 1;
    text-shadow: 0 0 10px rgba(36,19,44,0.5);
}

.placeholder-content p {
    margin-top: 4px;
    color: rgba(238,220,239,0.8);
    font-family: 'Jersey 10', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.04em;
}

.gallery-info {
    padding: 16px 4px 0;
    border-top: none;
}

.gallery-category {
    color: #AF7D87;
    font-family: 'DotGothic16', monospace;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.gallery-info h3 {
    margin-top: 8px;
    color: #EEDCEF;
    font-family: 'Jersey 10', monospace;
    font-size: 1.2rem;
    line-height: 1.8;
    letter-spacing: 1.2px;
}

.gallery-info p {
    margin-top: 10px;
    color: rgba(238,220,239,0.75);
    font-family: 'DotGothic16', monospace;
    font-size: 1rem;
    line-height: 1.5;
}

.view-details {
    display: inline-block;
    margin-top: 14px;
    color: #AF7D87;
    font-family: 'DotGothic16', monospace;
    font-size: 1rem;
    transition: 0.2s ease;
}

.gallery-item:hover .view-details {
    color: #EEDCEF;
    transform: translateX(5px);
}

.gallery-count {
    margin-top: 45px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    color: rgba(63,28,38,0.65);
    font-family: 'DotGothic16', monospace;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

.gallery-count span:first-child {
    color: #59438D;
}

.closing-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 8%;
    text-align: center;
}

.closing-small {
    color: #59438D;
    font-family: 'Jersey 10', monospace;
    font-size: 4rem;
    margin-bottom: 25px;
}

.closing-section > p:last-of-type {
    color: rgba(63,28,38,0.75);
    font-family: 'DotGothic16', monospace;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-top: 25px;
}

footer {
    padding: 50px 8%;
    border-top: 1px solid rgba(89,67,141,0.25);
    color: rgba(238,220,239,0.65);
    background: #24132C;
}

.copyright {
    font-family: 'DotGothic16', monospace;
    font-size: 1rem;
    opacity: 0.6;
}

@media (max-width: 1000px) {

    .gallery-hero {
        gap: 40px;
    }

    .hero-visual--side {
        width: 300px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 650px) {

    .navbar {
        padding: 20px 6%;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 102;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 6%;
        right: 6%;
        background: #3F1C26;
        border: 2px solid rgba(89,67,141,0.3);
        padding: 20px;
        flex-direction: column;
        gap: 10px;
        box-shadow: 6px 6px 0 rgba(36,19,44,0.25);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        min-width: 0;
        padding: 12px;
    }

    .gallery-hero {
        min-height: auto;
        padding: 120px 6% 60px;
        flex-direction: column;
        align-items: flex-start;
        gap: 34px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: clamp(1.85rem, 8vw, 3.4rem);
        line-height: 1.35;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .hero-visual--inline {
        max-width: 180px;
        margin-top: 26px;
    }

    .hero-visual--side {
        width: 100%;
        max-width: 260px;
        align-self: center;
    }

    .section-divider {
        height: 44px;
        padding: 0 6%;
        gap: 12px;
    }

    .divider-rule {
        max-width: 120px;
    }

    .gallery-section {
        padding: 70px 6%;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 1.2rem;
    }

    .gallery-filters {
        gap: 7px;
        margin-bottom: 30px;
    }

    .filter-button {
        padding: 7px 11px;
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 40px 20px;
    }

    .gallery-item:nth-child(1) { transform: rotate(-1.6deg); }
    .gallery-item:nth-child(2) { transform: rotate(1.2deg); }
    .gallery-item:nth-child(3) { transform: rotate(-1deg); }
    .gallery-item:nth-child(4) { transform: rotate(1.8deg); }
    .gallery-item:nth-child(5) { transform: rotate(-1.4deg); }
    .gallery-item:nth-child(6) { transform: rotate(1deg); }
    .gallery-item:nth-child(7) { transform: rotate(-1.9deg); }
    .gallery-item:nth-child(8) { transform: rotate(1.5deg); }
    .gallery-item:nth-child(9) { transform: rotate(-0.8deg); }

    .gallery-info {
        padding: 14px 2px 0;
    }

    .gallery-info h3 {
        font-size: 0.9rem;
    }

    .gallery-info p {
        font-size: 0.95rem;
    }

    .gallery-count {
        justify-content: flex-start;
        font-size: 0.9rem;
    }

    .closing-section {
        padding: 90px 6%;
    }

    footer {
        padding: 40px 6%;
    }

}

@media (max-width: 450px) {

    .hero-description {
        font-size: 0.8rem;
    }

    .gallery-info h3 {
        font-size: 0.85rem;
    }

    .gallery-category {
        font-size: 0.6rem;
    }

}
