/* ======== বেসিক স্টাইল ও ভেরিয়েবল (নতুন কালার) ======== */
:root {
    --primary-color: #007bff; /* নতুন প্রাইমারি কালার (Blue) */
    --secondary-color: #19a18f; /* নতুন সেকেন্ডারি কালার (Teal) */
    --gradient: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    --dark-bg: #1a1e25; /* সামান্য হালকা কালো */
    --light-text: #f8f9fa;
    --dark-text: #333;
    --card-bg: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6;
    color: var(--dark-text);
}

/* ======== গ্রেডিয়েন্ট বাটন ======== */
.btn-primary-gradient {
    background: var(--gradient);
    border: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.btn-primary-gradient:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ======== লোডিং এনিমেশন ======== */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: var(--light-text);
}
.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ======== ফ্ল্যাশ মেসেজ (৩ সেকেন্ড পপআপ) ======== */
.flash-message {
    position: fixed;
    top: 20px; /* উপরে উঠানো হয়েছে কারণ নেভবার এখন আর fixed নেই */
    right: 20px;
    background: linear-gradient(90deg, #1d976c, #93f9b9);
    color: var(--dark-text);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1056; /* Modal এর উপরে */
    font-weight: 600;
    animation: slideInFadeOut 3s forwards;
}
@keyframes slideInFadeOut {
    0% { transform: translateX(100%); opacity: 0; }
    20% { transform: translateX(0); opacity: 1; }
    80% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}


/* ======== নেভিগেশন বার (আপডেটেড) ======== */
.navbar {
    background: var(--dark-bg); /* সলিড ডার্ক ব্যাকগ্রাউন্ড */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    /* 'fixed-top' না হওয়ায় backdrop-filter এর দরকার নেই */
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--light-text);
}

/* ======== হিরো সেকশন (আপডেটেড) ======== */
.hero-section {
    background: var(--gradient);
    padding: 100px 0 100px 0; /* 'fixed-top' না থাকায় টপ প্যাডিং কমানো হয়েছে */
    position: relative;
    overflow: hidden;
}
/* এনিমেশনের জন্য */
.animated-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInSlideUp 0.8s forwards;
}
/* বিভিন্ন আইটেম একটু পর পর আসবে */
.hero-section .animated-item:nth-child(1) { animation-delay: 0.2s; }
.hero-section .animated-item:nth-child(2) { animation-delay: 0.4s; }
.hero-section .animated-item:nth-child(3) { animation-delay: 0.6s; }

.how-it-works .animated-item { animation-delay: 0.2s; }
.partners-section .animated-item { animation-delay: 0.2s; }
.payment-methods .animated-item { animation-delay: 0.2s; }

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======== কিভাবে কাজ করে সেকশন ======== */
.info-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}
.info-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
/* আপনার রিকুয়েস্টেড ইমেজ হোভার ইফেক্ট */
.hover-effect {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 10px;
}
.hover-effect:hover {
    transform: scale(1.05) rotate(2deg);
    filter: blur(1px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ======== মারকুই (Marquee) সেকশন ======== */
.marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.marquee {
    display: flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}
.marquee img, .marquee .payment-card {
    margin: 0 15px;
    flex-shrink: 0;
}
.marquee img {
    height: 70px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.marquee img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ডান থেকে বামে */
.marquee-right-to-left {
    animation-name: marquee-rtl;
}
@keyframes marquee-rtl {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); } /* 50% কারণ আমরা কন্টেন্ট ডুপ্লিকেট করেছি */
}

/* বাম থেকে ডানে */
.marquee-left-to-right {
    animation-name: marquee-ltr;
}
@keyframes marquee-ltr {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

/* ======== পেমেন্ট মেথড সেকশন ======== */
.payment-methods {
    background: var(--gradient); /* নতুন গ্রেডিয়েন্ট */
}
.payment-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ======== ফুটার ======== */
.footer-section {
    background-color: #1a1a1a;
}
.footer-link {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.2s ease;
}
.footer-link:hover {
    color: var(--light-text);
    padding-left: 5px;
}
.social-icon {
    color: var(--light-text);
    margin-right: 15px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.social-icon:hover {
    color: var(--secondary-color); /* নতুন সেকেন্ডারি কালার */
}

/* ======== Modal (পপআপ) স্টাইল ======== */
.modal-content {
    background-color: #ffffff;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0 1.5rem;
}
.modal-title {
    font-weight: 700;
    color: var(--primary-color); /* নতুন প্রাইমারি কালার */
}
.modal-body {
    padding: 1.5rem;
}
.modal-footer {
    background-color: #f9f9f9;
    border-top: none;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}
.forgot-password, .modal-footer a {
    color: var(--primary-color); /* নতুন প্রাইমারি কালার */
    text-decoration: none;
    font-weight: 600;
}
.forgot-password:hover, .modal-footer a:hover {
    text-decoration: underline;
}

/* ======== পাসওয়ার্ড চেকার স্টাইল ======== */
#password-strength small {
    color: #dc3545; /* লাল (ডিফল্ট) */
    transition: all 0.3s ease;
}
#password-strength small.valid {
    color: #198754; /* সবুজ (সঠিক হলে) */
    text-decoration: line-through;
}

/* রেসপন্সিভ ডিজাইন */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px 0; /* মোবাইলের জন্য প্যাডিং অ্যাডজাস্ট */
    }
    .info-card {
        text-align: center;
    }
    .info-card .col-md-6 {
        margin-bottom: 20px;
    }
    .info-card .order-md-2 {
        order: 1 !important;
    }
    .info-card .order-md-1 {
        order: 2 !important;
    }
    .footer-section {
        text-align: center;
    }
}
