/* Tailwind Configuration Bridges */
@theme {
    --color-surface-container-low: #141e14;
    --color-on-surface: #dae6d5;
    --color-surface-card: #161616;
    --color-surface: #0c160c;
    --color-border-muted: #2A2A2A;
    --color-primary-container: #00ff66;
    --color-secondary-container: #00e0ff;
    --color-background: #0c160c;
    --color-primary: #edffe8;
    --color-electric-purple: #CC00FF;
    --color-on-primary: #003911;
    --color-on-surface-variant: #b9ccb5;
}

/* Glassmorphism Card Style */
.glass-card {
    background: rgba(22, 22, 22, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(42, 42, 42, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    border-color: #00ff66;
    box-shadow: 0 10px 30px rgba(0, 255, 102, 0.15);
    transform: translateY(-8px);
}

/* Neon Glow Effect */
.neon-glow {
    text-shadow: 0 0 15px rgba(0, 255, 102, 0.6);
}

/* Reveal Elements on Scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar Hover Border Effect */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00ff66;
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* Magnetic Link Interactive Effect */
.magnetic-link {
    display: inline-block;
    transition: transform 0.2s ease-out;
    transform: translate(var(--mx, 0), var(--my, 0));
}

/* Custom Pulse Animation */
@keyframes pulse-ring {
    0% { transform: scale(.95); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(.95); opacity: 0.6; }
}

.animate-pulse-custom {
    animation: pulse-ring 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Interactive Shader Canvas Behind Content */
#shader-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Accessibility: Support for Reduced Motion Users */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        transition: none;
        opacity: 1;
        transform: none;
    }
    .animate-pulse-custom, .glass-card:hover {
        animation: none;
        transform: none;
    }
    .magnetic-link {
        transform: none !important;
    }
}