/*========================
    GLOBAL STYLES
==========================*/

* {
    box-sizing: border-box; /* prevents surprises with sizing*/
    margin: 0;
    padding: 0; /* removes default spacing around elements*/
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: rgb(247, 246, 243);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: #0077cc;
}

a:hover {
    color: #005fa3;
}

.circle-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

.circle-links .circle {
    width: 80px;
    height: 80px;
    background-color: transparent;
    border: 1px solid rgb(35, 165, 163);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.circle-links .circle:hover {
    transform: scale(1.1) rotate(20deg);
    background-color: rgb(35, 165, 163);
    border-color: transparent;
    color: #333;
}

/* Light background: orange border, dark text */
.circle-links .circle.light-bg {
    border-color: rgba(230, 137, 56, 0.8);
    color: #333;
}

.circle-links .circle.light-bg:hover {
    background-color: rgba(230, 137, 56, 0.85);
}

/* Other pages always have white backgrounds */
#gallery .circle-links .circle,
#about .circle-links .circle,
#contact .circle-links .circle {
    border-color: rgba(230, 137, 56, 0.8);
    color: #333;
}

#gallery .circle-links .circle:hover,
#about .circle-links .circle:hover,
#contact .circle-links .circle:hover {
    background-color: rgba(230, 137, 56, 0.85);
}

/*=========================
    HOMEPAGE HERO STYLES
==========================*/

#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 50px;
    overflow: hidden;
    background-color: rgb(10, 13, 17);
}

.hero-video-mobile { display: none; }

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
    filter: brightness(1);
}

.hero-silhouette {
    position: absolute;
    bottom: -4.5vh;
    left: 50%;
    transform: translateX(-50%);
    height: 58vh;
    width: auto;
    z-index: 1;
    pointer-events: none;
    clip-path: inset(0 0 10% 0);
    filter: brightness(1) contrast(1.05);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* Static box container */
.scroll-box {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 2px;
    border: 1px solid white;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    height: 60px;
    width: 30px;
    z-index: 2;
}

/* Arrow itself */
.scroll-box .scroll-down {
    font-size: 2rem;
    color: white;
    display: inline-block;
    position: relative;
    animation: arrow-fall 1.5s linear infinite;
}

@keyframes arrow-fall {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* =========================
   PREVIEW SECTIONS GENERAL (BELOW HERO)
========================= */

section {
    padding: 80px 20px;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 40px;
}


/* =========================
   GALLERY PREVIEW (BELOW HERO)
========================= */

#gallery-preview .gallery-container {
    flex-direction: row;
    justify-content: center;
}

#gallery-preview .gallery-item {
    flex: 1;
    max-width: 300px;
}

/* Gallery preview button - scoped */
#gallery-preview .circle-links-preview-button {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
}

/*what it looks like*/
.circle-preview {
    width: 80px;
    height: 80px;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background-color: transparent;
    border: 1px solid rgba(230, 137, 56, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    line-height: 1.2;
    padding: 5px;
    color: #333;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.circle-preview:hover {
    transform: scale(1.1) rotate(20deg);
    background-color: rgba(230, 137, 56, 0.85);
    border-color: transparent;
    color: rgb(51, 51, 51);
}

/* =========================
   ABOUT ME PREVIEW
========================= */

#about-preview {
    width: 100%;
    padding: 200px 20px;
    background-image: url('../images/profile_im/about-me-preview.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
}

#about-preview h2 {
    color: rgb(92, 183, 181);
}

.about-preview-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

#about-preview .circle-links-preview-button {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
}

#about-preview .circle-preview {
    border-color: rgb(92, 183, 181);
    color: white;
}

#about-preview .circle-preview:hover {
    background-color: rgb(35, 165, 163);
    border-color: transparent;
    color: #333;
}

/* =========================
   CONTACT PREVIEW
========================= */

#contact-preview {
    position: relative;
    padding: 40px 20px;
    text-align: center;
}

.contact-preview-video {
    display: block;
    width: 56.25%;
    aspect-ratio: 16 / 6.3;
    object-fit: cover;
    object-position: center;
    margin: 0 auto;
    opacity: 0.7;
}

.contact-preview-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 100%;
}

#contact-preview p {
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 400;
}

.circle-links-preview-button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}


/* =========================
   PREVIEW LINKS
========================= */

