/* =========================================
   === MASTER STYLESHEET (Brothers Network) ===
   ========================================= */

:root {
    --bg-dark: #0a1128;

    /* === গ্লাসি সেটিং (ভারসাম্য আনার জন্য ফিক্স) === */
    --bg-card: rgba(255, 255, 255, 0.08); 
    --blur-effect: blur(0.5px); 
    --border-color: rgba(255, 255, 255, 0.15);

    --text-light: #ffffff;
    --text-gray: #e0e0e0;
    --primary: #00e5ff;
    --primary-hover: #00b8cc;
}

/* === থিম ভেরিয়েবল === */
.theme-purple {
    --primary: #c026d3;
    --primary-hover: #931cc3;
}
.theme-green {
    --primary: #10b981;
    --primary-hover: #0b8f64;
}
.theme-red {
    --primary: #ef4444;
    --primary-hover: #c42b2b;
}
.theme-light {
    --bg-dark: #f0f4f8;
    --bg-card: rgba(255, 255, 255, 0.8);
    --border-color: rgba(0, 0, 0, 0.1);
    --text-light: #1e293b;
    --text-gray: #334155;
    --primary: #3b82f6;
    --primary-hover: #1d4ed8;
}

body {
    font-family: 'Noto Sans Bengali', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    margin: 0;
    padding: 0;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    transition: background-color 0.5s;
}

/* === TOP BAR === */
.top-bar {
    background: rgba(15, 23, 42, 0.9);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.lang-switcher button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.lang-switcher button.active {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
}

/* === NAVBAR (আপডেট) === */
.navbar {
    background: var(--bg-card);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 40px; 
    z-index: 99;
    transform: translateZ(0); 
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* মেনু টগল পজিশনের জন্য */
}

.logo img {
    height: 40px;
    border-radius: 5px;
}

/* ডেস্কটপ মেনু লিংক */
.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s, border-bottom 0.3s;
    padding-bottom: 5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.7); 
    border-bottom: 2px solid var(--primary);
}

/* === HAMBURGER MENU TOGGLE (NEW) === */
.menu-toggle {
    display: none; /* ডেস্কটপে লুকানো */
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    z-index: 101;
    padding: 5px 10px;
    order: 3; /* SELF CARE এর পর দেখানোর জন্য */
    margin-left: 15px; 
}


/* === SELF CARE/PRIMARY BUTTON (আপডেট) === */
.btn-selfcare,
.btn-primary,
.btn-start { 
    background: var(--primary);
    color: #000;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.8), 0 0 20px rgba(0, 229, 255, 0.4); 
}

.btn-selfcare:hover,
.btn-primary:hover,
.btn-start:hover { 
    background: white;
    box-shadow: 0 0 30px var(--primary);
}


/* === MAIN CONTENT CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* === HERO SECTION/SLIDER (index.html) === */
.slider-container {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 900px;
    padding: 30px;
    background: none;
    border: none;
    backdrop-filter: none;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

.slide-content p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: #f0f0f0;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 5;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.prev:hover,
.next:hover {
    background-color: var(--primary);
    color: black;
}

/* === GENERAL STYLES === */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-top: 50px;
    margin-bottom: 40px;
    color: var(--primary);
    text-transform: uppercase;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary);
    margin: 10px auto 0;
    border-radius: 5px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* === CARD CLASSES (Generic Card Definition) === */
.card,
.package,
.coverage-list-card,
.about-story-card, /* Our Story card add kora holo */
.custom-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    color: var(--text-light);
    transition: all 0.3s ease;
    position: relative;
    
    /* === চূড়ান্ত পারফরম্যান্স হ্যাক: যোগ করা হয়েছে (GPU Acceleration) === */
    transform: translateZ(0); 
}

.card:hover,
.package:hover,
.team-member:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}


/* === RECOMMENDED PACKAGE (NEW FIX) === */
.package.recommended {
    border-color: var(--primary) !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5); 
}


/* === TEAM GRID & TEAM MEMBER (about.html FIX) === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 50px 30px;
}
.team-member {
    text-align: center;
    margin-top: 100px;
    overflow: visible !important;
}

.team-member img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    /* ফোকাস পজিশন ঠিক করা হলো */
    object-position: 50% 10%; 
    margin-top: -90px; 
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: var(--bg-dark);
}
.team-member .team-content {
    /* লেখা নিচে নামানো হলো */
    margin-top: -10px; 
    padding: 0 10px;
}
.team-member h3 {
    margin: 10px 0 5px 0;
    font-size: 1.1rem; 
}
.team-designation {
    color: var(--primary);
    font-weight: 600;
    display: block; 
}
.team-phone {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 10px;
}


