/* Dynamic Styles for Enhanced Website */

/* Statistics Section */
.stats-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 255, 200, 0.1) 100%);
    margin: 2rem 0;
    border-radius: 20px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #00ff88;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #00ff88;
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 1rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Demo Section */
.demo-section {
    padding: 4rem 0;
    text-align: center;
}

.demo-title {
    font-size: 2.5rem;
    color: #00ff88;
    margin-bottom: 2rem;
    font-weight: bold;
}

.demo-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.demo-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.demo-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    padding: 0.5rem;
    outline: none;
}

.demo-input input::placeholder {
    color: #888;
}

.demo-btn {
    background: linear-gradient(45deg, #00ff88, #00ffc8);
    border: none;
    color: black;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.demo-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.demo-output {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-output p {
    color: #ccc;
    font-size: 1.1rem;
    text-align: center;
}

/* Enhanced Feature Cards */
.feature {
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
}

.feature i {
    transition: all 0.3s ease;
}

.feature:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #00ffc8;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #00ff88;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Cursor */
.custom-cursor {
    transition: transform 0.1s ease;
}

.custom-cursor:hover {
    transform: scale(1.5);
}

/* Scroll Progress Bar */
body {
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00ffc8);
    z-index: 10000;
    transition: width 0.1s ease;
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .demo-input {
        flex-direction: column;
    }
    
    .demo-btn {
        align-self: center;
    }
    
    .demo-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .demo-container {
        padding: 0 1rem;
    }
}

/* Particle Effects */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Enhanced Button Effects */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::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.5s;
}

.cta-button:hover::before {
    left: 100%;
}

/* Glow Effects */
.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* Text Effects */
.text-glow {
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Focus States */
input:focus,
button:focus {
    outline: 2px solid #00ff88;
    outline-offset: 2px;
}

/* WhatsApp Styles */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-link {
    background: #25d366 !important;
    color: white !important;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    background: #128c7e !important;
    transform: scale(1.1);
}

.whatsapp-contact {
    color: #25d366 !important;
    font-weight: bold;
}

.whatsapp-contact:hover {
    color: #128c7e !important;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* WhatsApp Tooltip */
.whatsapp-float::before {
    content: "Chat on WhatsApp";
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.whatsapp-float:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Mobile WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float::before {
        display: none;
    }
}
