/* Gameboltly - Bright & Playful Theme */

/* Variables */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --purple: #aa96da;
    --pink: #fcbad3;
    --orange: #ff9a76;
    --bg-light: #ffffff;
    --bg-gray: #f8f9fa;
    --text-dark: #2d3436;
    --text-gray: #636e72;
    --border-color: #e9ecef;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    transition: transform 0.3s;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 2rem;
    animation: rotate 10s linear infinite;
}

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

.logo-accent {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.3s;
}

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

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-color);
    top: 50%;
    right: -150px;
    animation-delay: -5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--purple);
    bottom: -100px;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientMove 5s ease infinite;
}

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

.hero-description {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--orange));
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.btn-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(5px);
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.hero-features {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-icon {
    font-size: 2rem;
}

.feature-text {
    font-weight: 700;
    color: var(--text-dark);
}

/* Categories Section */
.categories-section {
    padding: 6rem 0;
    background: var(--bg-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-color);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:active {
    transform: translateY(-5px) scale(0.98);
}

.category-shine {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--card-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.category-card:hover .category-shine {
    opacity: 0.1;
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-gray);
    font-weight: 600;
}

/* Components Section */
.components-section {
    padding: 6rem 0;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.filter-btn {
    padding: 0.875rem 1.75rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-gray);
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--orange));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.component-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    display: block;
}

.component-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.component-preview {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.component-preview.dark {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.component-info {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.component-info h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.component-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--orange));
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Demo Component Styles */

/* 3D Flip Card */
.demo-flip-card {
    width: 150px;
    height: 120px;
    perspective: 1000px;
}

.flip-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    animation: autoFlip 4s ease-in-out infinite;
}

@keyframes autoFlip {
    0%, 40% { transform: rotateY(0); }
    50%, 90% { transform: rotateY(180deg); }
    100% { transform: rotateY(0); }
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.2rem;
}

.flip-card-front {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.flip-card-back {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    transform: rotateY(180deg);
}

/* Rotating Cube */
.demo-cube {
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 10s linear infinite;
}

@keyframes rotateCube {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

.cube-face {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 107, 107, 0.9);
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: white;
}

.cube-face.front { transform: translateZ(50px); }
.cube-face.back { transform: rotateY(180deg) translateZ(50px); }
.cube-face.right { transform: rotateY(90deg) translateZ(50px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(50px); }
.cube-face.top { transform: rotateX(90deg) translateZ(50px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(50px); }

/* 3D Sphere */
.demo-sphere {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #4ecdc4, #1a535c);
    box-shadow: 
        inset -25px -25px 40px rgba(0, 0, 0, 0.5),
        0 20px 40px rgba(78, 205, 196, 0.3);
    animation: sphereFloat 3s ease-in-out infinite;
}

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

/* 3D Text */
.demo-text-3d {
    font-size: 3rem;
    font-weight: 900;
    color: #ff6b6b;
    text-shadow: 
        1px 1px 0 #ff8787,
        2px 2px 0 #ffa3a3,
        3px 3px 0 #ffbfbf,
        4px 4px 0 #ffdbdb,
        5px 5px 10px rgba(0, 0, 0, 0.3);
    animation: text3dMove 3s ease-in-out infinite;
}

@keyframes text3dMove {
    0%, 100% { transform: rotateY(-10deg) rotateX(5deg); }
    50% { transform: rotateY(10deg) rotateX(-5deg); }
}

/* Perspective Scroll */
.demo-perspective {
    display: flex;
    gap: 10px;
    perspective: 500px;
}

.perspective-item {
    width: 60px;
    height: 80px;
    background: linear-gradient(135deg, #aa96da, #fcbad3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    animation: perspectiveMove 2s ease-in-out infinite;
}

.perspective-item:nth-child(2) { animation-delay: 0.2s; }
.perspective-item:nth-child(3) { animation-delay: 0.4s; }

@keyframes perspectiveMove {
    0%, 100% { transform: rotateY(0) translateZ(0); }
    50% { transform: rotateY(20deg) translateZ(30px); }
}

/* 3D Navigation */
.demo-nav-3d {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff6b6b, #ff9a76);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    transform: perspective(500px) rotateX(10deg);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.4);
    transition: transform 0.3s;
}

.demo-nav-3d:hover {
    transform: perspective(500px) rotateX(0deg) translateY(-5px);
}

/* Particle Burst */
.demo-particle-burst {
    position: relative;
    width: 100px;
    height: 100px;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #4ecdc4;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    animation: burst 2s ease-out infinite;
}

.particle:nth-child(1) { animation-delay: 0s; }
.particle:nth-child(2) { animation-delay: 0.4s; }
.particle:nth-child(3) { animation-delay: 0.8s; }
.particle:nth-child(4) { animation-delay: 1.2s; }
.particle:nth-child(5) { animation-delay: 1.6s; }

@keyframes burst {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(calc(-50% + 50px), calc(-50% - 50px)) scale(1); opacity: 0; }
}

/* Starfield */
.demo-starfield {
    width: 100%;
    height: 100%;
    position: relative;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; }
.star:nth-child(2) { top: 60%; left: 70%; animation-delay: 1s; }
.star:nth-child(3) { top: 40%; left: 50%; animation-delay: 2s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Firework */
.demo-firework {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    position: relative;
}

.demo-firework::before,
.demo-firework::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #ffe66d;
    border-radius: 50%;
    animation: firework 2s ease-out infinite;
}

.demo-firework::after {
    animation-delay: 1s;
}

@keyframes firework {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(5); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(10); opacity: 0; }
}

/* Meteor */
.demo-meteor {
    width: 100%;
    height: 100%;
    position: relative;
}

.demo-meteor::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 80%;
    width: 3px;
    height: 50px;
    background: linear-gradient(to bottom, white, transparent);
    transform: rotate(-45deg);
    animation: meteor 3s linear infinite;
}

@keyframes meteor {
    0% { transform: translateX(0) translateY(0) rotate(-45deg); opacity: 1; }
    100% { transform: translateX(200px) translateY(200px) rotate(-45deg); opacity: 0; }
}

/* DNA Helix */
.demo-dna {
    width: 80px;
    height: 120px;
    min-width: 80px;
    min-height: 120px;
    position: relative;
}

.demo-dna::before,
.demo-dna::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #4ecdc4;
    border-radius: 50%;
    animation: dnaRotate 3s linear infinite;
}

