/* === Amadeus Pocket - Chrome Purple/Pink === */

:root {
    --color-bg: #fafafa;
    --color-text: #1a1a1a;
    --color-text-dim: #555555;
    --color-text-light: #888888;
    
    /* Purple/Pink palette */
    --color-purple: #8b5cf6;
    --color-pink: #ec4899;
    --color-violet: #a855f7;
    
    --font-main: 'Space Grotesk', -apple-system, sans-serif;
    --font-script: 'Caveat', cursive;
    --font-serif: 'Instrument Serif', Georgia, serif;
}

/* === Video Intro Overlay === */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-skip {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.intro-skip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-violet), var(--color-pink));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.intro-skip:hover::before {
    opacity: 1;
}

.intro-skip__text,
.intro-skip__icon {
    position: relative;
    z-index: 1;
}

.intro-skip__icon {
    transition: transform 0.3s ease;
}

.intro-skip:hover .intro-skip__icon {
    transform: translateX(4px);
}

/* Sound hint - subtle indicator */
.intro-sound-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    pointer-events: none;
    z-index: 10;
    animation: pulse-hint 2s ease-in-out infinite;
}

@keyframes pulse-hint {
    0%, 100% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.02);
    }
}

.intro-sound-hint__icon {
    font-size: 16px;
}

.intro-sound-hint.hidden {
    display: none;
}

/* === Reset === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
}

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

/* === Chrome Text Effect === */
.chrome-text {
    display: block;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 700;
    font-family: var(--font-serif);
    background: linear-gradient(
        135deg,
        #e8e8e8 0%,
        #f5f5f5 15%,
        #8b5cf6 25%,
        #ec4899 35%,
        #f5f5f5 45%,
        #a855f7 55%,
        #ec4899 65%,
        #e8e8e8 75%,
        #8b5cf6 85%,
        #f0f0f0 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: chrome-shift 4s ease-in-out infinite;
    line-height: 1;
    letter-spacing: -0.02em;
}

.chrome-text-sm {
    background: linear-gradient(
        135deg,
        #e8e8e8 0%,
        #8b5cf6 30%,
        #ec4899 50%,
        #a855f7 70%,
        #f0f0f0 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: chrome-shift 3s ease-in-out infinite;
}

@keyframes chrome-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* === Hero Section === */
.mv {
    position: relative;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-bg);
    background-image: url('../AmadeusBackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Subtle grid */
.mv::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Animated Bubbles */
.bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(200, 190, 230, 0.5);
    animation: float-bubble 20s ease-in-out infinite;
}

.bubble:nth-child(1) {
    width: 20px;
    height: 20px;
    left: 8%;
    top: 15%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.bubble:nth-child(2) {
    width: 35px;
    height: 35px;
    right: 5%;
    top: 8%;
    animation-delay: -2s;
    animation-duration: 22s;
}

.bubble:nth-child(3) {
    width: 15px;
    height: 15px;
    left: 45%;
    top: 25%;
    animation-delay: -4s;
    animation-duration: 16s;
}

.bubble:nth-child(4) {
    width: 25px;
    height: 25px;
    left: 12%;
    bottom: 20%;
    animation-delay: -6s;
    animation-duration: 24s;
}

.bubble:nth-child(5) {
    width: 18px;
    height: 18px;
    right: 20%;
    top: 40%;
    animation-delay: -8s;
    animation-duration: 19s;
}

.bubble:nth-child(6) {
    width: 30px;
    height: 30px;
    left: 70%;
    bottom: 15%;
    animation-delay: -10s;
    animation-duration: 21s;
}

.bubble:nth-child(7) {
    width: 12px;
    height: 12px;
    left: 25%;
    top: 60%;
    animation-delay: -3s;
    animation-duration: 17s;
}

.bubble:nth-child(8) {
    width: 22px;
    height: 22px;
    right: 35%;
    bottom: 30%;
    animation-delay: -7s;
    animation-duration: 23s;
}

.bubble:nth-child(9) {
    width: 16px;
    height: 16px;
    left: 55%;
    top: 10%;
    animation-delay: -5s;
    animation-duration: 20s;
}

.bubble:nth-child(10) {
    width: 28px;
    height: 28px;
    right: 12%;
    bottom: 45%;
    animation-delay: -9s;
    animation-duration: 18s;
}

.bubble:nth-child(11) {
    width: 14px;
    height: 14px;
    left: 85%;
    top: 55%;
    animation-delay: -1s;
    animation-duration: 22s;
}

.bubble:nth-child(12) {
    width: 24px;
    height: 24px;
    left: 35%;
    bottom: 10%;
    animation-delay: -11s;
    animation-duration: 19s;
}

@keyframes float-bubble {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-20px, -40px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(20px, 10px) scale(1.05);
        opacity: 0.6;
    }
}

/* === Corner UI === */
.mv__corner {
    position: absolute;
    z-index: 100;
}

.mv__corner--tl {
    top: 30px;
    left: 30px;
}

.mv__corner--tr {
    top: 30px;
    right: 30px;
    text-align: right;
}

.mv__arrows {
    display: inline-flex;
    gap: 6px;
    padding: 10px 20px;
    border: 1.5px solid #ccc;
    border-radius: 50px;
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.mv__arrows__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-violet), var(--color-pink));
    border-radius: 50px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
}

