﻿/* ============================================
   FreePDFNest.com — Global Styles
   ============================================ */

:root {
    --primary: #1a2742;
    --primary-light: #243554;
    --primary-dark: #0f1a2e;
    --accent: #e8614d;
    --accent-hover: #d4503d;
    --accent-light: #fef0ee;
    --accent-glow: rgba(232, 97, 77, 0.15);
    --white: #ffffff;
    --off-white: #f8f9fc;
    --gray-50: #f3f4f8;
    --gray-100: #e8eaf0;
    --gray-200: #d1d5e0;
    --gray-300: #b0b7c8;
    --gray-400: #8892a6;
    --gray-500: #64708a;
    --gray-600: #4a5468;
    --gray-700: #374050;
    --gray-800: #252d3a;
    --success: #22c55e;
    --success-bg: #f0fdf4;
    --warning: #f59e0b;
    --error: #ef4444;
    --error-bg: #fef2f2;
    --info: #3b82f6;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --container: 1200px;
    --section-pad: 80px;
    --card-radius: 16px;
    --btn-radius: 12px;
    --shadow-sm: 0 1px 3px rgba(26,39,66,0.06);
    --shadow-md: 0 4px 16px rgba(26,39,66,0.08);
    --shadow-lg: 0 12px 40px rgba(26,39,66,0.12);
    --shadow-xl: 0 20px 60px rgba(26,39,66,0.16);
    --shadow-accent: 0 8px 30px rgba(232,97,77,0.25);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--gray-700);
    background: var(--off-white);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

/* ============ HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-100);
    transition: box-shadow 0.3s var(--ease);
}

    .site-header.scrolled {
        box-shadow: var(--shadow-md);
    }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), #f2856e);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}
.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-logo-img {
    height: 44px;
}

.footer-logo {
    color: var(--white) !important;
}

    .footer-logo span {
        color: var(--accent) !important;
    }
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .nav-links a {
        padding: 8px 18px;
        border-radius: var(--btn-radius);
        font-weight: 500;
        font-size: 0.935rem;
        color: var(--gray-600);
        transition: all 0.2s var(--ease);
    }

        .nav-links a:hover {
            color: var(--primary);
            background: var(--gray-50);
        }

        .nav-links a.active {
            color: var(--accent);
            background: var(--accent-light);
        }

.nav-cta {
    padding: 10px 24px !important;
    background: var(--accent) !important;
    color: var(--white) !important;
    border-radius: var(--btn-radius) !important;
    font-weight: 600 !important;
}

    .nav-cta:hover {
        background: var(--accent-hover) !important;
        transform: translateY(-1px);
        box-shadow: var(--shadow-accent);
    }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

    .menu-toggle span {
        width: 24px;
        height: 2.5px;
        background: var(--primary);
        border-radius: 2px;
        transition: all 0.3s var(--ease);
    }

/* ============ HERO ============ */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: -200px;
        left: 50%;
        transform: translateX(-50%);
        width: 800px;
        height: 800px;
        background: radial-gradient(circle, var(--accent-glow), transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

    .hero > * {
        position: relative;
        z-index: 1;
    }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s var(--ease) both;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.6s var(--ease) 0.1s both;
}

    .hero h1 .gradient-text {
        background: linear-gradient(135deg, var(--accent), #f2856e);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.hero p {
    font-size: 1.2rem;
    color: var(--gray-500);
    max-width: 580px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.6s var(--ease) 0.2s both;
}

/* ============ TOOLS GRID ============ */
.tools-section {
    padding: 20px 0 var(--section-pad);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

    .section-header h2 {
        font-family: var(--font-heading);
        font-size: 1.75rem;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 12px;
    }

    .section-header p {
        color: var(--gray-500);
        font-size: 1.05rem;
    }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--white);
    border-radius: var(--card-radius);
    padding: 28px;
    border: 1px solid var(--gray-100);
    transition: all 0.35s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

    .tool-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--accent), #f2856e);
        opacity: 0;
        transition: opacity 0.3s var(--ease);
    }

    .tool-card:hover {
        border-color: transparent;
        box-shadow: var(--shadow-lg);
        transform: translateY(-4px);
    }

        .tool-card:hover::before {
            opacity: 1;
        }

