:root {
    --color-1: #8db47e;
}

body {
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    overflow-y: scroll;
}

body::before {
    content: "";
    display: block;
    position: fixed; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background: url(assets/background.webp) no-repeat center center;
    background-color: #050627;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

header, h1, h2, h3 {
    font-family: 'Bebas Neue', Arial, sans-serif;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 0;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(.4,2,.6,1);
    display: inline-block;   /* Allows transform: scale without affecting layout */
    letter-spacing: 3px;
}

h1:hover {
    color: var(--color-1);
    transform: scale(1.12);
}

h3 {
    font-size: 1.3rem;
    margin: 0;
    padding: 0;
    letter-spacing: 1px;
}

h4 {
    font-family: 'Montserrat', Arial, sans-serif;
    text-align: left;
    margin-bottom: 0;
    margin-top: 3rem;
}

header {
    color: white;
    padding-bottom: 1rem;
    text-align: center;
    font-size: 1.5rem;

    animation-name: reveal;
    animation-duration: 1s;
    animation-delay: 0.5s;
    animation-fill-mode: backwards;
}

p {
    margin: 0;
}

/* Navigation ---------------------------------------------------------------- */

nav {
    display: flex;
    justify-content: center;

    /* flex-wrap: wrap; */
    gap: 2rem;

    animation-name: reveal;
    animation-duration: 1s;
    animation-delay: 0.5s;
    animation-fill-mode: backwards;
}

.home-nav {
    gap: 4rem;
}

nav.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #050627;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

nav button {
    font-family: 'Montserrat', Arial, sans-serif;
    background: none;
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    transition: background 0.2s, transform 0.3s cubic-bezier(.4,2,.6,1);
}

nav button:hover {
    background: var(--color-1);
    transform: scale(1.1);
}

/* ------------------------------------------------------------------------------- */

main {
    animation-name: reveal;
    animation-duration: 1s;
    animation-delay: 0.5s;
    animation-fill-mode: backwards;
}

a:link, a:visited {
    color: white;
    text-decoration: none;

    transition: color .10s ease-in-out;
}

a:hover {
    color: var(--color-1);
}

/* Add transitions for header and nav */
.header-container {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s, visibility 0.5s;
    
}

/* Fade out when home section is active */
body.home-active .header-container{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    
}

/* Sections ------------------------------------------------------------------------------ */

.section {

    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;

    display: none;
    padding: 1rem;
    margin: 0 auto;
    max-width: 1150px;
    color: white;
    box-sizing: border-box;
    align-items: center;
    flex-direction: column;
    text-align: center;
    margin-bottom: 5rem;

    animation-name: reveal;
    animation-duration: 0.4s;
}

#home.section {
    animation-name: reveal;
    animation-duration: 1s;
    animation-delay: 0.5s;
    animation-fill-mode: backwards;
}

.section p {
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    font-size: 1rem;
    line-height: 2rem;
}

.section h2 {
    font-size: 2.5rem;
    line-height: 3rem;
    color: var(--color-1);
}

.section.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.section.fading {
    display: flex;
    opacity: 0;
    pointer-events: none;
}

/* HOME ------------------------------------------------------------------------ */

.home-columns {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.home-left {
    display: flex;
    flex: 1 1 0;
    justify-content: center;
    align-items: center;
    /* min-width: 180px; */
}

.home-right {
    display: flex;
    flex: 2 1 0; /* Right column is wider */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-right h2 {
    margin: 0;
}

.main-pic {
    width: 360px;
    min-width: 360px;
    display: block;
}

.profile-wrapper {
    border-radius: 50%;
    overflow: hidden;
    width: 300px;
    height: 300px;
    box-shadow: 0 4px 16px black;
}

.home-title {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 6rem;
    font-weight: 700;
    color: var(--color-1);
    text-align: center;
    margin: 0;
    /* line-height: 1.1; */
    cursor: default;
}

.splash-quote {
    font-family: 'Montserrat', Arial, sans-serif;
    position: absolute;
    font-size: 1.5rem;
    color:#c5b652;
    /* background: rgba(0,0,0,0.5); */
    border-radius: 12px;
    padding: 2rem 1.5rem;
    margin-top: -300px;
    margin-right: 60px;
    max-width: 500px;
    text-shadow: 2px 2px 3px rgba(0,0,0,1);
    rotate: -15deg;
    opacity: 0;
    transform: translateY(40px);
    
    animation: splash-slide-in 1s cubic-bezier(.4,2,.6,1) 1.5s forwards;
}

.splash-attribute {
    display: block;
    font-size: 1rem;
    color:#c5b652;
    margin-top: 0.5rem;
    font-style: italic;
}

/* DEMOS -------------------------------------------------------------------------- */

.demos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    width: 100%;
}

.cdgif {
    width: 250px;
    height: auto;
    margin-left: 1rem;
    margin-right: 1rem;
}

.demos-container {
    min-width: 280px;
    max-width: 100%;
    flex: 1 1 0;
    /* margin-top: 1rem; */
}

/* .soundcloud-widget {
    min-width: 280px;
    max-width: 100%;
    flex: 1 1 0;
    margin-top: 1rem;
} */

#demos audio {
    width: 100%;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* WORK ------------------------------------------------------------------------ */

.work-columns {
    display: flex;
    gap: 2rem;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    margin-top: 2rem;
}

.work-acting, .work-voice {
    flex: 1 1 0;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    min-width: 220px;
    /* max-width: 450px; */
    box-sizing: border-box;
}

.work-acting h3, .work-voice h3 {
    color: var(--color-1);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.work-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0,0,0,0.3);
    color: #fff;
    overflow: hidden;
    font-size: 1rem;
}

