/* WhatsApp Community Section - Premium Blue Design */
.whatsapp-section {
    position: relative;
    background: linear-gradient(135deg, #0a0f1c 0%, #1a1f3a 25%, #2a2f5a 50%, #1a1f3a 75%, #0a0f1c 100%);
    padding: 80px 0;
    overflow: hidden;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

/* Premium Background Effects */
.whatsapp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.whatsapp-section .container {
    position: relative;
    z-index: 2;
}

/* WhatsApp Container */
.whatsapp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* WhatsApp Content with Glassmorphism */
.whatsapp-content {
    position: relative;
    z-index: 3;
    padding: 40px;
    background: rgba(30, 58, 138, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 
        0 12px 40px rgba(15, 23, 42, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-content:hover {
    background: rgba(30, 58, 138, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 16px 50px rgba(15, 23, 42, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* WhatsApp Header */
.whatsapp-header {
    margin-bottom: 40px;
}

.whatsapp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 211, 102, 0.2);
    border: 1px solid rgba(37, 211, 102, 0.4);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #25D366;
    margin-bottom: 20px;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(37, 211, 102, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.whatsapp-badge:hover {
    background: rgba(37, 211, 102, 0.3);
    border-color: rgba(37, 211, 102, 0.6);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(37, 211, 102, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #4AE380;
}

.whatsapp-badge svg {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.3));
}

.whatsapp-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2.2rem, 3.8vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #128C7E, #25D366, #4AE380);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 0 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    font-weight: 600;
    color: #25D366;
    margin-bottom: 16px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.whatsapp-description {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    color: #bfdbfe; /* Lighter blue for better contrast */
    line-height: 1.7;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Benefits List */
.whatsapp-benefits {
    margin-bottom: 30px;
}

.benefits-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 15px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    color: #bfdbfe;
}

.benefit-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: rgba(37, 211, 102, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #25D366;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    background: rgba(37, 211, 102, 0.3);
    transform: scale(1.1);
}

/* Join Button */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #128C7E, #25D366);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 
        0 8px 25px rgba(37, 211, 102, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.whatsapp-btn:hover::before {
    left: 100%;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 30px rgba(37, 211, 102, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #0E8174, #1FB959);
}

.whatsapp-btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Community Stats */
.community-stats {
    display: flex;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.community-stat {
    text-align: center;
}

.stat-number {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #128C7E, #25D366, #4AE380);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.8rem;
    color: #25D366;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* WhatsApp Visual with Premium Styling */
.whatsapp-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-mockup {
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(15, 23, 42, 0.4),
        0 0 30px rgba(37, 211, 102, 0.3);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.4s ease;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.whatsapp-mockup:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(15, 23, 42, 0.5),
        0 0 40px rgba(37, 211, 102, 0.4);
}

.mockup-header {
    padding: 20px;
    background: linear-gradient(135deg, #128C7E, #25D366);
    color: white;
    text-align: center;
}

.mockup-logo {
    margin-bottom: 12px;
}

.mockup-logo-img {
    width: 40px;
    height: auto;
    filter: brightness(0) invert(1);
}

.mockup-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.mockup-content {
    padding: 20px;
}

.mockup-chat {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
}

.chat-message.received {
    align-self: flex-start;
    background: #f0f0f0;
    color: #333;
    border-top-left-radius: 0;
}

.chat-message.sent {
    align-self: flex-end;
    background: #dcf8c6;
    color: #333;
    border-top-right-radius: 0;
}

.chat-time {
    font-size: 0.7rem;
    color: #999;
    text-align: right;
    margin-top: 4px;
}

.mockup-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f0f0;
    padding: 10px;
    border-radius: 20px;
    margin-top: 20px;
}

.mockup-input-field {
    flex: 1;
    height: 10px;
    background: #ddd;
    border-radius: 10px;
}

.mockup-send-btn {
    width: 24px;
    height: 24px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating WhatsApp Icons */
.floating-whatsapp {
    position: absolute;
    color: #25D366;
    opacity: 0.6;
    filter: drop-shadow(0 0 10px rgba(37, 211, 102, 0.3));
    animation: floatWhatsApp 6s ease-in-out infinite;
}

.floating-whatsapp-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-whatsapp-2 {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-whatsapp-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes floatWhatsApp {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-15px) rotate(10deg);
        opacity: 0.9;
    }
}

/* Background Patterns */
.whatsapp-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.whatsapp-pattern {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.12) 0%, transparent 70%);
    opacity: 0.6;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(37, 211, 102, 0.1);
    box-shadow: 
        0 8px 30px rgba(37, 211, 102, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.whatsapp-pattern-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
}

.whatsapp-pattern-2 {
    width: 150px;
    height: 150px;
    top: 70%;
    right: 10%;
}

.whatsapp-pattern-3 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 15%;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .whatsapp-section {
        padding: 70px 0;
    }
    
    .whatsapp-container {
        gap: 50px;
    }
    
    .whatsapp-content {
        padding: 35px;
    }
    
    .whatsapp-mockup {
        width: 300px;
    }
    
    .community-stats {
        gap: 25px;
    }
}

@media (max-width: 991px) {
    .whatsapp-section {
        padding: 60px 0;
    }
    
    .whatsapp-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .whatsapp-content {
        padding: 30px;
        max-width: 700px;
        margin: 0 auto;
    }
    
    .whatsapp-visual {
        order: -1;
    }
    
    .whatsapp-mockup {
        width: 280px;
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }
    
    .community-stats {
        justify-content: center;
        gap: 30px;
    }
    
    .benefits-list {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .whatsapp-btn {
        margin: 0 auto;
        display: flex;
    }
}

@media (max-width: 767px) {
    .whatsapp-section {
        padding: 50px 0;
    }
    
    .whatsapp-container {
        gap: 30px;
    }
    
    .whatsapp-content {
        padding: 25px;
    }
    
    .whatsapp-header {
        margin-bottom: 30px;
    }
    
    .whatsapp-mockup {
        width: 260px;
    }
    
    .community-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 575px) {
    .whatsapp-section {
        padding: 40px 0;
    }
    
    .whatsapp-container {
        gap: 25px;
    }
    
    .whatsapp-content {
        padding: 20px;
    }
    
    .whatsapp-mockup {
        width: 240px;
    }
    
    .community-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .whatsapp-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .whatsapp-section {
        padding: 100px 0;
    }
    
    .whatsapp-container {
        gap: 80px;
    }
    
    .whatsapp-content {
        padding: 50px;
    }
    
    .whatsapp-mockup {
        width: 360px;
    }
    
    .community-stats {
        gap: 40px;
    }
    
    .stat-number {
        font-size: 2.4rem;
    }
}

/* Performance optimizations */
.whatsapp-mockup,
.floating-whatsapp,
.whatsapp-btn {
    will-change: transform;
    backface-visibility: hidden;
}

/* Accessibility */
.whatsapp-btn:focus-visible {
    outline: 2px solid #25D366;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-whatsapp,
    .whatsapp-pattern {
        animation: none;
    }
    
    .whatsapp-mockup:hover {
        transform: none;
    }
    
    .whatsapp-btn:hover {
        transform: none;
    }
    
    .whatsapp-section::before {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .whatsapp-badge {
        background: #128C7E;
        color: white;
        border-color: white;
    }
}