@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }

/* NAVBAR - MOBILE RESPONSIVE */
.navbar { 
    padding: 5px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: #f1f5f9; 
    position: sticky; 
    top: 0; 
    z-index: 100;
}
.nav-logo { height: 50px; }
.nav-menu { display: flex; gap: 30px; }
.nav-menu a { text-decoration: none; color: #5d799f; font-weight: 600; }


/* TICKER */
.ticker-wrap { background: #f8faff; border-bottom: 1px solid #edf2f7; padding: 12px 0; overflow: hidden; }
.ticker { white-space: nowrap; font-size: clamp(1.5rem, 5vw, 3rem); font-weight: 800; color: #dbeafe; animation: scroll 25s linear infinite; opacity: 0.6; }
@keyframes scroll { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* HERO */
.hero-interface { text-align: center; padding: 60px 20px; background: linear-gradient(to bottom, #fff, #f0f7ff); }
.main-hero-logo { height: clamp(100px, 20vw, 140px); margin-bottom: 20px; }
.hero-labels { color: #2563eb; font-weight: 600; margin-bottom: 15px; font-size: clamp(0.9rem, 2vw, 1rem); }
.dot { margin: 0 8px; color: #cbd5e1; }
h1 { font-size: clamp(2rem, 8vw, 3.5rem); color: #1e293b; margin-bottom: 10px; }
.tagline { font-size: clamp(1rem, 3vw, 1.2rem); color: #64748b; }
.sub-tag { color: #94a3b8; margin-bottom: 40px; font-size: 0.95rem; }
.cta-btn { background: #2563eb; color: white; padding: 15px 35px; border-radius: 10px; text-decoration: none; font-weight: bold; display: inline-block; transition: 0.3s; }
.cta-btn:hover { background: #1d4ed8; transform: translateY(-2px); }

/* LIBRARY SECTION - PERFECT MATCH TO YOUR SCREENSHOT */
.library-section { padding: 80px 5%; background: #fff; max-width: 1400px; margin: 0 auto; }
.lib-header { text-align: center; margin-bottom: 40px; }
.lib-header h2 { font-size: clamp(2rem, 5vw, 2.5rem); color: #0f172a; margin-bottom: 10px; }
.lib-header p { color: #64748b; font-size: 1.1rem; }

.search-container { 
    max-width: 600px; 
    margin: 0 auto 30px; 
    display: flex; 
    border: 2px solid #e2e8f0; 
    border-radius: 10px; 
    overflow: hidden; 
    background: #f8fafc;
}
.search-container input { flex:1; padding: 12px 0.5px; border: none; outline: none; font-size: 1rem; background: transparent; }
.search-btn { background: #2563eb; border: none; padding:5px 5px; color: white; cursor: pointer; transition: 0.3s; }
.search-btn:hover { background: #1d4ed8; }

.filter-tabs { 
    display: flex; 
    justify-content: center; 
    gap: 8px; 
    margin-bottom: 40px; 
    flex-wrap: wrap;
}
.tab { 
    padding: 12px 24px; 
    border-radius: 25px; 
    border: 2px solid #e2e8f0; 
    background: #fff; 
    cursor: pointer; 
    font-weight: 600; 
    transition: 0.3s;
}
.tab.active { background: #2563eb; color: white; border-color: #2563eb; }
.tab:hover { border-color: #2563eb; }

/* CATEGORIES GRID - EXACTLY LIKE SCREENSHOT */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.category-card {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(37,99,235,0.15);
    border-color: #2563eb;
}
.cat-icon { font-size: 2.5rem; }
.cat-info h4 { color: #1e293b; font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.cat-info p { color: #64748b; font-size: 0.9rem; }
.cat-download { margin-left: auto; text-align: right; }
.dl-btn { 
    display: block; 
    background: #2563eb; 
    color: white; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    font-size: 1rem;
    margin-bottom: 4px;
}
.cat-download span { font-size: 0.8rem; color: #94a3b8; }

.document-grid { text-align: center; }
.empty-state { 
    color: #94a3b8; 
    font-style: italic; 
    padding: 40px; 
    background: #f8fafc; 
    border-radius: 12px; 
    border: 2px dashed #cbd5e1;
}

/* CONTACT */
.contact-area { text-align: center; padding: 50px 20px; background: #f8fafc; }
.contact-small-btn { 
    background: white; 
    border: 2px solid #cbd5e1; 
    padding: 14px 28px; 
    border-radius: 30px; 
    cursor: pointer; 
    font-weight: 600; 
    color: #475569; 
    font-size: 1rem;
    transition: 0.3s;
}

.contact-small-btn:hover { border-color: #2563eb; color: #2563eb; }

/* MODAL - IMPROVED */
.modal-overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.6); 
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 1000; 
    backdrop-filter: blur(4px);
}
.modal-box { 
    background: #fff; 
    padding: 40px; 
    border-radius: 20px; 
    width: min(90vw, 450px); 
    position: relative; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlide 0.3s ease;
}
@keyframes modalSlide { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.modal-box input, .modal-box textarea { 
    width: 100%; 
    padding: 16px; 
    margin-bottom: 16px; 
    border: 2px solid #e2e8f0; 
    border-radius: 12px; 
    font-size: 1rem;
    transition: 0.3s;
}
.modal-box input:focus, .modal-box textarea:focus { border-color: #2563eb; outline: none; }
.submit-btn { 
    width: 100%; 
    background: linear-gradient(135deg, #2563eb, #1d4ed8); 
    color: #fff; 
    padding: 16px; 
    border: none; 
    border-radius: 12px; 
    font-weight: bold; 
    font-size: 1.1rem; 
    cursor: pointer; 
    transition: 0.3s;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,0.3); }
.close-btn { 
    position: absolute; 
    right: 20px; 
    top: 20px; 
    font-size: 2rem; 
    border: none; 
    background: none; 
    cursor: pointer; 
    color: #94a3b8;
}
.form-response { margin-top: 20px; padding: 15px; border-radius: 10px; text-align: center; }
.success-msg { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.success-msg i { margin-right: 8px; }

/* FOOTER */
.dark-footer { background: #0a0f1c; color: #fff; padding: 60px 5% 30px; }
.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px; 
    margin-bottom: 40px; 
}
.footer-logo { height: 45px; margin-bottom: 15px; }
.footer-col h4 { margin-bottom: 20px; color: #fff; }
.footer-col a { display: block; color: #94a3b8; text-decoration: none; margin-bottom: 12px; font-size: 0.95rem; transition: 0.3s; }
.footer-col a:hover { color: #2563eb; }
.social-icons { display: flex; gap: 20px; font-size: 1.3rem; color: #94a3b8; }
.footer-quotes { 
    border-top: 1px solid #1e293b; 
    padding-top: 30px; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    font-style: italic; 
    color: #64748b; 
    font-size: 0.9rem; 
}
.footer-quotes span { color: #2563eb; }
.footer-copyright { 
    text-align: center; 
    margin-top: 30px; 
    color: #475569; 
    font-size: 0.8rem; 
    letter-spacing: 0.5px; 
}

/* SCROLL TO TOP */
#topBtn { 
    position: fixed; 
    bottom: 5px; 
    right: 5px; 
    background: #2563eb; 
    color: #fff; 
    border: none; 
    width: 15px; 
    height: 15px; 
    border-radius: 50%; 
    display: none; 
    cursor: pointer; 
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(37,99,235,0.4);
    transition: 0.3s;
}
#topBtn:hover { background: #1d4ed8; transform: translateY(-3px); }
/* MOBILE RESPONSIVE - PERFECT ON PHONE */
@media (max-width: 768px) {
   
    .nav-menu { 
        position: fixed; 
        top: 80px; 
        left: -100%; 
        width: 100%; 
        height: calc(100vh - 80px); 
        background: #f1f5f9; 
        flex-direction: column; 
        justify-content: flex-start; 
        align-items: center; 
        padding-top: 50px; 
        transition: 0.3s;
    }
    .nav-menu.active { left: 0; }
    .nav-menu a { font-size: 1.3rem; margin: 15px 0; }
    
    .hero-interface { padding: 40px 15px; }
    .library-section { padding: 60px 15px; }
    .filter-tabs { gap: 6px; }
    .tab { padding: 10px 18px; font-size: 0.9rem; }
    .category-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-quotes { flex-direction: column; }
}

@media (max-width: 480px) {
    .navbar { padding: 12px 15px; }
    .search-container { margin: 0 15px 35px; }
    .modal-box { margin: 20px; padding: 30px 20px; }
    h1, .lib-header h2 { font-size: 2rem; }
}