/* Splash Screen - Professional with Final Screen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #0a0f1a;
    overflow: hidden;
}

/* Magazine Style Collage Container */
.professional-collage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 1fr;
    gap: 8px;
    padding: 8px;
    background: #0a0f1a;
    z-index: 1;
    transition: opacity 0.8s ease;
}

.professional-collage.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Collage Items - Clean frames */
.collage-item {
    position: relative;
    overflow: hidden;
    background: #1a1f2a;
    border: 2px solid #2a2f3a;
    border-radius: 8px;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fixed sizes that don't overlap */
.collage-item.size-small {
    grid-column: span 1;
    grid-row: span 1;
}

.collage-item.size-medium {
    grid-column: span 2;
    grid-row: span 1;
}

.collage-item.size-tall {
    grid-column: span 1;
    grid-row: span 2;
}

.collage-item.size-large {
    grid-column: span 2;
    grid-row: span 2;
}

.collage-item.size-wide {
    grid-column: span 3;
    grid-row: span 1;
}

.collage-item.size-big {
    grid-column: span 3;
    grid-row: span 2;
}

/* Logo Items */
.collage-item.logo-item {
    background: rgba(25, 35, 50, 0.9);
    border: 2px solid #3a4a6a;
}

.collage-item.logo-item img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 0;
}

/* Fade Animation */
.collage-item.fade-out img {
    animation: itemFadeOut 0.5s ease forwards;
}

@keyframes itemFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.collage-item.fade-in img {
    animation: itemFadeIn 0.5s ease forwards;
}

@keyframes itemFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Final Screen - Gradient Background + Logo + Slogan */
.final-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0b2b44 0%, #123456 50%, #1a5f9e 100%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.final-screen.active {
    opacity: 1;
    visibility: visible;
}

.final-content {
    text-align: center;
    animation: contentFloat 0.8s ease-out;
}

@keyframes contentFloat {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.final-logo {
    width: 220px;
    height: 220px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto;
}

.final-logo.active {
    opacity: 1;
    transform: scale(1);
}

.final-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Animated Slogan */
.final-slogan {
    margin-top: 30px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.3s;
}

.final-screen.active .final-slogan {
    opacity: 1;
    transform: translateY(0);
}

.slogan-text {
    display: block;
    font-size: 1.4rem;
    font-weight: 500;
    color: white;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff, #ffb347);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlow 2s ease-in-out infinite;
    position: relative;
}

.slogan-year {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffb347;
    margin-top: 8px;
    letter-spacing: 1px;
    position: relative;
    padding: 0 15px;
}

.slogan-year::before,
.slogan-year::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #ffb347;
    opacity: 0.7;
}

.slogan-year::before {
    left: -5px;
}

.slogan-year::after {
    right: -5px;
}

@keyframes textGlow {
    0% {
        opacity: 0.8;
        letter-spacing: 2px;
    }
    50% {
        opacity: 1;
        letter-spacing: 3px;
    }
    100% {
        opacity: 0.8;
        letter-spacing: 2px;
    }
}

/* Subtle underline animation */
.slogan-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffb347, transparent);
    animation: lineExpand 1.5s ease-in-out infinite;
}

@keyframes lineExpand {
    0% {
        width: 0;
        opacity: 0;
    }
    50% {
        width: 80%;
        opacity: 1;
    }
    100% {
        width: 0;
        opacity: 0;
    }
}

/* Overlay */
.splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(10,15,26,0.2) 0%, rgba(10,15,26,0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Skip Button */
.skip-splash {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 8px 22px;
    border-radius: 40px;
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.skip-splash:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Fade Out Animation for entire screen */
.splash-screen.fade-out {
    animation: fadeOutScreen 0.8s ease forwards;
}

@keyframes fadeOutScreen {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .professional-collage {
        gap: 6px;
        padding: 6px;
    }
    
    .collage-item {
        border-width: 1.5px;
    }
    
    .final-logo {
        width: 160px;
        height: 160px;
        padding: 15px;
    }
    
    .slogan-text {
        font-size: 1.1rem;
    }
    
    .slogan-year {
        font-size: 1rem;
    }
    
    .final-slogan {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .professional-collage {
        gap: 4px;
        padding: 4px;
    }
    
    .collage-item {
        border-width: 1px;
    }
    
    .final-logo {
        width: 130px;
        height: 130px;
        padding: 12px;
    }
    
    .slogan-text {
        font-size: 0.9rem;
    }
    
    .slogan-year {
        font-size: 0.85rem;
    }
    
    .final-slogan {
        margin-top: 15px;
    }
}