/* Custom CSS for Lousanji Workz Website */

/* Smooth scrolling for all HTML elements */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar (optional) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #ededf9;
}

::-webkit-scrollbar-thumb {
    background: #004ac6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Fade-in animation for sections */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button hover effects */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 74, 198, 0.3);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Mobile menu animation */
.mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.mobile-menu.active {
    max-height: 300px;
}

/* Navbar transition */
.navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Social icon hover */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Product image placeholder */
.product-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Feature icon animation */
.feature-icon {
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
    background-color: var(--primary);
    color: var(--on-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
}

/* Loading animation for images */
.image-loading {
    background: linear-gradient(90deg, var(--surface-container-low) 25%, var(--surface-container) 50%, var(--surface-container-low) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* CSS Variables from Google Stitch DESIGN.md */
:root {
    --surface: #faf8ff;
    --surface-dim: #d9d9e5;
    --surface-bright: #faf8ff;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f3f3fe;
    --surface-container: #ededf9;
    --surface-container-high: #e7e7f3;
    --surface-container-highest: #e1e2ed;
    --on-surface: #191b23;
    --on-surface-variant: #434655;
    --inverse-surface: #2e3039;
    --inverse-on-surface: #f0f0fb;
    --outline: #737686;
    --outline-variant: #c3c6d7;
    --primary: #004ac6;
    --on-primary: #ffffff;
    --primary-container: #2563eb;
    --on-primary-container: #eeefff;
    --inverse-primary: #b4c5ff;
    --primary-fixed: #dbe1ff;
    --primary-fixed-dim: #b4c5ff;
    --on-primary-fixed: #00174b;
    --on-primary-fixed-variant: #003ea8;
    --secondary: #575e70;
    --on-secondary: #ffffff;
    --secondary-container: #d9dff5;
    --on-secondary-container: #5c6274;
    --tertiary: #943700;
    --on-tertiary: #ffffff;
    --tertiary-container: #bc4800;
    --on-tertiary-container: #ffede6;
    --error: #ba1a1a;
    --on-error: #ffffff;
    --error-container: #ffdad6;
    --on-error-container: #93000a;
}

/* Dark Mode CSS Variables */
.dark {
    --surface: #1a1b1e;
    --surface-dim: #111214;
    --surface-bright: #1a1b1e;
    --surface-container-lowest: #0e0f11;
    --surface-container-low: #1a1b1e;
    --surface-container: #2a2b2e;
    --surface-container-high: #343538;
    --surface-container-highest: #3e3f42;
    --on-surface: #e2e3e7;
    --on-surface-variant: #a0a1a7;
    --inverse-surface: #e2e3e7;
    --inverse-on-surface: #2e3039;
    --outline: #8e9099;
    --outline-variant: #44474e;
    --primary: #b4c5ff;
    --on-primary: #003ea8;
    --primary-container: #1d4ed8;
    --on-primary-container: #dbe1ff;
    --inverse-primary: #004ac6;
    --primary-fixed: #1d4ed8;
    --primary-fixed-dim: #1a4bba;
    --on-primary-fixed: #00174b;
    --on-primary-fixed-variant: #003ea8;
    --secondary: #b0c0e7;
    --on-secondary: #1a2744;
    --secondary-container: #3d4a6b;
    --on-secondary-container: #dce2f7;
    --tertiary: #ffb596;
    --on-tertiary: #5c1d00;
    --tertiary-container: #7d2d00;
    --on-tertiary-container: #ffdbcd;
    --error: #ffb4ab;
    --on-error: #690005;
    --error-container: #93000a;
    --on-error-container: #ffdad6;
    --background: #1a1b1e;
    --on-background: #e2e3e7;
    --surface-variant: #44474e;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
    background: #2a2b2e;
}

.dark ::-webkit-scrollbar-thumb {
    background: #b4c5ff;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}