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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
}

/* Container */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #1a1a1a;
}

/* Debug Controls */
.debug-controls {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.debug-btn {
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid #333333;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.debug-btn:hover {
    background: rgba(50, 50, 50, 0.95);
    border-color: #4c6ef5;
}

.debug-btn i {
    margin-right: 0.5rem;
}

/* Header */
.header {
    padding: 2rem;
    background: #1a1a1a;
    border-bottom: 1px solid #2d2d2d;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.title i {
    color: #4c6ef5;
    font-size: 2rem;
}

.subtitle {
    font-size: 1rem;
    color: #888888;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    width: 100%;
    gap: 0;
    /* Remove max-width constraint for full width */
}

/* Upload Section */
.upload-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.upload-card {
    background: #2d2d2d;
    border: 2px dashed #444444;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
}

.upload-card:hover {
    border-color: #4c6ef5;
    background: #333333;
    transform: translateY(-2px);
}

.upload-card.dragover {
    border-color: #4c6ef5;
    background: rgba(76, 110, 245, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    color: #4c6ef5;
    margin-bottom: 1rem;
}

.upload-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.upload-card p {
    color: #888888;
    font-size: 1rem;
}

.upload-link {
    color: #4c6ef5;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}

.supported-formats {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #444444;
}

.supported-formats span {
    background: #333333;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #888888;
}

/* Header Features */
.header-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-tag {
    background: rgba(76, 110, 245, 0.1);
    color: #4c6ef5;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(76, 110, 245, 0.2);
}

.feature-tag i {
    font-size: 0.75rem;
}

/* Preview Layout - Three Column - FULL WIDTH */
.preview-layout {
    display: none;
    width: 100%;
    height: calc(100vh - 120px);
    /* Make sure it uses full viewport width */
}

.preview-content {
    display: flex;
    height: 100%;
    width: 100%;
}

/* Left Sidebar - Wider for better content display */
.left-sidebar {
    width: 350px;
    background: #2d2d2d;
    border-right: 1px solid #444444;
    overflow-y: auto;
    padding: 1.5rem;
    min-width: 350px;
}

/* Animation Container - Center */
.animation-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.background-controls {
    padding: 1rem 1.5rem;
    background: #2d2d2d;
    border-bottom: 1px solid #444444;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.background-controls label {
    font-weight: 500;
    color: #ffffff;
    font-size: 0.875rem;
}

.color-options {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.color-btn {
    width: 28px;
    height: 28px;
    border: 2px solid #444444;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.color-btn:hover {
    transform: scale(1.1);
    border-color: #4c6ef5;
}

.color-btn.active {
    border-color: #4c6ef5;
    box-shadow: 0 0 0 2px rgba(76, 110, 245, 0.3);
}

.custom-color {
    width: 28px;
    height: 28px;
    border: 2px solid #444444;
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

.transparent-btn {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    position: relative;
    overflow: hidden;
}

.transparent-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
    rgba(255, 255, 255, 0.1) 25%,
    transparent 25%,
    transparent 75%,
    rgba(255, 255, 255, 0.1) 75%),
    linear-gradient(45deg,
            rgba(255, 255, 255, 0.1) 25%,
            transparent 25%,
            transparent 75%,
            rgba(255, 255, 255, 0.1) 75%);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
}

.transparent-btn::after {
    content: "∅";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: #666666;
    z-index: 1;
}

.animation-container {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

#lottieAnimation {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Drag and Drop Overlay for Animation Area */
.drag-drop-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(76, 110, 245, 0.1) !important;
    border: 2px dashed #4c6ef5 !important;
    border-radius: 12px !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important;
    pointer-events: none !important;
    backdrop-filter: blur(2px) !important;
    animation: dragOverlayFadeIn 0.2s ease-out !important;
}

.drag-drop-overlay.show {
    display: flex !important;
}

.drag-drop-content {
    background: rgba(45, 45, 45, 0.95) !important;
    padding: 2rem !important;
    border-radius: 12px !important;
    text-align: center !important;
    color: white !important;
    font-weight: 500 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    transform: scale(0.9) !important;
    animation: dragContentScale 0.2s ease-out forwards !important;
}

.drag-drop-content i {
    font-size: 2rem !important;
    color: #4c6ef5 !important;
    margin-bottom: 1rem !important;
    display: block !important;
}

.drag-drop-content .drag-text {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
}

.drag-drop-content .drag-subtext {
    font-size: 0.875rem !important;
    color: #888 !important;
}

@keyframes dragOverlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(2px);
    }
}

@keyframes dragContentScale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Action Buttons */
.action-buttons {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.upload-new-btn,
.download-btn {
    background: rgba(45, 45, 45, 0.95);
    color: #ffffff;
    border: 1px solid #555555;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.upload-new-btn:hover {
    background: rgba(76, 110, 245, 0.95);
    border-color: #4c6ef5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 110, 245, 0.3);
}

.download-btn:hover {
    background: rgba(16, 185, 129, 0.95);
    border-color: #10b981;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.download-btn:disabled {
    background: rgba(107, 114, 128, 0.7);
    border-color: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

/* Controls - Bottom of Animation Area */
.controls {
    padding: 1rem 1.5rem;
    background: #2d2d2d;
    border-top: 1px solid #444444;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    background: #4c6ef5;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.control-btn:hover {
    background: #3b5ce6;
    transform: scale(1.05);
}

.loop-btn {
    background: #10b981;
}

.loop-btn:hover {
    background: #059669;
}

.loop-btn.disabled {
    background: #6b7280;
    opacity: 0.7;
}

.progress-container {
    flex: 1;
}

.progress-slider {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #444444;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4c6ef5;
    cursor: pointer;
    border: 2px solid #ffffff;
}

.progress-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4c6ef5;
    cursor: pointer;
    border: 2px solid #ffffff;
}

.time-display {
    font-size: 0.875rem;
    color: #888888;
    font-weight: 500;
    min-width: 80px;
    text-align: right;
}

/* Right Sidebar - Wider for better content display */
.right-sidebar {
    width: 400px;
    background: #2d2d2d;
    border-left: 1px solid #444444;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    min-width: 400px;
}

/* Sidebar Sections */
.sidebar-section {
    background: #333333;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #444444;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    justify-content: space-between;
}

.sidebar-section h3 i {
    color: #4c6ef5;
}

/* Reset All Colors Button */
.reset-all-colors-btn {
    background: #555555;
    color: #ffffff;
    border: 1px solid #666666;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    white-space: nowrap;
}

.reset-all-colors-btn:hover {
    background: #4c6ef5;
    border-color: #4c6ef5;
    transform: translateY(-1px);
}

.reset-all-colors-btn i {
    font-size: 0.6rem;
    color: inherit !important;
}

/* Export Layers Button */
.export-layers-btn {
    background: #555555;
    color: #ffffff;
    border: 1px solid #666666;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    white-space: nowrap;
}

.export-layers-btn:hover {
    background: #10b981;
    border-color: #10b981;
    transform: translateY(-1px);
}

.export-layers-btn i {
    font-size: 0.6rem;
    color: inherit !important;
}

/* Layers Section */
.layers-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.layers-grid.collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

/* Collapsible header styles */
.collapsible-header {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.collapsible-header:hover {
    color: #4c6ef5 !important;
}

.collapse-btn {
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
}

.collapse-btn:hover {
    background: rgba(76, 110, 245, 0.1);
    color: #4c6ef5;
}

.collapse-btn i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.layer-item {
    background: #3d3d3d;
    border-radius: 6px;
    padding: 0.75rem;
    border: 1px solid #444444;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.layer-item:hover {
    border-color: #4c6ef5;
    background: #404040;
}

.layer-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.layer-type-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: white;
    flex-shrink: 0;
}

.layer-type-shape {
    background: #4c6ef5;
}

.layer-type-text {
    background: #10b981;
}

.layer-type-image {
    background: #f59e0b;
}

.layer-type-solid {
    background: #ef4444;
}

.layer-type-precomp {
    background: #8b5cf6;
}

.layer-type-null {
    background: #6b7280;
}

.layer-name {
    font-weight: 500;
    color: #ffffff;
    font-size: 0.8rem;
    line-height: 1.2;
    word-break: break-word;
    flex: 1;
    min-width: 0;
}

.layer-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.layer-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
}

.layer-detail-label {
    color: #888888;
}

.layer-detail-value {
    color: #ffffff;
    font-weight: 500;
}

.no-layers {
    text-align: center;
    padding: 1rem;
    color: #888888;
    font-style: italic;
    font-size: 0.875rem;
}

/* File Info */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-item label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #888888;
}

