/* mobile-style.css */
@import url('https://rsms.me/inter/inter.css');

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

body {
    margin: 0;
    font-family: 'Helvetica', sans-serif;
    color: #353535;
    background: linear-gradient(45deg, #fef8e6, #e6fefb, #d7fbf0, #ece4fb, #fbe4f9);
    animation: backgroundShift 15s infinite;
    overflow-x: hidden;
    width: 100vw;
    scroll-snap-type: y mandatory;
    box-sizing: border-box;
}

body::-webkit-scrollbar {
    display: none;
}

nav.mobile-nav {
    padding: 0 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 3000;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav.mobile-nav.overlay-active {
    color: white; 
}

@media (max-width: 767px) {
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        padding: 1em 0em;
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-toggle span {
    background: #353535;
    height: 3px;
    width: 100%;
    border-radius: 10px;
    transition: transform 1s ease, opacity 1s ease, background 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: white; 
    z-index: 4000;
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: white; 
    z-index: 4000;
}

nav.mobile-nav.overlay-active .quantum-flirt {
    color: white;
}

nav.mobile-nav.overlay-active .menu-toggle span {
    background: white;
}

.overlay-close,
.overlay-back {
    display: none;
    position: fixed;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    z-index: 3000;
}

.overlay-close {
    top: 10px;
    right: 10px;
}

.overlay-back {
    top: 10px;
    left: 10px;
}

@media (max-width: 767px) {
    nav.mobile-nav.overlay-active .overlay-close,
    nav.mobile-nav.overlay-active .overlay-back {
        display: block;
    }
}

nav.mobile-nav .quantum-flirt {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3001;
    transition: color 0.3s ease;
    color: black; 
}

nav.mobile-nav.overlay-active .quantum-flirt {
    color: white; 
}

.nav-links {
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100vw;
    padding: 1rem;
    background: black;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 2999;
    transition: opacity 0.8s ease-in-out;
}

.nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

nav ul {
    padding: 0;
    margin: 0;
    width: 100%;
}

nav ul li {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 4rem;
    cursor: pointer;
    display: block;
    text-align: left;
    position: relative;
    top: 30vh;
    padding: 0.2rem 0;
    box-sizing: border-box;
}

nav ul li a.white-text {
    color: white !important;
}

.nav-text {
    display: inline-block;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}

main {
    scroll-behavior: smooth;
    padding-top: 5rem; 
    box-sizing: border-box;
}

#feature-text {
    height: 100vh;
    height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    position: relative;
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1em;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

#feature-text .text-container {
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    box-sizing: border-box;
}

#feature-text p {
    margin: 0;
    font-variation-settings: "wght" 400; 
    transition: font-variation-settings 1.2s ease-in-out;
}

.scroll-arrow {
    display: block;
    width: clamp(25px, 5vw, 35px);
    cursor: pointer;
    position: relative;
    margin-top: auto;
    align-self: center;
    transform: rotate(90deg);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-arrow:active {
    opacity: 1;
    transform: rotate(90deg) scale(0.95);
}

.arrow-left, .arrow-right {
    display: none; 
}

#video-player {
    display: none;
}

#mobile-video-grid {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    margin-top: 2rem;
}

#mobile-video-grid .video-slide {
    width: 100%;
    margin-bottom: 2rem;
}

#mobile-video-grid video {
    width: 100%;
    height: auto;
}

figcaption {
    font-size: 1rem;
    margin: 0.5rem 0;
    text-align: center;
    box-sizing: border-box;
}

.archive-intro {
    padding-top: 6vh;
}

#info-overlay::-webkit-scrollbar, #archive-overlay::-webkit-scrollbar, .overlay-content::-webkit-scrollbar {
    display: none;
}

#info-overlay, #archive-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    color: white;
    z-index: 2000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.5s ease;
    box-sizing: border-box;
}

#info-overlay.show, #archive-overlay.show {
    display: block;
    opacity: 1;
}

.overlay-content {
    padding: 2rem;
    font-size: 16pt;
    box-sizing: border-box;
}

.overlay-content article {
    margin-bottom: 2rem;
    box-sizing: border-box;
}

