/**
 * ThemisAevra Visual Enhancements
 * Smooth transitions, hover effects, and micro-interactions
 */

/* === SMOOTH TRANSITIONS === */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Disable transitions for specific elements */
canvas,
video,
img {
    transition: none !important;
}

/* === ENHANCED HOVER STATES === */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

/* === GLASS MORPHISM ENHANCEMENT === */
.glass {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(17, 25, 40, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.125);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass:hover {
    background: rgba(17, 25, 40, 0.85);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 32px 0 rgba(59, 130, 246, 0.2);
}

/* === LOADING ANIMATION === */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(59, 130, 246, 0.1);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === IMPROVED FOCUS STATES === */
button:focus,
input:focus,
select:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* === CARD HOVER EFFECTS === */
.job-card,
.spec-item,
.stat-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover,
.spec-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}

/* === LINK UNDERLINE ANIMATION === */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* === SCROLL REVEAL ENHANCEMENT === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* === BUTTON PRESS EFFECT === */
button:active,
.cta-button:active {
    transform: scale(0.98);
}

/* === IMPROVED SCROLLBAR === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* === PULSE ANIMATION FOR IMPORTANT ELEMENTS === */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.status-ok {
    animation: pulse 2s ease-in-out infinite;
}

/* === MOBILE OPTIMIZATIONS === */
@media (max-width: 768px) {
    .glass {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .reveal {
        transform: translateY(20px);
    }
}