/* GeoCities-style animations and effects */

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee {
    display: inline-block;
    animation: scroll 15s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.blink {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.holographic-text {
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00, #ff00ff);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holographic-shift 3s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

@keyframes holographic-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.holographic-card {
    position: relative;
    overflow: hidden;
}

.holographic-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent,
        rgba(255, 0, 255, 0.1),
        transparent,
        rgba(0, 255, 255, 0.1),
        transparent
    );
    animation: holographic-sweep 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes holographic-sweep {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.holographic-shimmer {
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%
    );
    background-size: 200% 200%;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 200%; }
    100% { background-position: -200% -200%; }
}

.holographic-border {
    border-image: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00, #ff00ff) 4;
    animation: rainbow-border 3s linear infinite;
}

@keyframes rainbow-border {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.card-frame {
    transition: all 0.3s ease;
}

.card-frame:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.3);
}

/* Starfield animation */
@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.star {
    animation: twinkle 2s infinite;
}

/* Retro scrollbars */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border: 2px inset #333;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #666, #999);
    border: 1px outset #888;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #777, #aaa);
}

/* Retro button effects */
button {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

button:hover {
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transform: translate(1px, 1px);
}

button:active {
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Glow effects for special elements */
.glow-text {
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}

/* Retro input styling */
input, select {
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.3);
}

input:focus, select:focus {
    outline: 2px solid #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}