.info-item span {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.875rem;
}

/* Colors Section */
.colors-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.color-item {
    background: #3d3d3d;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #444444;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.color-item:hover {
    border-color: #4c6ef5;
}

.color-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.color-name {
    font-weight: 500;
    color: #ffffff;
    font-size: 0.8rem;
    line-height: 1.2;
    word-break: break-word;
    flex: 1;
    min-width: 0;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid #555555;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.color-swatch:hover {
    border-color: #4c6ef5;
    transform: scale(1.1);
}

.color-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}

.hex-input {
    flex: 1;
    height: 32px;
    background: #333333;
    border: 1px solid #444444;
    border-radius: 6px;
    color: #ffffff;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    font-family: 'Monaco', 'Consolas', monospace;
    text-transform: uppercase;
    min-width: 0;
}

.hex-input:focus {
    outline: none;
    border-color: #4c6ef5;
    background: #3d3d3d;
    box-shadow: 0 0 0 2px rgba(76, 110, 245, 0.2);
}

.hex-input::placeholder {
    color: #666666;
    text-transform: uppercase;
}

.reset-btn {
    width: 32px;
    height: 32px;
    background: #555555;
    border: 1px solid #666666;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.reset-btn:hover {
    background: #4c6ef5;
    border-color: #4c6ef5;
    transform: scale(1.05);
}

