
        :root {
            --primary-color: #4361ee;
            --secondary-color: #3a0ca3;
            --accent-color: #4cc9f0;
            --light-color: #f8f9fa;
            --dark-color: #212529;
            --success-color: #2ecc71;
            --warning-color: #f39c12;
            --error-color: #e74c3c;
            --card-bg: rgba(255, 255, 255, 0.98);
            --text-color: #333;
            --text-light: #777;
        }
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Poppins', sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #e6e9f0 100%);
            color: var(--text-color);
            line-height: 1.6;
            min-height: 100vh;
        }
        
        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header Styles */
        header {
            background: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            max-width: 1100px;
            margin: 0 auto;
        }
        
        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
        }
        
        .logo img {
            height: 40px;
            margin-right: 10px;
        }
        
        .logo-text {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--secondary-color);
            background: linear-gradient(to right, #4361ee, #3a0ca3);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 25px;
        }
        
        nav ul li a {
            text-decoration: none;
            color: var(--dark-color);
            font-weight: 500;
            transition: color 0.3s ease;
            position: relative;
        }
        
        nav ul li a:hover {
            color: var(--primary-color);
        }
        
        nav ul li a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            background: var(--primary-color);
            bottom: -5px;
            left: 0;
            transition: width 0.3s ease;
        }
        
        nav ul li a:hover::after {
            width: 100%;
        }
        
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--dark-color);
            cursor: pointer;
        }
        
        /* Main Content Styles */
        .main-header {
            text-align: center;
            margin: 30px 0;
            padding: 15px 0;
            animation: fadeIn 0.8s ease-out;
        }
        
        h1 {
            color: var(--secondary-color);
            margin-bottom: 8px;
            font-size: 2.2rem;
            font-weight: 700;
            background: linear-gradient(to right, #4361ee, #3a0ca3);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .tagline {
            font-size: 1rem;
            color: var(--text-light);
            max-width: 1000px;
            margin: 0 auto;
        }
        
        .converter-card {
            background: var(--card-bg);
            border-radius: 14px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
            padding: 30px;
            margin-bottom: 25px;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }
        
        .upload-area {
            border: 2px dashed var(--primary-color);
            border-radius: 10px;
            padding: 40px 15px;
            text-align: center;
            margin-bottom: 20px;
            cursor: pointer;
            background-color: rgba(67, 97, 238, 0.03);
            transition: background-color 0.2s ease;
        }
        
        .upload-area:hover {
            background-color: rgba(67, 97, 238, 0.08);
        }
        
        .upload-area.active {
            background-color: rgba(67, 97, 238, 0.1);
        }
        
        .upload-icon {
            font-size: 50px;
            margin-bottom: 15px;
            color: var(--primary-color);
        }
        
        .upload-text h3 {
            font-size: 1.3rem;
            margin-bottom: 8px;
            color: var(--secondary-color);
        }
        
        .upload-text p {
            color: var(--text-light);
            font-size: 0.9rem;
        }
        
        .file-input {
            display: none;
        }
        
        .preview-section {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .preview-container {
            flex: 1;
            min-width: 280px;
            display: flex;
            flex-direction: column;
            max-height: 360px;
        }
        
        .image-preview-wrapper {
            position: relative;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            max-width: 100%;
            border: 1px solid #eee;
            display: none;
            flex: 1;
            height: 340px;
        }
        
        .image-preview {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
            max-height: 320px;
        }
        
        .file-info {
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 12px;
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            font-size: 0.85rem;
            display: flex;
            justify-content: space-between;
        }
        
        .image-details {
            flex: 1;
            min-width: 280px;
            background: white;
            border-radius: 10px;
            padding: 15px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            border: 1px solid #eee;
            display: none;
            height: 340px;
            overflow-y: auto;
        }
        
        .detail-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            padding-bottom: 8px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .detail-label {
            font-weight: 500;
            color: var(--text-light);
            font-size: 0.95rem;
        }
        
        .detail-value {
            font-weight: 600;
            font-size: 0.95rem;
        }
        
        .options-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .option-card {
            background: white;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            border: 1px solid #eee;
        }
        
        .option-card h3 {
            font-size: 1.1rem;
            margin-bottom: 12px;
            color: var(--secondary-color);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .option-card h3 i {
            color: var(--primary-color);
            font-size: 1.1rem;
        }
        
        label {
            display: block;
            margin-bottom: 6px;
            font-weight: 500;
            color: var(--text-color);
            font-size: 0.95rem;
        }
        
        select, input[type="range"], input[type="number"], input[type="checkbox"] {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            background-color: white;
            font-size: 0.95rem;
            margin-bottom: 12px;
        }
        
        input[type="checkbox"] {
            width: auto;
            margin-right: 8px;
        }
        
        .checkbox-group {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
        }
        
        .range-container {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }
        
        input[type="range"] {
            flex: 1;
            -webkit-appearance: none;
            height: 6px;
            background: #e0e0e0;
            border-radius: 3px;
            padding: 0;
        }
        
        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            background: var(--primary-color);
            border-radius: 50%;
            cursor: pointer;
        }
        
        .range-value {
            font-weight: 600;
            min-width: 36px;
            text-align: center;
            color: var(--primary-color);
            font-size: 0.95rem;
        }
        
        .format-options {
            display: none;
            padding: 12px;
            background: #f9f9f9;
            border-radius: 6px;
            margin-top: 12px;
        }
        
        .action-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 30px;
            flex-wrap: wrap;
        }
        
        .btn {
            padding: 12px 25px;
            border-radius: 6px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border: none;
        }
        
        .btn-convert {
            background: linear-gradient(135deg, var(--success-color), #27ae60);
            color: white;
        }
        
        .btn-convert:hover {
            background: linear-gradient(135deg, #27ae60, var(--success-color));
        }
        
        .btn-reset {
            background: linear-gradient(135deg, #f39c12, var(--warning-color));
            color: white;
        }
        
        .btn-reset:hover {
            background: linear-gradient(135deg, var(--warning-color), #f39c12);
        }
        
        .loading-container {
            text-align: center;
            margin: 25px 0;
            display: none;
        }
        
        .spinner {
            width: 60px;
            height: 60px;
            margin: 0 auto 15px;
            border: 4px solid rgba(67, 97, 238, 0.1);
            border-radius: 50%;
            border-top-color: var(--primary-color);
            animation: spin 1s linear infinite;
        }
        
        .loading-text {
            font-size: 1rem;
            color: var(--text-light);
            margin-top: 12px;
        }
        
        .result-container {
            text-align: center;
            margin: 25px 0;
            display: none;
            animation: fadeIn 0.5s ease-out;
        }
        
        .success-icon {
            font-size: 50px;
            color: var(--success-color);
            margin-bottom: 15px;
        }
        
        .result-text {
            font-size: 1.1rem;
            margin-bottom: 20px;
            color: var(--text-color);
        }
        
        .download-btn {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 12px 30px;
            border-radius: 6px;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 0.95rem;
        }
        
        /* Footer Styles */
        footer {
            background: var(--dark-color);
            color: white;
            padding: 50px 0 20px;
            margin-top: 50px;
        }
        
        .footer-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .footer-logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: white;
            margin-bottom: 15px;
            display: inline-block;
        }
        
        .footer-about p {
            color: #bbb;
            margin-bottom: 20px;
            line-height: 1.6;
        }
        
        .social-links {
            display: flex;
            gap: 15px;
        }
        
        .social-links a {
            color: white;
            font-size: 1.2rem;
            transition: color 0.3s ease;
        }
        
        .social-links a:hover {
            color: var(--accent-color);
        }
        
        .footer-links h3 {
            color: white;
            font-size: 1.2rem;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }
        
        .footer-links h3::after {
            content: '';
            position: absolute;
            width: 40px;
            height: 2px;
            background: var(--primary-color);
            bottom: 0;
            left: 0;
        }
        
        .footer-links ul {
            list-style: none;
        }
        
        .footer-links ul li {
            margin-bottom: 10px;
        }
        
        .footer-links ul li a {
            color: #bbb;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .footer-links ul li a:hover {
            color: white;
            padding-left: 5px;
        }
        
        .footer-bottom {
            text-align: center;
            padding-top: 30px;
            margin-top: 30px;
            border-top: 1px solid #444;
            color: #bbb;
            font-size: 0.9rem;
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .header-container {
                padding: 15px 20px;
            }
            
            nav {
                position: fixed;
                top: 70px;
                left: -100%;
                width: 80%;
                height: calc(100vh - 70px);
                background: white;
                box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
                transition: left 0.3s ease;
                z-index: 99;
            }
            
            nav.active {
                left: 0;
            }
            
            nav ul {
                flex-direction: column;
                padding: 20px;
            }
            
            nav ul li {
                margin: 15px 0;
            }
            
            .mobile-menu-btn {
                display: block;
            }
            
            .converter-card {
                padding: 20px;
            }
            
            .upload-area {
                padding: 30px 15px;
            }
            
            .preview-container, .image-details {
                min-width: 100%;
                height: auto;
                max-height: none;
            }
            
            .image-preview-wrapper, .image-details {
                height: auto;
            }
            
            .action-buttons {
                flex-direction: column;
            }
            
            .btn {
                width: 100%;
                justify-content: center;
            }
        }
        
        @media (max-width: 480px) {
            h1 {
                font-size: 1.8rem;
            }
            
            .tagline {
                font-size: 0.9rem;
            }
            
            .option-card h3 {
                font-size: 1rem;
            }
            
            .footer-container {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .footer-links h3 {
                font-size: 1.1rem;
                margin-bottom: 15px;
            }
        }
        
        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
    