/* =====================================================
   WhatsApp Marketing - Main Stylesheet
   ===================================================== */

/* CSS Variables */
:root {
    --primary: #25D366;
    --primary-dark: #128C7E;
    --secondary: #075E54;
    --accent: #34B7F1;
    --dark: #1C1E21;
    --light: #F5F5F5;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 50px rgba(37, 211, 102, 0.2);
}

/* Base Styles */
* {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    color: var(--dark);
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--gradient); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* Navigation */
.navbar {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar.scrolled { padding: 10px 0; background: rgba(255,255,255,0.98) !important; }

.navbar-brand { font-weight: 700; font-size: 24px; color: var(--primary-dark) !important; }

.navbar-brand i { color: var(--primary); font-size: 28px; margin-right: 10px; animation: pulse 2s infinite; }

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

.nav-link { font-weight: 500; color: var(--dark) !important; margin: 0 10px; position: relative; transition: all 0.3s ease; }

.nav-link:after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 50%;
    background: var(--gradient); transition: all 0.3s ease; transform: translateX(-50%);
}

.nav-link:hover:after { width: 80%; }
.nav-link:hover { color: var(--primary) !important; }

.btn-nav { background: var(--gradient); color: white !important; border-radius: 50px; padding: 8px 25px !important; transition: all 0.3s ease; }
.btn-nav:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* Hero Section */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); overflow: hidden; padding: 100px 0;
}

.hero: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="%2325D366" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,170.7C1248,160,1344,128,1392,112L1440,96L1440,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; opacity: 0.1;
}

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

.hero h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; animation: fadeInUp 1s ease; }

.hero h1 span { color: var(--primary); position: relative; display: inline-block; }

.hero h1 span:after {
    content: ''; position: absolute; bottom: 10px; left: 0; width: 100%; height: 10px;
    background: var(--primary); opacity: 0.2; z-index: -1;
}

.hero p { font-size: 1.1rem; color: #666; margin-bottom: 30px; animation: fadeInUp 1s ease 0.2s both; }

.hero-buttons { animation: fadeInUp 1s ease 0.4s both; }

.hero-buttons .btn { padding: 15px 40px; font-weight: 600; border-radius: 50px; margin-right: 15px; margin-bottom: 10px; transition: all 0.3s ease; }

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

.btn-primary { background: var(--gradient); border: none; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); color: white; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4); background: var(--gradient); color: white; }

.btn-outline-primary { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline-primary:hover { background: var(--gradient); border-color: transparent; transform: translateY(-3px); color: white; }

.hero-image { animation: float 3s ease-in-out infinite; text-align: center; }
.hero-image img { max-width: 100%; height: auto; }

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

/* Stats Section */
.stats-section { padding: 50px 0; background: white; margin-top: -50px; border-radius: 30px 30px 0 0; position: relative; z-index: 3; box-shadow: 0 -10px 30px rgba(0,0,0,0.05); }

.stat-item { text-align: center; padding: 30px; border-radius: 20px; transition: all 0.3s ease; }
.stat-item:hover { transform: translateY(-10px); box-shadow: var(--shadow); }

.stat-icon { width: 80px; height: 80px; line-height: 80px; background: var(--gradient); border-radius: 50%; margin: 0 auto 20px; color: white; font-size: 30px; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); }

.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 5px; }
.stat-label { color: #666; font-weight: 500; }

.stat-item-mini h4 { font-size: 1.5rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 5px; }
.stat-item-mini p { font-size: 0.9rem; color: #666; margin: 0; }

/* Features Section */
.features-section { padding: 80px 0; background: var(--light); }

.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; font-weight: 800; color: var(--dark); position: relative; display: inline-block; padding-bottom: 15px; }
.section-title h2:after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--gradient); border-radius: 2px; }
.section-title p { color: #666; font-size: 1.1rem; max-width: 700px; margin: 20px auto 0; }

.feature-card { background: white; border-radius: 20px; padding: 40px 30px; text-align: center; box-shadow: var(--shadow); transition: all 0.3s ease; height: 100%; position: relative; overflow: hidden; border: none; }

.feature-card:before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: var(--gradient); opacity: 0; transform: rotate(45deg); transition: all 0.5s ease; z-index: 0; }
.feature-card:hover:before { opacity: 0.05; }
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }

