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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    /* Beautiful sky gradient */
    background: linear-gradient(135deg, #0b2e59 0%, #1c528f 40%, #57a1d6 80%, #a4dbf8 100%);
    color: #ffffff;
}

#plane-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    pointer-events: none;
    transform: translateX(-2000px); /* Pre-hide entirely offscreen until javascript loads */
}

#smokeCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

#smoke-text {
    position: absolute;
    left: 0; 
    top: 0;
    z-index: 1;
    color: rgba(255, 255, 255, 0); 
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 6px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    transition: color 0.5s ease;
}

#smoke-text.reveal {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.8);
    transition: color 4s ease 1s, text-shadow 4s ease 1s;
}

#smoke-text .red-text {
    color: rgba(255, 50, 50, 0);
    transition: color 0.5s ease;
}

#smoke-text.reveal .red-text {
    color: rgba(255, 50, 50, 0.95);
    transition: color 4s ease 1s;
}


#plane-container img {
    height: 220px;
    width: auto;
    filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.3));
    transform: scaleX(-1) rotate(-5deg);
}

.icon-svg-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-svg {
    width: 32px;
    height: 32px;
    color: rgb(255, 50, 50);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 70%);
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.content.shift-up {
    transform: translateY(calc(var(--drawer-h, 0px) / -2));
}

.fly-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.fly-in.show {
    opacity: 1;
    transform: translateY(0);
    transition-delay: var(--delay);
}

.text-small {
    font-size: 1.5rem;
    letter-spacing: 6px;
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #e0f2fe;
}

.text-large {
    font-size: 8rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 5px;
    background: linear-gradient(to right, #ffffff, #cceeff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-medium {
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: 12px;
    margin-bottom: 50px;
    color: #ffb347;
}

.details {
    display: inline-flex;
    gap: 60px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 60px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.icon {
    font-size: 2.2rem;
}

.detail-item p {
    font-size: 1.3rem;
    font-weight: 500;
}

#drawer-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 90%;
    max-width: 800px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#drawer-container.open {
    transform: translateX(-50%) translateY(0);
}

#pull-tab {
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.05) 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: none;
    padding: 15px 40px 21px 40px;
    border-radius: 25px 25px 0 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transform: translateY(calc(-100% + 6px)); 
    position: absolute;
    top: 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    animation: gentleBounce 2.5s ease-in-out infinite;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(calc(-100% + 6px)); }
    50% { transform: translateY(calc(-100% + 0px)); }
}

#drawer-container.open #pull-tab,
#pull-tab.waiting,
#pull-tab:hover {
    animation: none;
    transform: translateY(calc(-100% + 6px));
}

#pull-tab:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.1) 100%);
    box-shadow: 0 -6px 25px rgba(255, 255, 255, 0.25);
}

#pull-tab span {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #e0f2fe;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    text-transform: uppercase;
}

.location-link {
    color: #ffb347;
    text-decoration: none;
    border-bottom: 2px dashed rgba(255, 179, 71, 0.5);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.location-link:hover {
    color: #ffd700;
    border-bottom: 2px solid #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.arrow-up {
    font-size: 0.8rem;
    color: #ffffff;
    transition: transform 0.4s ease;
}

#drawer-container.open #pull-tab .arrow-up {
    transform: rotate(180deg);
}

.propeller-loader {
    display: none;
    position: relative;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    animation: spinPropeller 0.3s linear infinite;
}

.propeller-loader .blade {
    position: absolute;
    top: 50%; left: 50%;
    width: 20px; height: 4px;
    background: #ffffff;
    border-radius: 2px;
    transform: translate(-50%, -50%);
}

.propeller-loader .blade:nth-child(2) {
    transform: translate(-50%, -50%) rotate(90deg);
}

@keyframes spinPropeller {
    100% { transform: rotate(360deg); }
}

#pull-tab.waiting .arrow-up {
    display: none;
}

#pull-tab.waiting .propeller-loader {
    display: block;
}

.drawer-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    width: 100%;
    padding: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 35px 35px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
}

#drawer-container .details {
    margin-top: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    backdrop-filter: none;
    gap: 40px;
    padding: 0;
    justify-content: center;
    width: 100%;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    /* Scale down large typography to prevent viewport overflow */
    .text-large {
        font-size: 4.5rem;
    }
    .text-medium {
        font-size: 2rem;
        letter-spacing: 6px;
    }
    
    /* Convert horizontal items into a centered vertical list */
    #drawer-container .details {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }

    /* Convert individual detail columns into cleanly aligned rows */
    .detail-item {
        flex-direction: row;
        width: 100%;
        max-width: 300px;
        justify-content: flex-start;
        text-align: left;
        gap: 20px;
    }

    /* Force strict icon width to ensure text cleanly left-aligns in a block */
    .icon-svg-wrapper {
        width: 40px;
        display: flex;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .icon-svg {
        width: 28px;
        height: 28px;
    }

    .detail-item p {
        font-size: 1.15rem;
        margin: 0;
    }

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