.reset-btn i {
    font-size: 0.7rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    background: #2d2d2d;
    border: 1px solid #444444;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.loading-spinner i {
    font-size: 2rem;
    color: #4c6ef5;
    margin-bottom: 1rem;
}

.loading-spinner p {
    color: #ffffff;
    font-weight: 500;
}

/* Features Section - Enhanced */
.features-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    padding: 6rem 2rem;
    border-top: 1px solid #444444;
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(76, 110, 245, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.features-hero {
    margin-bottom: 4rem;
    position: relative;
}

.features-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4c6ef5, #10b981, #f59e0b);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: gradientShift 4s ease-in-out infinite;
}

.features-subtitle {
    font-size: 1.25rem;
    color: #888888;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    color: #4c6ef5;
    animation: float 3s ease-in-out infinite;
    opacity: 0.3;
}

.element-1 {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.element-2 {
    top: 20%;
    right: 20%;
    animation-delay: 0.5s;
}

.element-3 {
    bottom: 30%;
    left: 10%;
    animation-delay: 1s;
}

.element-4 {
    bottom: 20%;
    right: 15%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(5deg);
    }
    66% {
        transform: translateY(5px) rotate(-3deg);
    }
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background: rgba(45, 45, 45, 0.8);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid #444444;
    transition: all 0.5s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 110, 245, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    border-color: #4c6ef5;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(76, 110, 245, 0.2);
}

.feature-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4c6ef5, #3b5ce6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotateY(10deg);
    background: linear-gradient(135deg, #10b981, #059669);
}

.feature-icon i {
    font-size: 2.5rem;
    color: white;
    z-index: 2;
}

.icon-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
}

.feature-item:hover .particle {
    animation: particleExplode 0.8s ease-out;
}

.particle:nth-child(1) {
    animation-delay: 0s;
    transform: translate(-20px, -20px);
}

.particle:nth-child(2) {
    animation-delay: 0.1s;
    transform: translate(20px, -15px);
}

.particle:nth-child(3) {
    animation-delay: 0.2s;
    transform: translate(-15px, 20px);
}

@keyframes particleExplode {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.feature-item:hover h3 {
    color: #4c6ef5;
}

.feature-item p {
    color: #888888;
    line-height: 1.6;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.feature-item:hover p {
    color: #aaa;
}

/* Interactive Showcase Section */
.showcase-section {
    background: #000000;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.showcase-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
    rgba(76, 110, 245, 0.05) 0%,
    transparent 25%,
    rgba(16, 185, 129, 0.05) 50%,
    transparent 75%,
    rgba(245, 158, 11, 0.05) 100%);
    animation: showcaseBackground 10s ease-in-out infinite;
    z-index: -1;
}

@keyframes showcaseBackground {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showcase-text {
    position: relative;
    z-index: 3;
}

.showcase-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.showcase-subtitle {
    font-size: 1.25rem;
    color: #888888;
    margin-bottom: 3rem;
}

.showcase-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 4;
}

.showcase-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(45, 45, 45, 0.8);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    pointer-events: auto;
    user-select: none;
    position: relative;
    z-index: 5;
}

.showcase-feature:hover,
.showcase-feature.active {
    background: rgba(76, 110, 245, 0.2);
    border-color: #4c6ef5;
    transform: translateX(10px);
    box-shadow: 0 4px 20px rgba(76, 110, 245, 0.3);
}

.showcase-feature i {
    font-size: 1.5rem;
    color: #4c6ef5;
    pointer-events: none;
}

.showcase-feature span {
    font-weight: 600;
    color: #ffffff;
    pointer-events: none;
}

.demo-screen {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #444444;
    position: relative;
    overflow: hidden;
}

