/* BotsuInsure - Enhanced Premium Design with Monetization */
:root {
    --primary-blue: #0066cc;
    --primary-dark: #004d99;
    --secondary-blue: #3399ff;
    --accent-green: #00c853;
    --accent-gold: #ffd700;
    --warning-orange: #ff9800;
    --danger-red: #f44336;
    --light-bg: #f5f7fa;
    --dark-text: #1a1a1a;
    --gray-text: #666;
    --border-color: #e0e6ed;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #ffffff;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== LOADING ANIMATION ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* ===== ENHANCED NAVIGATION ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)) !important;
    box-shadow: var(--shadow-md);
    padding: 12px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand i {
    font-size: 1.8rem;
    color: var(--accent-gold);
    animation: pulse 2s infinite;
}

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

.main-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 8px 15px !important;
    border-radius: 8px;
    margin: 0 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    background: rgba(255,255,255,0.2);
    color: white !important;
    transform: translateY(-2px);
}

.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 10px;
    margin-top: 10px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Comparison Badge */
#selectedCount {
    animation: bounce 0.5s;
}

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

/* ===== ENHANCED HERO SECTION ===== */
.hero {
    position: relative;
    background: 
        linear-gradient(135deg, rgba(0, 102, 204, 0.9), rgba(0, 77, 153, 0.85)),
        url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=1600') center/cover;
    color: white;
    padding: 180px 0 120px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    background: linear-gradient(to right, #ffffff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .lead {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    animation: fadeInUp 1s ease 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-gold);
    display: block;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ===== FLOATING ACTION BUTTONS ===== */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), #00a844);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fab-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(0,200,83,0.4);
}

.fab-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.fab-btn.compare {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
}

.fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-red);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ===== TRUST BADGES ===== */
.trust-section {
    background: var(--light-bg);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-text);
    font-size: 0.95rem;
}

.trust-badge i {
    font-size: 2rem;
    color: var(--accent-green);
}

/* ===== ENHANCED FILTERS ===== */
.filter-section {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-header h4 {
    margin: 0;
    color: var(--dark-text);
    font-weight: 700;
}

.filter-toggle {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.filter-toggle:hover {
    color: var(--primary-dark);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.filter-group {
    position: relative;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-text);
}

.search-box input {
    padding-left: 45px;
}

/* ===== ENHANCED PRODUCT CARDS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    animation: fadeInUp 0.6s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Premium Badge */
.premium-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--accent-gold), #ffb700);
    color: var(--dark-text);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 5px;
}

.premium-badge i {
    color: #ff6b00;
}

/* Affiliate Badge */
.affiliate-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.product-image {
    height: 250px; /* Increased height so image isn't tiny */
    width: 100%;
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center;
    background-color: #ffffff;
    position: relative;
    border-bottom: 1px solid #eee;
    padding: 15px; /* Gives the image some breathing room */
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
    -webkit-mask-image: radial-gradient(circle at top right, transparent 45px, black 45px);
    mask-image: radial-gradient(circle at top right, transparent 45px, black 45px);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.company-logo-container {
    position: absolute;
    top: 3px;
    right: 20px;
    width: 100px;
    height: 35px;
    background: white;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.company-logo {
    width: 60px;
    height: 400px;
    object-fit: contain;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.7));
    border-radius: 0;
}

.company-logo-placeholder {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.4rem;
    border: none !important;
    box-shadow: none !important;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.7));
    border-radius: 0;
}

.product-card .card-body {
    padding: 25px;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-company {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.price-badge {
    background: linear-gradient(135deg, var(--accent-green), #00a844);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    margin: 15px 0;
    box-shadow: 0 4px 16px rgba(0, 200, 83, 0.3);
}

.price-badge strong {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
}

.price-badge small {
    font-size: 0.85rem;
    opacity: 0.9;
}

.product-features {
    margin: 15px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--gray-text);
}

.feature-item i {
    color: var(--accent-green);
    margin-top: 3px;
    flex-shrink: 0;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-primary-custom {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-compare {
    background: white;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-compare:hover {
    background: var(--primary-blue);
    color: white;
}

.btn-compare.active {
    background: var(--primary-blue);
    color: white;
}

/* ===== BLOG SECTION ===== */
.blog-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-text);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 220px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-size: cover;
    background-position: center;
    position: relative;
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-blue);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--gray-text);
}

.blog-meta i {
    margin-right: 5px;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.read-more:hover {
    gap: 10px;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    padding: 80px 0;
    background: white;
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 350px;
    background: var(--light-bg);
    padding: 30px;
    border-radius: 16px;
    scroll-snap-align: start;
    box-shadow: var(--shadow-sm);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.testimonial-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

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

.testimonial-rating {
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--dark-text);
    line-height: 1.7;
    font-style: italic;
}

/* ===== AD PLACEMENTS ===== */
.ad-banner {
    background: linear-gradient(135deg, #f5f7fa, #e9ecef);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.ad-banner::before {
    content: 'Advertisement';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.7rem;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-banner img {
    max-width: 100%;
    height: auto;
}

/* ===== FOOTER ENHANCED ===== */
footer {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h5 {
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-blue);
    transform: translateY(-5px);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-form button {
    padding: 12px 24px;
    background: var(--accent-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: #00a844;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

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

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 25px;
    }
    
    .products-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-actions {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        min-width: 280px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    /* Product card mobile adjustments */
    .product-image {
        height: 240px;
        min-height: 240px;
    }
    
    .company-logo,
    .company-logo-placeholder {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .company-logo-container {
        transform: none;
    }
    
    .product-image::before {
        display: none; /* Removes the mask that was cutting your images */
    }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

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

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

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