/* Custom styles for Cedric Santiago Portfolio */

/* Blazor Error UI - Hidden by default, shown only on errors */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Remove auto-focus outline on page load */
h1:focus,
h2:focus,
h3:focus,
h4:focus,
h5:focus,
h6:focus {
    outline: none;
}

/* Remove focus outline for non-interactive elements */
div:focus,
section:focus,
span:focus {
    outline: none;
}

/* Keep focus visible for accessibility on interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* Remove tabindex focus outline */
[tabindex]:focus {
    outline: none;
}

/* Prevent blue highlight on tap (mobile) */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Ensure smooth focus transitions */
*:focus {
    transition: outline 0.2s ease;
}

/* Animations for Hero */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.3), 0 0 40px rgba(236, 72, 153, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(14, 165, 233, 0.5), 0 0 80px rgba(236, 72, 153, 0.3);
    }
}

@keyframes morphing-blob {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

@keyframes typing-cursor {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

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

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

.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.animate-ping-slow {
    animation: ping 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.morphing-blob {
    animation: morphing-blob 7s ease-in-out infinite;
}

.typing-cursor {
    animation: typing-cursor 1s step-end infinite;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass-effect {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Text Gradients */
.text-gradient {
    background-image: linear-gradient(to right, #3dd8d8, #4a90a4, #1aa8a8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.text-gradient-2 {
    background-image: linear-gradient(to right, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-gradient-3 {
    background-image: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Navbar blur effect - Exact copy from PHP site */
.nav-blur {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.dark .nav-blur {
    background: rgba(15, 23, 42, 0.8);
}

/* Neon glow effect - Exact copy from PHP site */
.neon-glow {
    text-shadow: 0 0 10px rgba(61, 216, 216, 0.8),
                 0 0 20px rgba(61, 216, 216, 0.6),
                 0 0 30px rgba(61, 216, 216, 0.4),
                 0 0 40px rgba(61, 216, 216, 0.2);
}

.dark .neon-glow {
    text-shadow: 0 0 10px rgba(61, 216, 216, 1),
                 0 0 20px rgba(61, 216, 216, 0.8),
                 0 0 30px rgba(61, 216, 216, 0.6),
                 0 0 40px rgba(61, 216, 216, 0.4);
}

/* Project card shine effect - Exact copy from PHP site */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

/* Custom Cursors - Exact copy from PHP site */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #3dd8d8, #4a90a4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(61, 216, 216, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: all 0.15s ease-out;
}