.demo-dna::after {
    background: #ff6b6b;
    animation-delay: -1.5s;
}

@keyframes dnaRotate {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(35px) translateY(30px); }
    50% { transform: translateX(0) translateY(60px); }
    75% { transform: translateX(-35px) translateY(90px); }
    100% { transform: translateX(0) translateY(120px); }
}

/* Liquid Button */
.demo-liquid-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4ecdc4, #44a3a0);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.demo-liquid-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: liquidMove 3s linear infinite;
}

@keyframes liquidMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50%, 50%); }
}

/* Shape Morph */
.demo-shape-morph {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ff6b6b, #ff9a76);
    animation: shapeMorph 4s ease-in-out infinite;
}

@keyframes shapeMorph {
    0%, 100% { border-radius: 50%; }
    25% { border-radius: 0; }
    50% { border-radius: 50% 0 50% 0; }
    75% { border-radius: 0 50% 0 50%; }
}

/* Text Liquify */
.demo-text-liquify {
    font-size: 2rem;
    font-weight: 900;
    color: #4ecdc4;
    animation: liquify 3s ease-in-out infinite;
}

@keyframes liquify {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.3) scaleX(0.8); }
}

/* Wave Border */
.demo-wave-border {
    width: 120px;
    height: 80px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.demo-wave-border::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    animation: wave 3s linear infinite;
    border-radius: 40%;
}

@keyframes wave {
    0% { transform: translateX(0) translateY(50%); }
    100% { transform: translateX(-50%) translateY(50%); }
}

/* Elastic Menu */
.demo-elastic-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-elastic-menu span {
    width: 40px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 4px;
    animation: elastic 2s ease-in-out infinite;
}

.demo-elastic-menu span:nth-child(2) { animation-delay: 0.2s; }
.demo-elastic-menu span:nth-child(3) { animation-delay: 0.4s; }

@keyframes elastic {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(1.5); }
}

/* More demo styles would continue here... */

/* Game-like Components */
.demo-typewriter {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    border-right: 3px solid var(--primary-color);
    padding-right: 5px;
    animation: typing 4s steps(8) infinite;
}

@keyframes typing {
    0%, 100% { width: 0; }
    50% { width: 100%; }
}

.demo-color-match {
    display: flex;
    gap: 10px;
}

.color-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    animation: colorChange 3s ease-in-out infinite;
}