/* === PACKAGE STYLES (packages.html fix) === */
.packages-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.package {
    /* Base style defined in .card selector above */
    padding: 30px;
}


.package-top {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.package-top .price {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--primary);
    margin: 10px 0;
}

.package-top .price span {
    font-size: 1.2rem;
    font-weight: 400;
    margin-left: 5px;
    color: var(--text-gray);
}


.package-bottom ul {
    list-style: none;
    padding: 0;
}

.package-bottom li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.package-bottom li i {
    color: var(--primary);
}


/* === CUSTOMER REVIEWS (index.html) === */
.review-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    padding: 30px;
    text-align: left;
}

.review-card p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 15px;
    margin-bottom: 15px;
    color: var(--text-gray);
}

.review-card strong {
    color: var(--primary);
    display: block;
    margin-top: 10px;
    font-weight: 700;
    font-size: 1rem;
}

.stars {
    color: #ffd700; /* গোল্ড কালার */
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.stars i {
    margin-right: 2px;
}

/* === COVERAGE STYLES (coverage.html) === */
.coverage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.coverage-list-card h3 {
    color: var(--primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.coverage-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap; 
    gap: 15px; 
}

.coverage-list li {
    background: var(--bg-card);
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px; 
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.coverage-list li:hover {
    background: rgba(0, 229, 255, 0.15); 
    border-color: var(--primary);
    transform: translateY(-5px) scale(1.05); 
    box-shadow: 0 10px 25px -10px rgba(0, 229, 255, 0.6); 
    color: white;
}

.active-areas li i {
    color: #00ff88; 
    font-size: 0.8rem;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

.live-icon {
    animation: pulse-green 2s infinite; 
}

.future-areas li i {
    color: #ff9f43; 
    font-size: 1.1rem;
}


/* === CONTACT PAGE STYLES (contact.html) === */
.contact-layout-new {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 40px;
}

.form-section h3,
.info-card h4 {
    margin-top: 0;
    color: var(--primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-light);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
    transition: 0.3s;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 3px;
}

.whatsapp-card {
    border: 1px solid #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.whatsapp-card .info-icon {
    color: #25D366;
}

/* === WHATSAPP LINK COLOR FIX (নতুন কোড) === */
.whatsapp-card a {
    color: var(--primary); 
    font-weight: 600; 
    text-decoration: none; 
    border-bottom: 1px dashed var(--primary);
    transition: color 0.3s;
}

.whatsapp-card a:hover {
    color: #25D366; 
}


/* === PAYMENT PAGE STYLES (payment.html) === */
.payment-card {
    text-align: center;
    overflow: hidden;
}

.pay-logo {
    height: 70px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.number-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    border: 1px solid var(--border-color);
}

.qr-box {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
}

.qr-img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    border: 3px solid white;
}


/* === FOOTER === */
.footer {
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 50px 0 20px 0;
    margin-top: 80px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.footer-col ul li i {
    color: var(--primary);
    margin-right: 10px;
}

.footer-col ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-gray);
}


/* === FOOTER SOCIAL LINKS EXTENDED (NEW) === */
.footer-social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.footer-social-links a {
    color: var(--text-gray);
    font-size: 1.6rem;
    transition: 0.3s;
}

.footer-social-links a:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.footer-social-links .fa-facebook:hover { color: #1877F2; }
.footer-social-links .fa-whatsapp:hover { color: #25D366; }
.footer-social-links .fa-envelope:hover { color: #EA4335; }


/* === RESPONSIVE DESIGN (FINAL FIXES) === */
/* 900px পর্যন্ত টলারেবল */
@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .packages-grid {
        grid-template-columns: 1fr 1fr;
    }
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .grid-2, .contact-layout-new, .coverage-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* === MOBILE NAVIGATION FIX: Hamburger Menu === */
    .menu-toggle {
        display: block; 
    }
    .nav-container {
        flex-wrap: wrap; 
        justify-content: space-between; 
    }
    
    /* মেনু লিঙ্কগুলো লুকানো এবং ভার্টিক্যাল করা হলো */
    .nav-links {
        display: none; 
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; 
        left: 0;
        background: rgba(10, 17, 40, 0.95); 
        border-top: 1px solid var(--border-color);
        padding: 10px 0;
        z-index: 98;
        transition: transform 0.3s ease-out;
        transform: translateY(0); 
    }

    .nav-links.open {
        display: flex; 
        transform: translateY(0);
    }
    
    .nav-links a {
        margin: 5px 20px;
        font-size: 1.1rem;
        text-align: center;
        padding: 10px 0;
        border-bottom: none;
    }
    .nav-links a:hover {
        background: rgba(0, 229, 255, 0.1);
        border-radius: 5px;
    }
    
    /* ফিক্সড: SELF CARE বাটনের আকার এবং পজিশন ঠিক করা হলো */
    .btn-selfcare {
        padding: 8px 15px; 
        font-size: 0.9rem; 
        order: 2; 
    }
    
    /* === FONT SIZE & SLIDER FIX (মোবাইলের জন্য কন্টেন্ট ছোট করা) === */
    .slide-content h1 {
        font-size: 1.8rem; /* Make big text smaller */
    }
    .slide-content p {
        font-size: 1.1rem;
    }
    
    /* === GENERAL LAYOUT FIX === */
    .grid-3 {
        grid-template-columns: 1fr; /* 3-column grids become 1-column */
    }
    .packages-grid {
        grid-template-columns: 1fr; /* 2-column grids become 1-column */
    }
    .team-grid {
        grid-template-columns: 1fr; /* 5-column grids become 1-column */
    }
    
    /* FOOTER AND CONTACT FIXES */
    .footer-grid, .contact-layout-new, .coverage-grid {
        grid-template-columns: 1fr;
    }
    
    /* মোবাইল ডিভাইসে প্যাকেজের দাম ছোট করা */
    .package-top .price {
        font-size: 2rem;
    }
}


/* === BACKGROUND ANIMATION FOR HOME PAGE (FULL COVER) === */
@keyframes changeBackground {
    0% {
        background-image: 
            linear-gradient(rgba(10, 17, 40, 0.7), rgba(10, 17, 40, 0.9)),
            url("images/home-background.jpg"); /* Image 1 */
    }
    25% {
        background-image: 
            linear-gradient(rgba(10, 17, 40, 0.7), rgba(10, 17, 40, 0.9)),
            url("images/home-background1.jpg"); /* Image 2 */
    }
    50% {
        background-image: 
            linear-gradient(rgba(10, 17, 40, 0.7), rgba(10, 17, 40, 0.9)),
            url("images/home-background2.jpg"); /* Image 3 */
    }
    75% {
        background-image: 
            linear-gradient(rgba(10, 17, 40, 0.7), rgba(10, 17, 40, 0.9)),
            url("images/home-background3.jpg"); /* Image 4 */
    }
    100% {
        background-image: 
            linear-gradient(rgba(10, 17, 40, 0.7), rgba(10, 17, 40, 0.9)),
            url("images/home-background.jpg"); /* Loop back to Image 1 */
    }
}


body#page-home {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: changeBackground 20s infinite alternate; 
}

/* === BACKGROUND IMAGES FOR OTHER PAGES === */
body#page-packages {
    background-image: linear-gradient(rgba(10, 17, 40, 0.5), rgba(10, 17, 40, 0.7)),
        url("images/background-packages.jpg"); 
}

body#page-contact {
    background-image: linear-gradient(rgba(10, 17, 40, 0.5), rgba(10, 17, 40, 0.7)),
        url("images/contact-background.jpg");
}

body#page-about {
    background-image: linear-gradient(rgba(10, 17, 40, 0.5), rgba(10, 17, 40, 0.7)),
        url("images/about-background.jpg");
}

body#page-offers {
    background-image: linear-gradient(rgba(10, 17, 40, 0.5), rgba(10, 17, 40, 0.7)),
        url("images/offers-background.jpg");
}

body#page-coverage {
    background-image: linear-gradient(rgba(10, 17, 40, 0.5), rgba(10, 17, 40, 0.7)),
        url("images/coverage-background.jpg");
}

body#page-payment {
    background-image: linear-gradient(rgba(10, 17, 40, 0.5), rgba(10, 17, 40, 0.7)),
        url("images/payment-background.jpg");
}

/* ================================================= */
/* === FIXES FOR LANGUAGE SWITCHING & PERFORMANCE === */
/* ================================================= */

.lang-en {
    display: none !important; 
}

.lang-hidden {
    display: none !important;
}

.lang-bn:not(.lang-hidden), 
.lang-en:not(.lang-hidden) {
    display: contents !important;
}
