/* Demo Showcase Styles */

/* Hero Section */
.showcase-hero {
    background: linear-gradient(135deg, #004d2e 0%, #003822 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.showcase-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.showcase-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(255, 150, 0, 0.2);
    border-color: #ff9600;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: white;
    color: #004d2e;
    border-color: white;
}

/* Demo Gallery Section */
.demo-gallery-section {
    padding: 60px 0;
    background: #f8f9fa;
}

/* Demo Gallery Grid */
.demo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Demo Item Card */
.demo-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease both;
}

.demo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.demo-item.hidden {
    display: none;
}

/* Demo Preview */
.demo-preview {
    position: relative;
    overflow: visible;
    min-height: 320px;
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
}

.demo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.demo-item:hover .demo-preview img {
    transform: scale(1.05);
}

/* Preview Card Styles */
.preview-card {
    width: 100%;
    min-height: 320px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    color: white;
    position: relative;
    overflow: visible;
    z-index: 1;
    transition: opacity 0.3s ease;
    flex: 1;
}

.preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.2) 1px, transparent 1px),
        radial-gradient(circle at 60% 40%, rgba(255,255,255,0.15) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px, 80px 80px;
}

.preview-header {
    text-align: center;
    margin-bottom: 20px;
    z-index: 1;
}

.preview-header h3 {
    font-size: 1.4rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.preview-tagline {
    font-size: 0.9rem;
    opacity: 0.85;
    font-style: italic;
}

.preview-content {
    flex: 1;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.preview-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.preview-features li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.85rem;
    line-height: 1.5;
    /* Prevent text from wrapping below bullet */
    display: flex;
    align-items: flex-start;
}

.preview-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.5;
    /* Keep bullet aligned with first line of text */
    flex-shrink: 0;
}


/* Individual Preview Themes */
.law-firm-preview {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 50%, #1a202c 100%);
    box-shadow: inset 0 0 80px rgba(59, 130, 246, 0.15);
}

.restaurant-preview {
    background: linear-gradient(135deg, #c05621 0%, #9c4221 50%, #7c2d12 100%);
    box-shadow: inset 0 0 80px rgba(251, 146, 60, 0.15);
}

.medical-preview {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 50%, #1e3a8a 100%);
    box-shadow: inset 0 0 80px rgba(59, 130, 246, 0.15);
}

.boutique-preview {
    background: linear-gradient(135deg, #be185d 0%, #9d174d 50%, #831843 100%);
    box-shadow: inset 0 0 80px rgba(236, 72, 153, 0.15);
}

.accounting-preview {
    background: linear-gradient(135deg, #14532d 0%, #15803d 50%, #166534 100%);
    box-shadow: inset 0 0 80px rgba(34, 197, 94, 0.15);
}

.real-estate-preview {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #134e4a 100%);
    box-shadow: inset 0 0 80px rgba(45, 212, 191, 0.15);
}

/* Demo Overlay */
.demo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 10;
    transition: all 0.3s ease;
}

/* Mobile Action Bar - Always visible on mobile */
.mobile-action-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
    padding: 16px;
    display: flex;
    gap: 12px;
    justify-content: center;
    z-index: 5;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Hide mobile action bar on desktop, show hover overlay */
@media (min-width: 769px) {
    .mobile-action-bar {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    .demo-item:hover .demo-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .demo-item:hover .preview-card {
        opacity: 0;
    }
    
    .demo-item:hover .mobile-action-bar {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.demo-info {
    text-align: center;
    color: white;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.demo-item:hover .demo-info {
    transform: translateY(0);
}

.demo-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.demo-info p {
    margin-bottom: 20px;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Demo Actions */
.demo-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-preview,
.btn-details {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

/* Mobile-optimized action buttons with proper touch targets */
.mobile-action-bar .btn-preview,
.mobile-action-bar .btn-details {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 24px;
    font-size: 0.95rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 140px;
    text-align: center;
    touch-action: manipulation;
}

.btn-preview {
    background: #004d2e;
    color: white;
    border: none;
}

.btn-preview:hover {
    background: #006b3e;
    transform: translateY(-2px);
}

.btn-details {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-details:hover {
    background: white;
    color: #004d2e;
}


/* CTA Section */
.showcase-cta {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.showcase-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.showcase-cta p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.showcase-cta .cta-button {
    background: linear-gradient(135deg, #004d2e 0%, #003822 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
}

.showcase-cta .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 77, 46, 0.4);
    background: linear-gradient(135deg, #006b3e 0%, #004d2e 100%);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ff9600;
}

.modal-body {
    padding: 40px;
}

/* Quick View Content */
.quick-view-content h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 2rem;
}

.demo-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Mobile Badge */
.mobile-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #004d2e 0%, #006b3e 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    margin-bottom: 25px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 77, 46, 0.2);
    animation: pulse 2s infinite;
}

.badge-icon {
    font-size: 1.3rem;
}

.badge-text {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.badge-check {
    background: #ff9600;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

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

.demo-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.detail-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    line-height: 1.5;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #004d2e;
    font-weight: bold;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: #f0f2f5;
    color: #555;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #004d2e 0%, #003822 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 77, 46, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #004d2e;
    border: 2px solid #004d2e;
}

.btn-secondary:hover {
    background: #004d2e;
    color: white;
}

@media (max-width: 768px) {
    .demo-details {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .showcase-hero h2 {
        font-size: 2rem;
    }
    
    .showcase-hero p {
        font-size: 1rem;
    }
    
    .filter-buttons {
        padding: 0 20px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .demo-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    /* Ensure demo items have enough bottom padding for mobile action bar */
    .demo-item {
        padding-bottom: 0;
    }
    
    .demo-preview {
        padding-bottom: 80px; /* Space for mobile action bar */
    }
    
    .demo-info h3 {
        font-size: 1.2rem;
    }
    
    .demo-actions {
        flex-direction: column;
    }
    
    .btn-preview,
    .btn-details {
        width: 100%;
    }
    
    .preview-card {
        padding: 20px;
        min-height: 280px;
        padding-bottom: 90px; /* Extra space for mobile action bar */
    }
    
    .preview-header h3 {
        font-size: 1.2rem;
    }
    
    .preview-tagline {
        font-size: 0.8rem;
    }
    
    .preview-features li {
        font-size: 0.8rem;
        /* Ensure bullet stays with text on smaller screens */
        min-height: 1.5em;
    }
    
    /* Mobile action bar responsiveness */
    .mobile-action-bar {
        padding: 12px 16px;
        gap: 8px;
    }
    
    .mobile-action-bar .btn-preview,
    .mobile-action-bar .btn-details {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .showcase-cta {
        padding: 30px 20px;
    }
    
    .showcase-cta h3 {
        font-size: 1.5rem;
    }
    
    .showcase-cta p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .showcase-hero {
        padding: 60px 0 40px;
    }
    
    .demo-gallery-section {
        padding: 40px 0;
    }
    
    .preview-card {
        padding: 16px;
        min-height: 260px;
    }
    
    .preview-header {
        margin-bottom: 16px;
    }
    
    .preview-header h3 {
        font-size: 1.1rem;
    }
    
    .preview-tagline {
        font-size: 0.75rem;
    }
    
    .preview-features li {
        font-size: 0.75rem;
        padding: 4px 0;
        padding-left: 18px; /* Slightly less padding on very small screens */
    }
    
}