@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-in-up {
    animation: slideInUp 0.5s ease-out;
}

.slide-in-down {
    animation: slideInDown 0.5s ease-out;
}

.typing-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--color-cyan);
    animation: typing 2s steps(10) 1s forwards, blink 0.75s step-end infinite;
}

.glitch {
    position: relative;
    animation: glitch 0.5s ease-in-out infinite alternate;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--color-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch 0.5s ease-in-out infinite alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--color-pink);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch 0.5s ease-in-out 0.1s infinite alternate-reverse;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    color: var(--color-cyan);
}

.hero-section {
    position: relative;
}

.hero-content {
    text-align: center;
    animation: slideInUp 1s ease-out;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-purple), var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(20px);
    opacity: 0.5;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-gray-400);
    font-family: var(--font-mono);
    margin-bottom: var(--spacing-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.projects-empty {
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ghost-container {
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.ghost {
    font-size: 8rem;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.5));
}

.empty-text {
    font-size: 1.5rem;
    color: var(--color-gray-400);
    font-family: var(--font-mono);
    margin-bottom: var(--spacing-md);
}

.empty-subtext {
    font-size: 1.25rem;
    color: var(--color-gray-500);
    font-family: var(--font-mono);
    animation: pulse 2s infinite;
}

.empty-hint {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    font-family: var(--font-mono);
    margin-top: var(--spacing-md);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .ghost {
        font-size: 5rem;
    }
}