.color-box:nth-child(1) { background: #ff6b6b; animation-delay: 0s; }
.color-box:nth-child(2) { background: #4ecdc4; animation-delay: 1s; }
.color-box:nth-child(3) { background: #ffe66d; animation-delay: 2s; }

@keyframes colorChange {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.demo-puzzle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    width: 100px;
    height: 100px;
}

.puzzle-piece {
    background: linear-gradient(135deg, #aa96da, #fcbad3);
    border-radius: 4px;
    animation: puzzleMove 4s ease-in-out infinite;
}

.puzzle-piece:nth-child(1) { animation-delay: 0s; }
.puzzle-piece:nth-child(2) { animation-delay: 0.5s; }
.puzzle-piece:nth-child(3) { animation-delay: 1s; }
.puzzle-piece:nth-child(4) { animation-delay: 1.5s; }

@keyframes puzzleMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, 10px); }
}

.demo-flip-memory {
    display: flex;
    gap: 10px;
}

.memory-card {
    width: 50px;
    height: 70px;
    background: linear-gradient(135deg, #ff6b6b, #ff9a76);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    animation: cardFlip 3s ease-in-out infinite;
}

.memory-card:nth-child(2) { animation-delay: 1.5s; }

@keyframes cardFlip {
    0%, 40%, 100% { transform: rotateY(0); }
    50%, 90% { transform: rotateY(180deg); }
}

.demo-progress-quest {
    width: 150px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    overflow: hidden;
}

.quest-bar {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4, #44a3a0);
    border-radius: 15px;
    animation: questProgress 3s ease-in-out infinite;
}

@keyframes questProgress {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

/* Creative UI Components */
.demo-music-player {
    width: 120px;
    height: 120px;
    position: relative;
}

.player-disc {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b, #ff9a76);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 20px;
    animation: discRotate 3s linear infinite;
}

.player-disc::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
}

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

.player-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
}

.demo-weather-card {
    width: 120px;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #4ecdc4, #44a3a0);
    border-radius: 16px;
    text-align: center;
    color: white;
}

.weather-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.weather-temp {
    font-size: 1.5rem;
    font-weight: 700;
}

.demo-chat-bubble {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #aa96da, #fcbad3);
    color: white;
    border-radius: 20px 20px 20px 0;
    font-weight: 600;
    position: relative;
    animation: bubbleBounce 2s ease-in-out infinite;
}

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

.demo-timeline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-dot {
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.timeline-dot:nth-child(3) { animation-delay: 1s; }

@keyframes dotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.5); }
}

.timeline-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.demo-gauge {
    width: 100px;
    height: 50px;
    border: 4px solid var(--primary-color);
    border-bottom: none;
    border-radius: 100px 100px 0 0;
    position: relative;
}

.gauge-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 3px;
    height: 40px;
    background: var(--primary-color);
    transform-origin: bottom center;
    animation: gaugeMove 3s ease-in-out infinite;
}

@keyframes gaugeMove {
    0%, 100% { transform: translateX(-50%) rotate(-45deg); }
    50% { transform: translateX(-50%) rotate(45deg); }
}

/* Advanced Animation Components */
.demo-path-animation {
    width: 100px;
    height: 100px;
    position: relative;
}

.path-dot {
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    animation: pathMove 4s ease-in-out infinite;
}

@keyframes pathMove {
    0% { top: 0; left: 0; }
    25% { top: 0; left: 85px; }
    50% { top: 85px; left: 85px; }
    75% { top: 85px; left: 0; }
    100% { top: 0; left: 0; }
}

.demo-keyframe-art {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #ffe66d, #aa96da);
    background-size: 400% 400%;
    border-radius: 50%;
    animation: artMove 5s ease infinite;
}

@keyframes artMove {
    0%, 100% { background-position: 0% 50%; border-radius: 50%; }
    25% { background-position: 100% 50%; border-radius: 0%; }
    50% { background-position: 100% 100%; border-radius: 50% 0 50% 0; }
    75% { background-position: 0% 100%; border-radius: 0 50% 0 50%; }
}

.demo-svg-morph svg {
    width: 80px;
    height: 80px;
}

.demo-svg-morph circle {
    fill: var(--secondary-color);
    animation: svgMorph 3s ease-in-out infinite;
}

@keyframes svgMorph {
    0%, 100% { r: 30; }
    50% { r: 40; }
}

.demo-css-painting {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    background: 
        linear-gradient(90deg, transparent 45%, var(--primary-color) 45%, var(--primary-color) 55%, transparent 55%),
        linear-gradient(0deg, transparent 45%, var(--secondary-color) 45%, var(--secondary-color) 55%, transparent 55%);
    animation: paintingRotate 4s linear infinite;
}

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

/* Footer */
.site-footer {
    background: var(--bg-gray);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-gray);
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-gray);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .components-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s;
        pointer-events: none;
        box-shadow: var(--shadow);
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-section {
        padding: 5rem 0 4rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        justify-content: center;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .components-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}
