:root {
    --bg-main: #eeeeee;
    --bg-dark: #142F43;
    --accent: #FF5F7E;
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --font-display: "Courier New", monospace;
    --font-ui: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
    --radius-soft: 12%;
    --radius-round: 999px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-ui);
    background: var(--bg-main);
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.navbar {
    width: 100%;
    background: var(--bg-dark);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.navbar li {
    margin: 0 20px;
}

.navbar li span {
    text-decoration: none;
    color: var(--accent);
    font-family: var(--font-ui);
    font-weight: bold;
}

.navbar a {
    text-decoration: none;
    color: var(--text-light);
    font-family: var(--font-ui);
    font-weight: bold;
    font-size: 16px;
    display: inline-block;
    transition: color 0.3s, transform 0.3s ease, text-shadow 0.3s ease;
}

.navbar a:hover {
    color: var(--accent);
    transform: scale(1.1);
    text-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}


.overlay {
    margin: 0 0 60px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.panel {
    display: flex;
    flex-wrap: wrap;
    background: var(--bg-dark);
    min-height: 60vh;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

#particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.subpage .panel {
    min-height: 260px;
    padding: 40px 0;
}


.divider {
    flex: none;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    margin: 16px auto 28px;
    animation: drawDivider 0.8s ease-out forwards;
    opacity: 0.8;
}

@keyframes drawDivider {
    to {
        width: 60%;
    }
}

.subpage .divider {
    max-width: 600px;
}

.left,
.right {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.left {
    flex: 1 1 10%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-stuff {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.logo-wrapper {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 0.8s ease-out forwards;

}

.logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto 20px;
}

.subpage .logo {
    max-height: 130px;
    width: auto;
}

.logo:hover {
    transform: scale(1.05);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.left-stuff h1 {
    color: var(--accent);
    font-size: 55px;
    font-family: var(--font-display);

    color: transparent;
    -webkit-text-stroke: 2px var(--accent);
    margin-bottom: 12px;
}

.left-stuff p {
    color: var(--text-light);
    font-family: var(--font-display);
}

.right {
    flex: 0 0 55%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-image {
    width: 800px;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-soft);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.art-image.visible {
    opacity: 1;
    transform: translateY(0);
}

.art-image:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.social-carousel {
    flex: none;
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 30px;
}

.social-carousel::before,
.social-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.social-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-main), transparent);
}

.social-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-main), transparent);
}

.carousel-track {
    display: flex;
    gap: 48px;
}

.carousel-track img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.carousel-track img:hover {
    transform: scale(1.2);
    opacity: 0.85;
}

.gallery-wrapper {
    position: relative;
}

.gallery-wrapper::after {
    content: "";
    position: sticky;
    bottom: 0;
    display: block;
    height: 140px;
    pointer-events: none;
    background: linear-gradient(
        to top,
        var(--bg-main),
        transparent
    );
    z-index: 2;
}

.gallery-full {
    column-count: 3;
    column-gap: 24px;
    width: 85%;
    max-width: 1400px;
    margin: 60px auto;
}

.gallery-full img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 24px;
    break-inside: avoid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-full img:hover {
    transform: scale(1.04);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 47, 67, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 40px;
    opacity: 0;
    pointer-events: none;
    transition: background 0.4 ease, opacity 0.4s ease;
    overscroll-behavior: contain;
}

.modal.show {
    background: rgba(20, 47, 67, 0.95);
    opacity: 1;
    pointer-events: auto;
}

.modal-img-wrapper {
    position: relative;
    max-width: 60vw;
    max-height: 80vh;
    overflow: hidden;
    transition: all 0.3s ease;
}

.expand-btn {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1001;
    background: rgba(255, 95, 126, 0.55);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-round);
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show .expand-btn{
    opacity: 1;
}

.modal-img-wrapper:hover .expand-btn {
    opacity: 1;
}

.modal-img-wrapper img {
    width: 100%;
    height: auto;
    cursor: zoom-in;
}

.modal.expanded .modal-img-wrapper {
    max-width: 90vw;
    max-height: 90vh;
}

.modal.expanded .modal-content {
    max-width: none;
    max-height: none;
    padding: 0;
    background: transparent;
    justify-content: center;
}

.modal.expanded img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.modal.expanded .modal-caption {
    display: none;
}

.modal-content {
    background: var(--bg-dark);
    padding: 48px 32px 32px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    gap: 32px;
    align-items: center;
    position: relative;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.modal.show .modal-content {
    opacity: 1;
    transform: scale(1) translateX(0);
}

.modal-content img {
    max-width: 420px;
    max-height: 70vh;
    object-fit: contain;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.modal.show .modal-content img {
    opacity: 1;
    transform: translateX(0);
}

@media (min-aspect-ratio: 16/7) {
    .modal-content img {
        max-height: 45vh;
        opacity: .95;
    }
}

.modal-caption {
    max-width: 360px;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: 0.12s;
}

.modal.show .modal-caption {
    opacity: 1;
    transform: translateX(0);
}

.modal-caption h2 {
    color: var(--accent);
    margin-bottom: 0;
    font-family: var(--font-ui);
}

.modal-caption p {
    color: var(--text-light);
    margin: 6px 0;
    font-family: var(--font-display);
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1001;
    background: rgba(0,0,0,0.55);
    border-radius: var(--radius-round);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.show .modal-close {
    opacity: 1;
}

.about-stuff {
    width: 85%;
    max-width: 1200px;
    margin: 80px auto 0;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.about-image{
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
}

.about-image img{
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: var(--radius-soft);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: var(--accent);
    font-family: var(--font-display);
    margin-top: 0;
    font-size: 32px;
}

.about-text p {
    font-family: var(--font-ui);
    line-height: 1.7;
    font-size: 16px;
    color: #222;
}

@media (max-width: 900px) {
    .about-stuff {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-image {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .about-image img {
        width: 100%;
        max-width: 420px;
        height: auto; 
        object-fit: contain;
        margin: 0 auto;
    }

    .about-text {
        width: 100%;
    }

    .about-text p{
        text-align: left;
    }
}

.my-footer {
    margin-top: 80px;
    padding: 40px 20px;
    text-align: center;
    background: var(--bg-dark);
    color: var(--text-muted);
    font-family: var(--font-display);
}

.my-footer p {
    margin: 6px 0;
    font-size: 14px;
}

.footer-note {
    font-size: 12px;
    opacity: 0.75;
}

.my-footer:hover {
    color: var(--text-light);
}

@keyframes popIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.clickable {
    cursor: pointer;
}

@media (max-width: 900px) {
    .gallery-full {
        column-count: 2;
    }
}

@media (max-width: 500px) {
    .gallery-full {
        column-count: 1;
    }
}

@media (max-width: 768px) {

    .left,
    .right {
        flex: 1 1 100%;
        text-align: center;
    }

    .art-image {
        max-width: 90%;
    }
}