/* 
   Animation timing (10s total):
   - LEFT SIDE (0-35%): triangles appear + fill + hold
   - RIGHT SIDE (35-70%): triangles appear + fill + hold  
   - PAUSE (70-100%): 3s pause
*/

/* Left side animation - fill from left */
.mv__arrows--left .mv__arrows__bg {
    animation: fillBgLeft 10s ease-in-out infinite;
}

/* Right side animation - same direction, delayed */
.mv__arrows--right .mv__arrows__bg {
    animation: fillBgRight 10s ease-in-out infinite;
}

@keyframes fillBgLeft {
    0%, 8% {
        opacity: 0;
        transform: scaleX(0);
    }
    14% {
        opacity: 1;
        transform: scaleX(1);
    }
    30% {
        opacity: 1;
        transform: scaleX(1);
    }
    35% {
        opacity: 0;
        transform: scaleX(0);
    }
    100% {
        opacity: 0;
        transform: scaleX(0);
    }
}

@keyframes fillBgRight {
    0%, 43% {
        opacity: 0;
        transform: scaleX(0);
    }
    49% {
        opacity: 1;
        transform: scaleX(1);
    }
    65% {
        opacity: 1;
        transform: scaleX(1);
    }
    70% {
        opacity: 0;
        transform: scaleX(0);
    }
    100% {
        opacity: 0;
        transform: scaleX(0);
    }
}

.mv__arrows .triangle {
    position: relative;
    z-index: 1;
    display: inline-block;
    transform: scale(0);
    opacity: 0;
}

/* Left side - triangles appear left to right (0-35% of 10s) */
.mv__arrows--left .triangle:nth-child(2) { animation: revealTriangleLeft 10s ease-out infinite; }
.mv__arrows--left .triangle:nth-child(3) { animation: revealTriangleLeft 10s ease-out infinite; animation-delay: 0.15s; }
.mv__arrows--left .triangle:nth-child(4) { animation: revealTriangleLeft 10s ease-out infinite; animation-delay: 0.3s; }
.mv__arrows--left .triangle:nth-child(5) { animation: revealTriangleLeft 10s ease-out infinite; animation-delay: 0.45s; }

/* Right side - same animation, starts after left (35-70% of 10s) */
.mv__arrows--right .triangle:nth-child(2) { animation: revealTriangleRight 10s ease-out infinite; }
.mv__arrows--right .triangle:nth-child(3) { animation: revealTriangleRight 10s ease-out infinite; animation-delay: 0.15s; }
.mv__arrows--right .triangle:nth-child(4) { animation: revealTriangleRight 10s ease-out infinite; animation-delay: 0.3s; }
.mv__arrows--right .triangle:nth-child(5) { animation: revealTriangleRight 10s ease-out infinite; animation-delay: 0.45s; }

@keyframes revealTriangleLeft {
    0% {
        transform: scale(0);
        opacity: 0;
        color: var(--color-text-light);
    }
    3% {
        transform: scale(1);
        opacity: 1;
    }
    8% {
        color: var(--color-text-light);
    }
    14%, 30% {
        transform: scale(1);
        opacity: 1;
        color: white;
    }
    35% {
        transform: scale(0);
        opacity: 0;
        color: var(--color-text-light);
    }
    100% {
        transform: scale(0);
        opacity: 0;
        color: var(--color-text-light);
    }
}

@keyframes revealTriangleRight {
    0%, 35% {
        transform: scale(0);
        opacity: 0;
        color: var(--color-text-light);
    }
    38% {
        transform: scale(1);
        opacity: 1;
    }
    43% {
        color: var(--color-text-light);
    }
    49%, 65% {
        transform: scale(1);
        opacity: 1;
        color: white;
    }
    70% {
        transform: scale(0);
        opacity: 0;
        color: var(--color-text-light);
    }
    100% {
        transform: scale(0);
        opacity: 0;
        color: var(--color-text-light);
    }
}

