@import url('https://fonts.googleapis.com/css2?family=Aladin&family=Comfortaa:wght@300..700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --moss-green: #7d9b76;
    --moss-green-rgb: 125, 155, 118;
    --sunset-orange: #f6ad55;
    --sunset-orange-rgb: 246, 173, 85;
    --cloud-blue: #a8c7dc;
    --cloud-blue-rgb: 168, 199, 220;
    --misty-white: #f7f7f7;
    --misty-white-rgb: 247, 247, 247;
    --dark-overlay: rgba(0, 0, 0, 0.5);
}

body, html {
    font-family: 'Aladin', system-ui;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-size: 2rem;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    color: var(--misty-white);
}

.container {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    object-fit: cover;
    filter: brightness(0.8) blur(1px) saturate(1.2);
    opacity: 1;
    transition: all 1.5s ease;
    transform: scale(1.05);
    will-change: transform;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:none;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 2s ease;
    z-index: 5;
}

.logo-placeholder {
    width: 220px;
    height: 220px;
    background-color: rgba(255, 255, 255);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    letter-spacing: 4px;
    color: var(--misty-white);
    box-shadow: 0 0 60px rgba(124, 172, 212, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    object-fit: cover;
}
.logo-placeholder img{
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.logo-placeholder::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(255, 255, 255, 0) 70%
    );
    animation: shimmer 8s infinite linear;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Content Overlay */
.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.75) 0%, 
        rgba(0, 0, 0, 0.5) 40%, 
        rgba(0, 0, 0, 0.75) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* Custom radial gradient overlay for more depth */
.content-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        transparent 30%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: -1;
}

/* Story Container */
.story-container {
    max-width: 800px;
    width: 90%;
    text-align: left;
    position: relative;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    z-index: 10;
    background: linear-gradient(to right, 
        rgba(6, 6, 6, 0.2) 24%, transparent);
    backdrop-filter: blur(24px);
    border-radius:0;
    border-left: 2px solid rgba(var(--sunset-orange-rgb, 246, 173, 85), 0.2);
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.story-line {
    position: absolute;
    width: 100%;
    font-weight: 300;
    font-size: clamp(1.3rem, 3vw, 2rem);
    line-height: 1.7;
    letter-spacing: 0.7px;
    color: var(--misty-white);
    opacity: 0;
    transform: translateY(20px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    padding: 0 30px;
}

/* Skip Button */
.skip-button {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: none;
    backdrop-filter: blur(12px);
    color: var(--misty-white);
    border: none;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.skip-button:hover {
    background: rgba(var(--sunset-orange-rgb, 246, 173, 85), 0.2);
    transform: translateY(-3px);
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(var(--sunset-orange-rgb, 246, 173, 85), 0.4);
}

.skip-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Logo */
.studio-logo {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
    margin-bottom: 60px;
    background: var(--misty-white);
    border-radius: 24px;
}

.studio-logo img {
    width: 200px;
    height: auto;
}

/* Magical Elements */
.firefly, .leaf {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.firefly {
    width: 4px;
    height: 4px;
    background: var(--sunset-orange);
    box-shadow: 0 0 10px 2px var(--sunset-orange);
    animation: float 20s infinite linear;
}

.leaf {
    width: 10px;
    height: 15px;
    background-color: var(--moss-green);
    clip-path: ellipse(50% 100% at 50% 100%);
    animation: leafFloat 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--moveX), var(--moveY)) scale(0.2);
        opacity: 0;
    }
}

@keyframes leafFloat {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translate(var(--moveX), var(--moveY)) rotate(360deg) scale(0.2);
        opacity: 0;
    }
}

/* Loading Progress */
.loading-progress {
    position: absolute;
    bottom: 40px;
    left: 40px;
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--cloud-blue);
    transition: width 0.5s linear;
}

/* Audio Controls */
.audio-control {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    color: var(--misty-white);
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.audio-control:hover {
    opacity: 1;
}

.audio-icon {
    width: 24px;
    height: 24px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .story-line {
        font-size: clamp(1rem, 4vw, 1.4rem);
        padding: 0 30px;
    }

    .skip-button {
        bottom: 30px;
        right: 30px;
        padding: 10px 20px;
        font-size: 14px;
    }

    .loading-progress {
        bottom: 30px;
        left: 30px;
        width: 150px;
    }

    .audio-control {
        top: 30px;
        right: 30px;
    }
}

/* Fade In Animation for Initial Elements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 2s forwards;
}

/* Story Line Animation Classes */
.story-line.active {
    animation: fadeInUp 1s forwards, stayVisible 2.7s forwards 1s, fadeOutUp 0.8s forwards 3.7s;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes stayVisible {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

/* Additional Animations */
@keyframes float-subtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float-subtle 5s infinite ease-in-out;
}

/* Pulse Animation */
@keyframes pulse {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.1); }
}