.tool-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

    .tool-card-icon.merge {
        background: #eef2ff;
        color: #4f46e5;
    }

    .tool-card-icon.split {
        background: #fef3c7;
        color: #d97706;
    }

    .tool-card-icon.compress {
        background: #ecfdf5;
        color: #059669;
    }

    .tool-card-icon.convert {
        background: #fce7f3;
        color: #db2777;
    }

    .tool-card-icon.rotate {
        background: #f0f9ff;
        color: #0284c7;
    }

    .tool-card-icon.protect {
        background: #fff7ed;
        color: #ea580c;
    }

.tool-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.tool-card p {
    color: var(--gray-500);
    font-size: 0.925rem;
    line-height: 1.6;
    flex: 1;
}

.tool-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.925rem;
    transition: gap 0.2s var(--ease);
}

.tool-card:hover .tool-card-link {
    gap: 10px;
}

/* ============ FEATURES BAR ============ */
.features-bar {
    padding: 48px 0;
    background: var(--primary);
    color: white;
}

.features-bar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

    .feature-item h4 {
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 1rem;
    }

    .feature-item p {
        font-size: 0.875rem;
        opacity: 0.7;
    }

/* ============ HOW IT WORKS ============ */
.how-it-works {
    padding: var(--section-pad) 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.step {
    text-align: center;
    padding: 32px 24px;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.step p {
    color: var(--gray-500);
    font-size: 0.925rem;
}

/* ============ TOOL PAGE ============ */
.tool-hero {
    padding: 48px 0 32px;
    text-align: center;
}

    .tool-hero h1 {
        font-family: var(--font-heading);
        font-size: clamp(1.75rem, 4vw, 2.5rem);
        font-weight: 800;
        color: var(--primary);
        margin-bottom: 12px;
    }

    .tool-hero p {
        color: var(--gray-500);
        font-size: 1.1rem;
    }

/* Drop Zone */
.drop-zone-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.drop-zone {
    border: 2px dashed var(--gray-200);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    background: var(--white);
    transition: all 0.3s var(--ease);
    cursor: pointer;
    position: relative;
}

    .drop-zone:hover, .drop-zone.drag-over {
        border-color: var(--accent);
        background: var(--accent-light);
        box-shadow: 0 0 0 4px var(--accent-glow);
    }

.drop-zone-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: var(--gray-50);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all 0.3s var(--ease);
}

.drop-zone:hover .drop-zone-icon {
    background: white;
    transform: scale(1.05);
}

.drop-zone h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.drop-zone p {
    color: var(--gray-400);
    font-size: 0.925rem;
    margin-bottom: 20px;
}

.drop-zone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--accent);
    color: white;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s var(--ease);
}

    .drop-zone-btn:hover {
        background: var(--accent-hover);
        transform: translateY(-2px);
        box-shadow: var(--shadow-accent);
    }

/* File List */
.file-list-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: none;
}

    .file-list-wrapper.visible {
        display: block;
    }

.file-list {
    background: var(--white);
    border-radius: var(--card-radius);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-50);
    transition: background 0.2s var(--ease);
    cursor: grab;
}

    .file-item:last-child {
        border-bottom: none;
    }

    .file-item:hover {
        background: var(--gray-50);
    }

    .file-item.dragging {
        opacity: 0.5;
        background: var(--accent-light);
    }

.file-item-drag {
    color: var(--gray-300);
    cursor: grab;
    padding: 4px;
    flex-shrink: 0;
}

.file-item-icon {
    width: 40px;
    height: 40px;
    background: #fee2e2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
}

.file-item-info {
    flex: 1;
    min-width: 0;
}

.file-item-name {
    font-weight: 500;
    color: var(--primary);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item-size {
    font-size: 0.825rem;
    color: var(--gray-400);
}

.file-item-pages {
    font-size: 0.825rem;
    color: var(--gray-400);
    flex-shrink: 0;
}

.file-item-remove {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all 0.2s var(--ease);
    flex-shrink: 0;
}

    .file-item-remove:hover {
        background: var(--error-bg);
        color: var(--error);
    }

/* Action Buttons */
.tool-actions {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 60px;
    display: none;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

    .tool-actions.visible {
        display: flex;
    }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--accent);
    color: white;
    border-radius: var(--btn-radius);
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.25s var(--ease);
}

    .btn-primary:hover {
        background: var(--accent-hover);
        transform: translateY(-2px);
        box-shadow: var(--shadow-accent);
    }

    .btn-primary:disabled {
        opacity: 0.5;
        pointer-events: none;
    }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--white);
    color: var(--gray-600);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s var(--ease);
}

    .btn-secondary:hover {
        border-color: var(--gray-300);
        background: var(--gray-50);
    }

