:root {
    --primary: #e5322d;
    --primary-dark: #c9241f;
    --secondary: #2d3748;
    --light: #f7fafc;
    --gray: #718096;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    background-color: var(--light);
    color: var(--secondary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    height: 70px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    margin-left: 20px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-login {
    margin-right: 10px;
}

.btn-signup {
    background: var(--primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 4px;
}

/* Hero */
.hero {
    background: #4a5568;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 60px 20px;
}

.tool-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--secondary);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--border);
}

.tool-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.tool-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
}

.tool-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--gray);
}

/* Tool Workspace */
.tool-header {
    text-align: center;
    padding: 60px 0 40px;
}

.upload-box {
    background: white;
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 800px;
    /* Increased for wider workspace */
    margin: 0 auto;
    min-height: 300px;
}

/* Dropzone Styles */
.dropzone {
    border: 3px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px;
    transition: all 0.3s ease;
    background: #fdfdfd;
    cursor: pointer;
}

.dropzone.highlight {
    border-color: var(--primary);
    background: #fff5f5;
}

.dropzone-content h3 {
    font-size: 1.5rem;
    margin: 10px 0;
    color: var(--secondary);
}

.upload-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.file-input {
    display: none;
}

.btn-select {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}

.btn-select:hover {
    background: var(--primary-dark);
}

/* File Preview List */
.preview-area {
    text-align: left;
}

.file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    max-height: 400px;
    overflow-y: auto;
    padding: 5px;
}

.file-card {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.file-icon {
    font-size: 2.5rem;
    color: var(--primary);
    /* PDF Red */
    margin-bottom: 10px;
}

.file-info {
    width: 100%;
}

.file-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.file-size {
    font-size: 0.8rem;
    color: var(--gray);
}

.file-status {
    margin-top: 5px;
    color: #48bb78;
    /* Green */
    font-size: 0.85rem;
    font-weight: 600;
}

.file-pages {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--secondary);
    background: #edf2f7;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

/* Action Area */
.action-area {
    border-top: 1px solid var(--border);
    padding-top: 25px;
    text-align: center;
}

.tool-options {
    margin-bottom: 20px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.option-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
}

.action-btn-large {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
    box-shadow: 0 4px 6px rgba(229, 50, 45, 0.3);
}

.action-btn-large:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-reset {
    display: block;
    background: none;
    border: none;
    color: var(--gray);
    margin: 20px auto 0;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.btn-reset:hover {
    color: var(--secondary);
}

/* Footer */
footer {
    background: white;
    margin-top: 80px;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border);
}

footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-col h3 {
    margin: 0 0 15px 0;
    color: var(--primary);
}

.footer-col a {
    display: block;
    text-decoration: none;
    color: var(--gray);
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 15px 0;
    }

    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        display: flex;
        /* Show links */
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
    }

    .nav-links a {
        margin-left: 0;
        margin-bottom: 5px;
        display: block;
    }

    .btn-login,
    .btn-primary {
        margin: 5px 0 !important;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .upload-box {
        padding: 20px;
    }

    .file-list {
        grid-template-columns: 1fr;
    }

    .file-card {
        flex-direction: row;
        text-align: left;
    }

    .file-icon {
        margin-bottom: 0;
        margin-right: 15px;
    }

    .file-status {
        margin-top: 0;
        margin-left: auto;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .price-tag .amount {
        font-size: 2.5rem;
    }
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
    text-align: center;
}

.section-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-section h2 {
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.about-section p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.feature-item h4 {
    color: var(--dark);
    margin-bottom: 10px;
}

/* Developer Card */
.developer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.dev-img-container {
    width: 250px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background: #f7fafc;
    border: 4px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.developer-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profession {
    display: block;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #f7fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Roadmap Badge */
.badge {
    background: #ebf8ff;
    color: var(--secondary);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .developer-card {
        flex-direction: row;
        text-align: left;
        padding: 20px;
    }

    .about-section.developer-section {
        text-align: left;
    }
}

/* Footer Stats */
.visitor-stats {
    margin-bottom: 10px;
    color: var(--gray);
    font-size: 0.85rem;
    opacity: 0.8;
}

.visitor-stats i {
    margin-right: 5px;
    color: var(--secondary);
}

/* Auth Styles */
.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 8px;
    border: 2px solid var(--primary-light);
}

.user-profile {
    display: inline-flex;
    align-items: center;
    color: var(--text-dark);
    font-weight: 500;
    margin-right: 15px;
    text-decoration: none;
}

.pro-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    text-transform: uppercase;
}

/* Promo Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.close-btn:hover {
    color: #333;
}

.modal-header {
    background: linear-gradient(135deg, #1a2980, #26d0ce);
    padding: 30px 20px;
    color: white;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-body {
    padding: 30px 25px;
}

.offer-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

.price-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a2980;
    margin-bottom: 25px;
}

.price-tag .currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 2px;
    align-self: flex-start;
    margin-top: 5px;
}

.price-tag .amount {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.price-tag .period {
    font-size: 1rem;
    color: #888;
    align-self: flex-end;
    margin-bottom: 8px;
    margin-left: 5px;
    font-weight: 500;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}

.feature-list li {
    margin-bottom: 12px;
    color: #444;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.feature-list li i {
    color: #27ae60;
    margin-right: 10px;
    font-size: 1.1rem;
}

.modal-footer {
    padding: 0 25px 30px;
}

.modal-footer .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(26, 41, 128, 0.3);
}