@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    /* Important since it's forwards */
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Glassmorphism Shine */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    transition: all 0.7s ease;
}

.shine-effect:hover::after {
    left: 200%;
}

/* 3D Transform Utilities for Cards */
.perspect-container {
    perspective: 1000px;
}

.transform-style-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.transform-style-3d:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.25);
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #8b5cf6;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(139, 92, 246, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hover effects for cursor */
.cursor-hover {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(139, 92, 246, 0.1);
    mix-blend-mode: difference;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* Animated Gradient Border for products */
@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.animated-border {
    position: relative;
    background: #121212;
    background-clip: padding-box;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(from var(--angle), transparent 70%, #8b5cf6 100%);
    z-index: -1;
    animation: rotate-border 4s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.animated-border:hover::before {
    opacity: 1;
}

@keyframes rotate-border {
    to {
        --angle: 360deg;
    }
}