/* =========================================================
   1. RESET & BASE STYLES
========================================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
    scroll-behavior: smooth; 
}

body { 
    background: linear-gradient(-45deg, #e0c3fc, #8ec5fc, #f6d365, #ff9a9e);
    background-size: 200% 200%;
    animation: gradientBG 15s ease infinite;
    color: #333;
    overflow-x: hidden; /* Prevents horizontal scroll on mobile */
}

@keyframes gradientBG { 
    0% { background-position: 0% 50%; } 
    50% { background-position: 100% 50%; } 
    100% { background-position: 0% 50%; } 
}

/* =========================================================
   2. HEADER & NAVIGATION (Glassmorphism)
========================================================= */
.main-header {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1000;
    transition: all 0.3s ease;
}

.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.5);
}

.header-container {
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 15px 25px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.logo { 
    font-size: 24px; 
    font-weight: 700; 
    color: #2c3e50; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 8px;
}

.nav-links { 
    display: flex; 
    gap: 25px; 
    align-items: center; 
}

.nav-links a { 
    text-decoration: none; 
    color: #495057; 
    font-weight: 500; 
    font-size: 15px; 
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover { 
    color: #4a90e2; 
}

.active-nav { 
    color: #4a90e2 !important; 
    font-weight: 700 !important; 
    border-bottom: 2px solid #4a90e2; 
    padding-bottom: 2px;
}

.header-actions { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.share-btn { 
    background: transparent; 
    color: #4a90e2; 
    border: 2px solid #4a90e2; 
    padding: 8px 16px; 
    border-radius: 8px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    width: auto; 
    font-size: 14px;
}

.share-btn:hover { 
    background: #4a90e2; 
    color: #fff; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px rgba(74,144,226,0.3);
}

.mobile-menu-btn { 
    display: none; 
    font-size: 24px; 
    cursor: pointer; 
    color: #2c3e50; 
}

/* =========================================================
   3. TOAST NOTIFICATION (For Link Copied)
========================================================= */
.toast {
    position: fixed; 
    bottom: 40px; 
    left: 50%; 
    transform: translateX(-50%) translateY(20px);
    background: #2c3e50; 
    color: #fff; 
    padding: 14px 25px; 
    border-radius: 30px; 
    font-weight: 500; 
    font-size: 15px; 
    z-index: 9999; 
    opacity: 0; 
    pointer-events: none; 
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
    display: flex; 
    align-items: center; 
    gap: 8px;
}

.toast.show { 
    opacity: 1; 
    transform: translateX(-50%) translateY(0); 
}

.toast i { 
    color: #2ecc71; 
    font-size: 18px; 
}

/* =========================================================
   4. MAIN COMPRESSOR WRAPPER & FORM AREA
========================================================= */
.main-wrapper { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    padding: 110px 20px 50px; 
}

.container { 
    background: rgba(255, 255, 255, 0.92); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    padding: 35px 40px; 
    border-radius: 20px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
    width: 100%; 
    max-width: 680px; 
    text-align: center; 
}

.container h1 { 
    font-weight: 700; 
    color: #2c3e50; 
    font-size: 28px; 
    line-height: 1.3;
}

.subtitle { 
    color: #6c757d; 
    font-size: 15px; 
    margin-bottom: 25px; 
    margin-top: 5px; 
}

.grid-2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
}

.input-group { 
    text-align: left; 
    margin-bottom: 18px; 
}

.input-group label { 
    display: block; 
    font-weight: 600; 
    margin-bottom: 8px; 
    color: #495057; 
    font-size: 14px; 
}

.input-group label i { 
    color: #4a90e2; 
    margin-right: 6px; 
}

input[type="number"], select, .custom-file-input input { 
    width: 100%; 
    padding: 12px 15px; 
    border: 2px solid #e1e5eb; 
    border-radius: 10px; 
    font-size: 14px; 
    background: #fff; 
    color: #333; 
    outline: none; 
    transition: 0.3s;
}

input[type="number"]:focus, select:focus { 
    border-color: #4a90e2; 
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.2); 
}

/* =========================================================
   5. DRAG & DROP ZONE
========================================================= */
.drop-zone { 
    border: 2px dashed #4a90e2; 
    padding: 35px 20px; 
    text-align: center; 
    border-radius: 15px; 
    cursor: pointer; 
    background: rgba(240, 248, 255, 0.6); 
    transition: all 0.3s ease; 
}

.cloud-icon { 
    font-size: 45px; 
    color: #4a90e2; 
    margin-bottom: 12px; 
}

.drop-zone:hover { 
    border-color: #357abd; 
    background: rgba(240, 248, 255, 1); 
    transform: translateY(-2px);
}

.drop-zone.dragover { 
    border-color: #28a745; 
    background: #eafbf0; 
    transform: scale(1.02);
}

.drop-zone p { 
    font-weight: 500; 
    color: #444; 
}

.drop-zone p span { 
    font-size: 13px; 
    color: #777; 
    font-weight: 400;
}

.file-list { 
    margin-top: 12px; 
    font-size: 14px; 
    text-align: left; 
}

.file-item { 
    background: #f8f9fa; 
    padding: 10px 15px; 
    border-radius: 8px; 
    border: 1px solid #e1e5eb; 
    margin-bottom: 8px; 
    display: flex; 
    align-items: center; 
    font-weight: 500;
}

.file-item i { 
    color: #e74c3c; 
    margin-right: 10px; 
    font-size: 18px;
}

/* =========================================================
   6. CHECKBOXES & BUTTONS
========================================================= */
.checkbox-container { 
    display: flex; 
    gap: 25px; 
    margin-bottom: 25px; 
    justify-content: center; 
    flex-wrap: wrap;
}

.checkbox-wrapper { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 15px; 
    font-weight: 600; 
    cursor: pointer; 
    color: #444;
}

.custom-checkbox { 
    width: 20px; 
    height: 20px; 
    cursor: pointer; 
    accent-color: #4a90e2; 
}

button { 
    width: 100%; 
    padding: 16px; 
    border: none; 
    border-radius: 12px; 
    font-size: 17px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 10px;
}

.primary-btn { 
    background: linear-gradient(135deg, #4a90e2, #7b61ff); 
    color: white; 
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.35); 
}

.primary-btn:hover { 
    background: linear-gradient(135deg, #3a7bc8, #634bea); 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.45); 
}

.primary-btn:active { 
    transform: translateY(1px); 
}

.secondary-btn { 
    background: #e4e8ec; 
    color: #495057; 
    margin-top: 20px; 
}

.secondary-btn:hover { 
    background: #d1d8e0; 
}

.download-btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    width: 100%; 
    margin: 10px 0; 
    padding: 16px; 
    background: #28a745; 
    color: white; 
    text-decoration: none; 
    border-radius: 12px; 
    font-weight: 700; 
    font-size: 16px; 
    box-shadow: 0 5px 15px rgba(40,167,69,0.3); 
    transition: all 0.3s ease;
}

.download-btn:hover { 
    background: #218838; 
    transform: translateY(-3px); 
}

/* =========================================================
   7. LOADING & SUCCESS UI
========================================================= */
.hidden { 
    display: none !important; 
}

#loadingArea { 
    padding: 40px 0; 
}

