/* ===== BASE STYLES ===== */
:root {
    /* Colors */
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Borders */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    line-height: 1.25;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #334155;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-2xl) 0;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-danger {
    background: #fee2e2;
    color: var(--error-color);
}

.btn-danger:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Alerts */
.alert {
    padding: var(--space-md);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background: #fef2f2;
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

/* Icons */
.icon {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-primary {
    color: var(--primary-color);
}

.icon-success {
    color: var(--success-color);
}

/* ===== LAYOUT COMPONENTS ===== */
/* Header */
.site-header {
    background: white;
    padding: var(--space-lg) 0;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-2xl);
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.logo-link {
    color: var(--primary-color);
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: color 0.2s ease;
}

.logo-link:hover {
    color: var(--primary-hover);
    text-decoration: none !important;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo i {
    font-size: 1.75rem;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-lg);
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-sm) 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Footer */
.site-footer {
    background: white;
    padding: var(--space-lg);
    margin-top: auto;
    text-align: center;
    color: #64748b;
    border-top: 1px solid var(--border-color);
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* ===== CONVERTER COMPONENTS ===== */
.converter-section {
    padding: var(--space-2xl) 0;
}

.drop-zone {
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius-lg);
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: var(--space-lg);
}

.drop-zone.drag-over {
    border-color: var(--success-color);
    background: #f0fdf4;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.drop-zone-content i {
    font-size: 3rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.drop-zone.drag-over .drop-zone-content i {
    color: var(--success-color);
    transform: scale(1.1);
}

/* Preview */
.preview-container {
    margin: var(--space-2xl) 0;
}

.preview-image {
    max-width: 100%;
    text-align: center;
    margin-bottom: var(--space-lg);
}

.preview-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

/* Settings */
.settings {
    background: #f8fafc;
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--space-lg);
}

.settings-group {
    margin-bottom: var(--space-lg);
}

.settings-group:last-child {
    margin-bottom: 0;
}

.quality-slider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.quality-slider input[type="range"] {
    flex: 1;
    accent-color: var(--primary-color);
}

/* Comparison */
.comparison {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin: var(--space-2xl) 0;
}

.original-info,
.converted-info {
    text-align: center;
    padding: var(--space-lg);
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
}

.detail-item i {
    color: var(--primary-color);
}

.detail-item.success {
    color: var(--success-color);
    font-weight: 500;
}

/* ===== PRIVACY POLICY ===== */
.privacy-policy {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-2xl);
    margin: var(--space-2xl) 0;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.privacy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.privacy-section h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary-color);
}

.privacy-section ul {
    margin: var(--space-md) 0 var(--space-md) var(--space-lg);
}

