/* --- 1. Global Reset & Fonts --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- 2. Header & Branding --- */
.header {
    background-color: #ffffff;
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.logo {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin-bottom: 12px;
    object-fit: cover;
    border: 3px solid #0d6efd;
    transition: transform 0.5s ease;
}

.logo:hover {
    transform: rotate(360deg); /* लोगो घूमने का एनिमेशन */
}

.header h1 {
    font-size: 26px;
    color: #222;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- 3. Navigation (Scrollable & Animated) --- */
.main-nav {
    background-color: #2c3e50;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.main-nav ul::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.main-nav ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ecf0f1;
    text-decoration: none;
    padding: 18px 22px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    transition: all 0.3s ease;
}

.main-nav ul li a i {
    font-size: 16px;
}

/* Hover & Active State with Underline Animation */
.main-nav ul li a:hover, 
.main-nav ul li a.active {
    background-color: #0d6efd;
    color: #fff;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

.main-nav ul li a:hover::after {
    width: 60%;
}

/* --- 4. Main Container & Entry Animation --- */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.98) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.container {
    max-width: 850px;
    margin: 40px auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    animation: fadeInScale 0.5s ease-out forwards;
}

h2 {
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 700;
}

/* --- 5. Upload Box (Animated) --- */
.upload-container {
    border: 2px dashed #0d6efd;
    padding: 50px 20px;
    border-radius: 15px;
    cursor: pointer;
    background: #f8fbff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 25px;
}

.upload-container:hover {
    background-color: #f0f7ff;
    border-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.12);
}

.upload-container i {
    transition: transform 0.3s ease;
}

.upload-container:hover i {
    transform: translateY(-5px); /* आइकॉन थोड़ा ऊपर उछलेगा */
}

/* --- 6. Buttons & Interactive States --- */
.main-btn, .download-btn, .select-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.main-btn { background-color: #0d6efd; color: white; }
.main-btn:hover { background-color: #0056b3; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(13,110,253,0.3); }

.download-btn { background-color: #198754; color: white; margin-top: 15px; }
.download-btn:hover { background-color: #146c43; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(25,135,84,0.3); }

.main-btn:active, .download-btn:active {
    transform: scale(0.97); /* क्लिक करने पर बटन दबेगा */
}

.reset-btn {
    background: #fdfdfd;
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: 0.3s;
}

.reset-btn:hover { background: #f8d7da; color: #721c24; border-color: #f5c6cb; }

/* --- 7. File List Items (Slide Animation) --- */
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

.file-item {
    background: #fff;
    padding: 14px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease-out forwards;
    transition: all 0.3s ease;
}

.file-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 5px solid #0d6efd;
    padding-left: 18px;
}

/* --- 8. Result Area (Pop Animation) --- */
@keyframes popIn {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

#pdfResultArea, #resultArea {
    margin-top: 35px;
    animation: popIn 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

/* --- 9. Loading Spinner --- */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* --- 10. SEO & Footer --- */
.how-to-use {
    margin-top: 50px;
    text-align: left;
    padding: 25px;
    background: #fbfbfb;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
}

.footer {
    background: #222;
    color: #bbb;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px; /* आइकॉन्स के बीच की दूरी */
}

.social-links a {
    font-size: 35px; /* बड़ा साइज़ */
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2); /* क्लिक करने से पहले हल्का सा बड़ा होना */
}

.social-links a.youtube { color: #FF0000; }
.social-links a.telegram { color: #0088cc; }
.social-links a.whatsapp { color: #25D366; }

/* --- 11. Responsive Design (Mobile) --- */
@media (max-width: 600px) {
    .hero-banner {
        padding: 40px 15px; /* मोबाइल पर बैनर थोड़ा छोटा */
    }
    .hero-banner h2 {
        font-size: 1.8rem; /* टेक्स्ट मोबाइल के हिसाब से सेट */
    }
    .tools-grid {
        gap: 10px; /* कार्ड्स के बीच कम गैप */
    }
    .tool-card {
        padding: 25px 15px; /* कार्ड के अंदर कम जगह ताकि टेक्स्ट अच्छे से दिखे */
    }
    .social-links a {
        font-size: 40px; /* मोबाइल पर बड़े आइकॉन्स */
        margin: 0 15px;
    }
}