/* ========================================
   SPECIAL EFFECTS - Classy & Premium
   ======================================== */

/* 1. SMOOTH SCROLL REVEAL */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    animation: none !important; /* Disable conflicting existing animations */
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.4s; }

/* 2. PREMIUM GLASSMORPHISM CARD ENHANCEMENTS */
.premium-card {
    position: relative;
    overflow: hidden;
    /* Ensure existing styles are preserved, this adds the shine */
}

.premium-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 40%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 60%,
        transparent 100%
    );
    transform: skewX(-25deg);
    transition: left 0.7s ease;
    pointer-events: none;
    z-index: 2;
}

.premium-card:hover::after {
    left: 100%;
    transition: left 1.2s ease-in-out;
}

/* 3. MAGNETIC BUTTON EFFECT */
.magnetic-btn {
    position: relative;
    z-index: 1;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
}

/* 4. TEXT GRADIENT SHIMMER (Subtle) */
.shimmer-text {
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 6s linear infinite;
}

html.theme-dark .shimmer-text {
    background-image: linear-gradient(to right, #00d4ff 0%, #ffffff 50%, #00d4ff 100%);
}

html.theme-light .shimmer-text {
    background-image: linear-gradient(to right, #1F75FE 0%, #000000 50%, #1F75FE 100%);
}

@keyframes textShimmer {
    to {
        background-position: 200% center;
    }
}

/* 5. FLOATING BACKGROUND ELEMENTS (Subtle Parallax) */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* 6. LINK UNDERLINE ANIMATION */
.animated-link {
    position: relative;
    text-decoration: none;
}

.animated-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.animated-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* 7. CUSTOM SCROLLBAR REFINEMENT */
/* Already in CSS, but ensuring it's elegant */
::-webkit-scrollbar-track {
    background: transparent !important; /* Cleaner look */
}