.feature-icon { width: 100px; height: 100px; line-height: 100px; background: var(--gradient); border-radius: 50%; margin: 0 auto 30px; color: white; font-size: 40px; transition: all 0.3s ease; position: relative; z-index: 1; }
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(360deg); }

.feature-card h5 { font-size: 1.3rem; font-weight: 700; margin-bottom: 15px; color: var(--dark); position: relative; z-index: 1; }
.feature-card p { color: #666; margin-bottom: 15px; position: relative; z-index: 1; }
.feature-card .badge { position: relative; z-index: 1; }

/* QR Section */
.qr-section { padding: 80px 0; background: white; }

.qr-container { background: white; border-radius: 30px; padding: 50px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.qr-container:before { content: ''; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px; background: var(--gradient); border-radius: 50%; opacity: 0.1; }
.qr-container:after { content: ''; position: absolute; bottom: -50px; left: -50px; width: 200px; height: 200px; background: var(--gradient-2); border-radius: 50%; opacity: 0.1; }

.qr-frame { border: 3px dashed var(--primary); padding: 20px; border-radius: 20px; background: white; position: relative; z-index: 1; }
.qr-frame iframe { width: 100%; height: 500px; border: none; border-radius: 15px; min-height: 400px; }

.qr-features { padding: 30px; position: relative; z-index: 1; }
.qr-features h3 { font-size: 2rem; font-weight: 700; margin-bottom: 20px; color: var(--dark); }
.qr-features ul { list-style: none; padding: 0; }
.qr-features li { margin-bottom: 15px; font-size: 1.1rem; }
.qr-features li i { color: var(--primary); margin-right: 10px; }

/* Jhang Section */
.jhang-section { padding: 80px 0; background: var(--gradient-2); color: white; position: relative; overflow: hidden; }

.jhang-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="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,170.7C1248,160,1344,128,1392,112L1440,96L1440,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;
}

.district-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border-radius: 20px; padding: 40px; border: 1px solid rgba(255,255,255,0.2); margin-bottom: 30px; transition: all 0.3s ease; }
.district-card:hover { transform: translateY(-10px); background: rgba(255,255,255,0.2); }
.district-card h4 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }
.district-card ul { list-style: none; padding: 0; }
.district-card ul li { margin-bottom: 10px; padding-left: 25px; position: relative; }
.district-card ul li:before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: bold; }

.badge-pill { background: white; color: var(--primary-dark); padding: 8px 20px; border-radius: 50px; font-weight: 600; display: inline-block; margin: 5px; transition: all 0.3s ease; cursor: pointer; }
.badge-pill:hover { transform: scale(1.1); background: var(--primary); color: white; }

/* Pricing Section */
.pricing-section { padding: 80px 0; background: var(--light); }

.pricing-card { background: white; border-radius: 30px; padding: 50px 30px; text-align: center; box-shadow: var(--shadow); transition: all 0.3s ease; height: 100%; position: relative; overflow: hidden; }
.pricing-card.popular { transform: scale(1.05); border: 2px solid var(--primary); box-shadow: var(--shadow-hover); }
.popular-badge { position: absolute; top: 20px; right: -35px; background: var(--gradient); color: white; padding: 8px 40px; transform: rotate(45deg); font-weight: 600; font-size: 0.9rem; }
.pricing-card:hover { transform: translateY(-10px); }
.pricing-card.popular:hover { transform: scale(1.05) translateY(-10px); }

