/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #ffffff;
    color: #1f2937;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease; /* সব লিঙ্কে স্মুথ ট্রানজিশন */
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navbar Layout --- */
header {
    padding: 15px 0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.main-header-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 8px 20px;
    flex-grow: 1; 
    max-width: 850px;
    margin-left: auto;
}

nav ul {
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav-item {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-item:hover {
    color: #3b82f6;
}

/* --- Version v1.2 Button & Dropdown (FIXED & ANIMATED) --- */
.dropdown-item {
    position: relative; /* ড্রপডাউন যাতে এটার সাপেক্ষে থাকে */
}

.version-btn {
    background: #fff1f2 !important;
    color: #ef4444 !important;
    padding: 6px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.version-btn:hover {
    transform: scale(1.03); /* সামান্য জুম এনিমেশন */
    background: #fee2e2 !important;
}

.version-card-layout {
    position: absolute;
    top: 100%; /* ১৩০% থেকে কমিয়ে ১০০% করা হয়েছে যাতে নিচে সরাসরি আসে */
    left: 0;
    margin-top: 10px; /* বাটন থেকে সামান্য গ্যাপ */
    width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 10px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px); /* নিচে থেকে ভেসে উঠার এনিমেশন */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999;
}

.dropdown-item:hover .version-card-layout {
    visibility: visible;
    opacity: 1;
    transform: translateY(0); /* হোভার করলে নিজের জায়গায় চলে আসবে */
}

.version-option {
    display: block;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 4px;
    transition: background 0.2s ease;
}

.version-option:hover {
    background: #f9fafb;
    transform: translateX(5px); /* হোভার করলে ডানে সামান্য সরবে */
}

.latest-box {
    background: #f8fafc;
}

.option-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v-name {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.badge-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
}

.badge-tag.new { background: #ffedd5; color: #f97316; }
.badge-tag.old { background: #f1f5f9; color: #94a3b8; }

.v-desc {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* --- Resources Mega Dropdown (FIXED) --- */
.dropdown {
    position: relative;
}

.mega-dropdown {
    position: absolute;
    top: 100%; /* ১৫০% থেকে ১০০% করা হয়েছে */
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 450px;
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border: 1px solid #f3f4f6;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

.dropdown:hover .mega-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    background: #f8fafc;
    transform: scale(1.02);
}

.icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.dropdown-link:hover .icon-box {
    transform: rotate(10deg); /* আইকন সামান্য ঘুরবে */
}

/* আইকন বক্স কালার থিম */
.icon-box.blue { background: #eff6ff; color: #3b82f6; }
.icon-box.purple { background: #f5f3ff; color: #8b5cf6; }
.icon-box.green { background: #ecfdf5; color: #10b981; }
.icon-box.orange { background: #fff7ed; color: #f59e0b; }
.icon-box.red { background: #fef2f2; color: #ef4444; }
.icon-box.cyan { background: #ecfeff; color: #06b6d4; }

.text-box span {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
}

.text-box p {
    font-size: 11px;
    color: #6b7280;
}

/* --- Search Box --- */
.search-box {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 50px;
    padding: 6px 15px;
    width: 160px;
    transition: width 0.3s ease, background 0.3s ease;
}

.search-box:focus-within {
    width: 200px; /* সার্চে ক্লিক করলে বড় হবে */
    background: #e5e7eb;
}

.search-box input {
    border: none;
    background: transparent;
    font-size: 13px;
    outline: none;
    width: 100%;
}

/* --- Hero Section & Buttons Animation --- */
.hero-section {
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
    letter-spacing: -1px;
}

.underline-shape {
    width: 250px;
    height: 7px;
    background: #eff6ff;
    border-radius: 10px;
    margin: 15px auto 45px;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-4px); /* উপরে ভেসে উঠবে */
    background-color: #2563eb;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px); /* ক্লিক করলে সামান্য নিচে নামবে */
}

.link-secondary {
    display: inline-block;
    color: #4b5563;
    font-weight: 500;
    padding: 16px 32px;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.link-secondary:hover {
    background-color: #f3f4f6;
    color: #3b82f6;
    transform: scale(1.05);
}

/* --- Footer --- */
footer {
    padding: 80px 0 30px;
    border-top: 1px solid #f3f4f6;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    font-weight: 600;
    margin-bottom: 20px;
    color: #111827;
}

.footer-col ul li { margin-bottom: 12px; }

.footer-col ul li a:hover {
    color: #3b82f6;
    padding-left: 5px; /* ফুটারে হোভার করলে ডানে সরবে */
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #f9fafb;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #9ca3af;
}

/* --- Responsive Queries --- */
@media (max-width: 1024px) {
    .navbar { max-width: 700px; }
    .mega-dropdown { width: 400px; }
}

@media (max-width: 768px) {
    .navbar nav, .header-extras { display: none; }
    .hero-content h1 { font-size: 2.8rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}