/* Custom styles for the magical theme */
@keyframes body-pan {
    0% { background-color: #0a0a1a; }
    50% { background-color: #1a0a1a; }
    100% { background-color: #0a0a1a; }
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: #0a0a1a;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    animation: body-pan 20s linear infinite;
}
.font-cinzel {
    font-family: 'Cinzel', serif;
}
#magic-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #fde047; /* yellow-300 */
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-color 0.2s, transform 0.1s;
    z-index: 9999;
}
.cursor-trail {
    width: 8px;
    height: 8px;
    background-color: #fde047;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    transition: transform 0.1s linear, opacity 0.2s;
}
.cursor.hovered {
    width: 50px;
    height: 50px;
    border-color: #8b5cf6; /* violet-500 */
    background-color: rgba(139, 92, 246, 0.1);
}
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Bow and Arrow Navigation Animation */
.nav-link {
    position: relative;
    padding: 8px 0;
    color: #d1d5db; /* gray-300 */
    text-decoration: none;
    transition: color 0.3s;
}
.nav-link:hover {
    color: #fde047; /* yellow-300 */
}
.nav-link .arrow-icon {
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s, left 0.3s;
}
.nav-link:hover .arrow-icon {
    opacity: 1;
    left: -30px;
}
.nav-link .arrow-icon path {
    stroke: #fde047;
    stroke-width: 2;
    fill: none;
    transition: stroke-dasharray 0.4s ease-in-out, stroke-dashoffset 0.4s ease-in-out;
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
}
.nav-link:hover .arrow-icon path {
    stroke-dashoffset: 0;
}

.spell-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid #fde047;
    border-radius: 9999px;
    font-family: 'Cinzel', serif;
    font-size: 0.875rem;
    color: #fde047;
    text-decoration: none;
    transition: all 0.3s ease;
}
.spell-button:hover {
    background-color: rgba(253, 224, 71, 0.2);
    color: #fef08a;
    box-shadow: 0 0 15px rgba(253, 224, 71, 0.4);
}

@keyframes gradient-pan {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animated-gradient {
    background-size: 200% 200%;
    animation: gradient-pan 5s ease infinite;
}

/* "Walking" animation for skill icons */
@keyframes walk {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.skill-icon {
    font-size: 3.5rem; /* 56px */
    transition: transform 0.3s ease;
    animation: walk 4s ease-in-out infinite alternate;
}
.skill-icon:hover {
    transform: scale(1.1) !important; /* Use important to override walking animation */
    animation-play-state: paused;
}
