/* Main Variables */
:root {
    --primary-color: #E60000;
    --primary-gradient: linear-gradient(135deg, #E60000 0%, #a30000 100%);
    --secondary-color: #1a1a1a;
    --light-gray: #f8f9fa;
    --dark-gray: #0f0f0f;
    --text-color: #2d3436;
    --text-muted: #636e72;
    --border-radius: 16px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --glass: rgba(255, 255, 255, 0.8);
    --glass-blur: blur(10px);
    --whatsapp-color: #25D366;
}


/* Dynamic Sync with Bootstrap */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.btn-primary { background: var(--primary-gradient) !important; border: none !important; }
.border-primary { border-color: var(--primary-color) !important; }

/* Branded Tabs (nav-pills) */
.nav-pills .nav-link {
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-pills .nav-link:hover {
    color: var(--primary-color);
    background-color: color-mix(in srgb, var(--primary-color), transparent 90%);
    border-color: color-mix(in srgb, var(--primary-color), transparent 80%);
}

.nav-pills .nav-link.active, 
.nav-pills .show > .nav-link {
    background: var(--primary-gradient) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--primary-color), transparent 70%);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--secondary-color);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-up { animation: fadeInUp 0.8s ease-out forwards; }
.float-element { animation: float 4s ease-in-out infinite; }

/* Top Bar */
.top-bar {
    background-color: var(--dark-gray);
    color: #fff;
    font-size: 0.85rem;
    padding: 10px 0;
    font-weight: 500;
}

.top-bar a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.top-bar a:hover {
    color: #fff;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar.scrolled {
    padding: 10px 0;
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 15px;
    position: relative;
    padding: 8px 0;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Mobile Navbar Customization */
@media (max-width: 991.98px) {
    .navbar {
        background-color: #ffffff !important;
        margin: 15px 15px 0 15px;
        padding: 10px 20px;
        border-radius: 50px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }
    
    .navbar.scrolled {
        margin-top: 5px;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-radius: 20px;
        padding: 15px;
        margin-top: 15px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        z-index: 9999;
    }
    
    .custom-toggler {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 22px;
        padding: 0;
        background: transparent !important;
    }
    
    .custom-toggler .line {
        display: block;
        height: 4px;
        width: 100%;
        background: var(--primary-color);
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    
    .custom-toggler:focus {
        outline: none;
        box-shadow: none;
    }
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3);
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 0, 0, 0.4);
    filter: brightness(110%);
}

/* Hero Slider */
.carousel-item {
    height: 85vh;
    min-height: 600px;
    background-repeat: no-repeat;
    background-position: center;
}

