/* ===== INTRO SPLASH SCREEN ===== */

#intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#intro-overlay.hide {
    animation: introExit 0.9s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes introExit {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* ── background photo ── */
#intro-bg {
    position: absolute;
    inset: 0;
    background: url("Veneza entrada.webp") center center / cover no-repeat;
    transform: scale(1.08);
    animation: introBgFloat 5s ease-out forwards;
    filter: brightness(0.45);
}

@keyframes introBgFloat {
    0%   { transform: scale(1.15) translateY(30px); filter: brightness(0.2) blur(6px); }
    40%  { filter: brightness(0.45) blur(0px); }
    100% { transform: scale(1.04) translateY(0px); filter: brightness(0.45) blur(0px); }
}

/* ── particle canvas ── */
#intro-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* ── content center ── */
#intro-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
}

/* ── logo badge ── */
#intro-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: floatUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

#intro-brand .brand-name {
    font-size: clamp(2.8rem, 9vw, 6rem);
    font-weight: 900;
    letter-spacing: -1px;
    color: #fff;
    text-shadow:
        0 0 30px rgba(29, 78, 216, 0.9),
        0 0 60px rgba(29, 78, 216, 0.5),
        0 4px 20px rgba(0,0,0,0.8);
    line-height: 1;
}

#intro-brand .brand-sub {
    font-size: clamp(1rem, 3.5vw, 1.6rem);
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #93c5fd;
    text-shadow: 0 0 20px rgba(147, 197, 253, 0.7);
    margin-top: 4px;
}

/* ── tagline ── */
#intro-tagline {
    font-size: clamp(0.85rem, 2.5vw, 1.05rem);
    color: rgba(255,255,255,0.75);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: floatUp 0.8s ease-out 1.1s forwards;
    margin: 0;
}

/* ── divider glow ── */
#intro-line {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, #93c5fd, #3b82f6, transparent);
    border-radius: 2px;
    box-shadow: 0 0 12px #3b82f6;
    animation: lineExpand 0.7s ease-out 0.9s forwards;
}

@keyframes lineExpand {
    to { width: clamp(200px, 50vw, 380px); }
}

/* ── progress bar ── */
#intro-progress-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.1);
}

#intro-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #1d4ed8, #60a5fa, #93c5fd);
    box-shadow: 0 0 10px #60a5fa;
    animation: progressFill 3.5s linear 0.3s forwards;
}

@keyframes progressFill {
    to { width: 100%; }
}

/* ── skip button ── */
#intro-skip {
    position: absolute;
    bottom: 28px;
    right: 24px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    opacity: 0;
    animation: fadeIn 0.6s ease 1.4s forwards;
    font-family: inherit;
}

#intro-skip:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: #60a5fa;
    color: #fff;
}

/* ── shared keyframes ── */
@keyframes floatUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ── antigravity floating rings ── */
.intro-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(99, 179, 237, 0.25);
    pointer-events: none;
    animation: ringFloat linear infinite;
}

@keyframes ringFloat {
    0%   { transform: translateY(0) scale(1); opacity: 0.3; }
    50%  { opacity: 0.15; }
    100% { transform: translateY(-110vh) scale(1.4); opacity: 0; }
}

/* ── responsive tweaks ── */
@media (max-width: 480px) {
    #intro-skip {
        bottom: 20px;
        right: 16px;
        font-size: 0.72rem;
        padding: 7px 14px;
    }
}
