/* VenMaze Links Page - Advanced Styling */

/* Enhanced Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(109, 40, 217, 0.3); }
    50% { box-shadow: 0 0 30px rgba(109, 40, 217, 0.6); }
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Image Enhancement */
.profile-image {
    animation: float 3s ease-in-out infinite;
}

.profile-image:hover {
    animation: pulse-glow 1.5s ease-in-out infinite;
}

/* Advanced Link Card Styling */
.link-card {
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

.link-card:hover::before {
    left: 100%;
}

/* Service Badge Enhancements */
.service-badge {
    animation: slide-in-up 0.6s ease forwards;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-badge:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Category Heading Enhancements */
.category-heading {
    position: relative;
    transition: all 0.3s ease;
}

.category-heading:hover {
    color: #6D28D9;
    transform: scale(1.05);
}

.category-heading::after {
    transition: width 0.3s ease;
}

.category-heading:hover::after {
    width: 60px;
}

/* Search Input Advanced Styling */
.search-input {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
}

/* Icon Wrapper Enhancements */
.icon-wrapper {
    position: relative;
    overflow: hidden;
}

.icon-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.link-card:hover .icon-wrapper::after {
    width: 100%;
    height: 100%;
}

/* Responsive Enhancements */
@media (max-width: 480px) {
    .service-badge {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
    
    .link-card {
        padding: 12px;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    .link-card {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.08);
    }
    
    .search-input {
        background: rgba(255, 255, 255, 0.06);
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .profile-image,
    .service-badge,
    .category-heading {
        animation: none;
    }
    
    .link-card::before,
    .icon-wrapper::after {
        transition: none;
    }
}

/* Focus Indicators */
.link-card:focus-visible {
    outline: 2px solid #6D28D9;
    outline-offset: 2px;
}

.social-icon:focus-visible {
    outline: 2px solid #6D28D9;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .link-card {
        border-width: 2px;
        border-color: #ffffff;
    }
    
    .service-badge {
        background: #ffffff;
        color: #000000;
        border: 2px solid #000000;
    }
}

/* Print Styles */
@media print {
    .loading-screen,
    .back-to-top,
    .search-container {
        display: none !important;
    }
    
    .link-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(109, 40, 217, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(109, 40, 217, 0.7);
}

/* Selection Styling */
::selection {
    background: rgba(109, 40, 217, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(109, 40, 217, 0.3);
    color: white;
}
