/* =====================
   BACKGROUND VIDEO
   ===================== */

.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

/* =====================
   GENERAL STYLES
   ===================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Courier+Prime:wght@400;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: white;
}

.experience-container {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: transparent;
    position: relative;
    z-index: 1;
}

/* =====================
   HEADER & NAVIGATION
   ===================== */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    border-bottom: 1px solid #f0f0f0;
    background-color: white;
}

.experience-header {
    background-color: transparent;
    border-bottom: none;
}

.experience-page .experience-overlay {
    color: white;
}

.experience-overlay.home-overlay {
    color: #1a1a1a;
}

.logo h1 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #1a1a1a;
    text-transform: uppercase;
    font-family: 'Courier Prime', monospace;
}

.experience-header .logo h1 {
    color: #1a1a1a;
}

.logo a {
    text-decoration: none;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-right {
    width: 200px;
    text-align: right;
}

.nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 5px;
    text-transform: uppercase;
    font-family: 'Courier Prime', monospace;
}

.nav-link:hover {
    opacity: 0.6;
}

.nav-link.active {
    opacity: 1;
    border-bottom: 1px solid #1a1a1a;
}

.experience-header .nav-link {
    color: #1a1a1a;
}

.nav-separator {
    color: #999;
    font-size: 12px;
    font-weight: 300;
}

.nav-link-tiny {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 3px;
    text-transform: none;
    font-family: 'Courier Prime', monospace;
}

.nav-link-tiny:hover {
    opacity: 0.6;
}

.experience-header .nav-link-tiny {
    color: #1a1a1a;
}

