:root {
    --color-dark: #14171A;
    --color-blue: #1E90FF;
    --color-accent: #8bc880;
    --color-cream: #FFF8E7;
    --color-cream-dark: #e4dbc8;
}

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

a {
    color: var(--color-accent);
}

body {
    font-family: "Cormorant Unicase", Georgia, serif;
    background: var(--color-dark);
    color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Header */

header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 1.5rem;
}

.logo-image {
    height: 250px;
    margin-right: 1.5rem;
    transform: translateX(-30px);
    opacity: 0;
    animation: slideIn 1.5s ease forwards;
    object-fit: cover;
}

.title-container {
    display: flex;
    flex-direction: column;
}

h1 {
    flex: 1 1 auto;
    font-size: clamp(3rem, 8vw, 8rem);
    line-height: 1;
    font-weight: 400;
    color: var(--color-cream);
    text-shadow: 0 0 20px rgba(255, 179, 71, 0.3);
    transform: translateX(-20px);
    opacity: 0;
    animation: slideIn 1.5s ease forwards;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    letter-spacing: 0.2em;
    color: var(--color-accent);
    transform: translateX(20px);
    opacity: 0;
    animation: slideIn 1.5s ease 0.3s forwards;
}

.stained-glass {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 20% 20%, rgba(30, 144, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(255, 179, 71, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(30, 144, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.social-links {
    display: none;
    margin-top: 1rem;
    /* display: flex; */
    flex-direction: row;
    gap: 1.5rem;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideIn 1.5s ease 0.3s forwards;
}

.social-btn {
    color: var(--color-cream);
    text-decoration: none;
    font-size: 1.5rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 248, 231, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.social-btn:hover {
    border-color: var(--color-accent);
}

.social-btn:hover::before {
    transform: translateY(0);
}

/* Nav */

.nav-links {
    background: rgba(20, 23, 26, 0.95);
    padding: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 248, 231, 0.1);
    border-bottom: 1px solid rgba(255, 248, 231, 0.1);
}

.nav-link {
    color: var(--color-cream);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    font-weight: bold;
    color: var(--color-accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(1);
}

/* Body */

.performance-card-container {
    background: rgba(38, 52, 66, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    overflow-x: hidden;
    flex: 1 1 auto;
}

.performance-video {
    max-width: 900px;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 248, 231, 0.1);
    background: rgba(20, 23, 26, 0.8);
}

.performance-card {
    flex: 0 0 auto;
    max-width: 900px;
    width: 100%;
    margin: 1rem;
    background: rgba(20, 23, 26, 0.8);
    border: 1px solid rgba(255, 248, 231, 0.1);
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.performance-image-container {
    margin: 1rem;
    flex: 1 1 auto;
    max-width: 200px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.performance-image-container a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.performance-image {
    object-fit: contain;
    width: 100%;
    display: block;
    border: 1px solid var(--color-cream);
}

.performance-content {
    flex: 1 1 auto;
    padding: 1.5rem;
}

.performance-title {
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-weight: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.performance-title-past {
    color: var(--color-cream);
}

.performance-details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.detail-time, .detail-location, .body-text {
    font-family: Georgia, serif;
    margin-bottom: 0.8rem;
    color: var(--color-cream);
    align-items: baseline;
}

.detail-time {
    font-weight: bold;
    text-align: right;
}

.detail-location {
    font-weight: bold;
    font-style: italic;
}

.body-text {
    color: var(--color-cream-dark);
}

.about-container {
    display: flex;
    flex: 1 1 auto;
    max-width: 900px;
    flex-direction: row;
    justify-content: center;
    padding: 2rem 1rem;
    background: rgba(38, 52, 66, 1);
}

.about-image {
    flex: 1 1 auto;
    max-width: 500px;
    margin-right: 2rem;
    height: auto;
    border: 1px solid var(--color-cream);
}

@media (orientation: portrait) {
    .performance-card {
        margin: 0.5rem;
        flex-direction: column;
        width: 100%;
    }
    
    .performance-image-container {
        margin: 0;
        height: 180px;
        width: 100%;
        max-width: 100%;
        border: none;
    }

    .performance-image {
        flex: 1 1 auto;
        max-height: 200px;
        object-fit: cover;
    }

    header {
        padding: 4rem 1rem;
        flex-direction: column;
    }

    .logo-image {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }

    .title-container {
        align-items: center;
    }

    .performance-details {
        flex-direction: column;
        flex-flow: column-reverse;
    }

    .detail-time {
        text-align: left;
        display: flex;
        flex-direction: row;
    }
    .detail-time > div {
        margin-right: 5px;
    }

    .nav-links {
        padding: 1rem 0.5rem;
        gap: 1rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.2rem 0.5rem;
    }

    .about-container {
        flex-direction: column;
        padding: 1rem;
    }

    .about-image {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 100%;
    }
}