:root {
    --primary-rgb: 124, 58, 237;
    --primary-red: #7c3aed;
    --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
    --hover-red: #6d28d9;
    --text-main: #1f1635;
    --text-muted: #6c757d;
    --bg-main: #f8f9fa;
    --bg-gradient: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
    --white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.95);
    --border-color: rgba(124, 58, 237, 0.10);
    --border-dashed: #7c3aed;
    --border-color-opaque: rgba(124, 58, 237, 0.25);
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 15px 35px rgba(var(--primary-rgb), 0.15);
    --top-bg-gradient: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(124, 58, 237, 0.2);
    --overlay-bg: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(124, 58, 237, 0.75));
}

[data-theme="dark"] {
    --primary-rgb: 124, 58, 237;
    --primary-red: #7c3aed;
    --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
    --hover-red: #6d28d9;
    --text-main: #f8f9fa;
    --text-muted: #adb5bd;
    --bg-main: #121212;
    --bg-gradient: linear-gradient(135deg, #1a1625 0%, #0f0d17 100%);
    --white: #1e1e24;
    --card-bg: rgba(30, 30, 36, 0.98);
    --glass-bg: rgba(30, 30, 36, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --overlay-bg: linear-gradient(135deg, rgba(124, 58, 237, 0.98), rgba(124, 58, 237, 0.8));
    --border-color: rgba(255, 255, 255, 0.05);
    --border-dashed: #7c3aed;
    --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, #4c1d95 0%, #2e1065 100%);
}

* {
    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-icon {
    color: var(--primary-red);
}

.logo-name-full {
    display: inline-block;
}

.logo-name-short {
    display: none;
}

@media (max-width: 991px) {
    .logo-name-full {
        display: none;
    }

    .logo-name-short {
        display: inline-block;
    }

    .main-nav .logo-name-full {
        display: none;
    }

    .main-nav .logo-name-short {
        display: inline-block;
    }
}

.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: flex-start;
    overflow: hidden;
    /* Never grow beyond box */
    position: relative;
}

.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;
    }
}

/* Definitive Footer Styles for Multi-Column Layout */
.footer {
    background: var(--top-bg-gradient) !important;
    padding: 80px 40px 40px !important;
    color: white !important;
}

.footer-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 60px !important;
    margin-bottom: 60px !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.footer-col {
    flex: 1 !important;
    min-width: 180px !important;
    text-align: left !important;
}

.footer-col h4 {
    color: white !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    position: relative !important;
    padding-bottom: 12px !important;
}

.footer-col h4::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 30px !important;
    height: 2px !important;
    background: var(--primary-red) !important;
}

.footer-col ul {
    list-style: none !important;
    padding: 0 !important;
}

.footer-col ul li {
    margin-bottom: 12px !important;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.95rem !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
}

.footer-col ul li a:hover {
    color: white !important;
    padding-left: 5px !important;
}

.footer-social {
    display: flex !important;
    gap: 15px !important;
}

.footer-social a {
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 1.1rem !important;
    transition: all 0.3s !important;
}

.footer-social a:hover {
    background: var(--primary-gradient) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 40px !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.footer-bottom-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}
