/* Custom CSS for Grey FX Studio */

:root {
    --primary: #0F172A;
    --accent: #6366F1;
    --highlight: #22C55E;
    --text-light: #F8FAFC;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--primary);
    color: var(--text-light);
    cursor: none;
    /* For custom cursor */
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(99, 102, 241, 0.5);
    /* Accent color with opacity */
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, border-color 0.2s;
    transition-timing-function: ease-out;
    transition-duration: 0.15s;
}

.cursor-hover .cursor-dot {
    width: 0px;
    height: 0px;
}

.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    border-color: var(--highlight);
    background-color: rgba(34, 197, 94, 0.1);
}

/* Hide cursor on touch devices */
@media (hover: none) and (pointer: coarse) {

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    body {
        cursor: auto;
    }
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
}

.glass-panel-hover:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.2);
}

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #F8FAFC 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #818CF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transition: width 0.3s ease;
}

.btn-primary:hover::before {
    width: 100%;
}