body {
    margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ---- Navbar ---- */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    pointer-events: none;
}

#menu-toggle {
    pointer-events: all;
    margin-top: 5vh;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 0.85rem;
    letter-spacing: 0.35em;
    font-family: inherit;
    padding: 8px 16px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#menu-toggle:hover {
    transform: scale(1.1);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 0.5px;
}

#nav-links {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 2.5rem;
    padding: 0;
    margin: 1rem 0 0 0;
    transform: scaleX(0);
    opacity: 0;
    transform-origin: center;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
    pointer-events: none;
}

#main-nav.open #nav-links {
    transform: scaleX(1);
    opacity: 1;
    pointer-events: all;
}

#nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}

#nav-links li a:hover {
    transform: scale(1.12);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 0.5px;
}


#home {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

#home-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#about-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#about-photo {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}


#about-bio {
    width: 100vw;
    height: fit-content;
    background-color: #cfbfbf;
    display: flex;
    justify-content: center;
    padding: 3rem 0;
    box-sizing: border-box;
}

#about-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    width: 60%;
    max-width: 780px;
}

#about-box p {
    color: #654242;
    font-family: "Antic Didone", serif;
    font-size: 1.15rem;
    line-height: 1.85;
    text-align: center;
    letter-spacing: 0.04em;
    margin: 0;
}

#about-name {
    font-family: "Baskervville SC", serif;
    font-size: 1.35rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

#bio-button {
    display: inline-block;
    background: none;
    border: 1px solid rgba(101, 66, 66, 0.55);
    color: #654242;
    font-family: "Antic Didone", serif;
    font-size: 0.88rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 28px;
    cursor: pointer;
    transition: opacity 0.2s ease, letter-spacing 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

#bio-button:hover {
    opacity: 0.7;
    letter-spacing: 0.5em;
    border-color: #654242;
    background-color: rgba(101, 66, 66, 0.06);
}

#media {
    width: 100vw;
    min-height: 100vh;
    position: relative;
    background-color: #cfbfbf;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sparkle-border {
    width: 40vw;
    display: block;
}

#sparkle-bottom {
    transform: scaleY(-1);
}

#media-wrapper {
    position: relative;
    width: 70vw;
    height: 60vh;
    overflow: hidden;
}

#media-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
}

#media-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

#media-button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: white;
    font-family: inherit;
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    padding: 10px 28px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

#media-button:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}


#contact {
    height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    background-color: #cfbfbf;
    padding: 0 5%;
    box-sizing: border-box;
}

#contact-left,
#contact-right {
    height: 75vh;
    flex: 1;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#contact-header {
    color: #654242;
    font-size: 2rem;
    letter-spacing: 0.08em;
    font-weight: 300;
    margin: 0 0 2rem 0;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.bot-field-wrapper {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
}

#contact-form input,
#contact-form textarea {
    background: none;
    border: none;
    border-bottom: 1px solid rgba(101, 66, 66, 0.45);
    color: #654242;
    font-family: inherit;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 10px 0;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(101, 66, 66, 0.5);
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-bottom-color: #654242;
}

#contact-form textarea {
    resize: none;
    flex: 1;
    min-height: 120px;
}

#submit-button {
    background: none;
    border: 1px solid rgba(101, 66, 66, 0.6);
    color: #654242;
    font-family: inherit;
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    padding: 10px 28px;
    cursor: pointer;
    align-self: flex-start;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

#submit-button:hover {
    transform: scale(1.05);
    background-color: rgba(101, 66, 66, 0.08);
    border-color: #654242;
}

#form-success {
    color: #654242;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    margin: auto;
}

#contact-right {
    align-items: center;
    justify-content: center;
}


#contact-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#socials {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.social-link:hover {
    transform: scale(1.25);
}

.social-icon {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #654242;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---- Responsive ---- */

/* Desktop only */
@media (min-width: 1025px) {
    #home::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 8rem;
        background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.55));
        pointer-events: none;
        z-index: 2;
    }
}

/* iPad (768px – 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    #home {
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    #home-video {
        width: 100%;
        max-width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #about-photo {
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    #about-video {
        width: 100%;
        max-width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #nav-links {
        gap: 1.75rem;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 1rem;
    }

    #nav-links li a {
        font-size: 0.7rem;
    }

    #about-box {
        width: 78%;
    }

    #media-wrapper {
        width: 92vw;
        height: 55vh;
    }

    .sparkle-border {
        width: 60vw;
    }

    #contact {
        gap: 3rem;
    }

    #contact-left,
    #contact-right {
        height: auto;
        min-height: 60vh;
    }

    #contact-photo-frame, #contact-video-frame {
        width: 320px;
        height: 320px;
    }

    #contact-video-frame {
        width: 100%;
        height: auto;
        border-radius: 0;
        overflow: visible;
    }

    #contact-video {
        width: 100%;
        height: auto;
        object-fit: unset;
    }
}

/* Mobile phone (up to 767px) */
@media (max-width: 767px) {
    #main-nav {
        transition: background 0.3s ease;
    }

    #main-nav.open {
        padding-bottom: 2.5rem;
    }

    #main-nav.open::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 50%, transparent 100%);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
        pointer-events: none;
        z-index: -1;
    }

    #nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        flex-wrap: nowrap;
        padding: 0;
        margin: 0.75rem 0 0 0;
    }

    #nav-links li a {
        font-size: 0.8rem;
        letter-spacing: 0.3em;
    }

    #menu-toggle {
        margin-top: 3vh;
    }

    /* About section */
    #about-photo {
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    #about-video {
        width: 100%;
        max-width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #about-box {
        width: 88%;
    }

    /* Media section */
    #media-wrapper {
        width: 100vw;
        height: 45vh;
    }

    .sparkle-border {
        width: 85vw;
    }

    /* Contact section */
    #contact {
        height: auto;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 4rem 6% 3rem;
    }

    #contact-left,
    #contact-right {
        height: auto;
        width: 100%;
        max-width: 100%;
        flex: none;
    }

    #contact-left {
        padding-bottom: 3rem;
    }

    #contact-right {
        align-items: center;
        justify-content: center;
        order: -1;
        padding-bottom: 2rem;
    }

    #contact-left {
        padding-bottom: 0;
    }

    #contact-video-frame {
        width: 100%;
        height: auto;
        border-radius: 0;
        overflow: visible;
    }

    #contact-video {
        width: 100%;
        height: auto;
        object-fit: unset;
    }

    #contact-header {
        font-size: 1.6rem;
    }
}

/* ---- Scroll Reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
