/* ProMobily.cz - Modern Design Variables & Base Styles */

:root {
    /* Color Palette */
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-900: #0c4a6e;
    
    --accent-400: #f59e0b;
    --accent-500: #f59e0b;
    --accent-600: #d97706;
    
    /* Typography */
    --font-display: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

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

/* Base body styles */
body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: #1f2937;
    overflow-x: hidden;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-600);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 100;
}

.skip-link:focus {
    top: 6px;
}

/* Navigation styles */
.nav-container {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Gradient mesh background animation */
.gradient-mesh {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animation keyframes */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(3deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(3deg); 
    }
}

@keyframes slideIn {
    from { 
        transform: translateX(-100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

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

/* Animation classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-slide-in {
    animation: slideIn 0.5s ease-out;
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out;
}

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

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-2xl);
}

.btn-secondary {
    transition: all 0.3s ease;
    transform-origin: center;
}

.btn-secondary:hover {
    transform: scale(1.02);
}

/* Card hover effects */
.feature-card,
.portfolio-item {
    transition: all 0.3s ease;
    transform-origin: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-item:hover {
    transform: translateY(-4px);
}

/* Image hover effects */
.portfolio-item img {
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Gradient text effects */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile menu styles */
.mobile-menu {
    transition: all 0.3s ease;
}

.mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-20px);
}

.mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll indicators */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        to right,
        var(--primary-600) 0%,
        var(--accent-500) 100%
    );
    transform-origin: left;
    z-index: 9999;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-600);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus states for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid var(--accent-500);
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1f2937;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-600: #1e3a8a;
        --accent-500: #d97706;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .gradient-mesh {
        animation: none;
    }
    
    .animate-float,
    .animate-slide-in,
    .animate-fade-up {
        animation: none;
    }
}

/* Print styles */
@media print {
    .nav-container,
    .mobile-menu-btn,
    .skip-link {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .gradient-mesh {
        background: white !important;
        color: black !important;
    }
}

/* Performance optimizations */
.animate-float,
.animate-slide-in,
.animate-fade-up {
    will-change: transform, opacity;
}

.feature-card:hover,
.portfolio-item:hover {
    will-change: transform, box-shadow;
}

.gradient-mesh {
    will-change: background-position;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-600);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-700);
}

/* Selection styles */
::selection {
    background-color: var(--primary-100);
    color: var(--primary-900);
}

::-moz-selection {
    background-color: var(--primary-100);
    color: var(--primary-900);
}

/* Responsive utilities */
@media (max-width: 640px) {
    .animate-slide-in {
        animation-delay: 0.2s;
    }
    
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .gradient-mesh {
        background-attachment: scroll;
    }
}

/* Component specific styles */
.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Loading animation for images */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-loaded="true"] {
    opacity: 1;
}

/* Intersection observer animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Enhanced hover states */
.enhanced-hover {
    position: relative;
    overflow: hidden;
}

.enhanced-hover::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 ease;
}

.enhanced-hover:hover::before {
    left: 100%;
}