
    /* Modern Design Variables */
    :root {
        --primary: #4361ee;
        --primary-light: #4895ef;
        --primary-dark: #3a56d4;
        --secondary: #7209b7;
        --secondary-light: #b5179e;
        --accent: #f72585;
        --light: #f8f9fa;
        --dark: #212529;
        --gray: #6c757d;
        --gray-light: #e9ecef;
        --success: #4cc9f0;
        --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        --gradient-light: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
        --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
        --border-radius: 12px;
        --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    body {
        background-color: #f5f7fb;
        color: var(--dark);
        line-height: 1.6;
        font-family: 'Segoe UI', 'Roboto', Tahoma, Geneva, Verdana, sans-serif;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
    }
    
    .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
    }
    
    /* Enhanced Header */
    .custom-header {
        background-color: white;
        box-shadow: var(--shadow);
        position: sticky;
        top: 0;
        z-index: 100;
        transition: var(--transition);
    }
    
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        position: relative;
    }
    
    .logo {
        display: flex;
        align-items: center;
        font-size: 24px;
        font-weight: 700;
        color: var(--primary);
        text-decoration: none;
        transition: var(--transition);
    }
    
    .logo span {
        color: var(--secondary);
        transition: var(--transition);
    }
    
    .logo i {
        margin-right: 10px;
        font-size: 28px;
        transition: var(--transition);
    }
    
    .logo:hover {
        transform: translateY(-2px);
    }
    
    .logo:hover span {
        color: var(--accent);
    }
    
    /* Enhanced Navigation */
    .nav-menu {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .nav-menu li {
        position: relative;
        margin-left: 25px;
    }
    
    .nav-menu li a {
        text-decoration: none;
        color: var(--dark);
        font-weight: 500;
        transition: var(--transition);
        padding: 8px 0;
        position: relative;
        display: flex;
        align-items: center;
    }
    
    .nav-menu li a:hover {
        color: var(--primary);
    }
    
    .nav-menu li a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 3px;
        background: var(--gradient);
        border-radius: 3px;
        transition: var(--transition);
    }
    
    .nav-menu li a:hover::after {
        width: 100%;
    }
    
    /* Enhanced Mega Menu */
    .dropdown-menus {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        width: 900px;
        background: white;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        border-radius: var(--border-radius);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        padding: 25px;
        border-top: 4px solid var(--primary);
    }
    
    .nav-menu li:hover .dropdown-menus {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    .dropdown-content {
        display: flex;
        justify-content: space-between;
    }
    
    .dropdown-column {
        flex: 1;
        padding: 0 15px;
    }
    
    .dropdown-column header {
        font-weight: 700;
        font-size: 16px;
        margin-bottom: 15px;
        color: var(--dark);
        padding-bottom: 8px;
        border-bottom: 1px solid var(--gray-light);
        display: flex;
        align-items: center;
    }
    
    .dropdown-column header i {
        margin-right: 8px;
        color: var(--primary);
    }
    
    .dropdown-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .dropdown-links li {
        margin-bottom: 10px;
        transition: var(--transition);
    }
    
    .dropdown-links li:hover {
        transform: translateX(5px);
    }
    
    .dropdown-links li a {
        display: flex;
        align-items: center;
        padding: 10px 0;
        color: var(--gray);
        font-size: 14px;
        transition: var(--transition);
        border-radius: 6px;
        padding-left: 10px;
    }
    
    .dropdown-links li a:hover {
        color: var(--primary);
        background-color: rgba(67, 97, 238, 0.05);
        text-decoration: none;
    }
    
    .dropdown-links li a i {
        margin-right: 10px;
        color: var(--primary);
        width: 18px;
        text-align: center;
    }
    
    /* Add arrow to mega menu */
    .dropdown-menus::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid white;
    }
    
    /* Mobile Menu */
    .mobile-menu-btn {
        display: none;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--dark);
        cursor: pointer;
        z-index: 1001;
        transition: var(--transition);
    }
    
    .mobile-menu-btn:hover {
        color: var(--primary);
    }
    
    /* Mobile Navigation */
    @media (max-width: 992px) {
        .mobile-menu-btn {
            display: block;
        }
        
        .nav-menu {
            position: fixed;
            top: 0;
            right: -100%;
            width: 280px;
            height: 100vh;
            background: white;
            flex-direction: column;
            padding: 80px 20px 30px;
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
            transition: var(--transition);
            overflow-y: auto;
        }
        
        .nav-menu.active {
            right: 0;
        }
        
        .nav-menu li {
            margin: 0 0 15px 0;
            width: 100%;
        }
        
        .nav-menu li a {
            padding: 12px 15px;
            border-radius: var(--border-radius);
            display: block;
        }
        
        .nav-menu li a:hover {
            background-color: var(--light);
        }
        
        .dropdown-menus {
            position: static;
            width: 100%;
            box-shadow: none;
            opacity: 1;
            visibility: visible;
            transform: none;
            display: none;
            padding: 15px 0 0 15px;
            background: transparent;
            left: 0;
            border-top: none;
        }
        
        .dropdown-menus::before {
            display: none;
        }
        
        .dropdown-content {
            flex-direction: column;
        }
        
        .dropdown-column {
            padding: 0;
            margin-bottom: 20px;
        }
        
        .nav-menu li.active .dropdown-menus {
            display: block;
        }
    }
    
    /* Enhanced Hero Section */
    .hero {
        text-align: center;
        padding: 60px 0 40px;
        background: var(--gradient);
        color: white;
        margin-bottom: 40px;
        position: relative;
        overflow: hidden;
    }
    
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTAwMCAxMDAwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9IiMwMDAiIGZpbGwtb3BhY2l0eT0iMC4wNSIvPjwvc3ZnPg==');
        opacity: 0.1;
    }
    
    .hero-content {
        position: relative;
        z-index: 1;
    }
    
    .hero h1 {
        font-size: 3rem;
        margin-bottom: 20px;
        color: white;
        font-weight: 700;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .hero p {
        font-size: 1.3rem;
        color: rgba(255, 255, 255, 0.9);
        max-width: 700px;
        margin: 0 auto 30px;
        font-weight: 300;
    }
    
    .trust-badges {
        display: flex;
        justify-content: center;
        gap: 30px;
        margin-top: 30px;
        flex-wrap: wrap;
    }
    
    .badge {
        display: flex;
        align-items: center;
        font-size: 16px;
        color: white;
        background: rgba(255, 255, 255, 0.15);
        padding: 12px 20px;
        border-radius: 30px;
        backdrop-filter: blur(10px);
        transition: var(--transition);
    }
    
    .badge:hover {
        transform: translateY(-3px);
        background: rgba(255, 255, 255, 0.25);
    }
    
    .badge i {
        margin-right: 8px;
        color: white;
        font-size: 18px;
    }
    
    /* Enhanced Main Tool Section */
    .tool-container {
        background: white;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        padding: 40px;
        margin-bottom: 40px;
        transition: var(--transition);
        border: 1px solid rgba(0, 0, 0, 0.05);
        position: relative;
        overflow: hidden;
    }
    
    .tool-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: var(--gradient);
    }
    
    .tool-container:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    }
    
    /* Enhanced Upload Area */
    .upload-area {
        border: 2px dashed var(--gray-light);
        border-radius: var(--border-radius);
        padding: 60px 20px;
        text-align: center;
        cursor: pointer;
        transition: var(--transition);
        margin-bottom: 30px;
        position: relative;
        background: #fafbff;
    }
    
    .upload-area:hover {
        border-color: var(--primary);
        background-color: rgba(67, 97, 238, 0.03);
        transform: translateY(-3px);
    }
    
    .upload-area.dragover {
        border-color: var(--primary);
        background-color: rgba(67, 97, 238, 0.08);
        transform: scale(1.01);
    }
    
    .upload-area i {
        font-size: 64px;
        color: var(--primary);
        margin-bottom: 20px;
        transition: var(--transition);
    }
    
    .upload-area:hover i {
        transform: scale(1.1);
        color: var(--secondary);
    }
    
    .upload-area h3 {
        margin-bottom: 15px;
        color: var(--dark);
        font-size: 1.5rem;
    }
    
    .upload-area p {
        color: var(--gray);
        margin-bottom: 20px;
        font-size: 1.1rem;
    }
    
     /* File List */
    .file-list {
        margin: 25px 0;
        display: none;
    }
    
    .file-list-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--gray-light);
    }
    
    .file-list-header h3 {
        margin: 0;
        font-size: 1.2rem;
    }
    
    .file-item {
        display: flex;
        align-items: center;
        padding: 15px;
        background-color: var(--light);
        border-radius: var(--border-radius);
        margin-bottom: 10px;
        transition: var(--transition);
    }
    
    .file-item:hover {
        background-color: #eef2ff;
    }
    
    .file-item i {
        color: var(--primary);
        margin-right: 15px;
        font-size: 20px;
    }
    
    .file-info {
        flex-grow: 1;
    }
    
    .file-name {
        font-weight: 500;
        margin-bottom: 5px;
    }
    
    .file-size {
        font-size: 14px;
        color: var(--gray);
    }
    
    .file-actions {
        display: flex;
        gap: 10px;
    }
    /* Enhanced Thumbnail View */
    .thumbnail-view {
        display: none;
        margin-top: 30px;
        animation: fadeIn 0.5s ease;
    }
    
    .thumbnail-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .thumbnail-header h3 {
        margin: 0;
        font-size: 1.3rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .zoom-controls {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .zoom-slider {
        width: 150px;
    }
    
    .zoom-slider input {
        width: 100%;
    }
    
    .thumbnails-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .thumbnail-item {
        background: white;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-light);
        padding: 15px;
        transition: var(--transition);
        position: relative;
        overflow: hidden;
        cursor: grab;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .thumbnail-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
    
    .thumbnail-item.dragging {
        opacity: 0.7;
        transform: rotate(5deg);
    }
    
    .thumbnail-image {
        width: 100%;
        height: 200px;
        background: #f8f9fa;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
        overflow: hidden;
        position: relative;
    }
    
    .thumbnail-image img {
        max-width: 100%;
        max-height: 100%;
        transition: transform 0.3s ease;
    }
    
    .thumbnail-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: var(--transition);
    }
    
    .thumbnail-item:hover .thumbnail-overlay {
        opacity: 1;
    }
    
    .thumbnail-actions {
        display: flex;
        gap: 10px;
    }
    
    .thumbnail-action {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--dark);
        transition: var(--transition);
    }
    
    .thumbnail-action:hover {
        transform: scale(1.1);
        color: var(--primary);
    }
    
    .thumbnail-action.delete:hover {
        color: #e74c3c;
    }
    
    .thumbnail-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .page-number {
        font-weight: 600;
        color: var(--dark);
    }
    
    .file-name {
        font-size: 12px;
        color: var(--gray);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
    }
    
    /* Smart Options Sidebar */
    .smart-options {
        background: white;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        padding: 25px;
        margin-bottom: 25px;
        transition: var(--transition);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .smart-options:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }
    
    .smart-options h3 {
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid var(--gray-light);
        color: var(--dark);
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .smart-options h3 i {
        color: var(--primary);
    }
    
    .option-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
        transition: var(--transition);
    }
    
    .option-item:hover {
        background: #e9ecef;
    }
    
    .option-info h4 {
        margin-bottom: 5px;
        font-size: 16px;
        color: var(--dark);
    }
    
    .option-info p {
        font-size: 14px;
        color: var(--gray);
        margin: 0;
    }
    
    /* Toggle Switch */
    .toggle-switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 24px;
    }
    
    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }
    
    .toggle-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: .4s;
        border-radius: 24px;
    }
    
    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }
    
    input:checked + .toggle-slider {
        background-color: var(--primary);
    }
    
    input:checked + .toggle-slider:before {
        transform: translateX(26px);
    }
    
    /* Enhanced Action Buttons */
    .action-buttons {
        display: flex;
        gap: 15px;
        margin-top: 30px;
        flex-wrap: wrap;
    }
    
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: var(--gradient);
        color: white;
        padding: 14px 28px;
        border: none;
        border-radius: var(--border-radius);
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        text-decoration: none;
        text-align: center;
        box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
        position: relative;
        overflow: hidden;
    }
    
    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--gradient-light);
        transition: var(--transition);
        z-index: -1;
    }
    
    .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
        color: white;
        text-decoration: none;
    }
    
    .btn:hover::before {
        left: 0;
    }
    
    .btn-merge {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    }
    
    .btn-merge:hover {
        box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
    }
    
    .btn-secondary {
        background: var(--gray-light);
        color: var(--dark);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }
    
    .btn-secondary:hover {
        background: #dde1e7;
        color: var(--dark);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* Testimonials Section */
    .testimonials {
        margin: 60px 0;
    }
    
    .section-header {
        text-align: center;
        margin-bottom: 40px;
        position: relative;
    }
    
    .section-header h2 {
        font-weight: 700;
        color: var(--dark);
        font-size: 2.2rem;
        display: inline-block;
        position: relative;
    }
    
    .section-header h2::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: var(--gradient);
        border-radius: 2px;
    }
    
    .testimonials-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .testimonial-card {
        background: white;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-light);
        padding: 30px;
        transition: var(--transition);
        border: 1px solid rgba(0, 0, 0, 0.03);
        position: relative;
        overflow: hidden;
    }
    
    .testimonial-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: var(--gradient);
    }
    
    .testimonial-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }
    
    .testimonial-content {
        font-style: italic;
        margin-bottom: 20px;
        color: var(--dark);
        line-height: 1.7;
    }
    
    .testimonial-author {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--gradient);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        font-size: 20px;
    }
    
    .author-info h4 {
        margin: 0;
        font-size: 16px;
        color: var(--dark);
    }
    
    .author-info p {
        margin: 0;
        font-size: 14px;
        color: var(--gray);
    }
    
    /* Enhanced Footer */
    .custom-footer {
        background: var(--dark);
        color: white;
        padding: 60px 0 30px;
        margin-top: auto;
    }
    
    .footer-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .footer-column h3 {
        margin-bottom: 25px;
        font-size: 18px;
        color: white;
        position: relative;
        padding-bottom: 10px;
    }
    
    .footer-column h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 3px;
        background: var(--primary);
        border-radius: 2px;
    }
    
    .footer-links {
        list-style: none;
        padding: 0;
    }
    
    .footer-links li {
        margin-bottom: 12px;
        transition: var(--transition);
    }
    
    .footer-links li:hover {
        transform: translateX(5px);
    }
    
    .footer-links a {
        color: #adb5bd;
        text-decoration: none;
        transition: var(--transition);
        display: flex;
        align-items: center;
    }
    
    .footer-links a:hover {
        color: white;
        text-decoration: none;
    }
    
    .footer-links a i {
        margin-right: 8px;
        font-size: 14px;
        width: 16px;
    }
    
    .copyright {
        text-align: center;
        padding-top: 30px;
        border-top: 1px solid #495057;
        color: #adb5bd;
        font-size: 14px;
    }
    
    /* Success Message */
    .success-message {
        display: none;
        background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
        color: #155724;
        padding: 20px;
        border-radius: var(--border-radius);
        margin: 25px 0;
        text-align: center;
        border-left: 4px solid #28a745;
        animation: fadeIn 0.5s ease;
    }
    
    .success-message i {
        margin-right: 10px;
        font-size: 20px;
    }
    
    /* Animations */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* Responsive Design */
    @media (max-width: 992px) {
        .content-wrapper {
            flex-direction: column;
        }
        
        .sidebar {
            width: 100%;
            order: -1;
        }
        
        .sidebar-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }
        
        .ad-square {
            height: 200px;
        }
        
        /* Center mega menu on smaller screens */
        .dropdown-menus {
            width: 95%;
            left: 50%;
            transform: translateX(-50%) translateY(10px);
        }
        
        .thumbnails-grid {
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        }
    }
    
    @media (max-width: 768px) {
        .header-content {
            flex-direction: column;
            text-align: center;
        }
        
        .hero h1 {
            font-size: 2.2rem;
        }
        
        .hero p {
            font-size: 1.1rem;
        }
        
        .action-buttons {
            flex-direction: column;
        }
        
        .btn {
            width: 100%;
            text-align: center;
            justify-content: center;
        }
        
        .trust-badges {
            gap: 15px;
        }
        
        .badge {
            font-size: 14px;
            padding: 10px 16px;
        }
        
        .tool-container {
            padding: 25px;
        }
        
        .upload-area {
            padding: 40px 20px;
        }
        
        .thumbnail-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 15px;
        }
        
        .zoom-controls {
            width: 100%;
            justify-content: space-between;
        }
        
        .zoom-slider {
            width: 100%;
        }
    }
  