/* ============================================
   TRAK3D — Premium Animation System
   Beyaz Tema — Tüm Platform Uyumlu
   ============================================ */

/* ============ Product Card Transitions — Premium ============ */
.product-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05),
                0 20px 48px rgba(0,0,0,0.08);
}

/* ============ Category Cards — Premium ============ */
.trak3d-cat-card,
.category-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease;
}

.trak3d-cat-card:hover,
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05),
                0 20px 48px rgba(0,0,0,0.08);
}

/* ============ Service / Feature Cards ============ */
.service-card,
.feature-item {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(100, 99, 203, 0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

/* ============ Promo Box — Premium ============ */
.promo-box {
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.promo-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05),
                0 20px 48px rgba(0,0,0,0.08);
}

/* ============ Button Effects — Premium ============ */
.btn,
button[type="submit"] {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s ease,
                background 0.2s ease,
                color 0.2s ease;
}

/* ============ Nav Link Hover ============ */
.nav-link {
    position: relative;
    transition: color 0.3s ease, background 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #6463cb;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
    left: 50%;
    transform: translateX(-50%);
}

/* ============ Keyframe Animations ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes slideInRight {
    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);
    }
}

/* ============ Pulse Animation ============ */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============ Particle Float ============ */
@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0) scale(0); }
    20% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-200px) scale(1); }
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #6463cb;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s infinite;
}

/* ============ Shimmer Effect ============ */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(100, 99, 203, 0.04) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

/* ============ Glow Pulse ============ */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(100, 99, 203, 0.15); }
    50% { box-shadow: 0 0 30px rgba(100, 99, 203, 0.3); }
}

/* ============ Badge Pulse (sadece gösterildiğinde) ============ */
.cart-count,
.compare-count {
    animation: badgePulse 0.4s ease-out 1;
}

@keyframes badgePulse {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ============ Hover Glow Effect ============ */
.hover-glow {
    transition: box-shadow 0.4s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(100, 99, 203, 0.2),
                0 0 40px rgba(100, 99, 203, 0.1);
}

/* ============ Card Image Zoom — Subtle ============ */
.product-card img,
.category-card img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover img {
    transform: scale(1.06);
}

.category-card:hover img {
    transform: scale(1.04);
}

/* ============ Footer Link Animation ============ */
.footer a {
    transition: color 0.3s ease, padding-left 0.3s ease;
}

/* ============ Loading Skeleton ============ */
.skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f0f1f3 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* ============ Smooth Scroll ============ */
html {
    scroll-behavior: smooth;
}

/* ============ Tilt.js ============ */
[data-tilt] {
    transform-style: preserve-3d;
}

/* ============ AOS Override ============ */
[data-aos] {
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ============ Popular Product Sidebar — Subtle ============ */
.popular-product-item {
    transition: background 0.2s ease;
}

.popular-product-item:hover {
    background: #f9fafb !important;
}

/* ============ Marquee Animation ============ */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

/* ============ Scroll Line Indicator ============ */
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============ Stagger Animation Utility ============ */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-item.animated {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0ms; }
.stagger-item:nth-child(2) { animation-delay: 80ms; }
.stagger-item:nth-child(3) { animation-delay: 160ms; }
.stagger-item:nth-child(4) { animation-delay: 240ms; }
.stagger-item:nth-child(5) { animation-delay: 320ms; }
.stagger-item:nth-child(6) { animation-delay: 400ms; }
.stagger-item:nth-child(7) { animation-delay: 480ms; }
.stagger-item:nth-child(8) { animation-delay: 560ms; }

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

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }

    .particle {
        display: none;
    }
}