.carousel-overlay {
    background: transparent;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Section Styling */
section { padding: 100px 0; }

.section-title { margin-bottom: 60px; }
.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.section-tag {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

/* Feature Cards */
.glass-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.15);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all 0.4s;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.service-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.15);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all 0.4s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.service-section {
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Slashed Capsule Style (SVG Native) */
.slashed-image-wrapper {
    max-width: 650px;
    margin: 0 auto;
}

.coverage-mask-container {
    position: relative;
    width: 100%;
}

.coverage-masked-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M1,25 Q1,23 3,21 L21,3 Q23,1 25,1 L97,1 Q99,1 99,3 L99,75 Q99,77 97,79 L79,97 Q77,99 75,99 L3,99 Q1,99 1,97 Z' fill='white'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M1,25 Q1,23 3,21 L21,3 Q23,1 25,1 L97,1 Q99,1 99,3 L99,75 Q99,77 97,79 L79,97 Q77,99 75,99 L3,99 Q1,99 1,97 Z' fill='white'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.coverage-mask-container:hover .coverage-masked-img {
    transform: translateY(-10px) scale(1.02);
}

/* Floating Dots (Styled) */
.slash-dot {
    position: absolute;
    background: var(--primary-color);
    border-radius: 100px;
    transform: rotate(-40deg);
    opacity: 0.15;
    z-index: -1;
}

.dot-1 { width: 35px; height: 110px; top: -5%; left: 25%; }
.dot-2 { width: 25px; height: 75px; top: 65%; left: 5%; background: var(--secondary-color); }
.dot-3 { width: 45px; height: 130px; top: 80%; left: 55%; }

.coverage-info-badge {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s ease;
    z-index: 20;
}

/* Pricing Cards Overhaul */
.pricing-card {
    background: #fff;
    border: 1px solid #f1f1f1;
    padding: clamp(20px, 3vw, 45px) clamp(15px, 2vw, 35px);
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-header {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.pricing-speed {
    font-size: clamp(1.8rem, 2.5vw, 3rem);
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.pricing-price {
    font-size: clamp(2rem, 3vw, 3.5rem);
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: baseline;
    white-space: nowrap;
    gap: 8px;
}

.pricing-features {
    padding-left: 0;
    list-style: none;
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(0,0,0,0.75);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 10px;
}

.pricing-features li {
    white-space: normal;
    line-height: 1.3;
    margin-bottom: 0 !important;
}

.pricing-features li i {
    flex-shrink: 0;
}

.package-action-btn {
    transition: all 0.3s ease;
}

.package-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.package-action-btn .package-arrow {
    transition: transform 0.3s ease;
}

.package-action-btn:hover .package-arrow {
    transform: translateX(5px);
}

.badge-tag {
    position: absolute;
    top: 0;
    left: 24px;
    padding: 8px 25px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 5;
}

/* Speed Calculator */
.calc-item {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.calc-item:hover {
    border-color: var(--primary-color);
    background: #fff5f5;
}

/* Footer Modernization */
footer {
    background: var(--dark-gray);
    color: #999;
}

footer h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

footer a {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

footer p {
    color: rgba(255, 255, 255, 0.7);
}

/* Bill Pay Page */
.bill-pay-page .hero-section {
    background: #fff;
    padding: 80px 0;
    overflow: hidden;
}

.bill-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bill-hero-text h1 {
    font-size: 3.5rem;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 20px;
}

.bill-hero-image img {
    max-width: 500px;
    height: auto;
}

.payment-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.payment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    background: #fff;
}

.payment-card .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 2.5rem;
    color: #fff;
}

/* Pay Provider Colors */
.card-bkash .card-icon { background: #E2136E; }
.card-nagad .card-icon { background: #E64825; }
.card-rocket .card-icon { background: #8C3494; }
.card-online .card-icon { background: #9C27B0; }

.payment-card .card-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.payment-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-details {
    padding: 10px 30px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-bkash .btn-details { background: #E2136E; color: #fff; border: none; }
.card-nagad .btn-details { background: #ff9800; color: #fff; border: none; }
.card-rocket .btn-details { background: #8C3494; color: #fff; border: none; }
.card-online .btn-details { background: #9C27B0; color: #fff; border: none; }

.btn-details:hover {
    opacity: 0.9;
    transform: scale(1.05);
}


/* Responsive */
@media (max-width: 991px) {
    .carousel-item {
        height: auto !important;
        min-height: unset !important;
        aspect-ratio: 2 / 1 !important;
        background-size: cover !important;
        background-position: center;
    }
    .carousel-overlay {
        text-align: center;
        justify-content: center;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        height: 100%;
        padding: 20px;
    }
    .hero-title { 
        font-size: 2rem !important; 
        margin-bottom: 15px;
    }
    .hero-subtitle {
        font-size: 1rem !important;
        margin: 0 auto 20px;
        max-width: 80% !important;
    }
    section { padding: 60px 0; }
}

@media (max-width: 767px) {
    #heroSlider, .carousel-inner, .carousel-item {
        background-color: transparent !important;
    }
    .carousel-item {
        height: auto !important;
        min-height: unset !important;
        aspect-ratio: 16 / 9 !important;
        background-size: cover !important;
        background-position: center center !important;
    }
    .carousel-overlay {
        text-align: center;
        justify-content: center;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        height: 100%;
        padding: 15px;
    }
    .hero-title { 
        font-size: 1.1rem !important; 
        margin-bottom: 5px;
    }
    .hero-subtitle {
        font-size: 0.75rem !important;
        margin: 0 auto 10px;
        max-width: 100% !important;
        line-height: 1.2;
    }
    .btn-lg {
        padding: 6px 15px !important;
        font-size: 0.75rem !important;
    }
    .pricing-card.featured { transform: scale(1); }

    /* Bill Pay Responsive */
    .bill-pay-page .hero-section {
        padding: 40px 0;
        text-align: center;
    }
    .bill-hero-text {
        margin-bottom: 30px;
    }
    .bill-hero-text h1 {
        font-size: 1.8rem !important;
        margin-bottom: 15px;
    }
    .bill-hero-text p.lead {
        font-size: 0.95rem !important;
        margin-bottom: 20px;
    }
    .bill-hero-image {
        display: flex;
        justify-content: center;
    }
    .bill-hero-image img {
        max-width: 90% !important;
        height: auto;
    }

    /* Bill Pay Cards Grid (Mobile 2-Column) */
    .bill-pay-page .row.g-4 {
        --bs-gutter-x: 0.5rem !important; /* Tighter gap like reference */
        --bs-gutter-y: 0.5rem !important;
    }
    .payment-card {
        padding: 15px 10px !important;
        background: #f4f4f4 !important;
        border-radius: 12px !important;
    }
    .payment-card .card-icon {
        width: 100% !important;
        aspect-ratio: 1/1;
        height: auto !important;
        border-radius: 10px !important;
        margin-bottom: 10px !important;
    }
    .payment-card .card-title {
        font-size: 0.9rem !important;
        margin-bottom: 5px !important;
    }
    .payment-card p {
        font-size: 0.7rem !important;
        margin-bottom: 10px !important;
        line-height: 1.2;
    }
    .payment-card .btn-details {
        padding: 5px 10px !important;
        font-size: 0.7rem !important;
        width: 100%;
        border-radius: 5px !important;
    }
}

/* WhatsApp Float - Positioned Bottom-Right with High Priority */
.whatsapp-float {
    position: fixed !important;
    width: 60px !important;
    height: 60px !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    background-color: var(--whatsapp-color) !important;
    color: #FFF !important;
    border-radius: 50px !important;
    text-align: center !important;
    font-size: 30px !important;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2) !important;
    z-index: 99999 !important; /* Ensure it stays above everything */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.whatsapp-float:hover {
    background-color: #128C7E !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}

/* WhatsApp Pulse Animation Wrapper */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--whatsapp-color);
    border-radius: 50%;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 767px) {
    .whatsapp-float {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
    }
}

/* Floating Pricing Badge */
.pricing-card { position: relative; transition: all 0.4s; overflow: hidden; height: 100%; border: 1px solid rgba(0,0,0,0.1); border-radius: 20px; }
.pricing-card:hover { transform: translateY(-10px); border-color: var(--primary-color); box-shadow: var(--hover-shadow); }

.pricing-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 6px 18px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    letter-spacing: 1px;
    border-radius: 50px;
}

.pricing-badge-pulse {
    animation: pricing-badge-pulse 2s infinite;
}

@keyframes pricing-badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Global Page Hero */
.page-hero {
    background: var(--primary-gradient);
    padding: 80px 0;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.1) 1px, transparent 0);
    background-size: 30px 30px;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-hero { padding: 60px 0; }
    .page-hero h1 { font-size: 2.5rem; }
}
