/* Showcase Page Specific Styles */
.showcase-page {
    background: var(--bg-dark);
    min-height: 100vh;
}

.showcase-nav {
    display: flex;
    gap: 2rem;
}

.showcase-nav a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.showcase-nav a:hover {
    color: var(--primary-color);
}

/* Showcase Hero */
.showcase-hero {
    padding: 8rem 0 4rem 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.showcase-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.showcase-hero p {
    font-size: 1.25rem;
    color: var(--text-light);
}

/* Showcase Sections */
.showcase-section {
    padding: 4rem 0;
}

.showcase-section h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-white);
}

/* Animation Grid */
.animation-grid,
.hover-grid,
.font-grid,
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.animation-item,
.hover-item,
.font-item,
.color-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.animation-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.animation-name {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Text Animation Demos */
.demo-fade-in {
    animation: fadeIn 2s ease-out infinite;
}

.demo-slide-left {
    animation: slideInLeft 2s ease-out infinite;
}

.demo-slide-right {
    animation: slideInRight 2s ease-out infinite;
}

.demo-fade-up {
    animation: fadeInUp 2s ease-out infinite;
}

.demo-bounce {
    animation: bounce 2s ease-out infinite;
}

.demo-scale {
    animation: scaleIn 2s ease-out infinite;
}

.demo-rotate {
    animation: rotateIn 2s ease-out infinite;
}

.demo-typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typewriter 4s steps(20) infinite;
}

.demo-glitch {
    position: relative;
    animation: glitch 3s infinite;
}

.demo-scramble {
    animation: none;
}

/* Element Animation Demos */
.demo-float-element,
.demo-pulse-element,
.demo-shake-element,
.demo-flip-element,
.demo-gradient-element,
.demo-glow-element,
.demo-parallax-element,
.demo-morph-element,
.demo-wave-element,
.demo-spin-element {
    width: 100px;
    height: 100px;
    background: var(--bg-gradient);
    border-radius: 10px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.demo-float-element {
    animation: float 3s ease-in-out infinite;
}

.demo-pulse-element {
    animation: pulse 2s ease-in-out infinite;
}

.demo-shake-element {
    animation: shake 2s ease-in-out infinite;
}

.demo-flip-element {
    animation: flip 3s ease-in-out infinite;
}

.demo-gradient-element {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.demo-glow-element {
    animation: glow 2s ease-in-out infinite;
}

.demo-parallax-element {
    transform: translateY(0);
}

.demo-morph-element {
    animation: morph 3s ease-in-out infinite;
}

.demo-wave-element {
    animation: wave 2s ease-in-out infinite;
}

.demo-spin-element {
    animation: spin 2s linear infinite;
}

/* Hover Effect Demos */
.demo-hover-lift,
.demo-hover-glow,
.demo-hover-shadow,
.demo-hover-border,
.demo-hover-fill,
.demo-hover-slide,
.demo-hover-rotate,
.demo-hover-magnetic,
.demo-hover-ripple,
.demo-hover-underline {
    padding: 1rem 2rem;
    background: var(--bg-gradient);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.demo-hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.demo-hover-glow:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.8);
}

.demo-hover-shadow:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.demo-hover-border {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.demo-hover-border:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.demo-hover-fill {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.demo-hover-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
    z-index: -1;
}

.demo-hover-fill:hover {
    color: white;
}

.demo-hover-fill:hover::before {
    width: 100%;
}

.demo-hover-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.demo-hover-slide:hover::before {
    left: 100%;
}

.demo-hover-rotate:hover {
    transform: rotateY(180deg);
}

.demo-hover-magnetic {
    transition: transform 0.3s ease;
}

.demo-hover-ripple {
    position: relative;
}

.demo-hover-underline {
    position: relative;
}

.demo-hover-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.demo-hover-underline:hover::after {
    width: 100%;
}

/* Font Demos */
.font-inter { font-family: 'Inter', sans-serif; }
.font-poppins { font-family: 'Poppins', sans-serif; }
.font-playfair { font-family: 'Playfair Display', serif; }
.font-roboto { font-family: 'Roboto', sans-serif; }
.font-montserrat { font-family: 'Montserrat', sans-serif; }
.font-opensans { font-family: 'Open Sans', sans-serif; }
.font-lato { font-family: 'Lato', sans-serif; }
.font-raleway { font-family: 'Raleway', sans-serif; }
.font-sourcesans { font-family: 'Source Sans Pro', sans-serif; }
.font-bebas { font-family: 'Bebas Neue', cursive; }
.font-space { font-family: 'Space Grotesk', sans-serif; }

.font-item h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.font-item p:not(.animation-name) {
    color: var(--text-light);
    line-height: 1.6;
}

/* Color Palette Demo */
.color-palette {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.color-swatch {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* New Animation Keyframes */
@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes rotateIn {
    from { transform: rotate(-180deg); opacity: 0; }
    to { transform: rotate(0); opacity: 1; }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes glitch {
    0%, 100% { 
        text-shadow: 2px 0 #f00, -2px 0 #0ff;
        transform: translate(0);
    }
    20% {
        text-shadow: 2px 0 #0ff, -2px 0 #f00;
        transform: translate(-2px, 2px);
    }
    40% {
        text-shadow: -2px 0 #f00, 2px 0 #0ff;
        transform: translate(-2px, -2px);
    }
    60% {
        text-shadow: 2px 0 #0ff, -2px 0 #f00;
        transform: translate(2px, -2px);
    }
    80% {
        text-shadow: -2px 0 #f00, 2px 0 #0ff;
        transform: translate(2px, 2px);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

@keyframes flip {
    0%, 100% { transform: perspective(400px) rotateY(0); }
    50% { transform: perspective(400px) rotateY(180deg); }
}

@keyframes morph {
    0%, 100% { border-radius: 10px; }
    25% { border-radius: 50%; }
    50% { border-radius: 10px; transform: rotate(45deg); }
    75% { border-radius: 50%; }
}

@keyframes wave {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(-5deg); }
    75% { transform: translateY(20px) rotate(5deg); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Showcase Footer */
.showcase-footer {
    background: var(--bg-darker);
    padding: 4rem 0;
    text-align: center;
}

.showcase-footer p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.showcase-footer .cta-button {
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .showcase-hero h1 {
        font-size: 2rem;
    }
    
    .animation-grid,
    .hover-grid,
    .font-grid,
    .color-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .showcase-nav {
        display: none;
    }
}