:root {
    --primary-rgb: 49, 46, 129;
    --primary-red: #312e81;
    --primary-gradient: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
    --hover-red: #1e1b4b;
    --text-main: #1e1b4b;
    --text-muted: #64748b;
    --bg-main: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(99, 102, 241, 0.08);
    --border-dashed: #312e81;
    --border-color-opaque: rgba(99, 102, 241, 0.15);
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 15px 35px rgba(var(--primary-rgb), 0.1);
    --top-bg-gradient: var(--primary-gradient);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --overlay-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(79, 70, 229, 0.95));
}

[data-theme="dark"] {
    --primary-rgb: 49, 46, 129;
    --primary-red: #312e81;
    --primary-gradient: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
    --hover-red: #1e1b4b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --bg-main: #0f172a;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    --white: #1e293b;
    --card-bg: rgba(30, 41, 59, 0.98);
    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --overlay-bg: linear-gradient(135deg, rgba(79, 70, 229, 0.98), rgba(30, 41, 59, 0.98));
    --border-color: rgba(255, 255, 255, 0.05);
    --border-dashed: #312e81;
    --border-color-opaque: rgba(255, 255, 255, 0.15);
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 15px 35px rgba(var(--primary-rgb), 0.2);
    --top-bg-gradient: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
}

/* ===== PREMIUM COMING SOON UI STYLES ===== */
.working-on-it-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 40px 20px;
    /* Compact padding to avoid scrollbars */
    text-align: center;
    animation: fadeInSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.working-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.main-working-icon {
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 35% 65% 70% 30% / 30% 40% 60% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.3);
    animation: morphingBlob 8s ease-in-out infinite alternate;
    z-index: 2;
    position: relative;
}

@keyframes morphingBlob {
    0% {
        border-radius: 35% 65% 70% 30% / 30% 40% 60% 70%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.floating-particle {
    position: absolute;
    background: rgba(var(--primary-rgb), 0.2);
    border-radius: 50%;
    z-index: 1;
    animation: floatParticle 4s ease-in-out infinite;
}

.p1 {
    width: 40px;
    height: 40px;
    top: -10px;
    right: -10px;
    animation-delay: 0s;
}

.p2 {
    width: 30px;
    height: 30px;
    bottom: 0;
    left: -20px;
    animation-delay: 1s;
}

.p3 {
    width: 20px;
    height: 20px;
    bottom: 40px;
    right: -30px;
    animation-delay: 2s;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(15px, -15px);
    }
}

.working-on-it-container h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.working-on-it-container .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-red);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 50%;
    animation: pulseOrange 1.5s infinite;
}

@keyframes pulseOrange {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
}

.working-on-it-container p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 480px;
}

.coming-soon-btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-notify {
    background: var(--primary-gradient);
    color: white;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.btn-notify:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.4);
}

.btn-back-home {
    background: rgba(var(--primary-rgb), 0.05);
    color: var(--text-main);
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-back-home:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-red);
}

/* Notify Form Styles */
.notify-form {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeInSlideUp 0.5s ease;
}

.input-field-group {
    position: relative;
    width: 100%;
}

.input-field-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-red);
    font-size: 1rem;
    opacity: 0.7;
}

