* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #FFFFFF;
    color: #0F172A;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 16px;
}

.header {
    text-align: center;
    margin-bottom: 48px;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.tab {
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #F3F4F6;
    color: #374151;
}

.tab:hover {
    background-color: #E5E7EB;
}

.tab.active {
    background-color: #10B981;
    color: white;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.25);
}

/* Hot Tools special styling when inactive */
.tab[data-category="hot"]:not(.active) {
    position: relative;
    overflow: hidden;
    background: transparent;
    color: white;
    padding: 12px 24px;
    z-index: 0;
}

.tab[data-category="hot"]:not(.active)::before {
    content: "";
    position: absolute;
    z-index: -2;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(0deg, rgba(34, 193, 195, 1) 0%, rgba(253, 187, 45, 0.51) 100%);
    animation: bgRotate 4s linear infinite;
}

.tab[data-category="hot"]:not(.active)::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 2px;
    top: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    background: linear-gradient(0deg, rgba(34, 193, 195, 1) 0%, rgba(253, 135, 45, 0.68) 100%);
    border-radius: 9999px;
}

@keyframes bgRotate {
    100% {
        transform: rotate(1turn);
    }
}

.tab[data-category="hot"]:not(.active):hover {
    transform: translateY(-2px);
}

.tab[data-category="hot"]:not(.active):hover::before {
    animation-duration: 2s;
}

.tab[data-category="hot"].active {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4), 0 0 20px rgba(16, 185, 129, 0.2);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.all-tools-button-container {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.all-tools-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: white;
    color: #0F172A;
    border: 2px solid #3B82F6;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.all-tools-button:hover {
    background-color: #3B82F6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tool-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #F3F4F6;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tool-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

.tool-card-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.tool-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.tool-icon svg {
    width: 28px;
    height: 28px;
    color: white;
    stroke-width: 2;
}

.tool-card:hover .tool-icon {
    transform: scale(1.05);
}

.tool-info {
    flex: 1;
    min-width: 0;
}

.tool-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.tool-card:hover .tool-title {
    color: #10B981;
}

.tool-description {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.5;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #9CA3AF;
    font-size: 1.125rem;
}

/* Tool page styles */
.navigation {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: #0F172A;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: #10B981;
}

.back-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.tool-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 16px;
}

.tool-header {
    text-align: center;
    margin-bottom: 32px;
}

.tool-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.tool-header-icon svg {
    width: 40px;
    height: 40px;
    color: white;
    stroke-width: 2;
}

.tool-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
}

.tool-page-description {
    color: #6B7280;
    font-size: 1.125rem;
}

.tool-container {
    background: white;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 32px;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

.tool-container:has(.crop-layout) {
    background: transparent;
    box-shadow: none;
    padding: 0;
    max-width: 1200px;
}

.coming-soon {
    text-align: center;
    padding: 48px 0;
}

.coming-soon h2 {
    color: #6B7280;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.coming-soon p {
    color: #9CA3AF;
}

/* Timer Tool Styles */
#timerApp {
    max-width: 600px;
    margin: 0 auto;
}

.timer-display {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.timer-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.timer-time {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    font-family: 'Courier New', monospace;
}

.timer-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
}

.timer-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
}

.time-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-input-group label {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 8px;
    font-weight: 500;
}

.time-input {
    width: 80px;
    padding: 12px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.time-input:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.timer-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.timer-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-btn {
    background-color: #10B981;
    color: white;
}

.start-btn:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.pause-btn {
    background-color: #F59E0B;
    color: white;
}

.pause-btn:hover {
    background-color: #D97706;
    transform: translateY(-2px);
}

.resume-btn {
    background-color: #3B82F6;
    color: white;
}

.resume-btn:hover {
    background-color: #2563EB;
    transform: translateY(-2px);
}

.reset-btn {
    background-color: #EF4444;
    color: white;
}

.reset-btn:hover {
    background-color: #DC2626;
    transform: translateY(-2px);
}

.timer-sounds {
    text-align: center;
}

.sound-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #6B7280;
    font-size: 0.875rem;
}

