@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

:root {
    --light: #d7dbd2;
    --dark: #0f0f0f;
    --spacing-s: 1rem;
    --spacing-m: 10rem;
    --spacing-l: 15rem;
}

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

::webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Instrument Serif', sans-serif;
    overflow-x: hidden;
}

h1 {
    font-size: 5rem;
    font-weight: 500;
    letter-spacing: -0.1rem;
    line-height: 0.9;
}

section {
    position: relative;
    width: 100svw;
    height: 100vh;
    padding: 2rem;
    overflow: hidden;
}

/* SPOTLIGHT STYLES */

#spotlight img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#intro,
#outro {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light);
    color: var(--dark);
}

#intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: var(--spacing-m);
}

#intro .intro-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 25rem;
}

#intro .intro-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#intro .intro-card {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 120%;
    opacity: 0.2;
}

#intro span {
    font-size: 1.3rem;
    width: 50%;
    text-align: center;
    line-height: 1.5;
    word-spacing: 0.1rem;
}

#intro h1,
#outro h1 {
    width: 50%;
    text-align: center;
}

#spotlight {
    background-color: var(--dark);
    color: var(--light);
}

.spotlight-images, .spotlight-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 2000px;
}

#spotlight .img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 350px;
    will-change: transform;
}

.spotlight-cover-img {
    will-change: transform;
}

.spotlight-intro-header,
.spotlight-outro-header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 50%;
}

.spotlight-intro-header {
    z-index: 1;
}

.spotlight-outro-header {
    z-index: 10;
}

@media (max-width: 1000px) {
    #intro {
        padding-top: var(--spacing-l);
    }

    #intro h1,
    #outro h1,
    .spotlight-intro-header,
    .spotlight-outro-header {
        width: 100%;
        font-size: 2rem;
    }

    #intro span {
        font-size: 1rem;
        width: 100%;
    }

    .spotlight-intro-header,
    .spotlight-outro-header {
        padding: var(--spacing-s);
    }
}

/* NAVBAR STYLES */

#navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem;
    z-index: 1;
}

#navbar .navbar-logo {
    width: 150px;
    height: 100px;
}

#navbar .navbar-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#navbar .navbar-menu-button {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 0.3rem;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 500;
}

#navbar .navbar-menu-button .dot {
    width: 7px;
    height: 7px;
    background-color: var(--dark);
    border-radius: 50%;
}

@media (max-width: 1000px) {
    #navbar .navbar-logo {
        width: 120px;
        height: 80px;
    }
}

/* EVENTS STYLES */

#events {
    background-color: var(--dark);
    color: var(--light);
}

#events h1 {
    font-size: 5rem;
}

#outro .header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    width: 100%;
    z-index: 2;
}

#outro .header .letters {
    flex: 1;
    display: flex;
    text-transform: uppercase;
}

#outro .header .letters > div {
    flex: 1;
    font-size: 18vw;
    font-weight: 400;
    color: #000;
    text-align: center;
}

#outro .cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
}

#outro .cover-image .img-holder {
    position: relative;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--light);
    clip-path: polygon(37.5% 20%, 62.5% 20%, 62.5% 80%, 37.5% 80%);
    transform: rotate(30deg)
}

#outro .cover-image .img-holder img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(2);
}

#events .events-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
}

#events .items {
    position: absolute;
    width: 90%;
    display: flex;
    flex-direction: column;
    padding-inline: 2rem;
}

#events .items .item {
    display: flex;
    padding: 0.25em 0.5em;
    cursor: pointer;
    font-size: 2rem;
}

#events .items .item:hover {
    background-color: var(--light);
    color: var(--dark);
}

#events .items .item .item-index{
    flex: 1;
}

#events .items .item .item-name{
    flex: 4;
}

#events .items .item .item-year{
    flex: 1;
}

#events .overlay {
    position: absolute;
    bottom: -1200px;
    right: 0;
    width: 80%;
    height: 800px;
    padding: 2rem;
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
    overflow-y: scroll;
    z-index: 10;
    will-change: bottom;
    transform: translateZ(0) rotate(20deg);
    transform-origin: bottom center
}


#events .overlay .img-container {
    width: 50%;
    padding-bottom: 2rem;
}

#events .overlay .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#events .overlay .overlay-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 2rem 0;
}

#events .overlay .col:nth-child(1) {
    flex: 2;
}

#events .overlay .col:nth-child(2) {
    flex: 2;
}

#events .overlay #close-btn {
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    background-color: var(--dark);
    color: var(--light);
    border-radius: 2rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

#events .overlay #close-btn:hover {
    background-color: var(--light);
    color: var(--dark);
    box-shadow: 0 0 0 2px var(--dark);
    transform: translateY(-2px);
}

#events .overlay .item-details {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 1rem 0 4rem 0;
}

#events .overlay .item-details p:nth-child(1) {
    flex: 2;
}