.notify-input {
    width: 100%;
    padding: 12px 16px 12px 46px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.notify-input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    color: var(--text-main);
    background: var(--bg-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Text Selection Colors – Theme Aware */
::selection {
    background-color: rgba(var(--primary-rgb), 0.85);
    color: #ffffff;
}

::-moz-selection {
    background-color: rgba(var(--primary-rgb), 0.85);
    color: #ffffff;
}

/* Keyword Highlight in Section Headings */
mark.kw {
    background-color: rgba(var(--primary-rgb), 1);
    color: #ffffff;
    border-radius: 5px;
    padding: 0px 16px;
    font-style: normal;
    display: inline-block;
    line-height: 1.25;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Header */
.top-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 480px;
    background: var(--top-bg-gradient);
    z-index: -2;
    clip-path: polygon(0% 0%,
            100% 0%,
            100% 100%,
            95% 98.5%,
            90% 97.1%,
            80% 94.9%,
            70% 93.3%,
            60% 92.3%,
            50% 92%,
            40% 92.3%,
            30% 93.3%,
            20% 94.9%,
            10% 97.1%,
            5% 98.5%,
            0% 100%);
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.header.scrolled {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color-opaque, rgba(0, 0, 0, 0.12));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.logo {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.4rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.logo-name-short {
    display: none;
}

@media (max-width: 768px) {
    .logo-name-full {
        display: none !important;
    }

    .logo-name-short {
        display: inline-block !important;
    }
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.header.scrolled .logo {
    color: var(--text-main);
}

.header.scrolled .logo-icon {
    color: var(--primary-red);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.main-nav a {
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
    opacity: 1;
}

.nav-tools {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 10px;
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.nav-tools::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-tools:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-tools:hover {
    color: #ffffff;
}

.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.header.scrolled .mobile-menu-toggle {
    color: var(--text-main);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.sign-in {
    padding: 6px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sign-in:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Header scrolled text states */
.header.scrolled .logo,
.header.scrolled .main-nav a:hover,
.header.scrolled .main-nav a.active,
.header.scrolled .nav-tools:hover,
.header.scrolled .sign-in:hover,
.header.scrolled .theme-toggle-btn:hover {
    color: var(--text-main);
    opacity: 1;
}

.header.scrolled .main-nav a,
.header.scrolled .nav-tools,
.header.scrolled .sign-in,
.header.scrolled .theme-toggle-btn {
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* Hero Section */
.hero-section {
    background: transparent;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.drop-zone-container {
    width: 100%;
    max-width: 900px;
    background-color: var(--card-bg);
    border-radius: 24px;
    padding: 6px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 420px;
    /* Fixed height - never grows */
}

.drop-zone-container:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 20px rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.drop-zone {
    border: 2px dashed rgba(var(--primary-rgb), 0.2);
    border-radius: 18px;
    padding: 20px 40px;
    text-align: center;
    background-color: transparent;
    transition: all 0.3s ease;
    height: 100%;
    /* Fill the fixed container */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.drop-zone::-webkit-scrollbar,
.drop-zone-container::-webkit-scrollbar,
#dropZoneContent::-webkit-scrollbar {
    display: none !important;
}

.drop-zone,
.drop-zone-container,
#dropZoneContent {
    scrollbar-width: none !important;
}

.drop-zone:hover {
    border-color: var(--primary-red);
    background-color: rgba(var(--primary-rgb), 0.04);
}

/* Base Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Full Screen Drag Overlay */
.drag-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--overlay-bg);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    color: white;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.drag-overlay.active {
    display: flex;
    opacity: 1;
}

.drag-overlay-content {
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.drag-overlay.active .drag-overlay-content {
    transform: scale(1);
}

.drag-icon-wrapper {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 3rem;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
    animation: pulse-white 2s infinite;
}

@keyframes pulse-white {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.drag-overlay h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
}

/* Modern File Card UI */
.modern-file-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 16px 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.4s ease-out;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.modern-file-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--primary-rgb), 0.6);
    box-shadow: none;
}

.modern-file-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-red);
    opacity: 0.6;
}

.file-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(var(--primary-rgb), 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-rename-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
    padding: 2px 0;
    flex: 1;
    min-width: 0;
    outline: none;
    transition: opacity 0.2s;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.file-rename-input:focus {
    border-color: var(--primary-red);
}

.rename-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.rename-icon {
    font-size: 0.85rem;
    color: var(--primary-red);
    background: rgba(var(--primary-rgb), 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0;
    line-height: normal;
    transform: translateY(2px);
    border: none;
}

.rename-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

.rename-icon:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(2px) scale(1.1);
}

.file-rename-input:focus+.rename-icon {
    background: rgba(var(--primary-rgb), 0.2);
    transform: translateY(2px) scale(1.05);
}

.file-size-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0.8;
    margin-right: 4px;
}

.remove-btn {
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.remove-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

.btn-convert-large {
    background: var(--primary-gradient);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px 64px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.btn-convert-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.5);
    filter: brightness(1.1);
}

.btn-convert-large::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-convert-large:hover::after {
    opacity: 1;
}

.file-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    color: var(--primary-red);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    animation: slideInUp 0.3s ease;
    flex-shrink: 0;
}

.selected-files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px 14px 4px 4px;
    scrollbar-width: thin;
}

.selected-files-list::-webkit-scrollbar {
    width: 5px;
}

.selected-files-list::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.2);
    border-radius: 10px;
}

.converter-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.add-more-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.add-more-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background: rgba(var(--primary-rgb), 0.02);
}

/* Drop zone inner content — fills fixed height, manages scroll */
#dropZoneContent {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
}

