* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader p {
    font-size: 1.2rem;
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: #6b46c1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-menu a span {
    font-size: 1.1rem;
}

.cart-nav {
    position: relative;
}

.cart-icon-nav {
    font-size: 1.2rem;
}

.cart-count-nav {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 4px;
}

/* Hero Section */
.hero {
    background: url('https://www.bizimsoft.com/resources/uploads/slides/2024-08-30/4918919d64789babba16435.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 120px 0 180px 0;
    text-align: center;
    margin-bottom: 0;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 300;
}

.demo-counter {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: white;
    color: #2563eb;
    padding: 10px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.counter-text {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Filter Section */
.filter-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #0ea5e9 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.search-filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
}

.search-box input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
    background: white;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: #0ea5e9;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.9);
    color: #1e3a8a;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: white;
    color: #0ea5e9;
    background: white;
}

.filter-btn.active {
    background: #0ea5e9;
    color: white;
    border-color: #0ea5e9;
}

/* Demo Grid */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    padding: 0 0 80px 0;
}

/* Demo Card */
.demo-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e5e7eb;
}

.demo-card.hidden {
    display: none;
}

.demo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.demo-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.demo-card:hover .demo-image img {
    transform: scale(1.08);
}

.demo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.demo-card:hover .demo-overlay {
    opacity: 0;
}

.view-demo-btn {
    padding: 14px 32px;
    background: white;
    color: #2563eb;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-demo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.demo-title {
    padding: 20px;
    background: white;
}

.demo-title h2 {
    text-align: center;
    font-size: 1.3rem;
    color: #1f2937;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.demo-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #ef4444;
    border-radius: 2px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 2% auto;
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.4em;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2.2em;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.modal-body {
    width: 100%;
    height: calc(100% - 70px);
    overflow: hidden;
}

#demoFrame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Auth Modal */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 2001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.auth-modal-content {
    position: relative;
    background: white;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideDown 0.4s ease;
}

.auth-close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
}

.auth-close-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
    transform: rotate(90deg);
}

.auth-form-container {
    padding: 50px 40px 40px;
}

.auth-form-container h2 {
    text-align: center;
    color: #1f2937;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.auth-switch {
    text-align: center;
    margin-top: 25px;
    color: #6b7280;
    font-size: 0.95rem;
}

.auth-switch a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Demo Action Modal */
.demo-action-modal {
    display: none;
    position: fixed;
    z-index: 2002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease;
}

.demo-action-content {
    position: relative;
    background: white;
    margin: 5% auto;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: slideDown 0.4s ease;
    overflow: hidden;
}

.demo-action-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: white;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.demo-action-close:hover {
    background: #f3f4f6;
    transform: rotate(90deg);
}

.demo-action-body {
    padding: 40px 30px 30px;
    text-align: center;
}

.demo-action-image {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.demo-action-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.demo-action-body h2 {
    font-size: 1.8rem;
    color: #1f2937;
    margin-bottom: 15px;
    font-weight: 700;
}

.demo-action-price {
    font-size: 2rem;
    color: #2563eb;
    font-weight: 700;
    margin-bottom: 30px;
}

.demo-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-demo-site,
.btn-buy {
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.btn-demo-site span:first-child,
.btn-buy span:first-child {
    font-size: 2rem;
}

.btn-demo-site {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.btn-demo-site:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

.btn-buy {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Footer */
footer {
    background-color: #1f2937;
    color: #d1d5db;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.footer-section p {
    margin: 10px 0;
    line-height: 1.6;
}

.footer-section a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #93c5fd;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links a {
    color: #d1d5db;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
}

footer p {
    font-size: 0.95rem;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1500;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #1e40af;
    transform: translateY(-5px);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5);
    transition: all 0.3s ease;
    z-index: 1500;
    color: white;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo h2 {
        font-size: 1.4rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .nav-menu {
        gap: 0.5rem;
        font-size: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu a {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .nav-menu a span {
        font-size: 0.9rem;
    }
    
    .cart-count-nav {
        padding: 1px 5px;
        font-size: 0.65rem;
    }
    
    .hero {
        padding: 60px 0 100px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .counter-number {
        font-size: 2.5rem;
        padding: 8px 20px;
    }
    
    .counter-text {
        font-size: 1rem;
    }
    
    .filter-section {
        padding: 30px 0;
        margin-top: -40px;
    }
    
    .search-filter-wrapper {
        gap: 20px;
    }
    
    .search-box {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .search-box input {
        padding: 12px 45px 12px 15px;
        font-size: 0.9rem;
    }
    
    .filter-buttons {
        gap: 10px;
        padding: 0 15px;
    }
    
    .filter-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px 50px 15px;
    }
    
    .demo-card {
        max-width: 100%;
    }
    
    .demo-image {
        height: 180px;
    }
    
    .demo-title h2 {
        font-size: 1.1rem;
    }
    
    .modal-content {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .close-btn {
        font-size: 1.8em;
    }
    
    .auth-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .auth-form-container {
        padding: 40px 25px 30px;
    }
    
    .auth-form-container h2 {
        font-size: 1.6rem;
    }
    
    .demo-action-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .demo-action-body {
        padding: 35px 20px 25px;
    }
    
    .demo-action-image {
        height: 160px;
    }
    
    .demo-action-body h2 {
        font-size: 1.4rem;
    }
    
    .demo-action-price {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .demo-action-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .btn-demo-site,
    .btn-buy {
        padding: 14px 20px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    
    .scroll-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 15px;
    }
}
