@import url('https://fonts.googleapis.com/css2?family=Science+Gothic:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Corinthia:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tangerine:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Unicase:wght@300;400;500;600;700&display=swap');

/*
    MAIN STYLING
*/

* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

:root {
    --main-page-color: #ccc;
    --main-page-text: black;
    --secondary-page-color: #aaa;
    --title-color1: rgba(187, 187, 187, 0.6);
    --title-color2: rgba(221, 221, 221, 0.6);
    --nav-bar-color: rgba(221, 221, 221, 0.95);
    --headshot-opacity: 0.8;
    --social-media-icon-color: filter: brightness(0) saturate(100%) invert(0%) sepia(100%) saturate(7500%) hue-rotate(59deg) brightness(89%) contrast(111%);;
}

html {
    font-size: 0.84vw;
    scroll-behavior: smooth;
}

body {
    background-color: var(--main-page-color);
}

/*
    ACCESSIBILITY OPTIONS
*/

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --main-page-color: #333;
        --main-page-text: #ccc;
        --secondary-page-color: #555;
        --title-color1: rgba(34, 34, 34, 0.6);
        --title-color2: rgba(68, 68, 68, 0.6);
        --nav-bar-color: rgba(68, 68, 68, 0.95);
        --headshot-opacity: 0.6;
        --social-media-icon-color: brightness(0) saturate(100%) invert(70%) sepia(85%) saturate(0%) hue-rotate(190deg) brightness(106%) contrast(80%);
    }

    body {
        color: #ccc;
    }
}

/*  Motion Sickness Accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
        transition: all 0.1ms;
    }
}

/*
-----------------------------------------------------------------------------------
    MOBILE SUPPORT
-----------------------------------------------------------------------------------
*/

/*
    WELCOME SECTION
*/

@media (orientation: portrait) {

}

/*
-----------------------------------------------------------------------------------
    PC SUPPORT
-----------------------------------------------------------------------------------
*/

/*
    NAV BAR
*/

/* Hamburger Animation */

.hamburger {
    padding: 15px 15px;
    position: fixed;
    z-index: 1000;
    right: 0;
    display: inline-block;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
}

.hamburger:hover {
    opacity: 0.7;
}

.hamburger.is-active:hover {
    opacity: 0.7;
}

.hamburger:focus {
    outline: none;
}

.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner::before,
.hamburger.is-active .hamburger-inner::after {
    background-color: #ccc;
}

.hamburger-box {
    width: 40px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 40px;
    height: 4px;
    background-color: #ccc;
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

.hamburger--collapse .hamburger-inner {
    top: auto;
    bottom: 0;
    transition-duration: 0.13s;
    transition-delay: 0.13s;
    transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--collapse .hamburger-inner::after {
    top: -20px;
    transition: top 0.2s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), opacity 0.1s linear;
}

.hamburger--collapse .hamburger-inner::before {
    transition: top 0.12s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), transform 0.13s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--collapse.is-active .hamburger-inner {
    transform: translate3d(0, -10px, 0) rotate(-45deg);
    transition-delay: 0.22s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hamburger--collapse.is-active .hamburger-inner::after {
    top: 0;
    opacity: 0;
    transition: top 0.2s cubic-bezier(0.33333, 0, 0.66667, 0.33333), opacity 0.1s 0.22s linear;
}

.hamburger--collapse.is-active .hamburger-inner::before {
    top: 0;
    transform: rotate(-90deg);
    transition: top 0.1s 0.16s cubic-bezier(0.33333, 0, 0.66667, 0.33333), transform 0.13s 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);
}

#nav-bar {
    position: fixed;
    top: 0;
    right: -20%;
    width: 20%;
    height: 100%;
    background-color: var(--nav-bar-color);
    z-index: 100;
    transition: 0.4s ease;
}

/* The "Active" state triggered by JS */
#nav-bar.active {
    right: 0; /* Slides into view */
}

.nav-bar-content {
    display: flex;
    flex-direction: column;
    align-items: left;
    row-gap: 3em;
    width: 100%;
    height: 30px;
    padding: 1.25em;
}

.nav-link {
    transition: all 0.2s;
    font-size: 4rem;
}

.nav-link:hover {
    color: #999;
}

.dropdown-btn:hover .arrow{
    filter: brightness(0) saturate(100%) invert(68%) sepia(0%) saturate(33%) hue-rotate(213deg) brightness(94%) contrast(74%);
}

.nav-link:focus {
    outline: none;
}

/* Dropdown */
/* Hide dropdown by default */
.dropdown-content {
    max-height: 0;
    overflow: hidden;
    list-style: none;
    font-size: 2.5rem;
    font-weight: 100;
    transition: all 0.3s ease-out; /* Smooth slide down */
    padding-left: 20px;
}

.dropdown-content a {
    display: inline-block;
    transition: transform 0.2s, color 0.2s;
}

.dropdown-content a:hover {
    transform: translateX(20px);
    color: #999;
}

/* Open state */
.dropdown-content.open {
    max-height: 40vh;
}

