/* styles.css */

/* ============================================
   VARIABLES AND RESET SECTION
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    color: inherit;
    margin: 0;
}

:root {
    /* COLOR PALETTE */
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #93c5fd;
    --secondary-color: #f1f5f9;
    --text-dark: #1f2937;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e6e9f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --background: #ffffff;
    --background-alt: #f6f7fb;
    
    /* SHADOWS */
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* BORDER RADIUS */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    background-color: var(--background-alt);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION SECTION
   ============================================ */

.navbar {
    background-color: #FAF8F6;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Keep navbar contents on a single line and avoid wrapping */
.navbar .container {
    flex-wrap: nowrap;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    z-index: 1001;
    transition: opacity 0.2s ease;
    width: 210px;
    flex-shrink: 0;
}

.navbar-brand:hover {
    opacity: 1;
}

.navbar-brand:hover .brand-name {
    color: var(--text-dark);
}

.logo-icon {
    width: 34px;
    height: 34px;
    color: var(--primary-color);
}

.logo-orbit {
    transform-origin: 16px 16px;
    animation: logoOrbit 2.6s linear infinite;
}

.logo-orbit-dot {
    fill: currentColor;
    stroke: none;
    opacity: 0.95;
}

@keyframes logoOrbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-orbit {
        animation: none;
    }
}

.brand-name {
    color: var(--text-dark);
    letter-spacing: 0.2px;
}

.mobile-toggle {
    display: none !important;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    z-index: 1001;
    padding: 0.5rem;
    transition: color 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-toggle svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.mobile-toggle:hover {
    color: var(--primary-color);
}

/* NAV MENU AND ITEMS */
.nav-menu {
    display: flex;
    flex: 1 1 auto;
    gap: 1rem;
    align-items: center;
    margin-left: 0;
    padding-left: 0;
}

.nav-item {
    position: relative;
}

.nav-item.dropdown {
    --dropdown-menu-offset: 1.25rem;
}

/* Create hover area between nav-link and dropdown-menu */
.nav-item.dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -1.5rem;
    z-index: 999;
}

.nav-link {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    padding: 0.35rem 0.5rem;
    font-family: inherit;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--radius-md);
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--background-alt);
}

.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.15);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

/* NAV ICONS */
.nav-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    flex-shrink: 0;
}

/* Hide the inline SVG icons beside top-level nav labels (user requested) */
.nav-menu > .nav-item .nav-icon {
    display: none;
}

/* Dropdown arrow for nav links: default points up, on hover points down */
.nav-item.dropdown .nav-link {
    position: relative;
}
.nav-item.dropdown .nav-link::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 6px;
    vertical-align: middle;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374151'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    transform: rotate(-180deg); /* up by default */
    transition: transform 0.18s ease, filter 0.18s ease;
    filter: grayscale(0%);
}
.nav-item.dropdown:hover .nav-link::after {
    transform: rotate(0deg); /* down on hover */
    filter: none;
}

/* Hide category icons (user requested no icons before categories) */
.category-header .category-icon {
    display: none;
}

/* NAV AUTH BUTTONS - Always on the right side */
.nav-auth {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-left: auto; /* Push to the right */
    flex-shrink: 0; /* Prevent shrinking */
}