.sound-toggle input {
    cursor: pointer;
}

/* QR Code Generator Styles */
.tool-container:has(#qrApp) {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

#qrApp {
    display: grid;
    grid-template-columns: 600px 650px;
    gap: 80px;
    max-width: 2000px;
    width: 100%;
    margin: 0 auto;
    align-items: start;
    padding: 40px 60px;
    justify-content: center;
    background: transparent;
    box-sizing: border-box;
}

.qr-input-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    width: 100%;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 8px;
    font-size: 0.9375rem;
}

.qr-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.qr-textarea:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.qr-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.color-picker {
    width: 50px;
    height: 40px;
    border: 2px solid #E5E7EB;
    border-radius: 6px;
    cursor: pointer;
}

.color-input {
    flex: 1;
    padding: 8px;
    border: 2px solid #E5E7EB;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: monospace;
}

.color-input:focus {
    outline: none;
    border-color: #10B981;
}

.range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #E5E7EB;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #10B981;
    cursor: pointer;
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #10B981;
    cursor: pointer;
    border: none;
}

.qr-download-btn {
    padding: 12px 32px;
    background-color: #10B981;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.qr-download-btn:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.qr-preview-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.qr-preview-section {
    width: 100%;
    box-sizing: border-box;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#qrPreview {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 300px;
}

/* No specific container styles needed - QR renders directly */

.qr-placeholder {
    color: #9CA3AF;
    font-size: 0.9375rem;
    text-align: center;
}

.qr-error {
    color: #EF4444;
    font-size: 0.9375rem;
    text-align: center;
}

@media (max-width: 1100px) {
    #qrApp {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .qr-options-grid {
        grid-template-columns: 1fr;
    }
    
    .timer-circle {
        width: 160px;
        height: 160px;
    }
    
    .timer-time {
        font-size: 2rem;
    }
    
    .timer-controls {
        flex-wrap: wrap;
    }
    
    .time-input {
        width: 70px;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .tool-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
    
    .tool-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .tool-page-title {
        font-size: 2rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Barcode Generator Styles */
#barcodeApp {
    max-width: 1000px;
    margin: 0 auto;
}

.barcode-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.barcode-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: start;
}

.barcode-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.barcode-input-group label {
    font-weight: 600;
    color: #0F172A;
    font-size: 0.9375rem;
}

.format-helper {
    color: #6B7280;
    font-size: 0.8125rem;
    font-style: italic;
    margin-top: -4px;
}

.barcode-input-group input[type="text"],
.barcode-input-group input[type="number"],
.barcode-input-group select {
    padding: 12px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.barcode-input-group input[type="text"]:focus,
.barcode-input-group input[type="number"]:focus,
.barcode-input-group select:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.barcode-color-picker {
    width: 100%;
    height: 50px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    padding: 4px;
}

.checkbox-group {
    justify-content: flex-end;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
    color: #374151;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #10B981;
}

.barcode-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.barcode-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.generate-btn {
    background-color: #2C5F5D;
    color: white;
}

.generate-btn:hover {
    background-color: #234948;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(44, 95, 93, 0.3);
}

.download-btn {
    background-color: #10B981;
    color: white;
}

.download-btn:hover:not(:disabled) {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.download-btn:disabled {
    background-color: #D1D5DB;
    cursor: not-allowed;
    opacity: 0.6;
}

.processing-status {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
    color: #1D4ED8;
    font-weight: 500;
    font-size: 0.95rem;
    display: none;
    align-items: center;
    gap: 12px;
}

.processing-status.visible {
    display: flex;
}

.processing-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid rgba(59, 130, 246, 0.25);
    border-top-color: #1D4ED8;
    animation: processingSpin 0.8s linear infinite;
}

@keyframes processingSpin {
    to {
        transform: rotate(360deg);
    }
}

.barcode-preview {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
}

.barcode-preview h3 {
    font-size: 1.25rem;
    color: #0F172A;
    margin-bottom: 24px;
    font-weight: 600;
}

#barcodePreview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: #F9FAFB;
    border-radius: 8px;
    padding: 24px;
}

