

/* UI Enhancements - Modern Design Updates */

/* ============================================
   ENHANCED ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ============================================
   ENHANCED BUTTONS
   ============================================ */

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* Button Variants */
.btn-gradient {
    background: linear-gradient(135deg, #8B5CF6, #EC4899, #F97316);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.btn-glow {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    animation: glow 2s ease-in-out infinite;
}

.btn-3d {
    box-shadow: 0 5px 0 #6d28d9, 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
}

.btn-3d:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #6d28d9, 0 10px 25px rgba(0, 0, 0, 0.4);
}

.btn-3d:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #6d28d9, 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ============================================
   ENHANCED CARDS
   ============================================ */

.card-enhanced {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899, #F97316);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.card-enhanced:hover::before {
    opacity: 1;
}

.card-enhanced:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
}

/* Card with Shine Effect */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s;
}

.card-shine:hover::after {
    left: 100%;
}

/* ============================================
   ENHANCED NAVIGATION
   ============================================ */

.navbar {
    backdrop-filter: blur(20px);
    background: rgba(10, 14, 39, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu a {
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8B5CF6, #EC4899);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

/* ============================================
   ENHANCED SECTIONS
   ============================================ */

.section-enhanced {
    position: relative;
    padding: 100px 0;
}

.section-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 92, 246, 0.5),
        transparent
    );
}

/* Parallax Background */
.parallax-bg {
    position: relative;
    overflow: hidden;
}

.parallax-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(139, 92, 246, 0.1) 0%,
        transparent 70%
    );
    animation: rotate 20s linear infinite;
}

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

/* ============================================
   ENHANCED TEXT EFFECTS
   ============================================ */

.text-gradient-animated {
    background: linear-gradient(
        90deg,
        #8B5CF6,
        #EC4899,
        #F97316,
        #8B5CF6
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.text-glow {
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.8),
                 0 0 40px rgba(139, 92, 246, 0.4);
}

.text-3d {
    text-shadow: 
        1px 1px 0 #6d28d9,
        2px 2px 0 #5b21b6,
        3px 3px 0 #4c1d95,
        4px 4px 10px rgba(0, 0, 0, 0.5);
}

/* ============================================
   ENHANCED FORMS
   ============================================ */

.form-group-enhanced input,
.form-group-enhanced select,
.form-group-enhanced textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.form-group-enhanced input:focus,
.form-group-enhanced select:focus,
.form-group-enhanced textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #8B5CF6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1),
                0 0 20px rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

/* Floating Label Effect */
.form-floating {
    position: relative;
}

.form-floating label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.5);
}

.form-floating input:focus + label,
.form-floating input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.75rem;
    background: #0A0E27;
    padding: 0 0.5rem;
    color: #8B5CF6;
}

/* ============================================
   ENHANCED LOADING STATES
   ============================================ */

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8B5CF6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   ENHANCED TOOLTIPS
   ============================================ */

.tooltip-enhanced {
    position: relative;
    cursor: help;
}

.tooltip-enhanced::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 0.5rem 1rem;
    background: rgba(10, 14, 39, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip-enhanced::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(139, 92, 246, 0.5);
    opacity: 0;
    transition: all 0.3s ease;
}

.tooltip-enhanced:hover::before,
.tooltip-enhanced:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* ============================================
   ENHANCED BADGES
   ============================================ */

.badge-enhanced {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.badge-glow {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6),
                0 0 40px rgba(139, 92, 246, 0.3);
}

/* ============================================
   ENHANCED PROGRESS BARS
   ============================================ */

.progress-bar-enhanced {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B5CF6, #EC4899, #F97316);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: gradientFlow 2s ease infinite;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

/* ============================================
   ENHANCED DIVIDERS
   ============================================ */

.divider-gradient {
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #8B5CF6,
        #EC4899,
        #F97316,
        transparent
    );
    margin: 3rem 0;
}

.divider-animated {
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #8B5CF6,
        transparent
    );
    background-size: 200% 100%;
    animation: gradientFlow 3s ease infinite;
}

/* ============================================
   ENHANCED SCROLL INDICATORS
   ============================================ */

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B5CF6, #EC4899, #F97316);
    transform-origin: left;
    z-index: 9999;
}

/* ============================================
   ENHANCED MODALS
   ============================================ */

.modal-enhanced {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(139, 92, 246, 0.3);
    animation: scaleIn 0.3s ease;
}

/* ============================================
   ENHANCED GRID LAYOUTS
   ============================================ */

.grid-enhanced {
    display: grid;
    gap: 2rem;
    animation: fadeInUp 0.6s ease;
}

.grid-enhanced > * {
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.grid-enhanced > *:nth-child(1) { animation-delay: 0.1s; }
.grid-enhanced > *:nth-child(2) { animation-delay: 0.2s; }
.grid-enhanced > *:nth-child(3) { animation-delay: 0.3s; }
.grid-enhanced > *:nth-child(4) { animation-delay: 0.4s; }
.grid-enhanced > *:nth-child(5) { animation-delay: 0.5s; }
.grid-enhanced > *:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   ENHANCED IMAGES
   ============================================ */

.img-enhanced {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
}

.img-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.3),
        rgba(236, 72, 153, 0.3)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.img-enhanced:hover::before {
    opacity: 1;
}

.img-enhanced:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 768px) {
    .card-enhanced:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .btn:hover {
        transform: translateY(-1px);
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

.focus-visible:focus {
    outline: 3px solid #8B5CF6;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