.work-table th, .work-table td {
    padding: 0.5rem;
    border-bottom: 1px solid rgb(100, 100, 100, 0.3);
    text-align: left;
}

.work-table th {
    /* background: var(--color-1); */
    
    color: var(--color-1);
    font-weight: bold;
}

.work-table td {
    padding: 1rem 0.5rem;
}

.work-table tr:last-child td {
    border-bottom: none;
}

.work-table tbody > tr:nth-of-type(even) {
    background: rgba(100, 100, 100, 0.3);
}

.work-table td:last-child {
    text-align: center;
}

.audio-popup-btn {
    font-size: 1rem;
    padding: 0.5rem;
    background: var(--color-1);
    color: #222;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    width: 2rem;
    height: 2rem;
    line-height: 1rem;
    
}
.audio-popup-btn:hover {
    background: #b6d6a8;
}

.audio-popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 100;

    animation-name: reveal;
    animation-duration: 0.4s;
}

.audio-popup {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    /* background: #222; */
    padding: 2rem 2.5rem;
    /* border-radius: 18px; */
    z-index: 9999;
    text-align: center;
    min-width: 320px;
    max-width: 90vw;
    opacity: 0;
    

    animation-name: reveal;
    animation-duration: 0.4s;
}

.audio-popup.show,
.audio-popup-overlay.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.audio-popup-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.audio-popup-close:hover {
    color: var(--color-1);
}

.acting-headshots {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.headshot {
    width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
    background: #222;
}

/* CONTACT --------------------------------------------------------------- */

div.contact {
    margin-bottom: 2rem;
    text-align:left;
    width: 80%;
}

#contact p {
    margin-left: 2rem;
}

/* --------------------------------------------------------------------------- */

footer {
    font-size: small;
    padding: 1rem;
    color: white;
    position:fixed;
    bottom: 0;

    animation-name: reveal;
    animation-duration: 1s;
    animation-delay: 0.5s;
    animation-fill-mode: backwards;
}

/* Media Queries -------------------------------------------------------------------- */
/* @media (min-width: 2000px) {
    
} */

@media (max-width: 768px) {
    header {
        font-size: 1.2rem;
        padding: 0.5rem;
    }

    nav {
        gap: 1rem;
    }

    nav button {
        font-size: 0.9rem;
        margin: 0 0.5rem;
        padding: 0.7rem 0.5rem;
    }

    .home-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .home-nav button {
        font-size: 1.1rem;
    }

    main, .section {
        padding: 0.5rem !important;
        max-width: 98vw;
        /* min-height: calc(100vh - 290px); */
    }

    .section h2 {
        font-size: 2rem;
        line-height: 2rem;
    }

    .section p {
        font-size: 1rem;
    }

    .home-columns {
        flex-direction: column;
        gap: 1.5rem;
        max-width: 98vw;
    }
    .main-pic {
        max-width: 60vw;
    }
    .home-title {
        font-size: 5rem;
    }

    .work-table, .work-table th, .work-table td {
        font-size: 0.95rem;
        padding: 0.5rem;
    }

    .headshot {
        width: 150px;
    }
}

@media (max-width: 900px) {
    .work-columns {
        flex-direction: column;
        gap: 2rem;
        align-items: stretch;
    }
    .work-acting, .work-voice {
        max-width: 98vw;
        padding: 1.2rem 0.7rem;
    }
}

@media (max-width: 1300px) {
    footer {
        position: unset;
    }
}

/* Animations --------------------------------------------------------- */

@keyframes reveal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes splash-slide-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add these styles at the end of your CSS file */

