body {
    font-family: 'Bodoni 72 Smallcaps', serif;
    /* background transition */ 
    background-color: #000;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease-in-out;
}

#site-container {
    transition: opacity 1.0s ease-in-out;
}

#page-wrapper {
    position: relative;
    z-index: 10;
    transition: transform 400ms cubic-bezier(0.32, 0.72, 0, 1), border-radius 400ms ease, background-color 400ms ease;
    will-change: transform; /* Optimize for animations */
}

#page-wrapper.is-shrunken {
    transform: scale(0.92);
    border-radius: 20px;
    overflow: hidden;
}

/* Mobile-specific optimizations for page wrapper */
@media (max-width: 768px) {
    #page-wrapper.is-shrunken {
        transform: scale(0.95); /* Less aggressive scaling on mobile */
        border-radius: 15px; /* Smaller border radius on mobile */
    }
}

/* white background - apply to both body and page wrapper */
body.white-background {
    background-color: white !important;
}

body.page-is-transitioning {
    transition: opacity 1.0s ease-in-out, background-color 0.3s ease-in-out;
}

body.modal-open.white-background {
    background-color: white;
}

@media (min-width: 768px) {
    .header-title {
        font-size: 3rem; /* For desktop */
    }
}
/* HEADER */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 27, 27);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.menu-overlay.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    display: flex;
}



.menu-nav {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.menu-link {
    color: white;
    font-family: 'Bodoni 72 Smallcaps', serif;
    font-size: 2.5rem;
    padding: 1rem 0;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu-overlay.is-open .menu-link {
    opacity: 1;
    transform: translateY(0);
}

.menu-overlay.is-open .menu-link:nth-child(1) { transition-delay: 0.4s; }
.menu-overlay.is-open .menu-link:nth-child(2) { transition-delay: 0.5s; }
.menu-overlay.is-open .menu-link:nth-child(3) { transition-delay: 0.6s; }
.menu-overlay.is-open .menu-link:nth-child(4) { transition-delay: 0.65s; }
.menu-overlay.is-open .menu-link:nth-child(5) { transition-delay: 0.7s; }
.menu-overlay.is-open .menu-link:nth-child(6) { transition-delay: 0.75s; }

.hamburger-menu {
    z-index: 100;
}

.hamburger-menu.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hamburger-menu span {
    height: 2px;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.is-black span{
    background-color: black;
}

.header-transparent {
    background: transparent;
}

.header-solid {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header positioning - now outside page wrapper */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    display: flex;
}

/* Style for the gala logo in the header */
#gala-logo-header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    height: 200px;
    width: 200px;
    object-fit: contain;
    z-index: 25;
    min-width: 200px;
    min-height: 200px;
}

/* Style for the HF logo in the header - starts hidden */
#hf-logo-header {
    opacity: 0;
    z-index: 25;
    height: 60px;
    width: 60px;
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 60px;
    min-height: 60px;
}

/* Animation states for the header */
#gala-logo-header.is-exiting {
    opacity: 0;
    transform: translate(-50%, -15vh);
}

#hf-logo-header.is-active {
    opacity: 1;
    transform: translate(-50%, -50%);
}

#video-container {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

#miami-video-container {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

/* Animation utilities */
.transition-all {
    transition: all 0.3s ease-in-out;
}

/* Floating Image Wrapper */
.floating-image-wrapper {
    position: relative;
    width: 90%;
    left: 5%;
    overflow: hidden;
    border-radius: 0rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.floating-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease-in-out;
}

#harmony-photo-container {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

#miami-photo-container {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    max-width: 28rem;
    width: 100%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease-in-out;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-title {
    font-family: 'ITC Garamond Std', serif;
    font-size: 1.5rem;
    font-weight: normal;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .modal-title {
        font-size: 1.875rem;
    }
}

.modal-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: white;
    font-family: 'ITC Garamond Std', serif;
    font-size: 1rem;
    letter-spacing: 0.02em;
    outline: none;
    transition: all 3.0s ease-in-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.modal-input::placeholder {
    color: #555;
    font-family: 'ITC Garamond Std', serif;
    letter-spacing: 0.02em;
}

