/**
 * PixelBoost AI - Premium Image Upscaler
 * Design & Development: tayfuntoprakcioglu.com
 * Licensed under MIT License
 */

/* ========================================
   CSS RESET & BASE STYLES
   Powered by tayfuntoprakcioglu.com
   ======================================== */

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

:root {
    /* Color Palette - Designed by tayfuntoprakcioglu.com */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #ec4899;

    /* Backgrounds */
    --bg-primary: #0a0a0f;
    --bg-secondary: #13131a;
    --bg-tertiary: #1a1a24;
    --bg-card: #1f1f2e;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-tertiary: #6b6b80;

    /* Borders & Dividers */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);

    /* Shadows - Premium depth by tayfuntoprakcioglu.com */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    /* Spacing System */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions - Smooth animations by tayfuntoprakcioglu.com */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Theme - Beautiful white mode by tayfuntoprakcioglu.com */
[data-theme="light"] {
    /* Light Mode Backgrounds - Premium white theme by tayfuntoprakcioglu.com */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --bg-card: #ffffff;

    /* Light Mode Text Colors - High contrast by tayfuntoprakcioglu.com */
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;

    /* Light Mode Borders - Subtle divisions by tayfuntoprakcioglu.com */
    --border-color: rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.05);

    /* Light Mode Shadows - Soft depth by tayfuntoprakcioglu.com */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* Light Mode Specific Adjustments - tayfuntoprakcioglu.com */
[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .image-container {
    background: repeating-conic-gradient(#f1f3f5 0% 25%, #e9ecef 0% 50%);
    background-size: 20px 20px;
}

[data-theme="light"] .resolution-tag {
    background: rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
    /* Theme transition by tayfuntoprakcioglu.com */
    transition: background-color 0.3s ease;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Smooth theme transitions by tayfuntoprakcioglu.com */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========================================
   CONTAINER & LAYOUT
   Structure by tayfuntoprakcioglu.com
   ======================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   HEADER & NAVIGATION
   Premium header design by tayfuntoprakcioglu.com
   ======================================== */

/* Main Headers */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-base);
    position: sticky;
    /* Re-enable sticky header so Logo stays visible */
    top: 0;
    z-index: 999;
}

/* Header Structure */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
    /* Default gap */
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Gap between PixelBoost and AI badge */
}

.logo-author {
    font-size: 0.55rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    white-space: nowrap;
}


.logo-badge {
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 8px;
    display: none;
    /* Hidden by default for cleaner look, show if needed */
}

/* Creator Credit (Middle) */
.creator-credit {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-tertiary);
    /* Daha silik renk */
    text-decoration: none;
    transition: color 0.2s;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    /* Ortayı kaplaması için */
    display: flex;
    justify-content: center;
    align-items: center;
}

.creator-credit:hover {
    color: var(--primary);
}

.creator-credit strong {
    font-weight: 700;
    color: var(--text-primary);
    margin-left: 4px;
}

/* Header Right Wrapper */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Header Controls (Donate, Theme, Lang) */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hide Mobile Bottom Bar and Donate FAB on Desktop */
.mobile-bottom-bar {
    display: none;
}

.mobile-donate-fab {
    display: none;
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #d946ef);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.mobile-donate-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(236, 72, 153, 0.5);
}

.mobile-donate-fab:active {
    transform: scale(0.95);
}

.header-social-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.header-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.header-social-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Donate Button - Support tayfuntoprakcioglu.com */
.donate-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.donate-btn i {
    animation: heartBeat 1.3s ease-in-out infinite;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    10%,
    30% {
        transform: scale(1.1);
    }

    20%,
    40% {
        transform: scale(1);
    }
}

/* Theme Toggle Button - Dark/Light mode switch by tayfuntoprakcioglu.com */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    transform: rotate(15deg);
}

.theme-toggle svg {
    transition: all var(--transition-base);
    color: var(--text-primary);
}

.theme-toggle:hover svg {
    color: var(--primary);
}

.sun-icon,
.moon-icon {
    position: absolute;
    transition: all 0.3s ease;
}

.sun-icon {
    transform: rotate(0deg) scale(1);
    opacity: 1;
}

.moon-icon {
    transform: rotate(90deg) scale(0);
    opacity: 0;
}

[data-theme="light"] .sun-icon {
    transform: rotate(-90deg) scale(0);
    opacity: 0;
}

[data-theme="light"] .moon-icon {
    transform: rotate(0deg) scale(1);
    opacity: 1;
}

/* ========================================
   HERO SECTION
   Stunning hero design by tayfuntoprakcioglu.com
   ======================================== */

