/* Custom Styles for MerpoBots */
body {
    padding-top: 76px; /* Account for fixed navbar */
}

.min-vh-50 {
    min-height: 50vh;
}

.placeholder-hero, .placeholder-3d {
    border: 2px dashed #dee2e6;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Card hover effects */
.card {
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
}

/* Additional styles for Stealthy page */
.app-icon-placeholder {
    border: 2px dashed #dee2e6;
}

.feature-icon {
    font-size: 2rem;
}

.screenshot-placeholder {
    border: 2px dashed #dee2e6;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress {
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
    font-weight: bold;
}

/* === NEW ANALYTICS & PERFORMANCE CODE === */

/* Analytics tracking for user interactions */
.track-click { 
    cursor: pointer; 
}

.track-download { 
    position: relative; 
}

/* Performance optimizations */
img[data-src] { 
    opacity: 0; 
    transition: opacity 0.3s; 
}

img[data-src].loaded { 
    opacity: 1; 
}

/* Lazy loading for better performance */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Critical CSS for above-fold content */
.hero-content { 
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

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

/* Additional utility classes */
.step-number, .value-icon, .social-icon {
    font-weight: bold;
    font-size: 1.5rem;
}

.portfolio-placeholder {
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading states */
.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Image optimizations */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Hero image specific styling */
.hero-image {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

/* App icon styling */
.app-icon {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.app-icon:hover {
    transform: scale(1.05);
}