/* Home Circle Styles */
.home-circle-link {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.home-circle-link:hover {
    opacity: 0.7;
}

.home-circle-red {
    background-color: #d32f2f;
}

.home-circle-black {
    background-color: #1a1a1a;
}

.home-circle-white {
    background-color: #ffffff;
}

/* =====================
   SCROLLABLE MEDIA SECTION
   ===================== */

html {
    scroll-behavior: smooth;
}

.media-scroll-section {
    width: 100%;
    background-color: #ffffff;
    padding: 80px 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.media-scroll-content {
    max-width: 900px;
    width: 100%;
    position: relative;
}

.media-scroll-content .media-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.media-scroll-content .experience-video {
    width: 100%;
    position: relative;
}

/* =====================
   MAIN CONTENT
   ===================== */

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
}

.main-content.experience-page {
    padding: 0;
    position: relative;
}

.main-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Home Page */
.hero {
    text-align: center;
    max-width: 900px;
    animation: fadeIn 1s ease-in;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.hero-intro {
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.8;
    max-width: 600px;
    text-align: center;
    font-weight: 500;
    font-family: 'Courier Prime', monospace;
}

.split-text {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
}

.split-left, .split-right {
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.6;
    font-weight: 500;
    font-family: 'Courier Prime', monospace;
}

.split-right {
    text-align: right;
}

.split-link {
    text-decoration: none;
    color: #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    transition: opacity 0.3s ease;
    font-family: 'Courier Prime', monospace;
    font-size: 16px;
    font-weight: 500;
}

.split-link:hover {
    opacity: 0.6;
}

.reveal-line {
    display: inline-block;
    animation: revealText 1.2s ease-out forwards;
    opacity: 0;
}

.hero-intro .reveal-line {
    display: inline;
}

.hero-intro .reveal-line:nth-child(1) {
    animation-delay: 0s;
}

.hero-intro .reveal-line:nth-child(3) {
    animation-delay: 1.2s;
}

.split-row:nth-child(1) .reveal-line {
    animation-delay: 2.4s;
}

.split-row:nth-child(1) .split-right .reveal-line {
    animation-delay: 3.6s;
}

.split-row:nth-child(2) .reveal-line {
    animation-delay: 4.8s;
}

.split-row:nth-child(2) .split-right .reveal-line {
    animation-delay: 6.0s;
}

.split-row:nth-child(3) .reveal-line {
    animation-delay: 7.2s;
}

.split-row:nth-child(3) .split-right .reveal-line {
    animation-delay: 8.4s;
}

.split-row:nth-child(4) .reveal-line {
    animation-delay: 9.6s;
}

.split-row:nth-child(4) .split-right .reveal-line {
    animation-delay: 10.8s;
}

.home-overlay {
    background: transparent;
    width: 100%;
    height: 100%;
    padding: 60px 40px;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.title {
    font-size: 72px;
    font-weight: 300;
    margin-bottom: 30px;
    color: #1a1a1a;
    letter-spacing: 0px;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
}

.subtitle {
    font-size: 18px;
    color: #888;
    font-weight: 300;
    letter-spacing: 1px;
}

/* About Page */
.page-content {
    max-width: 700px;
    line-height: 1.9;
}

.page-content h1 {
    font-size: 48px;
    margin-bottom: 40px;
    color: #1a1a1a;
    font-weight: 300;
    font-family: 'Playfair Display', serif;
}

.page-content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 400;
    font-family: 'Playfair Display', serif;
}

.page-content p {
    margin-bottom: 25px;
    color: #555;
    font-size: 16px;
    line-height: 1.9;
}

.edit-note {
    margin-top: 50px;
    padding: 25px;
    background-color: #f9f9f9;
    border-left: 2px solid #999;
    color: #888;
    border-radius: 0px;
    font-size: 14px;
}

/* =====================
   EXPERIENCE PAGES (Inside/Outside)
   ===================== */

.experience-page {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 0 !important;
    width: 100%;
    flex: 1;
}

.experience-overlay {
    /* background: rgba(255, 255, 255, 0.25); */
    /* backdrop-filter: blur(4px); */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.audio-player {
    margin-bottom: 60px;
    text-align: center;
    max-width: 500px;
    display: none;
}

.audio-player h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #1a1a1a;
    font-weight: 300;
    font-family: 'Playfair Display', serif;
}

.audio-player audio {
    width: 100%;
    max-width: 400px;
    filter: sepia(0.1);
}

/* Media Gallery */
.media-gallery {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    width: 100%;
}

.gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 2px;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.gallery-image:hover {
    opacity: 0.9;
}

.video-container {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 0;
    display: block;
}

.experience-video {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.experience-video img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* =====================
   FOOTER
   ===================== */

.footer {
    background-color: white;
    text-align: center;
    padding: 40px 60px;
    border-top: 1px solid #f0f0f0;
    color: #999;
    font-size: 12px;
    letter-spacing: 1px;
}

.experience-footer {
    background-color: transparent;
    border-top: none;
    color: #1a1a1a;
}

.experience-footer p {
    color: #1a1a1a;
}

/* White text on experience pages */
.experience-page .hero-content,
.experience-page .hero-intro,
.experience-page .split-left,
.experience-page .split-right {
    color: inherit;
}

.experience-page .split-link {
    color: inherit;
    border-bottom-color: inherit;
}

.experience-page .split-link:hover {
    opacity: 0.7;
}

/* =====================
   ANIMATIONS
   ===================== */

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

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

/* Floating Phrases Animations - Individual keyframes for each phrase */
@keyframes phrase1 {
    0% { opacity: 0; }
    2% { opacity: 1; }
    9% { opacity: 1; }
    11.1% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes phrase2 {
    0% { opacity: 0; }
    11.1% { opacity: 0; }
    13.3% { opacity: 1; }
    20% { opacity: 1; }
    22.2% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes phrase3 {
    0% { opacity: 0; }
    22.2% { opacity: 0; }
    24.4% { opacity: 1; }
    31.1% { opacity: 1; }
    33.3% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes phrase4 {
    0% { opacity: 0; }
    33.3% { opacity: 0; }
    35.5% { opacity: 1; }
    42.2% { opacity: 1; }
    44.4% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes phrase5 {
    0% { opacity: 0; }
    44.4% { opacity: 0; }
    46.6% { opacity: 1; }
    53.3% { opacity: 1; }
    55.5% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes phrase6 {
    0% { opacity: 0; }
    55.5% { opacity: 0; }
    57.7% { opacity: 1; }
    64.4% { opacity: 1; }
    66.6% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes phrase7 {
    0% { opacity: 0; }
    66.6% { opacity: 0; }
    68.8% { opacity: 1; }
    75.5% { opacity: 1; }
    77.7% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes phrase8 {
    0% { opacity: 0; }
    77.7% { opacity: 0; }
    79.9% { opacity: 1; }
    86.6% { opacity: 1; }
    88.8% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes phrase9 {
    0% { opacity: 0; }
    88.8% { opacity: 0; }
    91% { opacity: 1; }
    97.7% { opacity: 1; }
    100% { opacity: 0; }
}

/* Floating Phrases Styling */
.floating-phrase {
    position: absolute;
    font-size: 14px;
    color: #1a1a1a;
    font-family: 'Courier Prime', monospace;
    font-weight: 400;
    line-height: 1.6;
    white-space: nowrap;
    pointer-events: none;
    width: auto;
}

.phrase-1 {
    top: -93px;
    left: 3%;
    animation: phrase1 36s infinite;
}

.phrase-2 {
    top: -88px;
    right: 3%;
    text-align: right;
    animation: phrase2 36s infinite;
}

.phrase-3 {
    top: 12%;
    left: -180px;
    animation: phrase3 36s infinite;
}

.phrase-4 {
    top: 50%;
    right: -200px;
    text-align: left;
    animation: phrase4 36s infinite;
}

.phrase-5 {
    top: 42%;
    left: -170px;
    animation: phrase5 36s infinite;
}

.phrase-6 {
    top: 18%;
    right: -195px;
    text-align: left;
    animation: phrase6 36s infinite;
}

.phrase-7 {
    top: 72%;
    left: -175px;
    animation: phrase7 36s infinite;
}

.phrase-8 {
    top: 80%;
    right: -190px;
    text-align: left;
    animation: phrase8 36s infinite;
}

.phrase-9 {
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: phrase9 36s infinite;
}

/* Outside Page Floating Phrases */
@keyframes outside-phrase1 {
    0% { opacity: 0; }
    2% { opacity: 1; }
    9% { opacity: 1; }
    11.1% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes outside-phrase2 {
    0% { opacity: 0; }
    11.1% { opacity: 0; }
    13.3% { opacity: 1; }
    20% { opacity: 1; }
    22.2% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes outside-phrase3 {
    0% { opacity: 0; }
    22.2% { opacity: 0; }
    24.4% { opacity: 1; }
    31.1% { opacity: 1; }
    33.3% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes outside-phrase4 {
    0% { opacity: 0; }
    33.3% { opacity: 0; }
    35.5% { opacity: 1; }
    42.2% { opacity: 1; }
    44.4% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes outside-phrase5 {
    0% { opacity: 0; }
    44.4% { opacity: 0; }
    46.6% { opacity: 1; }
    53.3% { opacity: 1; }
    55.5% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes outside-phrase6 {
    0% { opacity: 0; }
    55.5% { opacity: 0; }
    57.7% { opacity: 1; }
    64.4% { opacity: 1; }
    66.6% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes outside-phrase7 {
    0% { opacity: 0; }
    66.6% { opacity: 0; }
    68.8% { opacity: 1; }
    75.5% { opacity: 1; }
    77.7% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes outside-phrase8 {
    0% { opacity: 0; }
    77.7% { opacity: 0; }
    79.9% { opacity: 1; }
    86.6% { opacity: 1; }
    88.8% { opacity: 0; }
    100% { opacity: 0; }
}

.outside-phrase-1 {
    top: -93px;
    left: 3%;
    animation: outside-phrase1 36s infinite;
}

.outside-phrase-2 {
    top: -88px;
    right: 3%;
    text-align: right;
    animation: outside-phrase2 36s infinite;
}

.outside-phrase-3 {
    top: 12%;
    left: -180px;
    animation: outside-phrase3 36s infinite;
}

.outside-phrase-4 {
    top: 50%;
    right: -200px;
    text-align: left;
    animation: outside-phrase4 36s infinite;
}

.outside-phrase-5 {
    top: 42%;
    left: -170px;
    animation: outside-phrase5 36s infinite;
}

.outside-phrase-6 {
    top: 18%;
    right: -195px;
    text-align: left;
    animation: outside-phrase6 36s infinite;
}

.outside-phrase-7 {
    top: 72%;
    left: -175px;
    animation: outside-phrase7 36s infinite;
}

.outside-phrase-8 {
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: outside-phrase8 36s infinite;
}

/* =====================
   RESPONSIVE DESIGN
   ===================== */

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .experience-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .nav-center {
        width: 100%;
        justify-content: center;
    }

    .header-right {
        width: 100%;
        text-align: center;
    }

    .title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 16px;
    }

    .main-content {
        padding: 30px 20px;
    }

    .experience-overlay {
        padding: 30px 20px;
    }

    .split-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .split-right {
        text-align: left;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-image {
        height: 250px;
    }

    .hero-intro {
        font-size: 14px;
    }

    .split-left, .split-right {
        font-size: 13px;
    }

    .experience-video {
        max-width: 300px;
    }

    .main-video-bg {
        display: none;
    }

    .main-content.experience-page {
        background-image: url('images/index-background.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }

    .floating-phrase {
        font-size: 12px;
        display: none;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 14px;
    }

    .title {
        font-size: 24px;
    }

    .audio-player h2 {
        font-size: 20px;
    }

    .nav-link, .nav-link-tiny {
        font-size: 10px;
    }

    .experience-video {
        max-width: 250px;
    }
}