.preview-link {
    display: inline-block;
    margin-top: 20px;
    font-weight: 400;
    color: #333;
    transition: opacity 0.3s ease;
}

.preview-link:hover {
    opacity: 0.6;
}

/*========================
    ABOUT ME STYLES
==========================*/

.about-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.about-text {
    flex: 1;
    text-align: right;
}

.about-text p {
    margin-bottom: 25px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.about-text p .word:hover {
    color: rgba(230, 137, 56, 0.85);
    cursor: default;
}


.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/*=========================
    GALLERY STYLES
==========================*/

.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}

/* Mosaic layout for the gallery page only */
#gallery .gallery-container {
    display: block;
    columns: 3;
    column-gap: 20px;
    width: calc(100vw - 380px);
    margin: 50px auto;
    padding: 0;
}

.gallery-section-title {
    column-span: all;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(80, 163, 162);
    margin: 50px 0 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(80, 163, 162, 0.3);
}

#gallery .gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.gallery-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 20px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.75rem;
    text-align: center;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gallery-item:hover .gallery-info {
    opacity: 1;
}


/*=========================
    CLICKABLE GALLERY STYLES
==========================*/

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.hidden {
    display: none;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.arrow.left {
    left: 30px;
}

.arrow.right {
    right: 30px;
}

.lightbox-caption {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 300;
    font-size: 1.6rem;
    text-align: center;
    max-width: 90%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox:not(.hidden) .lightbox-caption {
    opacity: 1;
}

/*=========================
    GALLERY FILTER STYLES — DESKTOP
==========================*/

/* Vertical stack on the left */
.filter-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: fixed;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

.filter-group {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid rgb(35, 165, 163);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.25s ease, border-color 0.25s ease;
    z-index: 2;
}

.filter-group:hover {
    transform: scale(1.1);
}

.filter-group.active {
    transform: scale(1.15);
    background-color: rgb(35, 165, 163);
    border-color: transparent;
}

.filter-group.active:hover {
    transform: scale(1.15);
}

.filter-label {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgb(51, 51, 51);
    font-weight: 600;
    pointer-events: none;
    text-align: center;
}

.filter-group.active .filter-label {
    color: rgb(51, 51, 51);
}

.filter-sub {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: rgba(247, 246, 243, 0.82);
    backdrop-filter: blur(4px);
    border: 1px solid rgb(35, 165, 163);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.52rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(51, 51, 51);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    padding: 6px;

    transform: rotate(var(--a)) translateX(0px) rotate(calc(-1 * var(--a))) scale(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease var(--d, 0s), opacity 0.25s ease var(--d, 0s), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.filter-group.active .filter-sub {
    transform: rotate(var(--a)) translateX(100px) rotate(calc(-1 * var(--a))) scale(1);
    opacity: 1;
    pointer-events: all;
}

.filter-sub:hover {
    background-color: rgb(35, 165, 163);
    border-color: transparent;
    color: rgb(51, 51, 51);
}

.filter-sub.selected {
    background-color: rgb(35, 165, 163);
    border-color: transparent;
    color: rgb(51, 51, 51);
}

/* Mobile-only gallery elements: hidden on desktop */
.filter-group.menu-group,
.filter-group.series-group {
    display: none;
}

/* Menu sub-links (mobile nav) */
.menu-sub {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: rgba(247, 246, 243, 0.82);
    backdrop-filter: blur(4px);
    border: 1px solid rgb(35, 165, 163);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.52rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(51, 51, 51);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    padding: 6px;
    text-decoration: none;
    transform: rotate(var(--a)) translateX(0px) rotate(calc(-1 * var(--a))) scale(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease var(--d, 0s), opacity 0.25s ease var(--d, 0s), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.filter-group.active .menu-sub {
    transform: rotate(var(--a)) translateX(120px) rotate(calc(-1 * var(--a))) scale(1) translateY(25px);
    opacity: 1;
    pointer-events: all;
}

.menu-sub:hover {
    background-color: rgb(35, 165, 163);
    border-color: transparent;
    color: rgb(51, 51, 51);
}


/*=========================
    CONTACT STYLES
==========================*/

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

.contact-title-video {
    display: block;
    margin: 0 auto 40px;
    max-width: 600px;
    width: 100%;
    aspect-ratio: 16 / 6.3;
    object-fit: cover;
    object-position: top;
    clip-path: inset(5px 80px 2px 0);
    transform: translateX(-20px);
    outline: none;
    border: none;
    box-shadow: none;
}

.contact-buttons {
    position: relative;
    max-width: 720px;
    margin: 50px auto;
    overflow: hidden;
}

.contact-buttons-bg {
    display: block;
    width: calc(100% + 100px);
    margin-left: -30px;
    aspect-ratio: 16/4.5;
    object-fit: cover;
    object-position: center 80%;
}

.contact-circles {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 40px 20px;
}

.contact-circle {
    position: relative;
    z-index: 1;
}

.contact-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid rgb(35, 165, 163);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    padding: 16px;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.contact-circle:hover {
    transform: scale(1.1) rotate(20deg);
    background-color: rgb(35, 165, 163);
    border-color: transparent;
    color: white;
}

.contact-links a:hover {
    text-decoration: underline;
}

/*=========================
    FOOTER STYLES
==========================*/
footer {
    text-align: center;
    padding: 20px;
    background-color: #f4f4f4;
    margin-top: 50px;
}

/*=========================
    RESPONSIVE DESIGN — MOBILE
==========================*/
@media (max-width: 768px) {

    /* Hero videos */
    .hero-video-desktop { display: none; }
    .hero-video-mobile {
        display: block;
        position: relative;
        top: auto;
        left: auto;
        transform: translateX(-40px);
        width: 100%;
        height: calc(100vw * 16 / 9 * 0.6);
        min-width: unset;
        min-height: unset;
        object-fit: cover;
        object-position: center;
    }

    #hero {
        height: auto;
    }

    /* Silhouette: 2/3 size on mobile */
    .hero-silhouette { height: 43vh; }

    /* About / general layout */
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        text-align: right;
        border-right: 2px solid rgb(80, 163, 162);
        padding-right: 16px;
    }


    .about-image {
        margin-top: 20px;
    }

    #hero {
        justify-content: center;
        padding-right: 0;
    }

    /* Nav circles: move to top center */
    .circle-links {
        flex-direction: row;
        gap: 15px;
        position: fixed;
        top: 20px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .circle-links.past-hero .circle {
        background-color: rgba(247, 246, 243, 0.82);
        backdrop-filter: blur(4px);
        border-color: rgba(230, 137, 56, 0.8);
        color: #333;
    }

    .circle-links .circle {
        width: 60px;
        height: 60px;
    }

    /* Hide desktop gallery nav and filters */
    #gallery .circle-links {
        display: none;
    }

    .filter-container {
        display: none;
    }

    /* Show mobile gallery elements */
    .filter-group.menu-group {
        display: flex;
        position: fixed;
        top: 30px;
        left: 30px;
        z-index: 99999;
    }

    .filter-group.series-group {
        display: flex;
        position: fixed;
        top: 30px;
        right: 30px;
        z-index: 99999;
    }

    /* Mobile filter circles: frosted glass with shadow so they stand out on any background */
    .filter-group.menu-group,
    .filter-group.series-group {
        background-color: rgba(247, 246, 243, 0.92);
        backdrop-filter: blur(4px);
        box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
    }

    .filter-group.series-group .filter-sub {
        background-color: rgba(247, 246, 243, 0.82);
        backdrop-filter: blur(4px);
    }

    /* Mobile filter fan-out: wider spread */
    .filter-group.active .filter-sub {
        transform: rotate(var(--a)) translateX(120px) rotate(calc(-1 * var(--a))) scale(1) translateY(25px);
    }

    /* Gallery: 2 columns on mobile */
    #gallery .gallery-container {
        columns: 2;
        column-gap: 20px;
        width: auto;
        max-width: 900px;
        margin: 110px auto 50px;
        padding: 0 20px;
    }

    .gallery-section-title:first-child {
        margin-top: 0;
    }

    /* Gallery preview: tighter gap */
    .gallery-container {
        gap: 1px;
    }

    /* Gallery preview: show only 2 items */
    #gallery-preview .gallery-item:nth-child(3) {
        display: none;
    }

    #gallery-preview .gallery-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    #gallery-preview .gallery-item {
        width: 45%;
    }

    /* Contact preview video: wider on mobile */
    .contact-preview-video {
        width: 84.375%;
        margin: 50px auto 0;
    }

    .contact-buttons {
        gap: 20px;
    }

    .contact-circle {
        width: 100px;
        height: 100px;
        font-size: 0.58rem;
    }
}