.btn-login {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    font-family: inherit;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-login:hover {
    color: var(--primary-color);
    background-color: var(--background-alt);
}

.btn-signup {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-signup:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-signup:active {
    transform: translateY(0);
}

.btn-login,
.btn-login:link,
.btn-login:visited,
.btn-login:hover,
.btn-login:active,
.btn-signup,
.btn-signup:link,
.btn-signup:visited,
.btn-signup:hover,
.btn-signup:active,
.nav-auth a,
.nav-auth a:link,
.nav-auth a:visited,
.nav-auth a:hover,
.nav-auth a:active {
    text-decoration: none !important;
}

/* ============================================
   SEARCH CONTAINER SECTION - DISABLED
   ============================================ */
/* Search functionality removed - keeping code commented for future use
/* Search functionality removed - keeping code commented for future use
.search-container {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 250px;
}

.search-input-wrapper .search-icon {
    position: absolute;
    right: 0.75rem;
    width: 20px;
    height: 20px;
    color: var(--text-light);
    pointer-events: none;
}

.search-icon {
    width: 20px;
    height: 20px;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    width: 300px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.search-container.active .search-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background-color: var(--background-alt);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--background);
}

.search-results {
    margin-top: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 0.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: var(--background-alt);
    color: var(--primary-color);
}

.search-result-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.search-result-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.search-result-title {
    font-weight: 500;
    font-size: 0.9rem;
}

.search-result-category {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.search-result-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

.search-result-category-title {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--background-alt);
    margin: 0.5rem -0.5rem;
    border-radius: var(--radius-sm);
}
End of search styles comment */

/* ============================================
   DROPDOWN MENU SECTION
   ============================================ */

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    min-width: 720px;
    width: min(100%, 1100px);
    max-width: calc(100vw - 2rem);
    max-height: 70vh;
    overflow: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
    margin-top: var(--dropdown-menu-offset, 1.25rem);
}

.dropdown-menu::before,
.dropdown-menu::after {
    display: none;
}

.nav-item.dropdown::before,
.nav-item.dropdown::after {
    content: '';
    position: absolute;
    left: var(--dropdown-arrow-left, 36px);
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1003;
}

.nav-item.dropdown::before {
    top: calc(100% + var(--dropdown-menu-offset, 1.25rem) - 10px);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--border-color);
}

.nav-item.dropdown::after {
    top: calc(100% + var(--dropdown-menu-offset, 1.25rem) - 8px);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid var(--background);
}

.nav-item.dropdown:hover::before,
.nav-item.dropdown:hover::after,
.nav-item.dropdown:focus-within::before,
.nav-item.dropdown:focus-within::after {
    opacity: 1;
}

/* Arrow pointer on top of dropdown menu (box corner style) */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: var(--dropdown-arrow-left, 36px);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--border-color);
    transform: translateX(-50%);
    z-index: 1001;
}

.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -8px;
    left: var(--dropdown-arrow-left, 36px);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid var(--background);
    transform: translateX(-50%);
    z-index: 1002;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dropdown-section {
    padding: 1rem;
    border-right: none;
    border: none;
    border-radius: 0;
    background-color: transparent;
    min-width: 0;
    width: 100%;
}

.dropdown-section:last-child {
    border-right: none;
}

.dropdown-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.75rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    border-radius: var(--radius-md);
    margin-bottom: 0.2rem;
    position: relative;
    width: 100%;
    min-width: 0;
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
}

.dropdown-link:hover {
    color: var(--primary-color);
    background-color: #ffffff;
    border-color: rgba(99, 102, 241, 0.35);
    border-left: 3px solid var(--primary-color);
    padding-left: 0.75rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.dropdown-link:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.35);
    outline-offset: 2px;
    background-color: #ffffff;
    border-left: 3px solid var(--primary-color);
    padding-left: 0.75rem;
    border-color: rgba(99, 102, 241, 0.35);
}

@media (max-width: 980px) {
    .dropdown-menu {
        min-width: 0;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        padding: 0.85rem;
    }
}

@media (max-width: 720px) {
    .dropdown-menu {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        padding: 0.75rem;
    }
}