/* Progress */
.progress-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: none;
    text-align: center;
}

    .progress-wrapper.visible {
        display: block;
    }

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--gray-100);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #f2856e);
    border-radius: 10px;
    transition: width 0.3s var(--ease);
    width: 0%;
}

.progress-text {
    font-size: 0.925rem;
    color: var(--gray-500);
}

/* Download Result */
.result-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 60px;
    display: none;
    text-align: center;
}

    .result-wrapper.visible {
        display: block;
    }

.result-box {
    background: var(--success-bg);
    border: 1px solid #bbf7d0;
    border-radius: var(--card-radius);
    padding: 40px;
}

    .result-box svg {
        margin: 0 auto 16px;
        color: var(--success);
    }

    .result-box h3 {
        font-family: var(--font-heading);
        font-weight: 600;
        color: var(--primary);
        margin-bottom: 8px;
    }

    .result-box p {
        color: var(--gray-500);
        margin-bottom: 24px;
    }

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--success);
    color: white;
    border-radius: var(--btn-radius);
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.25s var(--ease);
}

    .btn-download:hover {
        filter: brightness(1.1);
        transform: translateY(-2px);
    }

/* ============ FOOTER ============ */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 0.925rem;
    margin-top: 16px;
    line-height: 1.7;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-col a {
    display: block;
    padding: 5px 0;
    font-size: 0.9rem;
    transition: color 0.2s var(--ease);
}

    .footer-col a:hover {
        color: white;
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* ============ CONTENT PAGES ============ */
.content-page {
    padding: 48px 0 var(--section-pad);
}

    .content-page .container {
        max-width: 800px;
    }

    .content-page h1 {
        font-family: var(--font-heading);
        font-size: 2rem;
        font-weight: 800;
        color: var(--primary);
        margin-bottom: 8px;
    }

    .content-page .subtitle {
        color: var(--gray-400);
        font-size: 0.95rem;
        margin-bottom: 40px;
    }

    .content-page h2 {
        font-family: var(--font-heading);
        font-size: 1.35rem;
        font-weight: 700;
        color: var(--primary);
        margin: 36px 0 16px;
    }

    .content-page h3 {
        font-family: var(--font-heading);
        font-weight: 600;
        color: var(--primary);
        margin: 24px 0 12px;
    }

    .content-page p {
        margin-bottom: 16px;
        line-height: 1.8;
    }

    .content-page ul {
        margin-bottom: 16px;
        padding-left: 24px;
    }

        .content-page ul li {
            list-style: disc;
            margin-bottom: 8px;
            line-height: 1.7;
        }

    .content-page a {
        color: var(--accent);
        text-decoration: underline;
    }

        .content-page a:hover {
            color: var(--accent-hover);
        }

/* Contact Form */
.contact-form {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--card-radius);
    padding: 40px;
    margin-top: 32px;
}

.form-group {
    margin-bottom: 24px;
}

    .form-group label {
        display: block;
        font-weight: 500;
        color: var(--primary);
        margin-bottom: 8px;
        font-size: 0.95rem;
    }

    .form-group input, .form-group textarea, .form-group select {
        width: 100%;
        padding: 14px 18px;
        border: 1.5px solid var(--gray-200);
        border-radius: var(--btn-radius);
        background: var(--off-white);
        color: var(--gray-700);
        transition: all 0.2s var(--ease);
        outline: none;
    }

        .form-group input:focus, .form-group textarea:focus {
            border-color: var(--accent);
            background: var(--white);
            box-shadow: 0 0 0 3px var(--accent-glow);
        }

    .form-group textarea {
        resize: vertical;
        min-height: 140px;
    }

/* ============ AD PLACEHOLDER ============ */
.ad-container {
    max-width: 800px;
    margin: 0 auto 32px;
    padding: 0 24px;
}

.ad-slot {
    background: var(--gray-50);
    border: 1px dashed var(--gray-200);
    border-radius: var(--card-radius);
    padding: 20px;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.85rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s var(--ease) both;
}