.modal-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.modal-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: white;
    font-family: 'ITC Garamond Std', serif;
    font-size: 1rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease-in-out;
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(255, 241, 204, 0.1);
}

.modal-button:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(147, 51, 234, 0.3));
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(255, 241, 204, 0.2);
}

.modal-button:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Logo Animation Styles */
.logo-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 1vh);
    opacity: 0;
    z-index: 5;
    width: 25vw;
    height: 25vw;
    max-width: 300px;
    max-height: 300px;
    min-width: 200px;
    min-height: 200px;
    transition: transform 150ms ease-out, opacity 150ms ease-in-out;
}

@media (min-width: 768px) {
    .logo-container {
        width: 15vw;
        height: 15vw;
    }
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Animation States */
.logo-container.is-active {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.logo-container.is-exiting {
    transform: translate(-50%, -15vh);
    opacity: 0;
}

#hf-logo-anim-container.is-active {
    transform: translate(-50%, -50%);
    opacity: 1;
}

#gala-logo-anim-container.is-active {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* Hide scroll bars but keep scrolling functionality */
html, body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Webkit browsers (Chrome, Safari, Edge) */
html::-webkit-scrollbar, 
body::-webkit-scrollbar {
    display: none;
}

/* RSVP Modal */
.rsvp-button {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    padding: 12px 24px;
    font-family: 'Bodoni 72 Smallcaps', serif;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 400ms ease, transform 400ms ease;
}

.rsvp-button.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px); /*slide down slightly when hiding*/
}

.modal-overlay {
    position: fixed;
    inset: 0px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: flex-end; /*align modal to bottom of screen*/
    opacity: 0;
    pointer-events: none;
    transition: opacity 400ms ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet-modal { /*modal that slides up from bottom of screen*/
    width: 100%;
    max-width: 640px; /*for larger screens*/
    height: 80vh;
    background-color: #f0f0f0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transform: translateY(100%);
    transition: transform 400ms cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    will-change: transform; /* Optimize for animations */
}

.modal-overlay.is-active .bottom-sheet-modal {
    transform: translateY(0);
}

.modal-drag-area {
    padding: 15px;
    cursor: grab;
    touch-action: none; /*disable touch actions for mobile*/
}

.grab-bar {
    width: 40px;
    height: 5px;
    background-color: #444;
    border-radius: 5px;
    margin: 0 auto;
}

.modal-scroll-content { /*container for scrollable content*/
    flex: 1;
    overflow-y: auto;
    padding: 0 30px 30px 30px;
    font-family: 'ITC Garamond Std', serif;
    color: rgb(0, 0, 0); /*text color*/
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-input, .modal-submit-button {
    width: 100%;
    padding: 1rem;
    border-radius: 0px; /*no rounded corners*/
    border: 1px solid #000;
    background-color: transparent;
    color: #000;
    font-family: 'ITC Garamond Std', serif;
    font-size: 1rem;
    letter-spacing: 0.03em;
}

.modal-submit-button {
    background-color: #000000;
    color: #ffffff;
    cursor: pointer;
    font-weight: normal;
}

body.modal-open { /*prevent scrolling when modal is open*/
    overflow: hidden;
}

.modal-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 3rem;
    padding-top: 15px;
}

.grid-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #FADADD;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #000;
    font-size: 1rem;
    text-align: center;
}

.modal-text { /*central text*/
    font-size: 1.5rem;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.form-row { /*name/last name placement*/
    display: flex;
    gap: 1rem;
}

.form-row > input {
    flex: 1; /*make the input fields take up equal space*/
}

.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
}

.welcome-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
    display: flex;
}

.welcome-overlay.is-exiting {
    opacity: 0;
}

.welcome-text {
    color: white;
    font-family: 'Bodoni 72 Smallcaps', serif;
    font-size: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.5s, transform 0.8s ease-out 0.5s;
}

.welcome-overlay.is-active .welcome-text {
    opacity: 1;
    transform: translateY(0);
}