.two-columns {
    display: block;
    box-sizing: border-box;
}

.two-columns .column {
    width: 100%;
    padding: 1rem 0;
    box-sizing: border-box;
}

.image-text {
    display: block;
    box-sizing: border-box;
}

.image-text .column {
    width: 100%;
    padding: 1rem 0;
    box-sizing: border-box;
}

.image-text img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

.archive-list {
    list-style: none;
    padding: 0;
    font-size: 18pt;
    box-sizing: border-box;
}

.archive-list li {
    padding: 1rem;
    border-bottom: 1px solid #ffffff;
    cursor: pointer;
    transition: all 0.5s ease;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.archive-list .video-container {
    display: none;
    width: 100%;
    max-height: 0;
    transition: max-height 0.5s ease, padding 0.5s ease;
    box-sizing: border-box;
}

.archive-list .video-container video {
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

footer ol  {
    justify-content: unset;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1vh;
    margin: 2vw;

}

footer li:nth-child(2), footer li:nth-child(3) {
    display: none;
}

.portrait-warning {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    z-index: 9999;
    text-align: center;
    font-size: 1.5rem;
    border-radius: 10px;
    box-sizing: border-box;
}

@media only screen and (orientation: portrait) and (min-width: 768px) and (max-width: 1024px) {
    .portrait-warning {
        display: block;
    }

    #video-player, #mobile-video-grid {
        display: none !important;
    }
}

/* Welcome Screen Styles for Mobile */
#welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #fef8e6, #e6fefb, #d7fbf0, #ece4fb, #fbe4f9);
    background-size: 400% 400%;
    animation: backgroundShift 15s infinite;
    z-index: 9999;
    display: none; /* Hide by default */
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
    cursor: pointer;
    opacity: 0; /* Start with opacity 0 */
}

#welcome-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.welcome-content {
    text-align: center;
    color: #353535;
    padding: 2rem;
    max-width: 90%;
}

.welcome-logo-container {
    margin-bottom: 2rem;
    perspective: 1000px;
}

.letter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.letter {
    display: inline-block;
    font-size: 6rem; /* Larger for mobile but still responsive */
    font-weight: 200; /* Thinner font weight */
    margin: 0 0.05em;
    opacity: 0;
    transform-origin: center;
    font-family: 'ABC Maxi Round Variable Edu', sans-serif; /* Use ABC Maxi font */
}

.welcome-text {
    font-size: 1.5rem;
    font-weight: 200; /* Thinner font weight */
    opacity: 0;
    margin-top: 2rem;
    font-family: 'ABC Maxi Round Variable Edu', sans-serif; /* Use ABC Maxi font */
}

/* Additional media queries for smaller mobile devices */
@media (max-width: 375px) {
    .letter {
        font-size: 4rem;
    }
    
    .welcome-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 320px) {
    .letter {
        font-size: 3.5rem;
    }
    
    .welcome-text {
        font-size: 1rem;
    }
}

/* Hide all video controls on mobile */
.video {
    max-width: 100% !important;
    padding: 0 !important;
    border-radius: 8px;
}

video {
    cursor: pointer;
}

video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    display: none !important;
}

video::-webkit-media-controls-panel {
    display: none !important;
}

video::-webkit-media-controls-mute-button {
    display: none !important;
}

video::-webkit-media-controls-volume-slider {
    display: none !important;
    transform: scale(1.2); /* Make slightly larger on mobile */
}

@keyframes backgroundShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate__skewX {
    animation: skew-x-shake 1s;
}

.animate__skewY {
    animation: skew-y-shake 1s;
}

@keyframes skew-x-shake {
    0% { transform: skewX(-15deg); }
    5% { transform: skewX(15deg); }
    10% { transform: skewX(-15deg); }
    15% { transform: skewX(15deg); }
    20% { transform: skewX(0deg); }
    100% { transform: skewX(0deg); }
}

@keyframes skew-y-shake {
    0% { transform: skewY(-15deg); }
    5% { transform: skewY(15deg); }
    10% { transform: skewY(-15deg); }
    15% { transform: skewY(15deg); }
    20% { transform: skewY(0deg); }
    100% { transform: skewY(0deg); }
}
