/* ১. বেসিক সেটআপ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #0f172a; 
    background-image: radial-gradient(at 50% 0%, rgba(59, 130, 246, 0.1) 0, transparent 50%), 
                      radial-gradient(at 50% 100%, rgba(99, 102, 241, 0.1) 0, transparent 50%);
    background-attachment: fixed;
    color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ২. নেভিগেশন বার */
.navbar {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    height: 70px; 
    position: sticky; top: 0; z-index: 1000;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    height: 100%;
}

.navbar .logo .icon-box {
    width: 40px; 
    height: 40px;
    border-radius: 8px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 5px; 
}

.navbar .logo .icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.navbar .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
    display: flex;
    align-items: center;
    position: relative;
    white-space: pre;
    line-height: 1;
}

/* Logo Letter Animation */
.logo-letter {
    display: inline-block; opacity: 0; transform: translate(0, 0);
    animation-duration: 0.5s; animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes comeFromTop { 0% { opacity: 0; transform: translateY(-30px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes comeFromBottom { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes comeFromRight { 0% { opacity: 0; transform: translateX(30px); } 100% { opacity: 1; transform: translateX(0); } }
.anim-top { animation-name: comeFromTop; }
.anim-bottom { animation-name: comeFromBottom; }
.anim-right { animation-name: comeFromRight; }

/* সার্চ বক্স */
.search-box { position: relative; width: 350px; }
.search-box input {
    width: 100%; padding: 12px 45px 12px 20px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(30, 41, 59, 0.5); color: #fff;
    outline: none; transition: all 0.3s ease; font-size: 0.95rem;
}
.search-box input:focus {
    border-color: #3b82f6; background-color: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.search-box button {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #94a3b8; cursor: pointer; transition: 0.2s;
}
.search-box button:hover { color: #3b82f6; }

/* ৩. মেইন কন্টেইনার */
.main-container {
    max-width: 1200px; margin: 40px auto; padding: 0 20px; width: 100%; flex: 1;
}

/* ৪. ক্যাটাগরি সেকশন */
.category-section { margin-bottom: 60px; }

.category-header {
    background: linear-gradient(to right, #1e293b, #0f172a); 
    padding: 20px 25px; border-radius: 12px; margin-bottom: 30px;
    border-left: 5px solid #0ea5e9; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}
.category-header h2 { font-size: 24px; margin-bottom: 5px; color: #e2e8f0; font-weight: 600; }
.category-header p { font-size: 14px; color: #94a3b8; }

/* ৫. গ্রিড সিস্টেম */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 25px;
}

/* ৬. টুল কার্ড */
.tool-card {
    position: relative;
    padding: 28px;
    border-radius: 20px;
    display: flex; align-items: center; text-decoration: none; color: white;
    overflow: hidden;
    
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 25%, #312e81 50%, #1e1b4b 75%, #0f172a 100%);
    background-size: 400% 400%;
    animation: gradientFlowNormal 15s ease infinite; 
    
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

@keyframes gradientFlowNormal {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.4); 
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    
    background: linear-gradient(135deg, #2563eb, #6366f1, #8b5cf6, #2563eb);
    background-size: 300% 300%;
    animation: gradientFlowHover 3s linear infinite;
}
@keyframes gradientFlowHover {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* --- CARD ICON BOX --- */
.icon-box {
    width: 58px; height: 58px; border-radius: 16px;
    display: flex; justify-content: center; align-items: center;
    font-size: 26px; margin-right: 22px;
    background: transparent; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    transition: all 0.4s ease;
    overflow: hidden; 
}

.icon-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tool-card:hover .icon-box { border-color: rgba(59, 130, 246, 0.5); transform: rotate(5deg) scale(1.1); }
.color-blue { color: #93c5fd; }
.color-green { color: #86efac; }
.color-orange { color: #fdba74; }
.color-purple { color: #d8b4fe; }
.color-red { color: #fca5a5; }

.card-info h3 { font-size: 18px; font-weight: 600; letter-spacing: 0.4px; color: #f1f5f9; }

/* ==========================================
   ৭. স্পেশাল অ্যাপস সেকশন (NEWLY UPDATED)
   ========================================== */
.app-card {
    flex-direction: column; 
    align-items: flex-start;
    padding: 25px;
}

.app-card .card-info {
    width: 100%;
    margin-top: 15px;
}

.app-card h3 {
    margin-bottom: 12px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tool-card:hover .download-btn {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.download-btn:hover {
    background: #fff !important;
    color: #312e81 !important; 
    transform: translateY(-2px);
}

/* ৮. ফুটার */
footer {
    background-color: #0b0f19; color: #94a3b8; padding-top: 70px;
    margin-top: auto; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.95rem;
}
.footer-content {
    max-width: 1000px; margin: 0 auto; padding: 0 20px 50px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 60px;
}
.footer-section h3 {
    color: #f8fafc; margin-bottom: 25px; font-size: 1.2rem;
    font-weight: 600; position: relative; padding-bottom: 12px;
}
.footer-section h3::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 45px; height: 3px; border-radius: 2px; background: #3b82f6;
}

.footer-section .logo-text {
    font-size: 1.5rem; font-weight: 700; color: #f8fafc;
    margin-bottom: 15px; display: flex; align-items: center; gap: 12px;
}

.footer-icon-box {
    width: 40px; height: 40px;
    border-radius: 8px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.footer-icon-box img { width: 100%; height: 100%; object-fit: cover; }

.footer-section p { line-height: 1.7; margin-bottom: 25px; opacity: 0.8; }
.socials a {
    display: inline-flex; justify-content: center; align-items: center;
    width: 44px; height: 44px; background-color: rgba(30, 41, 59, 0.5);
    color: #94a3b8; border-radius: 50%; margin-right: 12px;
    text-decoration: none; transition: 0.3s; border: 1px solid rgba(255,255,255,0.05);
}
.socials a:hover {
    background: linear-gradient(135deg, #3b82f6, #6366f1); color: white;
    transform: translateY(-4px); border-color: transparent;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}
.contact-info { list-style: none; }
.contact-info li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.contact-info li i { color: #6366f1; }
.contact-info li a { color: #94a3b8; text-decoration: none; transition: 0.3s; }
.contact-info li a:hover { color: #6366f1; }
.footer-bottom {
    background-color: #050810; padding: 30px; text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-bottom p { margin: 0; font-size: 0.9rem; color: #64748b; }
.highlight { color: #6366f1; font-weight: 600; }

/* ৯. মোবাইল রেসপন্সিভ */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 15px; padding: 15px 20px; height: auto; }
    .navbar .logo { width: 100%; justify-content: center; }
    .search-box { width: 100%; margin-top: 5px; }

    .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .tool-card {
        padding: 15px; flex-direction: column; text-align: center;
        justify-content: center; border-radius: 12px;
    }

    .icon-box {
        width: 45px; height: 45px; font-size: 20px;
        margin-right: 0; margin-bottom: 10px;
    }
    
    .card-info h3 { font-size: 13px; line-height: 1.4; }
    
    /* App Section Mobile adjust */
    .app-card { align-items: center; }
    .download-btn { font-size: 0.7rem; padding: 8px; }

    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-section h3::after { left: 50%; transform: translateX(-50%); }
    .footer-section .logo-text { justify-content: center; }
    .contact-info li { justify-content: center; }
}