.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.icon-square {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.choose-file-btn {
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0;
    width: 340px;
    max-width: 100%;
    height: 64px;
    border-radius: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-size: 200% auto;
}

.choose-file-btn:hover {
    transform: scale(0.98);
    background-position: right center;
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.choose-file-btn .plus-icon {
    position: absolute;
    left: 24px;
    font-size: 1.2rem;
}

.cloud-options {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

.cloud-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.cloud-btn:hover {
    background-color: var(--primary-red);
    color: #ffffff;
    border-color: var(--primary-red);
    transform: scale(0.92);
}




.theme-toggle-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.theme-toggle-btn:hover {
    color: #ffffff;
}


/* ===================== */
/* SEO Content Sections  */
/* ===================== */




/* Footer */
.footer {
    background: var(--top-bg-gradient);
    padding: 120px 40px 0;
    width: 100%;
    margin-top: 80px;
    clip-path: polygon(0% 100%,
            0% 0%,
            5% 1.5%,
            10% 2.9%,
            20% 5.1%,
            30% 6.7%,
            40% 7.7%,
            50% 8%,
            60% 7.7%,
            70% 6.7%,
            80% 5.1%,
            90% 2.9%,
            95% 1.5%,
            100% 0%,
            100% 100%);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition:
        color 0.2s,
        padding-left 0.2s;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 40px;
    background: rgba(0, 0, 0, 0.1);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

/* Mobile Menu Overlay Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fdfbfb;
    /* Use solid white for light theme */
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

[data-theme="dark"] .mobile-menu-overlay {
    background-color: #181a1f;
    /* Use solid dark for dark theme */
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-mobile-signup {
    padding: 8px 20px;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}

.link-mobile-signin {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-body {
    flex: 1;
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mobile-nav-header:hover {
    background-color: rgba(var(--primary-rgb), 0.02);
}

.mobile-nav-header span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.mobile-nav-header i {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.mobile-nav-item.open .mobile-nav-header i {
    transform: rotate(180deg);
}

.mobile-nav-content {
    display: none;
    background-color: rgba(0, 0, 0, 0.02);
    padding: 10px 0;
}

.mobile-nav-item.open .mobile-nav-content {
    display: block;
}

.mobile-nav-content a {
    display: block;
    padding: 12px 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-nav-content a:hover {
    color: var(--primary-red);
}

.mobile-menu-footer {
    padding: 30px 24px;
    border-top: 1px solid var(--border-color);
}

.mobile-theme-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background-color: var(--section-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 1480px) {
    .nav-optional {
        display: none;
    }
}

@media (max-width: 1200px) {
    .header {
        padding: 0 20px;
    }

    .main-nav,
    .auth-buttons {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .features-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .drop-zone {
        padding: 40px 20px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .api-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .api-content {
        gap: 15px;
    }

    .top-bg {
        height: 400px;
    }

    .footer {
        padding: 100px 20px 40px;
        clip-path: polygon(0% 100%,
                0% 0%,
                25% 3%,
                50% 5%,
                75% 3%,
                100% 0%,
                100% 100%);
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card {
        padding: 12px 8px;
    }

    .product-card span {
        font-size: 0.75rem;
    }

    .product-icon {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .choose-file-btn {
        width: 100%;
        font-size: 1rem;
        height: 56px;
    }

    .footer-grid {
        flex-direction: column;
    }

}


@media (max-width: 576px) {

    .footer-bottom {
        padding: 20px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}



/* Converter Box Drag Over */
.drop-zone.drag-over {
    border-color: var(--primary-red);
    background-color: rgba(var(--primary-rgb), 0.08);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.2);
}

/* Cloud Gallery Modal Styling */
.cloud-gallery-container {
    max-width: 800px;
    width: 95%;
    padding: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 30px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    background: rgba(var(--primary-rgb), 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.gallery-item i {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.gallery-item span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-main);
    word-break: break-all;
}

.file-pdf {
    color: #f43f5e;
}

.file-word {
    color: #3b82f6;
}

.file-excel {
    color: #10b981;
}

.file-image {
    color: #f59e0b;
}

/* Scrollbar for gallery */
.gallery-grid::-webkit-scrollbar {
    width: 6px;
}

.gallery-grid::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

@media (min-width: 1024px) {
    .header {
        height: 75px;
        padding: 0 50px;
    }

    .logo {
        font-size: 1.5rem;
        gap: 14px;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
    }

    .main-nav {
        gap: 24px;
        font-size: 0.9rem;
    }

    .auth-buttons {
        gap: 18px;
        font-size: 0.95rem;
    }

    .sign-in {
        padding: 8px 18px;
    }

    .btn-primary {
        padding: 10px 22px;
        font-size: 0.95rem;
    }

    .footer-grid {
        gap: 50px;
        padding-bottom: 70px;
    }

    .footer-col h4 {
        font-size: 1.15rem;
        margin-bottom: 28px;
    }

    .footer-col ul li {
        margin-bottom: 12px;
    }

    .footer-col ul li a {
        font-size: 1rem;
    }

    .footer-bottom {
        padding: 35px 50px;
    }

    .footer-bottom p {
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    .file-size-tag {
        display: none !important;
    }
}

@media (max-width: 415px) {
    .hero-section {
        padding: 40px 10px;
    }

    .drop-zone {
        padding: 20px 12px;
    }

    .modern-file-card {
        padding: 10px 12px;
        gap: 10px;
    }

    .file-icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .rename-container {
        gap: 8px;
    }
}

/* Success & Progress States UI - Premium Support */
.success-state, .conversion-progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    animation: fadeInScale 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.progress-bar-bg {
    width: 280px;
    height: 10px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-weight: 700;
    color: var(--primary-red);
    font-size: 1.1rem;
}

@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(var(--primary-rgb), 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}