.mv__timestamp {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-text-dim);
}

.mv__timestamp__label {
    display: block;
}

.mv__timestamp__value {
    display: block;
}

.mv__lang {
    margin-top: 20px;
}

.mv__lang__btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.mv__lang__btn--active {
    background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
    color: white;
}

/* === Side Logo === */
.mv__side {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.mv__side--left { 
    left: 5px;
}

.mv__side--right { 
    right: 5px;
}

.mv__side__logo {
    height: 180px;
    width: auto;
    object-fit: contain;
}

/* Left side: rotate to read top to bottom */
.mv__side--left .mv__side__logo {
    transform: rotate(90deg);
}

/* Right side: rotate to read bottom to top */
.mv__side--right .mv__side__logo {
    transform: rotate(-90deg);
}

/* === Main Visual === */
.mv__visual {
    position: relative;
    width: 100%;
    max-width: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* Script text behind - hidden */
.mv__script {
    display: none;
}

.mv__script__text {
    display: none;
}

/* === Main Title === */
.mv__title {
    position: relative;
    z-index: 10;
    text-align: center;
}

.mv__title__main {
    margin-bottom: 30px;
}

.mv__logo {
    max-width: 900px;
    width: 90vw;
    height: auto;
    display: block;
    margin: 0 auto;
}

.mv__title__sub {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    color: var(--color-text-dim);
    letter-spacing: 0.1em;
}

/* === Bottom Tagline === */
.mv__bottom {
    position: absolute;
    bottom: 30px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-text-dim);
    line-height: 1.6;
}

.mv__bottom--left { left: 30px; }
.mv__bottom--right { right: 30px; text-align: right; }

.mv__bottom span { display: block; }

/* === CTA Button === */
.mv__cta {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
}

.mv__cta__btn {
    display: inline-block;
    padding: 16px 50px;
    background: linear-gradient(
        145deg,
        #f5e6ff 0%,
        #e8d0f5 8%,
        #d4a8e8 16%,
        #c490dc 24%,
        #e8c0f0 32%,
        #f0d4f8 40%,
        #dda8e8 48%,
        #c894d8 56%,
        #e0b8ec 64%,
        #f2e0fa 72%,
        #d8a0e0 80%,
        #ecd0f5 88%,
        #f8eafc 100%
    );
    background-size: 300% 300%;
    color: #6b21a8;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 4px 20px rgba(168, 85, 247, 0.3),
        0 8px 40px rgba(236, 72, 153, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(139, 92, 246, 0.2);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    animation: chrome-btn-shift 4s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 500px;
}

@keyframes chrome-btn-shift {
    0%, 100% { 
        background-position: 0% 50%;
    }
    50% { 
        background-position: 100% 50%;
    }
}

/* Animated purple/pink accent overlay */
.mv__cta__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(236, 72, 153, 0.3) 25%,
        rgba(168, 85, 247, 0.4) 50%,
        rgba(236, 72, 153, 0.3) 75%,
        rgba(255, 255, 255, 0.4) 100%
    );
    background-size: 300% 300%;
    animation: accent-shift 3s ease-in-out infinite;
    border-radius: 30px;
    pointer-events: none;
}

@keyframes accent-shift {
    0%, 100% { 
        background-position: 0% 50%;
        opacity: 0.6;
    }
    50% { 
        background-position: 100% 50%;
        opacity: 1;
    }
}

/* Shine effect */
.mv__cta__btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        100deg,
        transparent 20%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 80%
    );
    animation: shine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shine {
    0%, 70%, 100% {
        left: -150%;
    }
    85% {
        left: 150%;
    }
}

.mv__cta__btn:hover {
    transform: translateY(-4px) rotateX(5deg);
    box-shadow: 
        0 8px 30px rgba(168, 85, 247, 0.5),
        0 15px 60px rgba(236, 72, 153, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(139, 92, 246, 0.3);
}

.mv__cta__btn:active {
    transform: translateY(-1px) rotateX(2deg);
    box-shadow: 
        0 4px 20px rgba(168, 85, 247, 0.4),
        0 8px 35px rgba(236, 72, 153, 0.3),
        inset 0 2px 5px rgba(139, 92, 246, 0.2),
        inset 0 -1px 2px rgba(255, 255, 255, 0.6);
}

/* === Responsive === */
@media (max-width: 768px) {
    .mv__corner--tl,
    .mv__corner--tr,
    .mv__side,
    .mv__bottom {
        display: none;
    }
    
    .mv__title__sub {
        font-size: 1rem;
    }
    
    .mv__cta {
        bottom: 60px;
    }
}
