/* Enhanced Frontend Animations and Visual Effects */

/* ===== ADVANCED ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 217, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 217, 255, 0.6), 0 0 60px rgba(0, 217, 255, 0.3); }
}

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

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

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

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

@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ===== ENHANCED LINK STYLES ===== */
.link-item {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slide-up 0.6s ease forwards;
    opacity: 0;
}

.link-item:nth-child(1) { animation-delay: 0.1s; }
.link-item:nth-child(2) { animation-delay: 0.2s; }
.link-item:nth-child(3) { animation-delay: 0.3s; }
.link-item:nth-child(4) { animation-delay: 0.4s; }
.link-item:nth-child(5) { animation-delay: 0.5s; }
.link-item:nth-child(n+6) { animation-delay: 0.6s; }

.link-item::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.5s;
}

.link-item:hover::before {
    left: 100%;
}

.link-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.3);
}

/* Featured/Spotlight links with special effects */
.link-item.featured {
    background: linear-gradient(135deg, 
        rgba(0, 217, 255, 0.1) 0%, 
        rgba(255, 0, 110, 0.1) 100%
    );
    border: 2px solid rgba(0, 217, 255, 0.5);
    animation: glow 3s ease-in-out infinite;
}

.link-item.featured::after {
    content: '⭐';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    animation: bounce-subtle 2s ease-in-out infinite;
}

/* ===== PROFILE HEADER ENHANCEMENTS ===== */
.profile-avatar {
    position: relative;
    animation: scale-in 0.8s ease forwards;
}

.profile-avatar::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00d9ff, #ff006e, #00d9ff);
    background-size: 300% 300%;
    animation: gradient-shift 3s ease infinite;
    z-index: -1;
    filter: blur(8px);
}

.profile-name {
    background: linear-gradient(135deg, #ffffff 0%, #00d9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slide-up 0.8s ease 0.2s forwards;
    opacity: 0;
}

.profile-bio {
    animation: slide-up 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* ===== VIDEO EMBED ENHANCEMENTS ===== */
.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    animation: scale-in 0.6s ease forwards;
}

.video-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(255, 0, 110, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.video-container:hover::before {
    opacity: 1;
}

/* ===== PRODUCT CARD ENHANCEMENTS ===== */
.product-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 217, 255, 0.2);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== FAQ ENHANCEMENTS ===== */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question {
    position: relative;
    padding-left: 30px;
}

.faq-question::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.faq-answer {
    animation: slide-up 0.3s ease;
}

/* ===== COUNTDOWN ENHANCEMENTS ===== */
.countdown-container {
    background: linear-gradient(135deg, 
        rgba(0, 217, 255, 0.1) 0%, 
        rgba(255, 0, 110, 0.1) 100%
    );
    border: 2px solid rgba(0, 217, 255, 0.3);
    animation: glow 4s ease-in-out infinite;
}

.countdown-digit {
    background: rgba(0, 217, 255, 0.2);
    border: 1px solid rgba(0, 217, 255, 0.5);
    border-radius: 8px;
    padding: 10px;
    min-width: 60px;
    text-align: center;
    font-weight: 800;
    font-size: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #00d9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== GRID GALLERY ENHANCEMENTS ===== */
.grid-gallery {
    display: grid;
    gap: 10px;
    animation: slide-up 0.6s ease forwards;
}

.grid-gallery.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-gallery.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    transition: all 0.3s ease;
}

.grid-gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.grid-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-gallery-item:hover img {
    transform: scale(1.1);
}

/* ===== SLIDER/CAROUSEL ENHANCEMENTS ===== */
.swiper-slide {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.swiper-slide-active {
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    background: rgba(0, 217, 255, 0.2);
    backdrop-filter: blur(10px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 217, 255, 0.4);
    transform: scale(1.1);
}

/* ===== TESTIMONIAL ENHANCEMENTS ===== */
.testimonial {
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid rgba(0, 217, 255, 0.5);
    border-radius: 8px;
    animation: slide-up 0.6s ease forwards;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 60px;
    color: rgba(0, 217, 255, 0.2);
    font-family: Georgia, serif;
}

.testimonial-author {
    font-weight: 700;
    color: #00d9ff;
}

/* ===== FORM ENHANCEMENTS ===== */
.form-input {
    position: relative;
    transition: all 0.3s ease;
}

.form-input:focus-within {
    transform: translateY(-2px);
}

.form-input input,
.form-input textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    transition: all 0.3s ease;
    font-size: 16px; /* Prevent iOS zoom */
}

.form-input input:focus,
.form-input textarea:focus {
    outline: none;
    border-color: #00d9ff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.form-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.submit-button {
    background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

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

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

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HOVER EFFECTS FOR SOCIAL ICONS ===== */
.social-icon {
    transition: all 0.3s ease;
    position: relative;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
}

.social-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00d9ff, #ff006e);
    opacity: 0;
    z-index: -1;
    filter: blur(8px);
    transition: opacity 0.3s;
}

.social-icon:hover::after {
    opacity: 0.5;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .link-item:hover {
        transform: scale(1.02);
    }
    
    .product-card:hover {
        transform: translateY(-4px);
    }
}

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

/* ===== FOCUS STYLES FOR KEYBOARD NAVIGATION ===== */
*:focus-visible {
    outline: 2px solid #00d9ff;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00d9ff, #ff006e);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00b8d4, #d4005a);
    background-clip: padding-box;
}