#barcodePreview svg {
    max-width: 100%;
    height: auto;
}

.barcode-placeholder {
    color: #9CA3AF;
    font-size: 0.9375rem;
    text-align: center;
    max-width: 300px;
}

.barcode-error {
    color: #EF4444;
    font-size: 0.9375rem;
    text-align: center;
    font-weight: 500;
}

@media (max-width: 768px) {
    .barcode-row {
        grid-template-columns: 1fr;
    }
    
    .barcode-buttons {
        grid-template-columns: 1fr;
    }
}

/* Image Resizer Styles */
.tool-container:has(#imageResizerApp) {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
}

#imageResizerApp {
    max-width: 100%;  
    margin: 0 auto;
    padding: 0 40px;
}

.image-upload-section {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.upload-area {
    width: 100%;
    max-width: 600px;
    padding: 60px 40px;
    border: 3px dashed #E5E7EB;
    border-radius: 16px;
    background: #F9FAFB;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #10B981;
    background: #F0FDF4;
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: #10B981;
}

.upload-area h3 {
    font-size: 1.5rem;
    color: #0F172A;
    margin-bottom: 8px;
    font-weight: 600;
}

.upload-area p {
    color: #6B7280;
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

.upload-btn {
    padding: 12px 32px;
    background-color: #10B981;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

#resizeControls {
    display: grid;
    grid-template-columns: 550px 550px;
    gap: 40px;
    align-items: start;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
}

.crop-layout {
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(320px, 520px);
    gap: 40px;
    align-items: start;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.crop-layout.is-hidden {
    display: none;
}

.resize-settings {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

.resize-settings h3 {
    font-size: 1.25rem;
    color: #0F172A;
    margin-bottom: 20px;
    font-weight: 600;
}

.original-dimensions {
    padding: 16px;
    background: #F9FAFB;
    border-radius: 8px;
    margin-bottom: 24px;
}

.original-dimensions p {
    margin: 0;
    color: #374151;
    font-size: 0.9375rem;
}

.dimension-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.input-group-resize {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group-resize label {
    font-weight: 600;
    color: #0F172A;
    font-size: 0.9375rem;
}

.input-group-resize input {
    padding: 12px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-group-resize input:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.resize-options {
    margin-bottom: 20px;
}

.format-selection {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.format-selection label {
    font-weight: 600;
    color: #0F172A;
    font-size: 0.9375rem;
}

.format-selection select {
    padding: 12px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.format-selection select:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.crop-settings-card,
.crop-preview-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

.crop-preview-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-header h3 {
    font-size: 1.25rem;
    color: #0F172A;
    margin: 0 0 4px;
    font-weight: 600;
}

.preview-subtitle {
    color: #6B7280;
    margin: 0;
    font-size: 0.875rem;
}

.crop-preview-container {
    width: 100%;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

.crop-preview-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#cropSection #videoPlayer {
    object-fit: cover;
}

.aspect-hint {
    margin: 0 0 16px;
    color: #6B7280;
    font-size: 0.875rem;
}

.format-static {
    padding: 12px;
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    color: #1F2937;
    font-weight: 500;
    background: #F9FAFB;
}

.progress-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-bar-track {
    height: 8px;
    background: #E5E7EB;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #EAB308;
    transition: width 0.2s ease;
}

.progress-text {
    font-size: 0.8125rem;
    color: #6B7280;
}

.video-upload-section.hidden {
    display: none;
}

.gif-tool-container {
    background: transparent;
    box-shadow: none;
    padding: 0;
    max-width: 1200px;
}

.gif-upload-card,
.gif-preview-card,
.gif-result-card,
.gif-settings-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
}

.gif-upload-card {
    padding: 48px;
    margin-bottom: 32px;
}

.gif-upload-card .upload-area {
    margin: 0 auto;
}

.gif-upload-card.hidden {
    display: none;
}

.gif-workspace.hidden {
    display: none;
}

.gif-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
    gap: 32px;
    align-items: stretch;
}

.gif-preview-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gif-preview-card,
.gif-result-card {
    padding: 32px;
}

.gif-preview-card h3,
.gif-result-card h3,
.gif-settings-card h3 {
    margin: 0 0 16px;
    font-size: 1.25rem;
    color: #0F172A;
    font-weight: 600;
}

.gif-video-frame {
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

.gif-video-frame video {
    width: 100%;
    display: block;
}

.gif-preview-placeholder {
    min-height: 260px;
    border: 2px dashed #E5E7EB;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #94A3B8;
    font-size: 0.9375rem;
    padding: 24px;
    background: #F8FAFC;
}

.gif-settings-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gif-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 16px;
}

.gif-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.875rem;
    color: #475569;
}

.gif-input-group input {
    padding: 12px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.gif-input-group input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.gif-hint {
    margin: 0;
    color: #64748B;
    font-size: 0.875rem;
}

.gif-button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gif-btn {
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 14px 20px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gif-btn.primary {
    background: linear-gradient(135deg, #3B82F6, #6366F1);
    color: white;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
}

.gif-btn.primary:disabled {
    background: #CBD5F5;
    box-shadow: none;
    cursor: not-allowed;
}

.gif-btn.primary:not(:disabled):hover {
    transform: translateY(-1px);
}

.gif-btn.ghost {
    background: white;
    color: #DC2626;
    border: 2px solid rgba(220, 38, 38, 0.3);
}

.gif-btn.ghost:hover {
    background: #FEF2F2;
}

.gif-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gif-progress-track {
    height: 8px;
    border-radius: 999px;
    background: #E2E8F0;
    overflow: hidden;
}

.gif-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, #10B981, #22C55E);
    transition: width 0.2s ease;
}

.gif-progress-text {
    font-size: 0.875rem;
    color: #64748B;
}

.gif-result-card img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.gif-result-card .editor-btn {
    margin-top: 16px;
}

.gif-result-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    text-decoration: none;
}

.gif-result-card a.editor-btn {
    width: auto;
    padding: 12px 24px;
}

.gif-result-card .editor-btn.download-btn {
    background-color: #10B981;
}

@media (max-width: 1024px) {
    .gif-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .gif-upload-card {
        padding: 32px 20px;
    }
    .gif-preview-card,
    .gif-result-card,
    .gif-settings-card {
        padding: 24px;
    }
    .gif-settings-grid {
        grid-template-columns: 1fr;
    }
    .gif-button-row {
        grid-template-columns: 1fr;
    }
}

.resize-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resize-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-btn {
    background-color: #10B981;
    color: white;
}

.apply-btn:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.download-btn {
    background-color: #3B82F6;
    color: white;
}

.download-btn:hover:not(:disabled) {
    background-color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.download-btn:disabled {
    background-color: #D1D5DB;
    cursor: not-allowed;
    opacity: 0.6;
}

.reset-btn {
    background-color: #EF4444;
    color: white;
}

.reset-btn:hover {
    background-color: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.preview-section {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
}

.preview-section h3 {
    font-size: 1.25rem;
    color: #0F172A;
    margin-bottom: 20px;
    font-weight: 600;
}

.preview-container {
    background: #F9FAFB;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    overflow: auto;
}

#previewCanvas {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.new-size-text {
    margin-top: 16px;
    color: #6B7280;
    font-size: 0.9375rem;
    text-align: center;
}

@media (max-width: 1024px) {
    #resizeControls {
        grid-template-columns: 1fr;
    }
    .crop-layout {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .dimension-inputs {
        grid-template-columns: 1fr;
    }
    
    .upload-area {
        padding: 40px 24px;
    }
    .crop-settings-card,
    .crop-preview-card {
        padding: 32px;
    }
}

/* Image Compressor Styles */
.tool-container:has(#imageCompressorApp) {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
}

#imageCompressorApp {
    max-width: 100%;  
    margin: 0 auto;
    padding: 0 40px;
}

#compressionControls {
    display: grid;
    grid-template-columns: 550px 550px;
    gap: 40px;
    align-items: start;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
}

.compression-settings {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

.compression-settings h3 {
    font-size: 1.25rem;
    color: #0F172A;
    margin-bottom: 20px;
    font-weight: 600;
}

.original-info {
    padding: 16px;
    background: #F9FAFB;
    border-radius: 8px;
    margin-bottom: 24px;
}

.original-info p {
    margin: 0;
    color: #374151;
    font-size: 0.9375rem;
}

.quality-control {
    margin-bottom: 24px;
}

.quality-control label {
    display: block;
    font-weight: 600;
    color: #0F172A;
    font-size: 0.9375rem;
    margin-bottom: 12px;
}

.quality-hint {
    color: #6B7280;
    font-size: 0.8125rem;
    margin-top: 8px;
    font-style: italic;
}

.compression-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.compress-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compression-stats {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.savings-text {
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
    margin: 0;
}

@media (max-width: 1024px) {
    #compressionControls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tool-container {
        padding: 20px;
    }

    .video-upload-section {
        padding: 24px 0;
    }

    .video-preview-panel,
    .editor-controls {
        padding: 20px;
    }

    .editor-controls {
        grid-template-columns: 1fr;
    }

    .editor-option-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .editor-option-row label {
        min-width: 0;
    }

    .editor-option-row .inline-badge,
    #supportBadge,
    #fastBadge {
        width: 100%;
        text-align: left;
        font-size: 0.8rem;
    }

    #formatSelect {
        width: 100% !important;
    }

    .option-row {
        flex-direction: column;
        align-items: stretch;
    }

    .option-row input[type="range"] {
        width: 100% !important;
    }

    .editor-buttons-row {
        grid-template-columns: 1fr;
    }

    .input-action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .input-action-row input,
    .input-action-row button {
        width: 100%;
    }

    .tool-header {
        text-align: center;
    }

    .tool-header-icon {
        margin: 0 auto 16px;
    }
}

/* Video Editor Styles */
.tool-container:has(#videoEditorApp) {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
}

#videoEditorApp {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.video-upload-section {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.video-editor-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.editor-option-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.editor-option-row label {
    min-width: 160px;
}

.editor-option-row .inline-badge {
    white-space: nowrap;
}

.input-action-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.editor-controls {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.editor-controls h3 {
    font-size: 1.25rem;
    color: #0F172A;
    margin-bottom: 20px;
    font-weight: 600;
    grid-column: 1 / -1;
}

.editor-controls h4 {
    font-size: 1rem;
    color: #0F172A;
    margin-bottom: 12px;
    font-weight: 600;
}

.video-info p {
    margin: 8px 0;
    color: #374151;
    font-size: 0.9375rem;
}

.trim-controls,
.speed-controls {
    margin-bottom: 0;
}

.trim-instructions {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 12px;
    font-style: italic;
}

.speed-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.speed-btn {
    padding: 10px;
    border: 2px solid #E5E7EB;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #374151;
}

.speed-btn:hover {
    border-color: #10B981;
    background: #F0FDF4;
}

.speed-btn.active {
    border-color: #10B981;
    background: #10B981;
    color: white;
}

.preview-btn {
    width: 100%;
    margin-top: 12px;
    background-color: #6366F1;
    color: white;
}

.preview-btn:hover {
    background-color: #4F46E5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.editor-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-column: 1 / -1;
}

.editor-buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.editor-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-preview-panel {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    order: -1;
}

.video-preview-panel h3 {
    font-size: 1.25rem;
    color: #0F172A;
    margin-bottom: 20px;
    font-weight: 600;
}

.video-container {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#videoPlayer {
    width: 100%;
    max-height: 600px;
    display: block;
    object-fit: contain;
}

.timeline-container {
    margin-top: 20px;
}

.timeline-wrapper {
    position: relative;
    height: 40px;
    margin-bottom: 12px;
}

.timeline-slider {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #E5E7EB;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 1;
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #10B981;
    cursor: pointer;
    z-index: 10;
}

.timeline-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #10B981;
    cursor: pointer;
    border: none;
    z-index: 10;
}

.trim-indicators {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.trim-handle {
    position: absolute;
    width: 4px;
    height: 40px;
    background: #3B82F6;
    cursor: ew-resize;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
    pointer-events: auto;
    top: 0;
    z-index: 7;
    transition: background 0.15s ease;
    /* Increase touch target for mobile */
    touch-action: none;
}

/* Larger touch area for mobile devices */
.trim-handle::before {
    content: '';
    position: absolute;
    left: -12px;
    right: -12px;
    top: -8px;
    bottom: -8px;
    z-index: -1;
}

.trim-handle:hover {
    background: #2563EB;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.6);
}

.trim-handle:active {
    background: #1D4ED8;
}

.trim-handle-start {
    left: 0%;
}

.trim-handle-end {
    left: 100%;
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.trim-time-info {
    display: flex;
    gap: 16px;
}

.trim-marker {
    color: #6B7280;
    font-size: 0.8125rem;
}

.trim-marker strong {
    color: #3B82F6;
    font-weight: 700;
}

.current-time {
    color: #6B7280;
    font-size: 0.875rem;
    text-align: right;
    margin: 0;
}

@media (max-width: 768px) {
    .editor-controls {
        grid-template-columns: 1fr;
    }
    
    .editor-buttons-row {
        grid-template-columns: 1fr;
    }
}

/* ===== HOMEPAGE STYLES ===== */

/* Navigation */
.navbar {
    background: white;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: #0F172A;
}

.logo-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo-text {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: #64748B;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #10B981;
}

.nav-cta {
    background: #10B981;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%);
    padding: 120px 24px 80px;
    text-align: center;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748B;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.badge-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
}

.badge-icon svg {
    width: 100%;
    height: 100%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0F172A;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #10B981 0%, #059669 50%, #047857 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: #64748B;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #10B981;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: white;
    color: #0F172A;
    border: 2px solid #E5E7EB;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: #10B981;
    color: #10B981;
    background: #F0FDF4;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E7EB;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9375rem;
    color: #64748B;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: #E5E7EB;
}

/* Features Section */
.features {
    padding: 80px 24px;
    background: white;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 32px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: block;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 12px;
}

.feature-description {
    font-size: 1rem;
    color: #64748B;
    line-height: 1.6;
}

/* Tools Section */
.tools-section {
    padding: 80px 24px;
    background: #F9FAFB;
}

.tools-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    color: #64748B;
    line-height: 1.7;
}

.tools-section .category-tabs {
    max-width: 1200px;
    margin: 0 auto 48px;
}

.tools-section .tools-grid {
    max-width: 1200px;
    margin: 0 auto;
}

/* CTA Section */
.cta-section {
    padding: 100px 24px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #10B981;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: white;
    color: #0F172A;
    padding: 64px 24px 32px;
    border-top: 1px solid #E5E7EB;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-logo .logo-text {
    color: #0F172A;
}

.footer-logo .logo-text-accent {
    color: #3B82F6;
}

.footer-description {
    color: #64748B;
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 400px;
}

.footer-navigate {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-tools {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-partners {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 4px;
}

.footer-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 16px;
}

.footer-link {
    color: #64748B;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
    display: block;
}

.footer-link:hover {
    color: #3B82F6;
}

.footer-link-more {
    color: #3B82F6;
    font-weight: 500;
}

.footer-link-more:hover {
    color: #2563EB;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid #E5E7EB;
}

.footer-copyright {
    color: #64748B;
    font-size: 0.875rem;
}

.social-link {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.social-link:hover {
    color: #10B981;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 80px 24px 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 32px;
        padding: 32px;
    }
    
    .stat-divider {
        width: 100%;
        height: 1px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons button {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1.125rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    /* Make trim handles easier to tap on mobile */
    .trim-handle {
        width: 8px;
        height: 48px;
    }
    
    .trim-handle::before {
        left: -16px;
        right: -16px;
        top: -12px;
        bottom: -12px;
    }
}

