/* welcome.css */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
}

/* Splash Container & Background Animation */
.welcome-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 50% 50%, var(--primary-main) 0%, var(--primary-dark) 50%, var(--bg-footer) 100%);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 1;
    transform: scale(1);
}

/* Ambient Moving Glows */
.welcome-container::before,
.welcome-container::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, rgba(100, 255, 218, 0.02) 50%, transparent 70%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
    animation: floatGlow 15s infinite alternate ease-in-out;
}

.welcome-container::after {
    background: radial-gradient(circle, rgba(100, 255, 218, 0.03) 0%, rgba(212, 175, 55, 0.03) 50%, transparent 70%);
    animation: floatGlow 20s infinite alternate-reverse ease-in-out;
    animation-delay: -5s;
}

@keyframes floatGlow {
    0% {
        transform: translate(-10%, -10%) scale(1);
    }
    100% {
        transform: translate(10%, 10%) scale(1.2);
    }
}

/* Floating Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background-color: var(--accent-gold);
    opacity: 0.15;
    animation: floatUp 8s infinite linear;
}

/* Dynamic positions/sizes for particles */
.particle:nth-child(1) { left: 10%; width: 4px; height: 4px; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; width: 6px; height: 6px; animation-duration: 18s; animation-delay: -3s; }
.particle:nth-child(3) { left: 45%; width: 3px; height: 3px; animation-duration: 10s; animation-delay: -1s; }
.particle:nth-child(4) { left: 70%; width: 5px; height: 5px; animation-duration: 15s; animation-delay: -5s; }
.particle:nth-child(5) { left: 85%; width: 7px; height: 7px; animation-duration: 22s; animation-delay: -2s; }
.particle:nth-child(6) { left: 95%; width: 4px; height: 4px; animation-duration: 14s; animation-delay: -7s; }

@keyframes floatUp {
    0% {
        transform: translateY(100vh) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.25;
    }
    90% {
        opacity: 0.25;
    }
    100% {
        transform: translateY(-10vh) translateX(20px) scale(0.5);
        opacity: 0;
    }
}

/* Splash Card & Contents */
.welcome-card {
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 580px;
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius-lg);
    background: rgba(17, 34, 64, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: cardEntrance 1.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Emblem SVG & Animation */
.emblem-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.emblem-svg {
    width: 100px;
    height: 100px;
}

.emblem-circle {
    fill: none;
    stroke: var(--accent-gold);
    stroke-width: 1.5;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawStroke 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.emblem-scales {
    fill: none;
    stroke: var(--accent-gold);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawStroke 2.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

@keyframes drawStroke {
    to {
        stroke-dashoffset: 0;
    }
}

/* Animated Logo Text */
.welcome-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: transparent;
    background: linear-gradient(135deg, #FFF 30%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.15);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
    animation: textSpreading 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.logo-divider {
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    margin-bottom: 0.75rem;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
    animation: expandDivider 1.5s cubic-bezier(0.25, 1, 0.5, 1) 0.8s forwards;
}

.logo-sub {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.6em;
    color: var(--accent-gold);
    text-transform: uppercase;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    margin-right: -0.6em; /* offsets trailing letter-spacing */
    animation: subEntrance 1.5s cubic-bezier(0.25, 1, 0.5, 1) 1.2s forwards;
}

@keyframes textSpreading {
    0% {
        letter-spacing: 0.1em;
        filter: blur(5px);
    }
    100% {
        letter-spacing: 0.3em;
        filter: blur(0);
    }
}

@keyframes expandDivider {
    to {
        width: 120px;
    }
}

@keyframes subEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slogan */
.welcome-slogan {
    font-size: 1rem;
    color: var(--text-gray);
    letter-spacing: 0.05em;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0;
    animation: fadeInElement 1.5s ease 1.6s forwards;
}

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

/* Button & Hover Glow */
.btn-enter {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1.1rem 2.8rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-white);
    background: transparent;
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 0 rgba(212, 175, 55, 0);
    opacity: 0;
    animation: fadeInElement 1.5s ease 2s forwards;
}

.btn-enter span {
    z-index: 2;
    position: relative;
}

.btn-enter i {
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}

.btn-enter::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 1;
}

.btn-enter:hover {
    color: #0A192F;
    border-color: transparent;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.btn-enter:hover::before {
    width: 300px;
    height: 300px;
}

.btn-enter:hover i {
    transform: translateX(4px);
}

/* Fade Out State for Transition */
.welcome-container.fade-out {
    opacity: 0 !important;
    transform: scale(0.95) !important;
}
