/* Page Transition Effects */
.page-transition {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition-out {
    animation: fadeOut 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Content Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Tab Content Transitions */
.tab-content {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.tab-content.hidden {
    opacity: 0;
    pointer-events: none;
}

.tab-content:not(.hidden) {
    opacity: 1;
}

/* Smooth Link Transitions */
a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, color;
}

/* Glass Effect Transitions */
.glass-effect {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

/* Card Hover Transitions */
.image-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

/* Button Transitions */
.tab-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: color, border-color, transform;
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    will-change: transform;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Slogan Animation */
.slogan-container {
    position: relative;
    overflow: hidden;
}

.slogan-text {
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: sloganReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

.slogan-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(59, 130, 246, 0.2),
        transparent
    );
    animation: sloganShine 3s ease-in-out infinite;
    animation-delay: 1s;
}

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

@keyframes sloganShine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
} 