.demo-animation {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.demo-circle,
.demo-square,
.demo-triangle {
    width: 50px;
    height: 50px;
    animation: demoFloat 2s ease-in-out infinite;
}

.demo-circle {
    background: linear-gradient(135deg, #4c6ef5, #3b5ce6);
    border-radius: 50%;
    animation-delay: 0s;
}

.demo-square {
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 8px;
    animation-delay: 0.3s;
}

.demo-triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 50px solid #f59e0b;
    background: none;
    animation-delay: 0.6s;
}

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

.demo-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.demo-control-bar {
    flex: 1;
    height: 4px;
    background: #444444;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.demo-control-bar::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, #4c6ef5, #10b981);
    border-radius: 2px;
    animation: demoProgress 3s ease-in-out infinite;
}

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

.demo-color-picker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4c6ef5, #10b981, #f59e0b, #ef4444);
    background-size: 300% 300%;
    animation: colorCycle 4s ease-in-out infinite;
    border: 2px solid #ffffff;
}

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

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 4rem 2rem;
    border-top: 1px solid #444444;
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(45, 45, 45, 0.5);
    border-radius: 16px;
    border: 1px solid #444444;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4c6ef5, #10b981);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.stat-item:hover::before {
    transform: translateX(0);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: #4c6ef5;
    box-shadow: 0 10px 30px rgba(76, 110, 245, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #4c6ef5;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: #888888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

/* FAQ Section - Enhanced */
.faq-section {
    background: #1a1a1a;
    padding: 6rem 2rem;
    border-top: 1px solid #444444;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.faq-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.faq-subtitle {
    font-size: 1.25rem;
    color: #888888;
    margin-bottom: 3rem;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.faq-item {
    background: #2d2d2d;
    border-radius: 12px;
    border: 1px solid #444444;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-color: #4c6ef5;
    box-shadow: 0 5px 20px rgba(76, 110, 245, 0.1);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(76, 110, 245, 0.05);
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.faq-question i {
    color: #4c6ef5;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1.5rem 2rem;
}

.faq-answer p {
    color: #888888;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.footer {
    background: #000000;
    border-top: 1px solid #333333;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section h3 {
    font-size: 1.25rem;
}

.footer-section h4 {
    font-size: 1rem;
}

.footer-section p {
    color: #888888;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    color: #888888;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-section ul li:hover {
    color: #4c6ef5;
    cursor: pointer;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #333333;
    text-align: center;
}

.footer-bottom p {
    color: #888888;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .preview-content {
        flex-direction: column;
    }

    .left-sidebar,
    .right-sidebar {
        width: 100%;
        height: auto;
        max-height: 200px;
    }

    .animation-area {
        min-height: 400px;
    }

    .action-buttons {
        position: static;
        flex-direction: column;
        margin-bottom: 1rem;
        width: 100%;
    }

    .upload-new-btn,
    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0;
    }

    .header {
        padding: 1rem;
    }

    .title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .upload-card {
        padding: 2rem 1rem;
        margin: 1rem;
    }

    .left-sidebar,
    .right-sidebar {
        padding: 1rem;
    }

    .sidebar-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .controls {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .background-controls {
        flex-wrap: wrap;
        padding: 0.75rem;
    }

    /* Landing page sections responsive */
    .features-section,
    .faq-section {
        padding: 2rem 1rem;
    }

    .features-container h2,
    .faq-container h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .header-features {
        gap: 0.5rem;
    }

    .feature-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.25rem;
    }

    .header {
        padding: 0.75rem;
    }

    .debug-controls {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 1rem;
        text-align: center;
    }
}

/* Restore the missing .no-colors style */
.no-colors {
    text-align: center;
    padding: 1rem;
    color: #888888;
    font-style: italic;
    font-size: 0.875rem;
}

/* Hidden color input for color picker functionality */
.hidden-color-picker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* Better transparency background - subtle and easy on eyes */
.transparent-btn {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    position: relative;
    overflow: hidden;
}

.transparent-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
    rgba(255, 255, 255, 0.1) 25%,
    transparent 25%,
    transparent 75%,
    rgba(255, 255, 255, 0.1) 75%),
    linear-gradient(45deg,
            rgba(255, 255, 255, 0.1) 25%,
            transparent 25%,
            transparent 75%,
            rgba(255, 255, 255, 0.1) 75%);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
}

.transparent-btn::after {
    content: "∅";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: #666666;
    z-index: 1;
}

/* Improved transparency background for animation container */
.animation-container.transparent-bg {
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    background-image: radial-gradient(circle at 25% 25%, rgba(0, 0, 0, 0.05) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.05) 2px, transparent 2px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

/* Speed Controls */
.speed-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.speed-controls label {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 500;
}

.speed-control-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.speed-slider {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #444444;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.speed-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4c6ef5;
    cursor: pointer;
    border: 2px solid #ffffff;
}

.speed-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4c6ef5;
    cursor: pointer;
    border: 2px solid #ffffff;
}

.reset-speed-btn {
    width: 32px;
    height: 32px;
    background: #555555;
    border: 1px solid #666666;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.reset-speed-btn:hover {
    background: #4c6ef5;
    border-color: #4c6ef5;
    transform: scale(1.05);
}

.reset-speed-btn i {
    font-size: 0.7rem;
}