.dropdown-btn .arrow {
    width: 2rem;
    transition: transform 0.3s, filter 0.2s;
    display: inline-block;
    filter: var(--social-media-icon-color);
}

.dropdown-btn[aria-expanded="true"] .arrow {
    transform: rotate(180deg);
}

.dropdown-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--main-page-text);
    font-family: serif;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.dropdown-btn:focus-visible {
    color: #999;
}

@media (max-aspect-ratio: 1.5/1) {
    #nav-bar {
        width: 60%;
        right: -60%;
    }

    .nav-link {
        font-size: 12rem;
    }

    .dropdown-content {
        font-size: 10rem;
    }

    .dropdown-btn .arrow {
        width: 8rem;
    }
}

/*
    WELCOME SECTION
*/
#welcome-section {
    height: 100vh;
    overflow: hidden;
}

@media (max-aspect-ratio: 1.5/1) {
    #welcome-section {
        height: 100vh;
        width: auto;
        display: block;
        position: relative;
    }
}

#hero-img {
    width: 100%;
    object-fit: cover;
    object-position: center 20%;
    position: fixed;
    z-index: -1;
}

@media (max-aspect-ratio: 1.5/1) {
    #hero-img {
        width: 100%;
        height: 100%;
        object-position: right;
    }
}

#title {
    color: #ccc;
    font-family: "Cormorant Unicase", sans-serif;
    font-size: 12rem;
    font-weight: 500;
    position: absolute;
    top: 5%;
    left: 5%;
}

#title-quote {
    color: #ccc;
    width: 42%;
    position: absolute;
    top: 30%;
    left: 10%;
    font-size: 4rem;
    font-weight: 300;
    text-align: left;
}

#title-gradient {
    width: 100%;
    height: 15%;
    background: linear-gradient(0deg, var(--main-page-color) 25%, rgba(0, 0, 0, 0));
    position: absolute;
    bottom: 0px;
    display: flex;
    align-items: center;
}

.section-title {
    font-family: "Cormorant Unicase", sans-serif;
    font-size: 4rem;
    font-weight: 500;
    /* margin: 0 2rem 2rem 2rem; */
    text-align: center;
}

/*
    ABOUT SECTION
*/

#about-me {
    background-color: var(--main-page-color);
    padding-top: 80px;
    display: flex;
    justify-content: center;
}

.pop-out-section {
    background-color: var(--secondary-page-color);
    width: 60%;
    display: flex;
    margin-bottom: 50px;
    box-shadow: 10px 10px 20px 5px #222;
}

.about-me-image {
    display: block;
    width: 45%;
}

#about-img {
    width: 100%;
    box-shadow: 10px 10px 20px 5px #222;
    position: relative;
    bottom: 20px;
    right: 20px;
}

.about-me-text {
    width: 55%;
}

.about-paragraph-container {
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.about-me-text p {
    font-size: 1.25rem;
}

#media {
    background-color: var(--main-page-color);
}

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.music-video {
    width: 70%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
}

#contact {
    background-color: var(--main-page-color);
    padding-bottom: 100px;
}

#contact-heading {
    width: 100%;
    text-align: center;
    font-size: 5rem;
    margin-bottom: 2rem;
}

.contact-fields {
    width: 80%;
    display: flex;
    justify-content: center;
    column-gap: 8%;
    align-items: flex-start;
    margin: auto;
}

.static-contact-container {
    font-size: 2rem;
}

.static-contact-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.name, .email {
    margin-bottom: 1rem;
}

.social-media-links {
    margin-top: 2rem;
    display: flex;
    justify-content: space-around;
}

.social-media-icon {
    filter: var(--social-media-icon-color);
    width: 2rem;
}

#contact-form {
    display: flex;
    flex-direction: column;
    width: 35%;
}

.screw-you-lastpass {
    width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.input-field {
    font-size: 1.5rem;
    width: 100%;
    padding: 0.25rem;
    margin-bottom: .5rem;
}

#contact-message {
    height: 10rem;
    font-family: sans-serif;
}

#submit-btn-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

#submit-btn {
    font-size: 2rem;
    font-family: serif;
    padding: 1rem;
}

/* Smooth fade transitions for status messages */
.status-message {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
  margin-bottom: 1rem;
}

/* Formspree SDK will inject content here when active */
.status-message:not(:empty) {
  opacity: 1;
  visibility: visible;
}

.field-error {
  color: #d9534f;
  font-size: 0.875rem;
  display: block;
  margin-top: 0.25rem;
}

/* Accessible focus management */
#contact-form input:focus, 
#contact-form textarea:focus, 
#contact-form button:focus {
  outline: 2px solid #3C6E71;
  outline-offset: 3px;
  border-color: #3C6E71;
  transition: outline-color 0.2s ease, border-color 0.2s ease;
}

/* Optional: Styling invalid fields based on Formspree's injected ARIA state */
input[aria-invalid="true"], 
textarea[aria-invalid="true"] {
  border-color: #d9534f;
  outline-color: #d9534f;
}