* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    background: #1c1c1c;
}

.page-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-image: url('../images/portfolio/batb/9.webp');
    background-size: 200%;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center 0; /* will be changed by JS */
    z-index: 1;
}
@media (max-width: 425px) {
    .page-wrapper {
        background-size: 900%;
    }
}

.page-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px); /* modern & performant */
    /* or use filter: blur(5px); background-color: rgba(0,0,0,0.3); if you want fallback */
    z-index: -1;
    pointer-events: none;
}


/* 400 to 900 */
.playfair-display-header {
   font-family: "Playfair Display", serif;
   font-optical-sizing: auto;
   font-weight: 600;
   font-style: normal;
}
.playfair-display-header::selection {
     background: rgba(113, 218, 207, 0.6)
 }

.playfair-display-body {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
.playfair-display-body::selection {
    background: rgba(113, 218, 207, 0.6)
}

.desktop-hide {
    display: none !important;
}
@media (max-width: 425px) {
    .mobile-hide {
        display: none !important;
    }
    .desktop-hide {
        display: inherit !important;
    }
}

.courier-new {
    font-family: 'Courier New', monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
.courier-new::selection {
    background: rgba(113, 218, 207, 0.6)
}

.horizontal-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 1rem;
    align-items: flex-end;
}
@media (max-width: 425px) {
    .horizontal-container {
        gap: 0.35rem;
        padding: 0;
        align-items: flex-start;
        justify-content: center;
        border-top: 1px solid #ffffff6b;
    }
}

.vertical-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    align-items: flex-start;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 998; /* ensure it's above other elements */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #f7f7f7;
    text-align: center;
    background: #0000006b;
    width: auto;
    height: 3rem;
    border-radius: 10px 10px 10px 10px;
    margin: 2rem 2rem 2rem 2rem;
    overflow: hidden;
}
@media (max-width: 425px) {
    header {
        margin: 1.5rem 0.5rem 0.5rem 0.5rem;
        left: auto;
    }
    header a {
        font-size: 1rem !important;
        padding: 0.2rem 0.35rem 0.2rem 0.35rem !important;
    }
    header img {
        height: 2rem;
    }
}
header a {
    color: #f7f7f7;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.2rem 1rem 0.2rem 1rem;
}
header img {
    height: 2.5rem;
    position: relative;
    top: 3px;
}

nav {
    position: relative; /* <-- containment context */
    overflow: hidden;   /* <-- clip cursor */
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

main {
    font-size: 1.2rem;
    color: #f7f7f7;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    padding-top: 6rem;
    flex: 1;
}
@media (max-width: 425px) {
    main {
        padding-top: 8rem;
        gap: 3rem;
    }
}

main a {
    text-decoration: none;
    color: #f7f7f7;
}

footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    padding: 1rem;
    color: #f7f7f7;
    text-align: center;
    background-color: #000000;
}

.cursor-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(113, 218, 207, 0.9) 0%, rgba(58, 155, 146, 0.6) 60%, rgba(58, 155, 146, 0) 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.05s ease;
    transform: translate(-50%, -50%);
    z-index: 1;
    mix-blend-mode: screen; /* optional: helps the "light" blend nicely */
}

.image-accordion {
    display: flex;
    height: 60vh;
    width: 100vh;
    overflow: hidden;
    border-radius: 10px;
}

.panel {
    flex: 1;
    transition: flex 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.panel:hover {
    flex: 4; /* Hover scale */
}

.panel img {
    height: 100%;
    width: auto;
    object-fit: cover;
    display: block;
    transition: all 0.4s ease;
}

.swiper-container {
    width: 90%;
    max-width: 90vw;
    height: auto;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    background: #0000006b;
}

.swiper-wrapper,
.swiper-slide {
    height: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 28vh;
}

.swiper-slide img {
    width: 100%;                /* Fit width */
    height: auto;               /* Maintain aspect ratio */
    display: block;
    max-height: 28vh;
    max-width: 90vw;
    object-fit: cover;
}

.swiper-pagination {
    bottom: auto !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #0000006b;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-image {
    max-width: 90%;
    max-height: 80vh;
    margin-bottom: 1rem;
}

.modal-caption {
    color: #f7f7f7;
    font-size: 1.2rem;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 2rem;
    color: #f7f7f7;
    cursor: pointer;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
}

.credit-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}
.cursor-container {
    position: relative;
    overflow: hidden;
}
.credit-container.horizontal-container h3 p {
    color: #f7f7f7;
    text-align: center;
    width: 100%;
    height: auto;
}
.credit-container.horizontal-container p {
    font-size: 0.7rem;
}
.mobile-text-big {
    font-size: 1.2rem;
    text-align: left;
}
.mobile-text-small {
    font-size: 1rem;
    text-align: center;
}

.gradient-rounded-box {
    border-radius: 20px;
    background: radial-gradient(
            circle at center,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0) 70%
    );
    background-color: #222;
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.0) 100%);
}

.rounded-box {
    border-radius: 10px;
    background: #0000006b;
}
@media (max-width: 425px) {
    .rounded-box {
        width: 90%;
    }
}

.underline-box{
    border-bottom: 1px solid #ffffff6b;
}
