* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a1a;
    color: #fff;
    min-height: 100vh;
    padding: 2rem;
}

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

.components-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .components-grid {
        grid-template-columns: 1fr;
    }
}

.component {
    background: #252525;
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.component:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.component h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #888;
    font-weight: 300;
}

h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 200;
    font-size: 2.5rem;
}

h2 {
    margin-bottom: 1.5rem;
    font-weight: 300;
    color: #888;
}

/* Morphing Button */
.morph-button {
    position: relative;
    width: 150px;
    height: 50px;
    font-size: 1.1rem;
    background: #2196f3;
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.morph-button.success {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #4CAF50;
}

.button-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.checkmark {
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.morph-button.success .button-text {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.morph-button.success .checkmark {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Melting Slider */
.slider-container {
    position: relative;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.melting-slider {
    position: relative;
    width: 100%;
    height: 20px;
    -webkit-appearance: none;
    background: transparent;
    z-index: 2;
}

.melting-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 40px;
    height: 40px;
    background: #2196f3;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.3);
    transition: transform 0.2s ease;
    z-index: 3;
}

.melting-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider-liquid-container {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-liquid {
    position: absolute;
    height: 100%;
    left: 0;
    background: #2196f3;
    border-radius: 10px;
    transition: width 0.3s ease-out;
    filter: url('#goo');
}

.droplets {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.droplet {
    position: absolute;
    background: #2196f3;
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Particle Button */
.particle-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: #ff4081;
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: visible;
    transition: transform 0.2s ease;
}

.particle-button:hover {
    transform: scale(1.05);
}

.particle {
    position: fixed;
    pointer-events: none;
    background: #ff4081;
    border-radius: 50%;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Jelly Toggle */
.jelly-toggle {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 40px;
    cursor: pointer;
}

.jelly-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-bubble {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    border-radius: 40px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toggle-bubble:before {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

input:checked + .toggle-bubble {
    background-color: #2196f3;
}

input:checked + .toggle-bubble:before {
    transform: translateX(40px) scale(1.2);
}

.toggle-bubble:active:before {
    transform: scale(1.3);
}

input:checked + .toggle-bubble:active:before {
    transform: translateX(40px) scale(1.3);
}

/* New Component: Magnetic Button */
.magnetic-button {
    position: relative;
    padding: 1rem 2rem;
    background: #9c27b0;
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.magnetic-button::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(45deg, #9c27b0, #e91e63);
    border-radius: inherit;
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.magnetic-button:hover::after {
    opacity: 1;
}

/* New Component: Glowing Input */
.glow-input-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.glow-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.glow-input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.3);
}

.glow-input + .glow {
    position: absolute;
    inset: -4px;
    border-radius: 12px;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), 
                              rgba(33, 150, 243, 0.2), 
                              transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-input:focus + .glow {
    opacity: 1;
}

/* New Component: Ripple Checkbox */
.ripple-checkbox {
    position: relative;
    width: 120px;
    height: 120px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.ripple-checkbox input {
    display: none;
}

.checkbox-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 4px solid #444;
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ripple-checkbox input:checked + .checkbox-circle {
    border-color: #4CAF50;
    background: #4CAF50;
    transform: rotate(-45deg);
}

.checkbox-circle::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle at center, 
        rgba(76, 175, 80, 0.2),
        transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ripple-checkbox:hover .checkbox-circle::before {
    opacity: 1;
}

.checkbox-circle::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 15px;
    border: 4px solid white;
    border-top: 0;
    border-right: 0;
    transform: translate(-50%, -70%) rotate(-45deg) scale(0);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ripple-checkbox input:checked + .checkbox-circle::after {
    transform: translate(-50%, -70%) rotate(-45deg) scale(1);
    opacity: 1;
}

.ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.4);
    transform: scale(0);
    opacity: 1;
    animation: ripple 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* New Component: Floating Label */
.float-label-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.float-label-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.float-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #666;
    pointer-events: none;
    transition: all 0.3s ease;
}

.float-label-input:focus + .float-label,
.float-label-input:not(:placeholder-shown) + .float-label {
    top: 0;
    font-size: 0.8rem;
    padding: 0 0.5rem;
    background: #1a1a1a;
    color: #2196f3;
}

.float-label-input:focus {
    border-color: #2196f3;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.2);
}

/* Shaking Bell */
.bell-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bell {
    color: #FFD700;
    transform-origin: 50% 0;
    transition: color 0.3s ease;
}

.notification-dot {
    position: absolute;
    top: 25%;
    right: 25%;
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff4444;
}

.bell-container:hover .bell {
    animation: shake 0.5s ease-in-out;
    color: #FFA500;
}

@keyframes shake {
    0% { transform: rotate(0); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-15deg); }
    60% { transform: rotate(7deg); }
    80% { transform: rotate(-7deg); }
    100% { transform: rotate(0); }
}

/* Liquid Loader */
.liquid-loader {
    position: relative;
    width: 120px;
    height: 120px;
    background: #1a1a1a;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
    border: 4px solid #03a9f4;
    box-shadow: inset 0 0 20px rgba(3, 169, 244, 0.3);
}

.liquid-wave {
    position: absolute;
    width: 200%;
    height: 200%;
    top: 50%;
    left: -50%;
    background: #03a9f4;
    transform-origin: 50% 48%;
    animation: liquid-wave 5s infinite linear;
}

.liquid-wave:nth-child(1) {
    border-radius: 40%;
    opacity: 0.8;
}

.liquid-wave:nth-child(2) {
    border-radius: 35%;
    opacity: 0.6;
    animation-duration: 7s;
    animation-direction: reverse;
}

.liquid-drops {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.liquid-drop {
    position: absolute;
    width: 16px;
    height: 16px;
    background: rgba(3, 169, 244, 0.8);
    border-radius: 50%;
    transform-origin: 50% 50%;
    filter: url('#goo');
}

.liquid-drop:nth-child(1) {
    top: 20%;
    left: 30%;
    animation: liquid-float 2s infinite ease-in-out;
}

.liquid-drop:nth-child(2) {
    top: 35%;
    left: 50%;
    animation: liquid-float 2.2s infinite ease-in-out -0.5s;
}

.liquid-drop:nth-child(3) {
    top: 25%;
    left: 70%;
    animation: liquid-float 1.8s infinite ease-in-out -1s;
}

.liquid-drop:nth-child(4) {
    top: 40%;
    left: 25%;
    animation: liquid-float 2.4s infinite ease-in-out -1.5s;
}

.liquid-drop:nth-child(5) {
    top: 20%;
    left: 60%;
    animation: liquid-float 2s infinite ease-in-out -0.8s;
}

.liquid-drop:nth-child(6) {
    top: 30%;
    left: 45%;
    animation: liquid-float 2.6s infinite ease-in-out -1.2s;
}

@keyframes liquid-wave {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes liquid-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(20px) scale(1.1);
        opacity: 1;
    }
}

.liquid-loader::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 30%,
        rgba(3, 169, 244, 0.2) 40%,
        rgba(3, 169, 244, 0.4) 50%,
        rgba(3, 169, 244, 0.2) 60%,
        transparent 70%
    );
    animation: liquid-shine 3s infinite linear;
    z-index: 3;
}

@keyframes liquid-shine {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Neon Text */
.neon-text {
    position: relative;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.neon-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-shadow: 
        0 0 10px #0fa,
        0 0 20px #0fa,
        0 0 30px #0fa,
        0 0 40px #0fa;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: neon-pulse 1.5s infinite alternate;
}

.neon-text:hover::before {
    opacity: 1;
}

@keyframes neon-pulse {
    0% {
        filter: brightness(100%) blur(1px);
    }
    100% {
        filter: brightness(200%) blur(2px);
    }
}

.neon-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 45%, 
        rgba(15, 255, 170, 0.3) 50%,
        transparent 55%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: neon-shine 3s linear infinite;
}

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

/* Floating Card */
.floating-card {
    width: 300px;
    height: 200px;
    margin: 0 auto;
    perspective: 1000px;
}

.card-content {
    width: 100%;
    height: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #6b73ff 0%, #000dff 100%);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

.card-content h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
    transform: translateZ(20px);
}

.card-content p {
    color: rgba(255, 255, 255, 0.8);
    transform: translateZ(15px);
}

/* Spiral Progress */
.spiral-progress {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.spiral-progress svg {
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.3));
}

.spiral-track, .spiral-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.spiral-track {
    stroke: rgba(255, 255, 255, 0.1);
}

.spiral-fill {
    stroke: #00ff88;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.05s linear;
}

.spiral-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Typing Effect */
.typing-container {
    display: flex;
    align-items: center;
    height: 60px;
    margin: 0 auto;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.typing-text {
    font-size: 24px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
}

.typing-cursor {
    width: 3px;
    height: 24px;
    margin-left: 4px;
    background-color: #fff;
    animation: cursor-blink 1s step-end infinite;
    box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff;
}

@keyframes cursor-blink {
    from, to {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Code Block Styles */
.code-block {
    display: none;
    background: #1d1f21;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    max-height: 400px;
    overflow-y: auto;
    margin: 0;
}

.code-block.active {
    display: block;
}

.code-block code {
    font-family: 'Fira Code', Consolas, Monaco, 'Andale Mono', monospace;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    tab-size: 4;
    hyphens: none;
}

.code-block::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-block::-webkit-scrollbar-track {
    background: #1d1f21;
    border-radius: 4px;
}

.code-block::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 4px;
}

.code-block::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Override Prism.js styles */
pre[class*="language-"] {
    margin: 0;
    padding: 0;
    background: transparent;
}

code[class*="language-"] {
    text-shadow: none;
    padding: 0;
}

/* Code Button */
.code-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
    transition: color 0.3s ease;
    z-index: 1;
}

.code-button:hover {
    color: #00ff88;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #1a1a1a;
    margin: 50px auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
}

.close-modal:hover {
    color: #00ff88;
}

.modal-title {
    margin-bottom: 20px;
    color: #fff;
}

.code-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-button {
    background: none;
    border: none;
    padding: 8px 16px;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
}

.tab-button.active {
    background: #00ff88;
    color: #000;
}

.code-content {
    background: #000;
    border-radius: 8px;
    padding: 15px;
}

.code-block {
    display: none;
    margin: 0;
    white-space: pre-wrap;
    color: #fff;
    font-family: monospace;
}

.code-block.active {
    display: block;
}