.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {

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

    50% {
        background-position: 100% 50%;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.7;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   UPSCALER SECTION
   Core functionality UI by tayfuntoprakcioglu.com
   ======================================== */

.upscaler-section {
    padding: var(--spacing-xl) 0;
}

.upscaler-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.upscaler-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Upload Area - Drag & drop by tayfuntoprakcioglu.com */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.03);
}

.upload-area.drag-active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.02);
}

.upload-content {
    max-width: 500px;
    margin: 0 auto;
}

.upload-icon {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.upload-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.upload-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.upload-formats {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

/* Processing Area - Image comparison by tayfuntoprakcioglu.com */
.processing-area {
    animation: fadeIn 0.4s ease-out;
}

.image-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.image-panel {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.panel-header h4 {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.resolution-tag {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'Monaco', monospace;
}

.resolution-tag.enhanced {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.image-container {
    padding: var(--spacing-md);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-conic-gradient(#1a1a24 0% 25%, #13131a 0% 50%);
    background-size: 20px 20px;
}

.image-container canvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: var(--shadow-glow);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Controls - Settings panel by tayfuntoprakcioglu.com */
.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-lg);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.control-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-select {
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.control-select:hover {
    border-color: var(--primary);
}

.control-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.control-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-card);
    border-radius: 3px;
    outline: none;
    border: 1px solid var(--border-color);
}

.control-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.control-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.control-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.control-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.slider-value {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-top: 8px;
}

/* Progress Bar - Visual feedback by tayfuntoprakcioglu.com */
.progress-container {
    margin-bottom: var(--spacing-lg);
    animation: fadeIn 0.3s ease-out;
}

.progress-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 100%;
    animation: progressGradient 1.5s linear infinite;
    transition: width var(--transition-base);
    border-radius: 4px;
}

@keyframes progressGradient {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.progress-text {
    text-align: center;
    margin-top: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Action Buttons - CTA design by tayfuntoprakcioglu.com */
.action-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-success {
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(16, 185, 129, 0.3);
}

/* ========================================
   FEATURES SECTION
   Feature showcase by tayfuntoprakcioglu.com
   ======================================== */

.features {
    padding: var(--spacing-lg) 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

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

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 0.9rem;
}

/* ========================================
   HOW IT WORKS SECTION
   Process visualization by tayfuntoprakcioglu.com
   ======================================== */

.how-it-works {
    padding: var(--spacing-xl) 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.step {
    position: relative;
    padding: var(--spacing-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.step:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.step-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--spacing-md);
    opacity: 0.3;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   FOOTER
   Site footer by tayfuntoprakcioglu.com
   ======================================== */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-tagline {
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-credits {
    margin-top: var(--spacing-sm);
}

.credit-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.credit-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-heading {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links li,
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 0.95rem;
}

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

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

.footer-license {
    margin-top: var(--spacing-xs);
    font-size: 0.8rem;
}

.footer-github {
    margin-top: var(--spacing-xs);
    font-size: 0.875rem;
}

.footer-github i {
    margin-right: 6px;
}

/* Social Media Links - tayfuntoprakcioglu.com */
.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.social-link:active {
    transform: translateY(-1px);
}


/* Footer Donate Section - tayfuntoprakcioglu.com */
.footer-donate {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-donate-iframe {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.footer-donate-iframe iframe {
    border-radius: var(--radius-md);
}

/* ========================================
   UTILITY CLASSES
   Helper classes by tayfuntoprakcioglu.com
   ======================================== */

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   Mobile optimization by tayfuntoprakcioglu.com
   ======================================== */

@media (max-width: 1024px) {
    .image-comparison {
        grid-template-columns: 1fr;
    }

    .divider {
        display: none;
    }

    .controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        height: 64px;
    }

    /* Hide Original Header Controls on Mobile */
    .header-controls {
        display: none !important;
    }

    /* Style the new Mobile Bottom Bar */
    /* Style the new Mobile Bottom Bar (Floating Bottom Right) */
    .mobile-bottom-bar {
        position: fixed;
        bottom: calc(20px + env(safe-area-inset-bottom));
        right: 20px;
        left: auto;
        width: auto;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 6px 10px;
        /* Compact padding */
        border: 1px solid var(--border-color);
        border-radius: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        z-index: 1000;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    /* Show Mobile Donate FAB (Bottom Left) */
    .mobile-donate-fab {
        display: flex !important;
    }

    /* Dark mode support for bottom bar */
    [data-theme="dark"] .mobile-bottom-bar {
        background: rgba(17, 24, 39, 0.9);
    }

    .nav {
        gap: 8px;
        /* Tighter gap */
    }

    .nav-link {
        display: none;
        /* Hide text links on mobile */
    }

    /* Hide logo tagline on mobile */
    .logo-tagline {
        display: none;
    }

    /* Hide creator credit on mobile */
    .creator-credit {
        display: none;
    }

    /* Resize logo text for mobile fitting */
    .logo-text {
        font-size: 1.1rem;
    }

    /* Push social links to the right */
    .header-right {
        margin-left: auto;
    }

    /* Adjust content padding to prevent hiding behind bottom bar */
    body {
        padding-bottom: 80px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 24px;
        margin-top: 32px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .upscaler-container {
        padding: var(--spacing-md);
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons button {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        /* Adjust gap for better fit */
    }

    /* Stack Feature Card Content Vertically on Mobile - tayfuntoprakcioglu.com */
    .feature-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 12px !important;
        height: 100%;
        /* Equal height */
    }

    /* Adjust icon placement */
    .feature-icon-left,
    .feature-icon {
        margin-right: 0 !important;
        margin-bottom: 12px !important;
        font-size: 2rem !important;
        /* Larger icon for visibility */
    }

    /* Font optimizations for narrow columns */
    .feature-title {
        font-size: 0.95rem !important;
        line-height: 1.3;
        margin-bottom: 6px;
        min-height: 2.6em;
        /* Align titles */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feature-description {
        font-size: 0.75rem !important;
        line-height: 1.4;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

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

    /* Donate Modal Responsive - tayfuntoprakcioglu.com */
    .donate-modal-content {
        padding: var(--spacing-lg);
        max-width: 95%;
    }

    .donate-modal-title {
        font-size: 1.5rem;
    }

    .donate-modal-description {
        font-size: 1rem;
    }

    .donate-iframe-container iframe {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .donate-btn {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .nav-link {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .upload-area {
        min-height: 300px;
        padding: var(--spacing-md);
    }
}

/**
 * End of Styles
 * Premium design by tayfuntoprakcioglu.com
 * Open-source and free forever
 */
/* Donate Modal Styles - by tayfuntoprakcioglu.com */
.donate-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.donate-modal.hidden {
    display: none;
}

.donate-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.donate-modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    /* Reduced padding for more space */
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    /* Prevent overflow on small screens */
    overflow-y: auto;
    /* Enable scrolling */
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.donate-modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: 1.2rem;
}

.donate-modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.donate-modal-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-primary);
}

.donate-modal-title i {
    color: #ec4899;
    animation: heartBeat 1.3s ease-in-out infinite;
}

.donate-modal-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.donate-iframe-container {
    width: 100%;
    display: flex;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    min-height: 225px;
}

.donate-iframe-container iframe {
    width: 100%;
    max-width: 600px;
    height: 225px;
    border-radius: var(--radius-md);
}

.donate-fallback {
    text-align: center;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.donate-fallback p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.donate-fallback .btn-primary {
    padding: 10px 24px;
    font-size: 1rem;
    border-radius: 50px;
}

/* Crypto & Wise Styles - by tayfuntoprakcioglu.com */
.donate-section {
    margin: 24px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.donate-section h3 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Crypto Address */
.crypto-address {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.crypto-address code {
    flex: 1;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    color: var(--text-primary);
}

/* Wise Info */
.wise-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wise-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wise-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wise-value {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.wise-value code {
    flex: 1;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Copy Button */
.copy-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Thank You Message */
.thank-you-message {
    margin-top: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}



/* Language Selector - TEMPORARY for testing by tayfuntoprakcioglu.com */
.language-selector {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.lang-btn {
    padding: 6px 14px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.lang-btn:not(.active):hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Header Social Links - by tayfuntoprakcioglu.com */
.header-social-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.header-social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.header-social-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.header-social-link:active {
    transform: translateY(0);
}


/* Feature Cards with Left Icons - by tayfuntoprakcioglu.com */
.feature-card {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.feature-icon-left {
    font-size: 2.5rem;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all var(--transition-base);
}

.feature-card:nth-child(1) .feature-icon-left {
    color: #6366f1;
    /* Indigo */
}

.feature-card:nth-child(2) .feature-icon-left {
    color: #8b5cf6;
    /* Purple */
}

.feature-card:nth-child(3) .feature-icon-left {
    color: #ec4899;
    /* Pink */
}

.feature-card:nth-child(4) .feature-icon-left {
    color: #f59e0b;
    /* Amber */
}

.feature-card:nth-child(5) .feature-icon-left {
    color: #10b981;
    /* Green */
}

.feature-card:nth-child(6) .feature-icon-left {
    color: #3b82f6;
    /* Blue */
}

.feature-card:hover .feature-icon-left {
    transform: scale(1.1) rotate(5deg);
}

.feature-content {
    flex: 1;
}