/* Upload + Compression 50/50 Row */
.upload-compression-row {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    margin-top: 1.5rem;
}

.upload-compression-row .upload-section,
.upload-compression-row .compression-options {
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 992px) {
    .upload-compression-row {
        flex-direction: column;
        gap: 1.5rem;
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    padding: 1rem 0;
}

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

.nav-brand h1 {
    font-size: 3.2rem;
    font-weight: 700;
}

.nav-brand h1 a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-brand h1 a:hover {
    opacity: 0.8;
}

/* Twitter Branding */
.brand-social {
    margin-top: 0.5rem;
}

.twitter-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.twitter-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.twitter-icon {
    font-size: 1.1rem;
}

.twitter-handle {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 620px;
    margin: 0 auto 1.5rem;
}

/* Ad Spaces */
.ad-space {
    margin: 2rem 0;
    text-align: center;
    display: none; /* Hidden for now */
}

.ad-placeholder {
    background: #e2e8f0;
    border: 2px dashed #cbd5e0;
    padding: 2rem;
    border-radius: 8px;
    color: #64748b;
    font-weight: 500;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-top {
    margin-top: 2rem;
}

.ad-middle, .ad-bottom {
    margin: 3rem 0;
}

/* Upload Section */
.upload-section {
    padding: 1.5rem 0;
}

.upload-area {
    background: white;
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #667eea;
    background-color: #f8fafc;
}

.upload-area.dragover {
    border-color: #667eea;
    background-color: #eef2ff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
}

.upload-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    color: #1e293b;
}

.upload-content p {
    color: #64748b;
    margin-bottom: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.upload-info {
    margin-top: 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.change-photos-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.change-photos-link:hover {
    color: #5a67d8;
    background-color: rgba(102, 126, 234, 0.1);
    text-decoration: underline;
}

.photo-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.photo-actions .change-photos-link {
    margin-top: 0;
}

/* Compression Options */
.compression-options {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.compression-options h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
    text-align: center;
}

.compression-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.compression-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quality-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-compression-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.quality-selector label {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.quality-selector label:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.quality-selector input[type="radio"] {
    margin-right: 0.8rem;
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.quality-selector input[type="radio"]:checked + .quality-option {
    color: #1d4ed8;
}

.quality-option {
    font-size: 0.95rem;
    color: #374151;
    flex: 1;
}

.custom-size-input {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.custom-size-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.input-group input {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-suffix {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.input-help {
    color: #6b7280;
    font-size: 0.8rem;
}

/* Responsive adjustments for quality selector */
@media (max-width: 768px) {
    .quality-selector {
        gap: 0.6rem;
    }
    
    .quality-selector label {
        padding: 0.6rem;
    }
}

.compression-hint {
    text-align: center;
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

@media (min-width: 1024px) {
    .options-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
}

/* 1366分辨率优化 */
@media (min-width: 1366px) {
    .hero {
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .upload-section {
        padding: 1rem 0;
    }
    
    .compression-options {
        padding: 1rem;
    }
    
    .compression-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .quality-selector {
        gap: 0.6rem;
    }
    
    .custom-compression-section {
        align-items: stretch;
    }
    
    .option-card {
        padding: 0.8rem;
    }
    
    .option-content {
        padding: 0.6rem;
    }
}

.option-card {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.option-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.option-card input[type="radio"] {
    display: none;
}

.option-card input[type="radio"]:checked + .option-content {
    background-color: #eef2ff;
    border-color: #667eea;
}

.option-card input[type="radio"]:checked ~ * {
    border-color: #667eea;
}

.option-card input[type="radio"]:checked + .option-content::before {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #667eea;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.option-content {
    position: relative;
    padding: 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.option-content h5 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #1e293b;
}

.option-content p {
    color: #64748b;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
}

.compression-level {
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 600;
}

.btn-compress {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-compress:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-compress:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: #9ca3af;
}

.btn-compress:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Results Section */
.results-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.results-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
    text-align: center;
}

.results-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.result-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.result-preview {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.result-info {
    flex: 1;
}

.result-info h5 {
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.result-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.result-savings {
    color: #10b981;
    font-weight: 600;
}

.result-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-download {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-download:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Features Section */
.features {
    background: white;
    padding: 4rem 0;
}

.features h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #1e293b;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 0;
    background: #f8fafc;
}

.how-it-works h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #1e293b;
}

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

.step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.step p {
    color: #64748b;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.footer-brand p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-social-link.twitter:hover {
    background: rgba(29, 161, 242, 0.2);
}

.footer-social-link.email:hover {
    background: rgba(239, 68, 68, 0.2);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.footer-section a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-powered strong {
    color: #fbbf24;
}

/* Legal pages styles */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.legal-content h1 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-text h2 {
    font-size: 1.3rem;
    color: #374151;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.legal-text p {
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 1rem;
}

.last-updated {
    font-style: italic;
    color: #6b7280;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Social Media Section */
.social-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 4rem 0;
    margin: 2rem 0;
    border-radius: 0px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.social-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.social-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-actions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.twitter-follow-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #1da1f2;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
    border: 2px solid transparent;
}

.twitter-follow-btn:hover {
    background: #0d8bd9;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

.twitter-follow-btn .twitter-handle {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.9rem;
    opacity: 0.9;
}

.social-proof {
    text-align: center;
}

.social-proof-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-link.twitter:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: rgba(29, 161, 242, 0.3);
}

.social-link.email:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

.social-icon {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .nav .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-brand h1 {
        font-size: 2.6rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .social-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-stats {
        justify-content: center;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    /* Download Modal Responsive */
    .download-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .summary-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    
    .download-file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .download-file-action {
        align-self: stretch;
    }
    
    .download-file-action button {
        width: 100%;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions button {
        width: 100%;
    }
    
    .upload-area {
        padding: 1.2rem 1rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    
    .option-card {
        padding: 0.8rem;
    }
    
    .option-content {
        padding: 0.6rem;
    }
    
    .option-content h5 {
        font-size: 0.85rem;
    }
    
    .option-content p {
        font-size: 0.75rem;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .result-item {
        flex-direction: column;
        text-align: center;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-preview {
        width: 100px;
        height: 100px;
        align-self: center;
    }
    
    .result-stats {
        justify-content: center;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .nav-brand h1 {
        font-size: 2.1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.2rem;
    }
    
    .upload-area {
        padding: 1rem 0.8rem;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .upload-content h3 {
        font-size: 1.1rem;
    }
    
    .compression-options {
        padding: 0.8rem;
    }
    
    .option-card {
        padding: 0.6rem;
    }
    
    .option-content {
        padding: 0.5rem;
    }
    
    .option-content h5 {
        font-size: 0.8rem;
    }
    
    .option-content p {
        font-size: 0.7rem;
    }
    
    .option-card input[type="radio"]:checked + .option-content::before {
        width: 16px;
        height: 16px;
        font-size: 10px;
        top: 0.3rem;
        right: 0.3rem;
    }
    
    .btn-compress {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
    }
    
    .features,
    .how-it-works {
        padding: 1.5rem 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Photo Thumbnails */
.photo-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
    max-height: 250px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.photo-thumbnail {
    text-align: center;
}

.photo-thumbnail img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #e2e8f0;
    margin-bottom: 0.5rem;
}

/* Page Content Styles */
.page-content {
    padding: 2rem 0;
    min-height: 60vh;
}

.page-content h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: #6b7280;
    margin-bottom: 3rem;
    font-style: italic;
}

.content-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    color: #374151;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.content-section p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.content-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-section li {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.content-section a {
    color: #3b82f6;
    text-decoration: none;
}

.content-section a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    color: #1f2937;
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #374151;
}

.modal-body {
    margin-bottom: 1.5rem;
}

/* Download Modal Styles */
.download-modal {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
}

.download-summary {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.summary-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.summary-stats .stat-item {
    text-align: center;
    flex: 1;
}

.summary-stats .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.summary-stats .stat-label {
    font-size: 0.9rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.download-files-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.download-files-list::-webkit-scrollbar {
    width: 6px;
}

.download-files-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.download-files-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.download-files-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.download-file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.download-file-item:last-child {
    border-bottom: none;
}

.download-file-item:hover {
    background-color: #f8fafc;
}

.download-file-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.download-file-info {
    flex: 1;
}

.download-file-name {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.download-file-stats {
    font-size: 0.85rem;
    color: #64748b;
}

.download-file-size {
    font-weight: 600;
    color: #3b82f6;
}

.download-file-savings {
    color: #10b981;
    font-weight: 500;
}

.download-file-action {
    flex-shrink: 0;
}

.download-file-action button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.notification-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.notification-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.notification-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.notification-message {
    flex: 1;
    margin-right: 1rem;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #374151;
}

.modal-content h2 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* reCAPTCHA Styling */
.g-recaptcha {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

.g-recaptcha > div {
    margin: 0 auto;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1001;
    max-width: 400px;
    animation: notificationSlideIn 0.3s ease-out;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.notification-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.notification-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.notification-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    margin-left: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* Responsive Design for Pages */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .page-content h1 {
        font-size: 2rem;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

.photo-name {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Language Selector Styles */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-selector .dropdown {
    position: relative;
}

.language-selector .dropdown-toggle {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
    min-width: 120px;
}

.language-selector .dropdown-toggle:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.language-selector .language-icon {
    font-size: 16px;
}

.language-selector .current-language {
    flex: 1;
    text-align: left;
}

.language-selector .dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.language-selector .dropdown-toggle:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.language-selector .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 4px;
    min-width: 600px;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 8px;
}

.language-selector .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.2s ease;
    border-radius: 6px;
    margin: 2px;
}

.language-selector .dropdown-item:hover {
    background-color: #f8fafc;
}

.language-selector .dropdown-item.active {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.language-selector .language-flag {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .language-selector .dropdown-toggle {
        min-width: 100px;
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .language-selector .dropdown-menu {
        min-width: 200px;
        grid-template-columns: 1fr;
        max-height: 300px;
    }
    
    .language-selector .dropdown-item {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .language-selector .dropdown-menu {
        min-width: 400px;
        grid-template-columns: repeat(2, 1fr);
    }
}