.modern-loader { 
    width: 60px; 
    height: 60px; 
    border: 5px solid #f3f3f3; 
    border-top: 5px solid #4a90e2; 
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
    margin: 0 auto 20px; 
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

.progress-container { 
    width: 100%; 
    height: 16px; 
    background: #e0e0e0; 
    border-radius: 20px; 
    overflow: hidden; 
    margin: 20px 0; 
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.progress-bar { 
    height: 100%; 
    background: linear-gradient(90deg, #4a90e2, #7b61ff); 
    width: 0%; 
    border-radius: 20px; 
    transition: width 0.4s ease; 
}

.progress-text { 
    font-weight: 700; 
    color: #4a90e2; 
    font-size: 18px; 
}

.success-icon { 
    font-size: 70px; 
    color: #2ecc71; 
    margin-bottom: 15px; 
    animation: popIn 0.6s ease; 
}

@keyframes popIn { 
    0% { transform: scale(0); } 
    100% { transform: scale(1); } 
}

.success-text { 
    color: #2ecc71; 
    font-size: 26px; 
    margin-bottom: 5px;
}

/* =========================================================
   8. MASSIVE SEO CONTENT ARTICLE
========================================================= */
.seo-content { 
    background: #ffffff; 
    padding: 60px 20px; 
    border-top: 1px solid #eee;
}

.seo-article-container { 
    max-width: 900px; 
    margin: 0 auto; 
    color: #333; 
    line-height: 1.8; 
    font-size: 17px; 
}

.seo-article-container h2 { 
    font-size: 30px; 
    color: #1a252f; 
    margin: 40px 0 20px 0; 
    border-bottom: 3px solid #f0f0f0; 
    padding-bottom: 10px; 
    font-weight: 700;
}

.seo-article-container h3 { 
    font-size: 24px; 
    color: #2c3e50; 
    margin: 30px 0 15px 0; 
    font-weight: 600;
}

.seo-article-container p { 
    margin-bottom: 20px; 
    text-align: justify;
}

.seo-article-container ul, .seo-article-container ol { 
    margin-left: 25px; 
    margin-bottom: 25px; 
}

.seo-article-container li { 
    margin-bottom: 12px; 
}

.faq-item { 
    background: #f8f9fa; 
    padding: 20px 25px; 
    border-radius: 10px; 
    margin-bottom: 20px; 
    border-left: 5px solid #4a90e2; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.faq-item h4 { 
    margin-top: 0; 
    color: #2c3e50; 
    margin-bottom: 10px; 
}

/* =========================================================
   9. FOOTER SECTION
========================================================= */
.main-footer { 
    background: #1a252f; 
    color: #ecf0f1; 
    padding: 60px 20px 20px; 
    border-top: 5px solid #4a90e2;
}

.footer-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr; 
    gap: 40px; 
    margin-bottom: 40px;
}

.footer-col h3, .footer-col h4 { 
    color: #fff; 
    margin-bottom: 20px; 
    font-weight: 600;
}

.footer-col h3 { 
    font-size: 22px; 
    display: flex; 
    align-items: center; 
    gap: 8px;
}

.footer-col p { 
    font-size: 14px; 
    color: #bdc3c7; 
    line-height: 1.6;
}

.footer-col a { 
    display: flex; 
    align-items: center;
    gap: 8px;
    color: #bdc3c7; 
    text-decoration: none; 
    margin-bottom: 12px; 
    font-size: 14px; 
    transition: color 0.3s ease;
}

.footer-col a:hover { 
    color: #4a90e2; 
    padding-left: 5px; 
}

.social-icons { 
    display: flex; 
    gap: 15px; 
}

.social-icons a { 
    display: inline-flex; 
    justify-content: center; 
    align-items: center; 
    width: 38px; 
    height: 38px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 50%; 
    color: #fff; 
    transition: all 0.3s ease;
    padding-left: 0 !important; 
}

.social-icons a:hover { 
    background: #4a90e2; 
    transform: translateY(-3px);
}

.footer-bottom { 
    text-align: center; 
    padding-top: 20px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    font-size: 13px; 
    color: #95a5a6;
}

/* =========================================================
   10. MOBILE RESPONSIVE QUERIES (Max-width: 768px)
========================================================= */
@media (max-width: 768px) {
    .mobile-menu-btn { 
        display: block; 
    }
    
    .nav-links { 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: #fff; 
        flex-direction: column; 
        padding: 20px 0; 
        box-shadow: 0 10px 15px rgba(0,0,0,0.1); 
        gap: 15px; 
        transform: translateY(-150%); 
        opacity: 0; 
        transition: all 0.4s ease; 
        z-index: -1;
    }
    
    .nav-links.active { 
        transform: translateY(0); 
        opacity: 1; 
        z-index: 999;
    }
    
    .nav-links a { 
        font-size: 16px; 
        width: 100%; 
        justify-content: center; 
        padding: 10px 0;
    }

    .share-btn { 
        padding: 6px 12px; 
        font-size: 13px; 
    }

    .main-wrapper { 
        padding-top: 90px; 
    }
    
    .grid-2 { 
        grid-template-columns: 1fr; 
        gap: 0; 
    }
    
    .container { 
        padding: 25px 20px; 
        border-radius: 15px; 
        width: 95%; 
        margin: auto;
    }
    
    .container h1 { 
        font-size: 24px; 
    }
    
    .subtitle { 
        font-size: 13px; 
    }

    .drop-zone { 
        padding: 25px 15px;
    }

    .seo-article-container h2 { 
        font-size: 24px; 
    }
    
    .seo-article-container h3 { 
        font-size: 20px; 
    }
    
    .seo-article-container p, .seo-article-container li { 
        font-size: 15px; 
    }

    .footer-container { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 30px;
    }
    
    .footer-col h3 { 
        justify-content: center; 
    }
    
    .footer-col a {
        justify-content: center;
    }

    .footer-col a:hover {
        padding-left: 0;
        transform: scale(1.05); 
    }

    .social-icons { 
        justify-content: center; 
    }
}

/* =========================================================
   11. EXTRA SMALL MOBILE RESPONSIVE (Max-width: 480px)
   (Added to ensure perfect view on smaller devices)
========================================================= */
@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
        width: 100%;
        border-radius: 10px;
    }
    .container h1 {
        font-size: 22px;
    }
    .header-container {
        padding: 12px 15px;
    }
    .logo {
        font-size: 20px;
    }
    .checkbox-container {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .file-item {
        font-size: 12px;
        flex-direction: column;
        align-items: flex-start;
        word-break: break-all;
    }
    .file-item span {
        margin-left: 0 !important;
        margin-top: 5px;
    }
    .success-text {
        font-size: 22px;
    }
    .drop-zone {
        padding: 20px 10px;
    }
}