/* Custom CSS styles for Maksite.net */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700;800;900&family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables - Professional corporate colors */
:root {
    --primary-dark: #0f1419;
    --secondary-dark: #1e2832;
    --corporate-blue: #2d3748;
    --corporate-navy: #1a202c;
    --accent-steel: #4a5568;
    --accent-gold: #b7791f;
    --professional-gray: #718096;
    --light-gray: #f7fafc;
    --medium-gray: #e2e8f0;
    --border-gray: #cbd5e0;
    --white: #ffffff;
    --success-green: #2f855a;
    --warning-amber: #b7791f;
    --text-dark: #1a202c;
    --text-light: #4a5568;
    --shadow-dark: rgba(26, 26, 26, 0.15);
    --shadow-medium: rgba(45, 45, 45, 0.1);
}

/* Basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Navigation-specific fixes */
.professional-nav {
    background: rgba(15, 20, 25, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 85, 104, 0.15);
    box-shadow: 0 2px 12px rgba(15, 20, 25, 0.2);
    transition: all 0.3s ease;
}

.professional-nav a {
    color: #d1d5db !important;
    transition: color 0.3s ease;
}

.professional-nav a:hover {
    color: #fbbf24 !important;
}

.professional-nav a.active,
.professional-nav a[class*="text-amber-400"] {
    color: #fbbf24 !important;
    background-color: rgba(75, 85, 99, 0.5) !important;
}

.nav-scroll {
    background: rgba(15, 20, 25, 0.98) !important;
    box-shadow: 0 4px 24px rgba(15, 20, 25, 0.25) !important;
}

.nav-scroll a {
    color: #d1d5db !important;
}

.nav-scroll a:hover {
    color: #fbbf24 !important;
}

/* Professional button styling */
.professional-button {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #996f1a 100%) !important;
    color: #1a1a1a !important;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(183, 121, 31, 0.25);
    font-weight: 600;
    border: none;
}

.professional-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(183, 121, 31, 0.35);
    background: linear-gradient(135deg, #996f1a 0%, var(--accent-gold) 100%) !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--professional-navy);
}

/* Professional gradient background */
.professional-gradient {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 30%, var(--corporate-blue) 70%, var(--corporate-navy) 100%);
    position: relative;
    overflow: hidden;
}

.professional-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(149, 165, 166, 0.08) 0%, transparent 50%),
        linear-gradient(45deg, transparent 40%, rgba(52, 73, 94, 0.05) 50%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-silver) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Hover effects for cards */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-gray);
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

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

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px var(--shadow-dark), 0 10px 20px var(--shadow-medium);
    border-color: var(--accent-silver);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

/* Dark hover effects for thematic cards like MIDI package */
.card-hover-dark {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-hover-dark:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2);
    filter: brightness(1.05);
}

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

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-15px); 
    }
}

.slide-in {
    animation: slideInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Section divider */
.section-divider {
    background: linear-gradient(90deg, transparent, var(--secondary-blue), transparent);
    height: 1px;
    margin: 2rem 0;
    opacity: 0.3;
}

/* Form styles */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Portfolio grid improvements */
.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Statistics styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #fbbf24;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Pricing card improvements */
.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-blue);
}

.pricing-card.featured {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.05);
    border-color: var(--primary-blue);
}

.pricing-card.featured::before {
    content: 'Polecany';
    position: absolute;
    top: 0;
    right: 0;
    background: #fbbf24;
    color: var(--dark-gray);
    padding: 4px 16px;
    font-size: 12px;
    font-weight: 600;
    border-bottom-left-radius: 8px;
}

/* Typography improvements */
.heading-xl {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.heading-lg {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Footer styling */
.footer {
    background: #111827;
    color: white;
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-top: 1rem;
    }
    
    .card-hover:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .professional-nav,
    .hero-section,
    .footer {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .card-hover {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