.privacy-section li {
    margin-bottom: var(--space-sm);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .comparison {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .privacy-policy {
        padding: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .privacy-section h3 {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
    
    .btn {
        width: 100%;
    }
}

.site-header {
    background: white;
    padding: 1.5rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

.header-content h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    color: #64748b;
    font-size: 1.1rem;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
}

.converter-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.converter-wrapper {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.drop-zone {
    border: 2px dashed var(--primary-color);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

.drop-zone.drag-over {
    border-color: var(--success-color);
    background: #f0fdf4;
}

.drop-zone.drag-over .drop-zone-content i {
    color: var(--success-color);
    transform: scale(1.1);
}

.drop-zone:hover {
    border-color: var(--primary-hover);
    background: #f8fafc;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.drop-zone-content i {
    font-size: 3rem;
    color: var(--primary-color);
}

.drop-zone-content p {
    color: #64748b;
    line-height: 1.6;
}

.preview-container {
    margin-top: 2rem;
}

.preview-image {
    max-width: 100%;
    margin-bottom: 1.5rem;
    text-align: center;
}

.preview-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.settings {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.settings-group {
    margin-bottom: 1.5rem;
}

.quality-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quality-slider input {
    flex: 1;
    accent-color: var(--primary-color);
}

.size-options {
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.size-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.custom-size {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.size-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.size-input input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    width: 100%;
}

.comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    align-items: center;
}

.original-info, .converted-info {
    text-align: center;
}

.original-info h3, .converted-info h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.25rem;
}

.size-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.detail-item i {
    width: 1.5rem;
    color: var(--primary-color);
}

.detail-item.success {
    color: var(--success-color);
    font-weight: 500;
}

/* Privacy Policy Styles */
.privacy-policy {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.privacy-policy h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
    text-align: center;
}

.privacy-policy .last-updated {
    color: #64748b;
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.privacy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.privacy-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privacy-section h3 i {
    color: var(--primary-hover);
}

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

.privacy-section ul {
    margin: 1rem 0 1rem 1.5rem;
    color: #334155;
}

.privacy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.privacy-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.privacy-section a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ===== FOOTER STYLES ===== */
.site-footer {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 3rem 0 0;
    margin-top: 3rem;
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid var(--border-color);
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-section p {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    opacity: 0.8;
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-section a:hover {
    color: var(--primary-color);
    opacity: 1;
    padding-left: 5px;
}

/* Modern Animated Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.social-links a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    color: var(--primary-color);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.social-links a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.social-links a i {
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.social-links a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: 1;
}

.social-links a:hover::after {
    width: 200%;
    height: 200%;
    opacity: 0;
}

/* Hover Effects */
.social-links a[aria-label="Facebook"] {
    color: #1877f2;
    border: 1px solid rgba(24, 119, 242, 0.2);
}

.social-links a[aria-label="Facebook"]:hover {
    background: #1877f2;
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.3);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-links .share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: white;
    color: #666;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.social-links .share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-links .share-btn:active {
    transform: translateY(0);
}

/* Platform-specific colors */
.social-links .share-btn[data-platform="facebook"] {
    color: #1877f2;
    border-color: rgba(24, 119, 242, 0.2);
}

.social-links .share-btn[data-platform="twitter"] {
    color: #1da1f2;
    border-color: rgba(29, 161, 242, 0.2);
}

.social-links .share-btn[data-platform="whatsapp"] {
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.2);
}

.social-links .share-btn[data-platform="telegram"] {
    color: #0088cc;
    border-color: rgba(0, 136, 204, 0.2);
}

.social-links .share-btn[data-platform="copy"] {
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.2);
}

/* Hover effects */
.social-links .share-btn[data-platform="facebook"]:hover {
    background-color: rgba(24, 119, 242, 0.1);
}

.social-links .share-btn[data-platform="twitter"]:hover {
    background-color: rgba(29, 161, 242, 0.1);
}

.social-links .share-btn[data-platform="whatsapp"]:hover {
    background-color: rgba(37, 211, 102, 0.1);
}

.social-links .share-btn[data-platform="telegram"]:hover {
    background-color: rgba(0, 136, 204, 0.1);
}

.social-links .share-btn[data-platform="copy"]:hover {
    background-color: rgba(107, 114, 128, 0.1);
}

/* Animation for copy button */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.social-links .share-btn i.fa-check {
    animation: fadeIn 0.3s ease;
}

.social-links a[aria-label="Twitter"]:hover {
    background: #1da1f2;
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(29, 161, 242, 0.3);
}

.social-links a[aria-label="Instagram"] {
    color: #e1306c;
    border: 1px solid rgba(225, 48, 108, 0.2);
}

.social-links a[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(225, 48, 108, 0.3);
}

.social-links a[aria-label="WhatsApp"] {
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.social-links a[aria-label="WhatsApp"]:hover {
    background: #25d366;
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.social-links a[aria-label="Telegram"] {
    color: #0088cc;
    border: 1px solid rgba(0, 136, 204, 0.2);
}

.social-links a[aria-label="Telegram"]:hover {
    background: #0088cc;
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 136, 204, 0.3);
}

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

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

.social-links a:hover i {
    animation: float 1.5s ease-in-out infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .social-links a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
}

.footer-bottom {
    background: white;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Responsive styles for privacy policy */
@media (max-width: 768px) {
    .privacy-policy {
        padding: 1.5rem 1rem;
    }
    
    .privacy-policy h2 {
        font-size: 1.75rem;
    }
    
    .privacy-section h3 {
        font-size: 1.25rem;
    }
    
    .privacy-section ul {
        margin-left: 1rem;
    }
}

@media (max-width: 480px) {
    .privacy-policy {
        padding: 1rem 0.75rem;
    }
    
    .privacy-policy h2 {
        font-size: 1.5rem;
    }
    
    .privacy-section h3 {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .privacy-section {
        padding-bottom: 1.25rem;
        margin-bottom: 1.5rem;
    }
}

.comparison-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

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

.save-message {
    margin-bottom: 1rem;
    color: var(--success-color);
    font-weight: 500;
}

.converted-info p {
    color: var(--success-color);
    font-weight: 500;
}

.convert-btn, .download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.convert-btn:hover, .download-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.how-to-use {
    padding: 4rem 0;
    background: #f8fafc;
}

.how-to-use h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

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

.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #64748b;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    font-size: 0.95rem;
    flex-grow: 1;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.feature-list li {
    color: #64748b;
    margin-bottom: 0.4rem;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.4;
}

.feature-list li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.benefits-section {
    margin-top: 4rem;
    text-align: center;
}

.benefits-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.benefit-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-item h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-item p {
    color: #64748b;
    line-height: 1.6;
}

.popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.proceed-btn, .replace-btn, .cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.proceed-btn {
    background: var(--primary-color);
    color: white;
}

.proceed-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.replace-btn {
    background: #f8fafc;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.replace-btn:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.cancel-btn {
    background: #f1f5f9;
    color: var(--text-color);
}

.cancel-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-convert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-convert-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.converter-container {
    display: block;
}

.conversion-history {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.history-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

.download-all-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-all-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.download-all-btn i {
    font-size: 1rem;
}

.download-all-btn.visible {
    display: flex;
}

.history-header h3 i {
    color: var(--primary-color);
}

.history-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
}

.empty-history {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    color: #94a3b8;
    text-align: center;
}

.empty-history i {
    font-size: 2rem;
}

.history-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-item-preview {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: white;
}

.history-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-color);
    font-size: 0.9rem;
}

.compression-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.history-item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.history-item-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-item-actions .download-btn {
    background: var(--primary-color);
    color: white;
}

.history-item-actions .download-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.history-item-actions .remove-btn {
    background: #fee2e2;
    color: #ef4444;
}

.history-item-actions .remove-btn:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

.result {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comparison {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.original-info,
.converted-info {
    flex: 1;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 0.5rem;
}

.info-details {
    margin-top: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.detail-item i {
    width: 20px;
    color: var(--primary-color);
}

.conversion-stats {
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-item i {
    color: var(--success-color);
}

.download-section {
    text-align: center;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: 0.5rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

.download-btn:hover {
    background: var(--primary-hover);
}

.download-info {
    margin-top: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
}

.download-info i {
    margin-right: 0.5rem;
}

@media (min-width: 768px) {
    .comparison {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .original-info,
    .converted-info {
        flex: 1;
        min-width: 300px;
    }
    
    .conversion-stats,
    .download-section {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .converter-container {
        display: block;
    }
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .converter-section {
        padding: 1.5rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .comparison-arrow {
        transform: rotate(90deg);
    }
    
    .custom-size {
        grid-template-columns: 1fr;
    }
    
    .quality-buttons {
        grid-template-columns: 1fr;
    }
    
    .popup-content {
        width: 90%;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .popup-info {
        flex-direction: column;
        gap: 1rem;
    }

    .size-input-group {
        grid-template-columns: 1fr;
    }

    .popup-actions {
        flex-direction: column;
    }

    .proceed-btn, .replace-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .popup-info {
        flex-direction: column;
        gap: 1rem;
    }

    .popup-actions {
        flex-direction: column;
    }

    .proceed-btn, .replace-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .how-to-use {
        padding: 2rem 0;
    }

    .how-to-use h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

.site-footer {
    margin-top: auto;
    text-align: center;
    padding: 1.5rem;
    background: white;
    color: #64748b;
}

/* Popup Styles */
.image-preview-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.image-preview-popup.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    overflow: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.popup-image-container {
    max-height: 60vh;
    overflow: auto;
    margin: 1rem 0;
    text-align: center;
    border-radius: 0.5rem;
    background: #f8fafc;
    padding: 1rem;
}

.popup-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.popup-info {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
}

.info-item i {
    color: var(--primary-color);
    width: 1.5rem;
}

.popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.proceed-btn, .replace-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.proceed-btn {
    background: var(--primary-color);
    color: white;
    border: none;
}

.proceed-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.replace-btn {
    background: #f8fafc;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.replace-btn:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    z-index: 1;
    transition: transform 0.2s ease;
}

.close-popup:hover {
    transform: scale(1.1);
    color: var(--primary-color);
}

.popup-details {
    margin: 1.5rem 0;
}

.conversion-options {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.conversion-options h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.quality-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.quality-control input[type="range"] {
    flex: 1;
    accent-color: var(--primary-color);
}

.popup-size-controls {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
}

.size-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.size-input-group label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.size-input-group input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    width: 100%;
}

.popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.proceed-btn, .replace-btn, .cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.proceed-btn {
    background: var(--primary-color);
    color: white;
}

.proceed-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.replace-btn {
    background: #f8fafc;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.replace-btn:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.cancel-btn {
    background: #f1f5f9;
    color: var(--text-color);
}

.cancel-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-convert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-convert-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}
