.transition-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

.transition-container.active {
    visibility: visible;
}

.logo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.transition-container.active .logo-wrapper {
    transform: scale(1);
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.circle-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300%;
    height: 300%;
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transform: scale(0);
    opacity: 0;
}

.circle:nth-child(1) { width: 100%; height: 100%; }
.circle:nth-child(2) { width: 80%; height: 80%; animation-delay: 0.1s; }
.circle:nth-child(3) { width: 60%; height: 60%; animation-delay: 0.2s; }

.transition-container.active .circle {
    animation: circleExpand 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a237e, #283c92);
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.transition-container.active .transition-overlay {
    opacity: 0.97;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0;
}

@keyframes circleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

@keyframes particle {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translate(50%, 50%) scale(1);
        opacity: 0;
    }
}

.page-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-content.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.page-content.fade-in {
    opacity: 0;
    transform: translateY(20px);
}