/* ============ SPLIT PDF TOOL ============ */
.split-options-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 24px;
    display: none;
}

    .split-options-wrapper.visible {
        display: block;
    }

.split-file-info {
    margin-bottom: 24px;
}

    .split-file-info .file-item {
        background: var(--white);
        border: 1px solid var(--gray-100);
        border-radius: var(--card-radius);
    }

.split-mode-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.split-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-600);
    transition: all 0.2s var(--ease);
}

    .split-tab:hover {
        border-color: var(--gray-300);
        background: var(--gray-50);
    }

    .split-tab.active {
        border-color: var(--accent);
        background: var(--accent-light);
        color: var(--accent);
    }

.split-panel {
    display: none;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--card-radius);
    padding: 28px;
}

    .split-panel.active {
        display: block;
    }

.split-input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--btn-radius);
    background: var(--off-white);
    color: var(--gray-700);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s var(--ease);
    outline: none;
}

    .split-input:focus {
        border-color: var(--accent);
        background: var(--white);
        box-shadow: 0 0 0 3px var(--accent-glow);
    }

.split-hint {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-top: 10px;
}

/* ============ PROTECT PDF TOOL ============ */
.protect-options-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 24px;
    display: none;
}

    .protect-options-wrapper.visible {
        display: block;
    }

.protect-panel {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--card-radius);
    padding: 28px;
}

.protect-input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--btn-radius);
    background: var(--off-white);
    color: var(--gray-700);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s var(--ease);
    outline: none;
}

    .protect-input:focus {
        border-color: var(--accent);
        background: var(--white);
        box-shadow: 0 0 0 3px var(--accent-glow);
    }

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    padding: 4px;
}

    .password-toggle:hover {
        color: var(--gray-600);
    }

.password-field {
    position: relative;
}

.strength-bar {
    height: 4px;
    border-radius: 2px;
    margin-top: 8px;
    transition: all 0.3s var(--ease);
}

/* ============ ROTATE PDF TOOL ============ */
.rotate-options-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 24px;
    display: none;
}

    .rotate-options-wrapper.visible {
        display: block;
    }

.rotate-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.rotate-page-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--card-radius);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    position: relative;
}

    .rotate-page-card:hover {
        border-color: var(--accent);
    }

    .rotate-page-card.selected {
        border-color: var(--accent);
        background: var(--accent-light);
    }

    .rotate-page-card .page-num {
        font-weight: 700;
        color: var(--primary);
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .rotate-page-card .page-preview {
        width: 60px;
        height: 80px;
        background: var(--gray-50);
        border: 1px solid var(--gray-100);
        border-radius: 4px;
        margin: 0 auto 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--gray-300);
        font-size: 0.7rem;
        transition: transform 0.3s var(--ease);
    }

    .rotate-page-card .rotation-label {
        font-size: 0.75rem;
        color: var(--accent);
        font-weight: 600;
    }

.rotate-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.rotate-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-600);
    transition: all 0.2s var(--ease);
}

    .rotate-btn:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

/* ============ NAV DROPDOWN ============ */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: inherit;
    color: inherit;
    cursor: pointer;
    padding: 8px 0;
    font-weight: 500;
    transition: color 0.2s var(--ease);
}

    .nav-dropdown-toggle:hover {
        color: var(--accent);
    }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 1000;
    list-style: none;
    margin: 8px 0 0 0;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--gray-700);
    font-size: 0.925rem;
    font-weight: 500;
    transition: all 0.15s var(--ease);
    text-decoration: none;
    white-space: nowrap;
}

    .nav-dropdown-item:hover {
        background: var(--accent-light);
        color: var(--accent);
    }

    .nav-dropdown-item svg {
        color: var(--gray-400);
        flex-shrink: 0;
    }

    .nav-dropdown-item:hover svg {
        color: var(--accent);
    }

/* ============ STATS COUNTER ============ */
.stats-section {
    padding: 60px 0;
    background: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    /* Mobile dropdown */
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--gray-50);
        margin: 4px 0 0 0;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--gray-100);
        box-shadow: var(--shadow-lg);
    }

        .nav-links.open {
            display: flex;
        }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 48px 0 32px;
    }

        .hero h1 {
            font-size: 2rem;
        }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .drop-zone {
        padding: 40px 24px;
    }

    .features-bar-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .features-bar-grid {
        grid-template-columns: 1fr;
    }
}