.dropdown-icon {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.dropdown-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.dropdown-link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.dropdown-link-title {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.85rem;
    line-height: 1.3;
    max-width: 100%;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.dropdown-link:hover .dropdown-icon,
.dropdown-link:focus-visible .dropdown-icon {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.dropdown-link:hover .dropdown-link-title,
.dropdown-link:focus-visible .dropdown-link-title {
    color: var(--primary-color);
}

.dropdown-link-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.3;
    display: none;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background-color: var(--background);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: visible;
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.06);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    display: none;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.upload-section {
    margin: 3rem 0;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    background-color: var(--background-alt);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.02);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.file-input {
    display: none;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.upload-area:hover .upload-icon {
    transform: translateY(-5px);
}

.upload-text {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.upload-text:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.upload-info {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 1.5rem;
}

.upload-terms {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.upload-terms a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.upload-terms a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.format-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: flex-end;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.selector-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selector-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.format-select {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background-color: var(--background);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.format-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.quality-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
    margin-top: 0.5rem;
    cursor: pointer;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid white;
    box-shadow: var(--shadow);
}

.quality-slider::-webkit-slider-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.quality-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid white;
    box-shadow: var(--shadow);
}

.quality-slider::-moz-range-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.quality-value {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 500;
}

.btn-convert {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    height: fit-content;
    align-self: center;
    grid-column: 1 / -1;
    justify-self: center;
    min-width: 200px;
}

.btn-convert:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-convert:active:not(:disabled) {
    transform: translateY(0);
}

.btn-convert:disabled {
    background-color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

/* ============================================
   LOADING SECTION
   ============================================ */

.loading-section {
    margin-top: 3rem;
    padding: 2.5rem;
    background-color: var(--background);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow);
}

.spinner {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 4px solid rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================
   RESULT SECTION
   ============================================ */

.result-section {
    margin-top: 3rem;
    padding: 2.5rem;
    background-color: var(--background);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    animation: fadeIn 0.5s ease;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.75rem;
    text-align: center;
}

.converted-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.image-card {
    background-color: var(--background-alt);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.image-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.image-preview {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background-color: white;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.image-info {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    word-break: break-all;
    flex: 1;
}

.result-name {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.result-size {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0.25rem 0;
}

.result-compression {
    font-size: 0.85rem;
    color: var(--success-color);
    font-weight: 500;
    margin: 0.25rem 0;
}

.btn-download {
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.2s ease;
    font-weight: 500;
    font-family: inherit;
}

.btn-download:hover {
    background-color: #0da271;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-download-all {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    margin: 0 auto;
    font-size: 1rem;
    font-family: inherit;
    min-width: 200px;
}

.btn-download-all:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* ============================================
   SELECTED FILES DISPLAY
   ============================================ */

.selected-files {
    margin-top: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.selected-files h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 250px;
    overflow-y: auto;
    padding: 1rem;
    background-color: var(--background-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.file-item:hover {
    border-color: var(--primary-light);
    transform: translateX(2px);
}

.file-name {
    font-size: 0.875rem;
    color: var(--text-dark);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-left: 1rem;
    white-space: nowrap;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    margin-left: 0.5rem;
    padding: 0 0.25rem;
    font-family: inherit;
    transition: transform 0.2s ease;
    line-height: 1;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.btn-remove:hover {
    transform: scale(1.1);
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    padding: 5rem 0;
    background-color: var(--background-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--background);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 56px;
    height: 56px;
    color: var(--primary-color);
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */

.how-it-works {
    padding: 5rem 0;
    background-color: var(--background);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    font-weight: 800;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    text-align: center;
}

.step {
    padding: 2rem;
    position: relative;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
    border-radius: 1.5px;
    opacity: 0.7;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.step h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.step p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   CATEGORY TOOLS SECTION
   ============================================ */

.category-tools-section {
    padding: 5rem 0;
    background-color: var(--background-alt);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.7;
}

.category-tool-group {
    margin-bottom: 4rem;
    background-color: var(--background);
    border-radius: var(--radius-lg);
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.category-tool-group:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-icon {
    width: 64px;
    height: 64px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.category-title-main {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.category-description {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 1rem;
}

.category-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tool-card {
    background-color: var(--background-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    background-color: white;
}

.tool-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.tool-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
}

.tool-card h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.tool-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    padding: 5rem 0;
    background-color: var(--background);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0 4rem;
}

.about-feature {
    background-color: var(--background-alt);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.about-feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.about-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background-color: var(--background);
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.about-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: currentColor;
}

.about-feature:hover .about-icon {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.about-feature h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-feature p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

.mission-statement {
    background-color: var(--background-alt);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin: 4rem 0;
    box-shadow: var(--shadow);
}

.mission-statement h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.mission-statement p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.mission-statement p:last-child {
    margin-bottom: 0;
}

.use-cases {
    margin: 4rem 0;
}

.use-cases h3 {
    font-size: 2rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.use-case {
    background-color: var(--background-alt);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.use-case:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.use-case h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.use-case p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

.seo-content {
    background-color: var(--background-alt);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-top: 4rem;
    box-shadow: var(--shadow);
}

.seo-content h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.seo-content h4 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.seo-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.seo-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   USAGE RULES SECTION
   ============================================ */

.usage-rules {
    padding: 5rem 0;
    background-color: var(--background-alt);
}

.rules-content {
    max-width: 1200px;
    margin: 0 auto;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.rule-card {
    background-color: var(--background);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.rule-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.rule-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rule-card ul {
    list-style: none;
    padding: 0;
}

.rule-card li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    line-height: 1.6;
}

.rule-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.rule-card li:last-child {
    margin-bottom: 0;
}

.rules-notice {
    background-color: var(--warning-color);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.rules-notice p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.rules-notice strong {
    color: var(--warning-color);
    font-weight: 600;
}

/* ============================================
   USAGE RULES SECTION
   ============================================ */

.usage-rules {
    padding: 5rem 0;
    background-color: var(--background-alt);
}

.rules-content {
    max-width: 1200px;
    margin: 0 auto;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0 4rem;
}

.rule-card {
    background-color: var(--background);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.rule-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.rule-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rule-card ul {
    list-style: none;
    padding: 0;
}

.rule-card li {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.rule-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.rule-card li:last-child {
    margin-bottom: 0;
}

.rules-notice {
    background-color: var(--warning-color);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.rules-notice p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.rules-notice strong {
    color: var(--warning-color);
    font-weight: 600;
}

/* ============================================
   FOOTER SECTION
   ============================================ */

.footer {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--primary-color));
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #f9fafb;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.875rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.footer-logo:hover {
    color: white;
    transform: translateY(-1px);
}

.logo-icon-footer {
    width: 32px;
    height: 32px;
    color: var(--primary-light);
    transition: transform 0.3s ease;
}

.footer-logo:hover .logo-icon-footer {
    transform: rotate(5deg);
}

.copyright {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-selector:hover {
    color: var(--primary-light);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.language-selector svg {
    color: currentColor;
    transition: transform 0.3s ease;
}

.language-selector:hover svg {
    transform: rotate(180deg);
}

/* ============================================
   NOTIFICATION SECTION
   ============================================ */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    z-index: 10000;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: slideIn 0.3s ease;
    max-width: 500px;
    min-width: 320px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.5;
}

.notification::before {
    content: '';
    font-size: 1.8rem;
    flex-shrink: 0;
}

.notification.success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border-color: rgba(255, 255, 255, 0.7);
}

.notification.success::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.3rem;
}

.notification.error {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-color: rgba(255, 255, 255, 0.7);
}

.notification.error::before {
    content: '✕';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.3rem;
}

.notification.info {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: rgba(255, 255, 255, 0.7);
}

.notification.info::before {
    content: 'ℹ';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.3rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============================================
   FILE INFO DISPLAY
   ============================================ */

.file-info-display {
    background-color: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-dark);
    animation: fadeInUp 0.3s ease;
    font-weight: 500;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE DESIGN SECTION
   ============================================ */

@media (max-width: 1024px) {
    .dropdown-menu {
        min-width: 750px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .mobile-toggle {
        display: block !important;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--background);
        padding: 1rem;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
        display: none;
        flex-direction: column;
        gap: 0;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: flex;
        padding: 1rem 0;
        width: 100%;
        text-align: left;
        justify-content: space-between;
        border-radius: 0;
        border-bottom: none;
    }

    .nav-link::after {
        content: '›';
        transform: rotate(90deg);
        transition: transform 0.2s ease;
    }

    .dropdown.active .nav-link::after {
        transform: rotate(-90deg);
    }

    .dropdown.active .nav-link {
        color: var(--primary-color);
        background-color: rgba(99, 102, 241, 0.15);
        font-weight: 700;
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
        transform: scale(1.05);
        box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0.5rem 0 0.5rem 1.5rem;
        display: none;
        width: 100%;
        min-width: auto;
        background-color: var(--background-alt);
        margin-top: 0.5rem;
        border-radius: var(--radius-md);
    }

    .dropdown.active .dropdown-menu {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .dropdown-section {
        min-width: 100%;
        margin-bottom: 0;
        padding: 0.25rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .dropdown-section:last-child {
        border-bottom: none;
    }

    .dropdown-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .dropdown-link {
        font-size: 0.9rem;
        padding: 0.5rem;
        margin-bottom: 0.25rem;
    }

    /* Search container - DISABLED
    .search-container {
        order: -1;
        margin-left: auto;
        margin-right: 1rem;
    }

    .search-input-wrapper {
        width: 200px;
    }

    .search-dropdown {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: auto;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    */

    .nav-auth {
        display: flex;
        order: 2;
        margin-left: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        padding: 0 1rem;
    }

    .upload-area {
        padding: 2rem 1rem;
        margin: 0 1rem;
    }

    .format-selector {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .converted-images {
        grid-template-columns: 1fr;
    }

    .category-tool-group {
        padding: 2rem 1.5rem;
        margin: 0 1rem 3rem;
    }

    .category-tools-grid {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .mission-statement,
    .seo-content {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .category-title-main {
        font-size: 1.75rem;
    }

    .category-description {
        font-size: 0.95rem;
    }

    .search-dropdown {
        width: calc(100vw - 2rem);
        left: 1rem;
        right: 1rem;
    }

    .search-input-wrapper {
        width: 180px;
    }

    .tool-card {
        padding: 1rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .step {
        padding: 1.5rem;
    }

    .loading-section,
    .result-section {
        padding: 2rem 1rem;
        margin: 2rem 1rem;
    }

    .btn-convert,
    .btn-download-all {
        width: 100%;
        min-width: auto;
    }

    .upload-text {
        padding: 0.75rem 1.5rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.hidden {
    display: none !important;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-alt);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.file-list::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

/* ============================================
   ANIMATION CLASSES
   ============================================ */

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   PNG TO JPG CONVERTER CONTENT STYLES
   ============================================ */

/* Use Cases Table */
.use-cases-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--background);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.use-cases-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.use-cases-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    vertical-align: top;
}

.use-cases-table tbody tr:nth-child(even) {
    background: var(--background-alt);
}

.use-cases-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

/* Converter Overview */
.converter-overview {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin: 1.5rem 0;
}

.overview-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.key-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Process Table */
.process-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--background);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.process-table th {
    background: var(--success-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.process-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.process-table tbody tr:nth-child(even) {
    background: var(--background-alt);
}

.process-table tbody tr:hover {
    background: rgba(16, 185, 129, 0.05);
}

/* Features Comparison */
.features-comparison {
    margin: 1.5rem 0;
}

.features-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--background);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.features-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.features-table tbody tr:nth-child(even) {
    background: var(--background-alt);
}

.features-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.features-table td:nth-child(2),
.features-table td:nth-child(3) {
    text-align: center;
    font-weight: 500;
}

/* Format Comparison Table */
.format-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--background);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.format-comparison-table th {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.format-comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.format-comparison-table tbody tr:nth-child(even) {
    background: var(--background-alt);
}

.format-comparison-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

/* Quality Settings Table */
.quality-settings-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--background);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.quality-settings-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quality-settings-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.quality-settings-table tbody tr:nth-child(even) {
    background: var(--background-alt);
}

.quality-settings-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

/* Conversion Benefit */
.conversion-benefit {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    text-align: center;
    font-weight: 500;
    box-shadow: var(--shadow);
}

/* Supported Formats */
.supported-formats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.format-item {
    background: var(--background);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s ease;
}

.format-item:hover {
    transform: translateY(-2px);
}

.format-item h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.format-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Browser Grid */
.browser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.browser-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--background);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.browser-item:hover {
    transform: translateY(-2px);
}

.browser-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.browser-item span:last-child {
    font-weight: 500;
    color: var(--text-dark);
}

/* Security Highlight */
.security-highlight {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.security-highlight p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #92400e;
}

.rule-item li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.4;
}

.rule-item li:last-child {
    margin-bottom: 0;
}

/* Troubleshooting List */
.troubleshooting-list {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.trouble-item {
    background: var(--background);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--warning-color);
    transition: transform 0.2s ease;
}

.trouble-item:hover {
    transform: translateY(-2px);
}

.trouble-item h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.trouble-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Alternative Tools */
.alternative-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.alt-tool {
    background: var(--background);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.alt-tool:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.alt-tool h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.alt-tool p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive Design for Tables */
@media (max-width: 768px) {
    .format-comparison-table,
    .quality-settings-table,
    .process-table,
    .features-table,
    .use-cases-table {
        font-size: 0.85rem;
    }

    .format-comparison-table th,
    .format-comparison-table td,
    .quality-settings-table th,
    .quality-settings-table td,
    .process-table th,
    .process-table td,
    .features-table th,
    .features-table td,
    .use-cases-table th,
    .use-cases-table td {
        padding: 0.75rem 0.5rem;
    }

    .key-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .use-cases-table,
    .supported-formats,
    .browser-grid,
    .alternative-tools {
        grid-template-columns: 1fr;
    }

    .use-case-row {
        flex-direction: column;
        text-align: center;
    }

    .use-case-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* ============================================
   CATEGORY FILTER TABS SECTION
   ============================================ */

.category-filter-container {
    margin: 2rem 0 3rem 0;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.category-tabs-wrapper {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    align-items: center;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background-color: transparent;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.category-tab:hover {
    color: var(--text-dark);
}

.category-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.dynamic-tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.tool-card-item {
    background-color: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-card-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.tool-card-item .tool-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    border-radius: var(--radius-md);
    color: var(--primary-color);
}

.tool-card-item .tool-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}

.tool-card-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}

.tool-card-item p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    flex-grow: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hide old category tool groups */
.category-tool-group {
    display: none;
}

/* Responsive design for category tabs */
@media (max-width: 768px) {
    .category-tabs-wrapper {
        gap: 0.25rem;
    }
    
    .category-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .dynamic-tools-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

/* ============================================
   NOTIFICATION STYLES
   ============================================ */

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 450px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(500px);
    animation: slideIn 0.3s ease forwards;
}

.notification.show {
    animation: slideIn 0.3s ease forwards;
}

.notification.success {
    border-left: 4px solid #10b981;
    color: #10b981;
    background: #f0fdf4;
}

.notification.error {
    border-left: 4px solid #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.notification.warning {
    border-left: 4px solid #f59e0b;
    color: #f59e0b;
    background: #fffbeb;
}

.notification.info {
    border-left: 4px solid #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(500px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(500px);
    }
}

@media (max-width: 640px) {
    .notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ============================================
   RELEVANT TOOLS SECTION
   ============================================ */

.relevant-tools {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--background), var(--background-alt));
}

.relevant-tools .section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.relevant-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.relevant-tool-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px -1px rgba(0, 0, 0, 0.05);
}

.relevant-tool-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
}

.relevant-tool-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.relevant-tool-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

@media (max-width: 768px) {
    .relevant-tools {
        padding: 2.5rem 0;
    }

    .relevant-tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .relevant-tool-card {
        padding: 1.5rem;
    }

    .relevant-tools .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}