.pricing-icon { width: 120px; height: 120px; line-height: 120px; background: var(--gradient); border-radius: 50%; margin: 0 auto 30px; color: white; font-size: 50px; }
.pricing-card h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 15px; }
.price { font-size: 2.5rem; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.price small { font-size: 1rem; color: #999; }

.pricing-features { list-style: none; padding: 0; margin: 30px 0; text-align: left; }
.pricing-features li { padding: 10px 0; border-bottom: 1px solid #eee; }
.pricing-features li i { color: var(--primary); margin-right: 10px; }

.btn-pricing { background: var(--gradient); color: white; border: none; padding: 12px 40px; border-radius: 50px; font-weight: 600; width: 100%; transition: all 0.3s ease; display: inline-block; text-decoration: none; }
.btn-pricing:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); color: white; }

/* Testimonials */
.testimonials-section { padding: 80px 0; background: white; }
.testimonial-slider { padding: 50px 0; }
.swiper { padding: 50px 20px; }

.testimonial-card { background: white; border-radius: 30px; padding: 40px; box-shadow: var(--shadow); position: relative; transition: all 0.3s ease; }
.testimonial-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.quote-icon { position: absolute; top: 20px; right: 30px; font-size: 60px; color: var(--primary); opacity: 0.2; }
.testimonial-rating { color: gold; margin-bottom: 20px; }
.testimonial-text { font-size: 1.1rem; font-style: italic; margin-bottom: 30px; color: #666; }
.testimonial-author { display: flex; align-items: center; }
.author-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; font-weight: 600; margin-right: 20px; flex-shrink: 0; }
.author-info h6 { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; }
.author-info p { color: #999; margin-bottom: 0; }

/* Map Section */
.map-section { padding: 80px 0; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); position: relative; overflow: hidden; }
.map-container { position: relative; cursor: pointer; transition: all 0.3s ease; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 50px rgba(0,0,0,0.2); background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); padding: 30px; }
.map-container:hover { transform: scale(1.02); }
.map-area { cursor: pointer; transition: all 0.3s ease; margin: 5px; }
.map-area:hover { filter: brightness(1.2); transform: scale(1.1); }
.btn-group .btn { border-radius: 50px !important; margin: 5px; padding: 8px 20px; }
.btn-group .btn.active { background: #25D366; color: white; border-color: #25D366; }

/* CTA Section */
.cta-section { padding: 80px 0; background: var(--gradient); color: white; position: relative; overflow: hidden; }
.cta-section:before { content: ''; position: absolute; top: -50px; left: 0; width: 100%; height: 100px; background: white; transform: skewY(-2deg); }
.cta-content { text-align: center; position: relative; z-index: 1; }
.cta-content h2 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; }
.cta-content p { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; }
.cta-buttons .btn { padding: 15px 40px; border-radius: 50px; font-weight: 600; margin: 0 10px; margin-bottom: 10px; transition: all 0.3s ease; }
.btn-light { background: white; color: var(--primary-dark); border: none; }
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); background: white; color: var(--primary-dark); }
.btn-outline-light { border: 2px solid white; color: white; background: transparent; }
.btn-outline-light:hover { background: white; color: var(--primary-dark); transform: translateY(-3px); }

/* Footer */
.footer { background: var(--dark); color: white; padding: 80px 0 20px; }
.footer h5 { font-size: 1.2rem; font-weight: 600; margin-bottom: 30px; position: relative; padding-bottom: 10px; }
.footer h5:after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 2px; background: var(--primary); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: #999; text-decoration: none; transition: all 0.3s ease; }
.footer-links a:hover { color: var(--primary); padding-left: 10px; }
.social-links a { display: inline-block; width: 40px; height: 40px; line-height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; color: white; text-align: center; margin-right: 10px; transition: all 0.3s ease; }
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 40px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); }

/* Utilities */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--gradient); border-radius: 50%; color: white; text-align: center; line-height: 50px; font-size: 20px; z-index: 1000; cursor: pointer; transition: all 0.3s ease; opacity: 0; visibility: hidden; border: none; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); color: white; }

.loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: white; z-index: 9999; display: flex; align-items: center; justify-content: center; transition: all 0.5s ease; }
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-spinner { width: 80px; height: 80px; border: 5px solid var(--light); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.popup-modal .modal-content { border-radius: 30px; overflow: hidden; }
.popup-modal .modal-header { background: var(--gradient); color: white; border: none; }
.popup-modal .btn-close { filter: brightness(0) invert(1); }
.popup-offer { background: var(--gradient-2); color: white; padding: 20px; border-radius: 15px; margin: 20px 0; }
.countdown-timer { display: flex; justify-content: center; gap: 20px; }
.countdown-item { text-align: center; }
.countdown-number { font-size: 2rem; font-weight: 800; background: var(--gradient); color: white; width: 70px; height: 70px; line-height: 70px; border-radius: 15px; margin-bottom: 5px; }
.countdown-label { font-size: 0.9rem; color: #666; }

/* ==================== RESPONSIVE STYLES ==================== */

/* Desktop */
@media (max-width: 1200px) {
    .hero h1 { font-size: 2.8rem; }
    .pricing-card.popular { transform: scale(1); margin: 20px 0; }
    .cta-content h2 { font-size: 2.5rem; }
}

/* Tablet */
@media (max-width: 992px) {
    .hero { padding: 80px 0 60px; min-height: auto; }
    .hero h1 { font-size: 2.5rem; text-align: center; }
    .hero p { text-align: center; }
    .hero-buttons { text-align: center; }
    .hero-image { margin-top: 40px; }
    .hero-image img { max-width: 250px; }
    .stats-section { margin-top: 0; border-radius: 0; }
    .stat-item { padding: 20px 10px; }
    .stat-number { font-size: 2rem; }
    .section-title h2 { font-size: 2rem; }
    .qr-container { padding: 30px 20px; }
    .qr-frame iframe { height: 400px; }
    .qr-features { padding: 20px 0; }
    .qr-features h3 { font-size: 1.5rem; }
    .district-card { padding: 30px 20px; }
    .cta-content h2 { font-size: 2rem; }
}

/* Mobile Large */
@media (max-width: 768px) {
    .navbar { padding: 10px 0; }
    .navbar-brand { font-size: 20px; }
    .navbar-brand i { font-size: 22px; }
    .nav-link { margin: 5px 0; padding: 10px !important; }
    .btn-nav { display: inline-block; margin: 5px 0; }
    
    .hero { padding: 70px 0 40px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero-buttons .btn { padding: 12px 25px; font-size: 0.9rem; margin-right: 10px; }
    .hero-image img { max-width: 200px; }
    
    .stats-section { padding: 40px 0 20px; }
    .stat-item { padding: 15px; }
    .stat-icon { width: 60px; height: 60px; line-height: 60px; font-size: 24px; }
    .stat-number { font-size: 1.8rem; }
    .stat-label { font-size: 0.85rem; }
    
    .features-section, .qr-section, .jhang-section, .pricing-section, .testimonials-section, .map-section, .cta-section { padding: 60px 0; }
    .section-title { margin-bottom: 40px; }
    .section-title h2 { font-size: 1.8rem; }
    .section-title p { font-size: 1rem; }
    
    .feature-card { padding: 30px 20px; }
    .feature-icon { width: 80px; height: 80px; line-height: 80px; font-size: 32px; }
    .feature-card h5 { font-size: 1.1rem; }
    
    .qr-frame iframe { height: 350px; }
    
    .district-card { padding: 25px 20px; }
    .district-card h4 { font-size: 1.3rem; }
    .badge-pill { padding: 6px 15px; font-size: 0.85rem; }
    
    .pricing-card { padding: 40px 20px; }
    .pricing-icon { width: 90px; height: 90px; line-height: 90px; font-size: 36px; }
    .pricing-card h3 { font-size: 1.5rem; }
    .price { font-size: 2rem; }
    
    .testimonial-card { padding: 30px 20px; }
    .quote-icon { font-size: 40px; top: 15px; right: 20px; }
    .author-avatar { width: 50px; height: 50px; font-size: 20px; }
    
    .cta-section { padding: 50px 0; }
    .cta-content h2 { font-size: 1.8rem; }
    .cta-content p { font-size: 1rem; }
    .cta-buttons .btn { padding: 10px 25px; font-size: 0.9rem; display: block; width: auto; margin: 10px auto; }
    
    .footer { padding: 60px 0 20px; }
    .footer h5 { margin-top: 20px; }
    .social-links { margin-top: 20px; }
    
    .back-to-top { width: 45px; height: 45px; line-height: 45px; font-size: 18px; bottom: 20px; right: 20px; }
}

/* Mobile Small */
@media (max-width: 480px) {
    .hero h1 { font-size: 1.75rem; }
    .hero-buttons .btn { padding: 10px 20px; font-size: 0.85rem; }
    .hero-image img { max-width: 180px; }
    .stat-number { font-size: 1.5rem; }
    .stat-icon { width: 50px; height: 50px; line-height: 50px; font-size: 20px; }
    .section-title h2 { font-size: 1.5rem; }
    .feature-card { padding: 25px 15px; }
    .feature-icon { width: 70px; height: 70px; line-height: 70px; font-size: 28px; }
    .qr-frame iframe { height: 300px; }
    .countdown-number { width: 55px; height: 55px; line-height: 55px; font-size: 1.5rem; }
}

/* Extra Small */
@media (max-width: 360px) {
    .hero h1 { font-size: 1.5rem; }
    .hero-buttons .btn { padding: 8px 16px; font-size: 0.8rem; }
    .section-title h2 { font-size: 1.3rem; }
    .pricing-icon { width: 70px; height: 70px; line-height: 70px; font-size: 28px; }
    .cta-content h2 { font-size: 1.5rem; }
}