#events .overlay .item-details p:nth-child(2) {
    flex: 2;
}

#events .overlay .item-details a {
    text-decoration: none;
    color: var(--dark);
    text-decoration: underline;
}

#events .overlay #item-content {
    font-size: 1.2rem;
}

#events .events-container h1 {
    top: 0;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    #events .overlay {
        width: 100%;
        height: 100vh;
    }

    #events .overlay .img-container {
        width: 100%;
    }

    #events .events-container {
        padding: 0;
    }

    #events .items {
        width: 100%;
        top: 40%;
        transform: translateY(-50%);
        left: 0;
        padding-inline: 1rem;
    }
    
    #events .items .item {
        font-size: 1.5rem;
        padding: 0.5rem 0.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    #events .items .item:first-of-type {
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }

    #events .items .item .item-year {
        flex: 0 0 60px;
    }
}

@media screen and (max-width: 768px) {
    #events .overlay .item-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    #events .overlay {
        border-bottom: 1px solid var(--dark);
    }

    #events .overlay .overlay-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    #events .overlay .col:nth-child(2) {
        align-self: flex-end;
    }
}

/* COMMUNITIES STYLES */

#communities {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light);
    color: var(--dark);
}

#communities h1 {
    text-align: center;
}

#communities .communities-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 0 5rem;
    border-top: 1px solid var(--dark);
}

#communities .communities-col {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5rem;
    border-left: 1px solid var(--dark);
    width: inherit;
    height: inherit;
}

#communities .communities-col:nth-child(2) {
    border-right: 1px solid var(--dark);
}

#communities .communities-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

#communities .communities-slider-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

#communities .communities-slider-item figure {
    position: relative;
    width: 20rem;
    height: 20rem;
    overflow: hidden;
}

#communities .communities-slider-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#communities .communities-slider-item h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

#communities .communities-slider-item p {
    font-size: 1.5rem;
    text-wrap: balance;
}

@media screen and (max-width: 768px) {
    #communities .communities-wrapper {
        flex-direction: column;
        height: 100%;
        padding: 0rem;
    }

    #communities .communities-col-header h1 {
        font-size: 2.5rem;
    }

    #communities .communities-col:nth-child(1) {
        border-right: 1px solid var(--dark);
        padding: 1rem;
        flex: 0;
    }

    #communities .communities-col {
        padding: 1rem;
    }

    #communities .communities-slider-item p {
        font-size: 1rem;
    }

    #communities .communities-slider-item {
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    #communities .communities-slider-item figure {
        width: 15rem;
        height: 15rem;
    }
}

/* TEAM STYLES */

#team {
    display: flex;
    flex-direction: column;
    background-color: var(--dark);
    color: var(--light);
    height: auto;
}

#team .team-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#team .team-members-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 5rem;
}

#team .team-member {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    border-top: 1px solid var(--light);
    cursor: pointer;
    height: 35rem;
}

#team .team-member-img {
    width: 100%;
    flex: 1;
    overflow: hidden;
    border-radius: 0;
    transition: border-radius 0.4s ease;
}

#team .team-member:hover .team-member-img {
    border-radius: 4rem;
}

#team .team-member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease-in-out;
}

#team .team-member:hover .team-member-img img {
    filter: grayscale(0%);
}

#team .team-member-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-block: 1rem;
}

#team .team-member-info h3 {
    font-size: 1.8rem;
}

#team .team-member-info span {
    font-size: 1.5rem;
}

#team .team-members-row-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
}

#team .team-members-row-header h2 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

@media screen and (max-width: 768px) {
    #team .team-members-row {
        grid-template-columns: repeat(1, 1fr);
        margin-bottom: 1rem;
    }

    #team .team-members-row-header h2 {
        font-size: 2.5rem;
    }
}

/* FOOTER STYLES */

footer {
    position: relative;
    background-color: var(--dark);
    color: var(--light);
    padding: 5rem 2rem 2rem;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(50px);
}

.footer-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.5rem;
}

.footer-logo {
    width: 15rem;
    height: 15rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-col h3 {
    font-size: 2rem;
    font-weight: 500;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col a {
    color: var(--light);
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-size: 1.5rem;
}

.footer-col a:hover {
    opacity: 0.7;
}

.footer-bottom {
    padding-top: 2rem;
    text-align: start;
    opacity: 0;
    transform: translateY(20px);
}

#footer-get-in-touch {
    font-size: 6rem;
    font-weight: 500;
    width: 100%;
    margin-top: 2rem;
    text-decoration: underline;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-logo {
        width: 10rem;
        height: 10rem;
    }


    .footer-col h3 {
        font-size: 2rem;
        border-bottom: 1px solid var(--light);
    }

    .footer-col a {
        font-size: 1.3rem;
    }

    .footer-content {
        gap: 1rem;
    }

    #footer-get-in-touch {
        font-size: 4rem;
        margin-top: 0;
    }
}