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

:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --secondary: #00cec9;
    --bg: #0c0d14;
    --bg-light: #1a1b28;
    --bg-card: #181924;
    --text: #e0e0e0;
    --text-light: #a0a0b0;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Navbar */
.navbar {
    background: var(--bg-light);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(108, 92, 231, 0.2);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero */
.hero {
    text-align: center;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-light) 100%);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Tools Section */
.tools-section {
    padding: 60px 0;
}

.tools-section h2,
.about-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 40px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.2);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.tool-card h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 8px;
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* About / Features */
.about-section {
    padding: 60px 0;
    background: var(--bg-light);
}

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

.feature {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid rgba(108, 92, 231, 0.1);
}

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

.feature p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--bg-light);
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid rgba(108, 92, 231, 0.15);
    margin-top: 40px;
}

.footer p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

/* Tool Page Styles */
.tool-page {
    padding: 40px 0;
    min-height: 60vh;
}

.tool-page h1 {
    text-align: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 8px;
}

.tool-page .tool-desc {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.tool-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: var(--radius);
    padding: 40px;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed rgba(108, 92, 231, 0.4);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    margin-bottom: 24px;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
}

.drop-zone p {
    color: var(--text-light);
    font-size: 1rem;
}

.drop-zone .browse-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s;
}

.drop-zone .browse-btn:hover {
    background: var(--primary-dark);
}

/* File List */
.file-list {
    list-style: none;
    margin-bottom: 24px;
}

.file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.file-list li .file-name {
    color: var(--text);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-list li .file-size {
    color: var(--text-light);
    margin-left: 12px;
    font-size: 0.85rem;
}

.file-list li .remove-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: 12px;
    padding: 2px 6px;
}

/* Buttons */
.action-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.action-btn:hover {
    opacity: 0.9;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Result */
.result-area {
    margin-top: 24px;
    text-align: center;
    display: none;
}

.result-area.show {
    display: block;
}

.result-area .download-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--secondary);
    color: var(--bg);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s;
}

.result-area .download-btn:hover {
    opacity: 0.85;
}

.result-info {
    color: var(--text-light);
    margin-top: 12px;
    font-size: 0.9rem;
}

/* QR Specific */
.qr-input {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.qr-input:focus {
    border-color: var(--primary);
}

select.qr-input {
    background: var(--bg-card);
    color: var(--white);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0b0' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6.5 6.5-6.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

select.qr-input option {
    background: var(--bg-card);
    color: var(--white);
}

.qr-output {
    text-align: center;
    margin-top: 24px;
}

.qr-output canvas,
.qr-output img {
    border-radius: 8px;
    background: white;
    padding: 16px;
}

/* Converter Options */
.convert-options {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.convert-options label {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(108, 92, 231, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    color: var(--text);
}

.convert-options input[type="radio"] {
    display: none;
}

.convert-options input[type="radio"]:checked + label {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
    color: var(--white);
}

/* Quality Slider */
.quality-control {
    margin-bottom: 24px;
}

.quality-control label {
    display: block;
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.quality-control input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
}

/* Progress */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 16px;
    overflow: hidden;
    display: none;
}

.progress-bar.show {
    display: block;
}

.progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s;
}

/* SEO Content */
.seo-content {
    padding: 60px 0;
}

.seo-content h2 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.seo-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.seo-content ul {
    color: var(--text-light);
    margin-left: 20px;
    margin-bottom: 16px;
}

.seo-content li {
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 16px;
    }

    .tool-container {
        padding: 24px 16px;
        margin: 0 8px;
    }

    .nav-links {
        gap: 16px;
    }

    .convert-options {
        flex-direction: column;
    }
}
