/* Root Variables for Theme */
:root[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --card-bg: #ffffff;
    --navbar-bg: #ffffff;
}

:root[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --border-color: #495057;
    --card-bg: #2d2d2d;
    --navbar-bg: #212529;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Bangla Font */
[lang="bn"] {
    font-family: 'Hind Siliguri', sans-serif;
}

[lang="en"] {
    font-family: 'Poppins', sans-serif;
}

/* Navbar */
.navbar {
    background-color: var(--navbar-bg) !important;
    transition: background-color 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff !important;
}

#themeToggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-section .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
}

.feature-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.feature-card h4 {
    margin: 1rem 0;
    font-weight: 600;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
}

/* Plans Section */
.plans-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.plan-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.plan-card:hover::before {
    transform: scaleX(1);
}

.plan-card.featured {
    border-color: #667eea;
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.25);
    transform: scale(1.05);
}

.plan-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.plan-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: #007bff;
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.85rem;
    font-weight: 600;
}

.plan-speed {
    font-size: 3rem;
    font-weight: 700;
    color: #007bff;
    margin: 1rem 0;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--text-primary);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    color: #28a745;
    margin-right: 0.5rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    margin: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.testimonial-info h5 {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-section {
    padding: 80px 0;
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 40px;
}

.contact-info h4 {
    margin-bottom: 1.5rem;
}

.contact-info-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: start;
}

.contact-info-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.form-control,
.form-select {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--bg-primary);
    border-color: #007bff;
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Footer */
.footer {
    background: var(--navbar-bg);
    color: var(--text-secondary);
}

.footer a:hover {
    color: #007bff !important;
}

/* Dark Mode Specific */
[data-theme="dark"] .bg-white {
    background-color: var(--navbar-bg) !important;
}

[data-theme="dark"] .text-dark {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .bg-light {
    background-color: var(--bg-secondary) !important;
}

/* Buttons */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Lazy Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .plan-speed {
        font-size: 2rem;
    }
    
    .plan-price {
        font-size: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .features-section,
    .plans-section,
    .testimonials-section,
    .contact-section {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 25px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.7s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.7s ease-out;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Hover Animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.3);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.5);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Map Container */
#map {
    height: 500px;
    border-radius: 15px;
    border: 2px solid var(--border-color);
}

@media (max-width: 768px) {
    #map {
        height: 350px;
    }
}

/* Speed Test Container */
.speed-test-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    min-height: 500px;
}

/* FAQ Accordion */
.accordion-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    margin-bottom: 1rem;
    border-radius: 10px !important;
}

.accordion-button {
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: #007bff;
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.accordion-body {
    background-color: var(--card-bg);
    color: var(--text-secondary);
}

/* Dashboard Cards */
.dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-stat {
    text-align: center;
    padding: 20px;
}

.dashboard-stat .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
}

.dashboard-stat .stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Table Responsive */
.table {
    color: var(--text-primary);
}

[data-theme="dark"] .table {
    --bs-table-bg: var(--card-bg);
    --bs-table-border-color: var(--border-color);
}

/* Loading Spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

/* Promotional Banner Section */
.promo-banner {
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 80px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.promo-content {
    position: relative;
    z-index: 2;
}

.promo-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
}

.promo-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.promo-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px;
}

.promo-features {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.promo-feature-item {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1rem;
}

.promo-feature-item i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: #FFE66D;
}

.promo-btn {
    background: white;
    color: #4ECDC4;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: #4ECDC4;
}

/* Stats Counter Section */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    margin: 80px 0;
    border-radius: 20px;
}

.stat-box {
    text-align: center;
    padding: 30px;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #FFE66D, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Why Choose Us Section */
.why-choose-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.benefit-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 30px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.benefit-card:hover {
    border-color: #007bff;
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 123, 255, 0.2);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

/* Improved Plan Cards */
.plan-card {
    position: relative;
    overflow: hidden;
}

.plan-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #007bff, #4ECDC4);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.plan-card:hover::after {
    transform: scaleX(1);
}

/* Loading Animation */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Banner */
@media (max-width: 768px) {
    .promo-banner {
        padding: 30px 20px;
    }
    
    .promo-title {
        font-size: 1.8rem;
    }
    
    .promo-subtitle {
        font-size: 1rem;
    }
    
    .promo-features {
        gap: 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Customer Login Page */
.login-page-section {
    padding-top: 90px;
    padding-bottom: 90px;
}

.login-page-bg {
    min-height: calc(100vh - 90px);
    background: linear-gradient(135deg, #315CFF 0%, #4B6FFF 50%, #6F87FF 100%);
    display: flex;
    align-items: center;
}

.login-card-wrapper {
    background: #ffffff;
    border-radius: 26px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
    display: flex;
    overflow: hidden;
}

.login-card-left,
.login-card-right {
    padding: 40px 45px;
}

.login-card-left {
    flex: 0 0 50%;
    max-width: 50%;
}

.login-card-right {
    flex: 0 0 50%;
    max-width: 50%;
    background-color: #f7f8ff;
    border-left: 1px solid #edf0ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-title {
    font-weight: 700;
    font-size: 1.8rem;
    color: #1d1e2c;
}

.login-subtitle {
    color: #8b8fa3;
    font-size: 0.95rem;
}

.login-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2a2c3b;
}

.login-input {
    border-radius: 999px;
    border-width: 1px;
    border-color: #dde1f0;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
}

.login-input:focus {
    border-color: #315CFF;
    box-shadow: 0 0 0 0.2rem rgba(49, 92, 255, 0.15);
}

.login-forgot-link {
    font-size: 0.85rem;
    color: #7b7fe0;
    text-decoration: none;
}

.login-forgot-link:hover {
    color: #315CFF;
    text-decoration: underline;
}

.login-submit-btn {
    background: #315CFF;
    border-radius: 999px;
    padding: 0.9rem 1.2rem;
    border: none;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 30px rgba(49, 92, 255, 0.45);
}

.login-submit-btn:hover {
    background: #2448d0;
}

.login-bottom-text {
    font-size: 0.9rem;
    color: #777b92;
}

.login-signup-link {
    color: #315CFF;
    font-weight: 600;
    text-decoration: none;
}

.login-signup-link:hover {
    text-decoration: underline;
}

.login-illustration-wrapper {
    text-align: left;
    max-width: 340px;
}

.login-illustration-placeholder {
    height: 190px;
    border-radius: 24px;
    background: linear-gradient(135deg, #315CFF 0%, #5A75FF 40%, #FFB84D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 3rem;
}

.login-right-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: #1f2130;
}

.login-right-text {
    font-size: 0.9rem;
    color: #8b8fa3;
}

.login-progress-indicators {
    display: flex;
    gap: 10px;
}

.login-progress-indicators .indicator {
    width: 30px;
    height: 4px;
    border-radius: 999px;
    background-color: #d4d8f5;
}

.login-progress-indicators .indicator.active {
    background-color: #315CFF;
}

@media (max-width: 991.98px) {
    .login-card-wrapper {
        flex-direction: column;
    }

    .login-card-left,
    .login-card-right {
        max-width: 100%;
        flex: 0 0 100%;
        padding: 30px 25px;
    }

    .login-card-right {
        border-left: none;
        border-top: 1px solid #edf0ff;
    }

    .login-page-bg {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

@media (max-width: 575.98px) {
    .login-page-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .login-title {
        font-size: 1.5rem;
    }
}

