/* Custom CSS for Frag & Frame Web Experience */

/* Dark mode custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #05070f;
}
::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* Background grid overlay */
.grid-overlay {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 95%);
}

/* Custom glow shapes */
.glow-spot {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

/* Glassmorphism utility cards */
.glass-panel {
    background: rgba(13, 19, 33, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
}

.glass-panel:hover {
    border-color: rgba(0, 242, 254, 0.2);
}

/* Tech card styles */
.tech-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(11, 15, 25, 0.9);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(99, 102, 241, 0.08);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.tech-card:hover::before {
    opacity: 1;
}

.tech-card > * {
    position: relative;
    z-index: 1;
}

/* Custom clip-paths for tech corners */
.clip-corner {
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

/* Animation utilities */
@keyframes border-glow {
    0%, 100% {
        border-color: rgba(99, 102, 241, 0.2);
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
    }
    50% {
        border-color: rgba(99, 102, 241, 0.5);
        box-shadow: 0 0 25px rgba(99, 102, 241, 0.3);
    }
}

.glow-border-animate {
    animation: border-glow 6s infinite;
}

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}
