/* Base Variables */
:root {
    --primary-color: #6C5DD3;
    --primary-hover: #5b4cc4;
    --secondary-color: #F97316;
    --bg-color: #0F0F12;
    --surface-color: #1B1B1F;
    --surface-hover: #27272c;
    --text-color: #FFFFFF;
    --text-muted: #A0A0A5;
    --border-color: #2E2E32;
    --glass-bg: rgba(27, 27, 31, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hidden {
    display: none !important;
}

.mt-4 {
    margin-top: 16px !important;
}

/* Background Animation */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--primary-color);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--secondary-color);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: #3B82F6;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* Header */
.header {
    padding: 24px 0;
    position: relative;
    z-index: 10;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}

.logo i {
    color: var(--primary-color);
    font-size: 28px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__link {
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--text-color);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-weight: 600;
    padding: 8px 16px;
    background: var(--surface-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--surface-hover);
}

/* Hero */
.hero {
    padding: 60px 0;
    text-align: center;
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, #a5a5a5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding-bottom: 60px;
}

.tool-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: left;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tool-card i {
    font-size: 32px;
    color: var(--primary-color);
}

.tool-card h3 {
    font-size: 18px;
    font-weight: 600;
}

.tool-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
}

.tool-card.new-badge::after {
    content: 'Novo';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--secondary-color);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 99px;
    text-transform: uppercase;
}

/* Tool Interface */
.tool-interface {
    padding: 40px 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 32px;
    transition: var(--transition);
}

.back-btn:hover {
    color: var(--text-color);
}

.tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.tool-header h2 {
    font-size: 36px;
    margin-bottom: 8px;
}

.tool-header p {
    font-size: 18px;
    color: var(--text-muted);
}

/* Converter Box */
.converter-box {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.converter-box.drag-over {
    border-color: var(--primary-color);
    background: rgba(108, 93, 211, 0.1);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: rgba(108, 93, 211, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 8px;
    transition: var(--transition);
}

.converter-box:hover .icon-circle {
    transform: scale(1.1);
    background: rgba(108, 93, 211, 0.2);
}

.btn {
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 93, 211, 0.4);
}

.btn-secondary {
    background: var(--surface-hover);
    color: white;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-text {
    color: var(--text-muted);
    font-size: 14px;
}

.btn-text:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* File List & Work Area */
.file-list-area {
    margin-top: 32px;
    width: 100%;
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 24px;
    padding-right: 8px;
}

.file-list::-webkit-scrollbar {
    width: 6px;
}

.file-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.file-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.file-item {
    background: var(--surface-color);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fadeIn 0.3s ease;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.file-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.file-icon {
    color: #ef4444;
    font-size: 24px;
}

.file-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 12px;
    color: var(--text-muted);
}

.file-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Status Badges */
.status-badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.status-pending {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.status-processing {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.status-complete {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.status-error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.action-btn-sm {
    color: var(--text-muted);
    font-size: 16px;
    transition: 0.2s;
}

.action-btn-sm:hover {
    color: var(--primary-color);
}

.remove-btn:hover {
    color: #ef4444;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Controls Area (for tools like Protect/Watermark) */
.tool-controls {
    margin-bottom: 24px;
    padding: 24px;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    width: 100%;
}

.control-group {
    margin-bottom: 16px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.form-control {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Result Area */
.result-area {
    text-align: center;
    padding: 20px;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #10B981;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.result-area h3 {
    font-size: 24px;
    margin-bottom: 24px;
}

.download-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

/* Footer & Info */
.info-section {
    padding: 80px 0;
    background: var(--surface-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.info-card {
    padding: 32px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(108, 93, 211, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-section {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

/* Mobile */
@media (max-width: 768px) {
    .hero__title {
        font-size: 32px;
    }

    .converter-box {
        padding: 24px;
    }

    .header__container {
        flex-direction: column;
        gap: 16px;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .file-left {
        width: 100%;
    }

    .file-status {
        width: 100%;
        justify-content: space-between;
    }
}
/* --- NEW HUB STYLES (Added for version 2.0) --- */

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto 60px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 24px;
    padding-left: 50px;
    border-radius: 50px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 16px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(108, 93, 211, 0.2);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Category Sections */
.category-section {
    margin-bottom: 80px;
    animation: fadeIn 0.5s ease;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.category-header h2 {
    font-size: 24px;
    margin-bottom: 4px;
}

.category-header p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Category Grid */
.category-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.hub-tool-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.hub-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.hub-tool-card:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

.hub-tool-card:hover::before {
    opacity: 1;
}

.hub-tool-card .tool-icon {
    font-size: 24px;
    color: var(--text-muted);
    transition: var(--transition);
}

.hub-tool-card:hover .tool-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.hub-tool-card .tool-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.hub-tool-card .tool-info p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Tool Page Specifics */
.tool-header-wrapper {
    text-align: center;
    padding: 20px 0 40px;
}

.tool-header-wrapper h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, #a5a5a5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Dev Profile Section (Added) --- */
.dev-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(108, 93, 211, 0.05) 100%);
    border-top: 1px solid var(--border-color);
}

.dev-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--surface-color);
    padding: 60px;
    border-radius: 32px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.dev-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(108,93,211,0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
}

.dev-image {
    flex-shrink: 0;
    width: 320px;
    height: 380px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 30px rgba(108, 93, 211, 0.1);
    z-index: 1;
}

.dev-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.dev-image:hover img {
    transform: scale(1.05);
}

.dev-content {
    flex: 1;
    z-index: 1;
}

.dev-title {
    font-size: 42px;
    margin-bottom: 8px;
    color: white;
    font-weight: 700;
}

.dev-title .highlight {
    background: linear-gradient(90deg, #6C5DD3, #F97316);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dev-subtitle {
    font-size: 20px;
    color: #3B82F6;
    margin-bottom: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dev-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
    max-width: 600px;
}

.dev-text strong {
    color: var(--text-color);
}

.dev-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: var(--bg-color);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dev-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 968px) {
    .dev-wrapper {
        flex-direction: column;
        padding: 30px;
        text-align: center;
        gap: 30px;
    }

    .dev-image {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        margin: 0 auto;
    }

    .dev-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .dev-buttons {
        justify-content: center;
    }
    
    .dev-title {
        font-size: 32px;
    }
}
