/* ===== Base Styles ===== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --bg-color: #f5f7fa;
    --card-bg: #fff;
    --footer-bg: #2c3e50;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --notice-color: #ffc107;
}

[data-theme="dark"] {
    --primary-color: #3498db;
    --secondary-color: #e74c3c;
    --accent-color: #2ecc71;
    --light-color: #34495e;
    --dark-color: #ecf0f1;
    --text-color: #f5f5f5;
    --bg-color: #1a252f;
    --card-bg: #2c3e50;
    --footer-bg: #1a252f;
    --notice-color: #ffc107;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: 'Noto Sans Bengali', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

/* ===== Preloader Styles ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
}

.loader {
    text-align: center;
}

.loader img {
    height: 60px;
    margin-bottom: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(231, 76, 60, 0.2);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Header Styles ===== */
header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header-container {
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-color);
    background: none;
    border: none;
    padding: 5px;
}

.dark-mode-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dark-mode-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(15deg);
}

/* ===== Scrolling Notice Styles ===== */
.scrolling-notice-container {
    width: 100%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(231, 76, 60, 0.2) 100%);
    border-top: 1px solid rgba(231, 76, 60, 0.1);
    border-bottom: 1px solid rgba(231, 76, 60, 0.2);
    overflow: hidden;
}

.scrolling-notice {
    width: 100%;
    padding: 8px 0;
}

.notice-content {
    display: flex;
    white-space: nowrap;
    animation: scrollNotice 30s linear infinite;
}

.notice-content p {
    margin: 0 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
}

.notice-content i {
    margin-right: 8px;
}

@keyframes scrollNotice {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ===== Hero Section ===== */
.hero {
    padding: 100px 5% 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4ca1af 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 120px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://habiganj.net/assets/images/pattern.png') repeat;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* ===== Main Content ===== */
main {
    flex: 1;
    padding: 30px 5% 50px;
}

/* ===== Payment Container ===== */
.payment-section {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.payment-container {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.payment-header {
    text-align: center;
    margin-bottom: 25px;
}

.payment-header img {
    height: 70px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.payment-header img:hover {
    transform: scale(1.05);
}

.payment-header h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.payment-header p {
    color: var(--text-color);
    opacity: 0.8;
}

/* ===== Form Styles ===== */
.payment-form .form-group {
    margin-bottom: 20px;
    position: relative;
}

.input-icon {
    position: relative;
    width: 100%;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 18px;
    z-index: 1;
}

.input-icon input {
    padding-left: 45px !important;
}

.payment-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Noto Sans Bengali', sans-serif;
    background: var(--card-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.payment-form input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.btn {
    display: block;
    width: 100%;
    background: var(--secondary-color);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Bengali', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: #c0392b;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

.support-info {
    text-align: center;
    margin-top: 20px;
    color: var(--text-color);
    font-size: 14px;
}

.support-info i {
    color: var(--secondary-color);
    margin-right: 5px;
}

/* ===== Instructions ===== */
.instructions {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-left: 4px solid var(--secondary-color);
}

.instructions h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions ul {
    list-style: none;
}

.instructions li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 15px;
}

.instructions li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 10px;
    font-size: 20px;
}

/* ===== Redesigned Payment Methods ===== */
.payment-methods-container {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    text-align: center;
}

.payment-methods-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0;
}

.payment-method-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.payment-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.payment-method-card img {
    height: 30px;
    object-fit: contain;
}

.payment-method-card span {
    font-weight: 600;
    color: var(--primary-color);
}

.merchant-info-box {
    background: rgba(231, 76, 60, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.merchant-info-box p {
    margin: 5px 0;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.merchant-info-box strong {
    font-weight: 700;
}

/* ===== Steps Section ===== */
.steps-section {
    padding: 60px 5%;
    background: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-title p {
    color: var(--text-color);
    opacity: 0.8;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-number {
    background: var(--secondary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(231, 76, 60, 0.2);
}

.step-content {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    flex-grow: 1;
    transition: all 0.3s ease;
}

.step:hover .step-content {
    transform: translateX(10px);
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 10px;
}

.important-note {
    background: rgba(231, 76, 60, 0.1);
    color: var(--secondary-color);
    padding: 8px 12px;
    border-radius: 5px;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.step:hover .important-note {
    background: rgba(231, 76, 60, 0.2);
}

/* ===== Features Section ===== */
.features-section {
    padding: 60px 5%;
    background: var(--bg-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(46, 204, 113, 0.1) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 50px;
    color: var(--accent-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-color);
    opacity: 0.9;
    font-size: 15px;
    line-height: 1.7;
}

.feature-more {
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 10px;
    font-size: 14px;
}

/* ===== Redesigned FAQ Section ===== */
.new-faq-section {
    padding: 60px 5%;
    background: var(--light-color);
}

.new-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.new-faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.new-faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.new-faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-faq-question h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
    flex: 1;
}

.new-faq-question i {
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.new-faq-question.active i {
    transform: rotate(180deg);
}

.new-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.new-faq-answer.active {
    padding: 20px;
    max-height: 500px;
}

.new-faq-answer p {
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
    font-size: 15px;
    opacity: 0.9;
}

/* ===== Footer ===== */
footer {
    background: var(--footer-bg);
    color: white;
    padding: 40px 5% 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    margin-bottom: 20px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
    bottom: 0;
    left: 0;
}

.footer-column p {
    margin-bottom: 15px;
    font-size: 14px;
    opacity: 0.9;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column ul li i {
    width: 20px;
    text-align: center;
    color: var(--secondary-color);
}

.footer-column ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #bdc3c7;
}

.footer-bottom a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ===== Scroll to Top Button ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #c0392b;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* ===== Alert Styles ===== */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--secondary-color);
    color: var(--secondary-color);
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ===== Animations ===== */
.pulse {
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: var(--card-bg);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: all 0.5s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        margin-top: 110px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
    }
    
    .logo {
        height: 40px;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .payment-container, 
    .instructions,
    .payment-methods-container {
        padding: 20px;
    }
    
    .payment-header img {
        height: 60px;
    }
    
    .payment-header h2 {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 10px;
    }
    
    .payment-methods-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .notice-content p {
        font-size: 12px;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 5% 40px;
        margin-top: 100px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .payment-header img {
        height: 50px;
    }
    
    .payment-header h2 {
        font-size: 1.3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .new-faq-question {
        padding: 15px;
    }
    
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-method-card {
        padding: 12px 15px;
    }
}