/* ===================================
   San Smart - "The Golden Horizon" Splash Screen
   Premium, Cinematic, and High-Tech
   =================================== */

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Deep Radial Gradient: Lighter Warm Tone (Chocolate/Coffee) fading to Dark Brown */
    background: radial-gradient(circle at center, #463930 0%, #2c231d 50%, #1a1512 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#splash-screen.fade-out {
    opacity: 0;
    transform: scale(1.05);
    /* Slight zoom out on exit for cinematic feel */
    pointer-events: none;
}

/* ===================================
   Atmosphere & Particles
   =================================== */
.splash-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, #ffd700 0%, transparent 60%);
    /* Gold particles */
    border-radius: 50%;
    opacity: 0;
    animation: gold-dust 8s infinite ease-in-out;
}

/* Randomize particles */
.particle:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 3px;
    height: 3px;
    top: 60%;
    left: 70%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 5px;
    height: 5px;
    top: 40%;
    left: 80%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    width: 2px;
    height: 2px;
    top: 80%;
    left: 20%;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    width: 4px;
    height: 4px;
    top: 30%;
    left: 50%;
    animation-delay: 3s;
}

@keyframes gold-dust {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-60px) scale(1.5);
        opacity: 0;
    }
}

/* Subtle Geometric Overlay */
.splash-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 50% 50%, transparent 0%, transparent 98%, rgba(212, 175, 55, 0.05) 100%);
    background-size: 100% 100%;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* ===================================
   Logo Centerpiece - Clean & Floating
   =================================== */
.splash-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    /* Increased gap for elegance */
}

.splash-logo-container {
    position: relative;
    width: 180px;
    /* Larger container */
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

/* The Free-Floating Logo (Box Removed) */
.splash-logo {
    position: relative;
    width: 120px;
    height: 120px;
    /* Box removed: Transparent background and no border */
    background: transparent;
    border: none;
    box-shadow: none;

    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transform-style: preserve-3d;
    animation: float-logo 6s ease-in-out infinite;
}

@keyframes float-logo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.splash-logo img {
    width: 90px;
    /* Larger logo */
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    /* Stronger shadow for depth */
    z-index: 5;
}

/* Rotating "Orbit" Rings - Thinner & More Precise */
.logo-ring {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    /* Slightly stronger gold */
    border-radius: 50%;
    animation: orbit 10s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
}

.logo-ring::after {
    content: '';
    position: absolute;
    top: -2.5px;
    /* Adjusted for alignment */
    left: 50%;
    width: 5px;
    height: 5px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 15px #ffd700;
}

.logo-ring-2 {
    position: absolute;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Visible but subtle */
    border-radius: 50%;
    animation: orbit 15s linear infinite reverse;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes orbit {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Inner Glow - Enhanced for backdrop */
.logo-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    /* Warm gold center glow */
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(25px);
    animation: pulse-light 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse-light {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.15);
    }
}

/* ===================================
   Liquid Gold Typography
   =================================== */
.splash-brand {
    text-align: center;
    position: relative;
    z-index: 5;
}

.splash-brand h1 {
    font-family: 'Cairo', sans-serif;
    font-size: 2.4rem;
    /* Slightly larger */
    font-weight: 900;
    margin: 0 0 0.25rem 0;
    letter-spacing: 1px;

    /* Liquid Gold Gradient Effect */
    background: linear-gradient(90deg,
            #b89b5e 0%,
            #ffd700 20%,
            #fff0c4 50%,
            #ffd700 80%,
            #b89b5e 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

    animation: shimmer-text 4s linear infinite;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@keyframes shimmer-text {
    to {
        background-position: 200% center;
    }
}

.splash-brand p {
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    /* Brighter text */
    margin: 0;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===================================
   Photon Beam Loader
   =================================== */
.splash-loader {
    width: 240px;
    position: relative;
}

.loader-track {
    width: 100%;
    height: 2px;
    /* Ultra thin */
    background: rgba(255, 255, 255, 0.15);
    /* More visible track */
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-progress {
    height: 100%;
    width: 0%;
    /* Neon Gold Beam */
    background: #ffd700;
    box-shadow:
        0 0 10px #ffd700,
        0 0 20px #ffb300;

    position: relative;
    border-radius: 2px;
    transition: width 0.3s ease-out;
}

/* Leading edge of the beam */
.loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(90deg, transparent, #ffffff);
    opacity: 0.8;
}

.loader-text {
    text-align: center;
    margin-top: 1rem;
    font-family: 'Cairo', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 215, 0, 0.9);
    /* Brighter Gold text */
    letter-spacing: 1px;
}

/* ===================================
   Background "Idea" Icons
   =================================== */
.splash-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.08);
    /* Slightly more visible */
    animation: breathe-icon 6s ease-in-out infinite;
    filter: blur(0.5px);
    /* Less blur */
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
    font-size: 2rem;
}

.floating-icon:nth-child(2) {
    top: 25%;
    right: 20%;
    animation-delay: 2s;
    font-size: 1.8rem;
}

.floating-icon:nth-child(3) {
    bottom: 25%;
    left: 25%;
    animation-delay: 4s;
    font-size: 2.2rem;
}

.floating-icon:nth-child(4) {
    bottom: 20%;
    right: 15%;
    animation-delay: 1s;
    font-size: 1.6rem;
}

@keyframes breathe-icon {

    0%,
    100% {
        opacity: 0.04;
        transform: scale(0.9);
    }

    50% {
        opacity: 0.12;
        transform: scale(1.1);
    }
}

/* ===================================
   Preload Animation
   =================================== */
@keyframes reveal {
    0% {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.splash-content {
    animation: reveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}