/* ===== VISUAL ENHANCEMENTS - XPERTIA ===== */

/* Glassmorphism Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Improved Gradients */
.gradient-primary {
    background: linear-gradient(135deg, #5ba5d8 0%, #72a9dc 50%, #4a90c8 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Animated Background Gradients */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient {
    background: linear-gradient(-45deg, #5ba5d8, #72a9dc, #4a90c8, #3d8ab8);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

/* Enhanced Shadows */
.shadow-soft {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.shadow-hard {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.shadow-colored {
    box-shadow: 0 15px 50px rgba(91, 165, 216, 0.3);
}

/* Hover Lift Effect */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Glow Effects */
.glow-blue {
    box-shadow: 0 0 20px rgba(91, 165, 216, 0.5);
}

.glow-blue:hover {
    box-shadow: 0 0 30px rgba(91, 165, 216, 0.8);
}

/* Pulse Animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(91, 165, 216, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(91, 165, 216, 0.8);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Floating Animation */
@keyframes float-smooth {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float-smooth 6s ease-in-out infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* Enhanced Card Styles */
.card-modern {
    background: white;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(91, 165, 216, 0.3);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #5ba5d8, #72a9dc, #4a90c8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Neon Glow Text */
@keyframes neon-glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(91, 165, 216, 0.5),
                     0 0 20px rgba(91, 165, 216, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(91, 165, 216, 0.8),
                     0 0 40px rgba(91, 165, 216, 0.5),
                     0 0 60px rgba(91, 165, 216, 0.3);
    }
}

.neon-text {
    animation: neon-glow 2s ease-in-out infinite;
}

/* Modern Button Styles */
.btn-modern {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #5ba5d8, #72a9dc);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(91, 165, 216, 0.4);
}

/* Icon Animations */
@keyframes icon-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.icon-animated {
    display: inline-block;
    transition: all 0.3s ease;
}

.icon-animated:hover {
    animation: icon-bounce 0.6s ease;
}

/* Particles Background Effect */
.particles-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(91, 165, 216, 0.3);
    border-radius: 50%;
    animation: float-particle 20s infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Progress Bar */
.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #5ba5d8, #72a9dc);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    animation: shimmer 2s infinite;
}

/* Tooltip Modern */
.tooltip-modern {
    position: relative;
}

.tooltip-modern::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    opacity: 0;
}

.tooltip-modern:hover::before {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* Badge Modern */
.badge-modern {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #5ba5d8, #72a9dc);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(91, 165, 216, 0.3);
}

/* Skeleton Loading */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 0px,
        #e0e0e0 40px,
        #f0f0f0 80px
    );
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
}

/* Image Zoom on Hover */
.image-zoom {
    overflow: hidden;
    border-radius: 15px;
}

.image-zoom img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-zoom:hover img {
    transform: scale(1.1) rotate(2deg);
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #5ba5d8, #72a9dc);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Responsive Spacing */
.spacing-modern {
    padding: clamp(20px, 5vw, 80px) 0;
}

/* Section Dividers */
.section-divider {
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(91, 165, 216, 0.5),
        transparent
    );
    margin: 60px 0;
}

/* Improved Typography */
.text-hero {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.6;
    color: #666;
}

/* Enhanced Focus States */
*:focus-visible {
    outline: 3px solid rgba(91, 165, 216, 0.5);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Smooth Transitions for Everything */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .card-modern:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .hover-lift:hover {
        transform: translateY(-5px);
    }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    .card-modern {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
