/* Custom styles for zolnieruk.pl */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --brand-purple-600: #667eea;
    --brand-purple-700: #764ba2;
    --brand-accent-500: #84cc16;
    --brand-accent-600: #65a30d;
    --brand-accent-700: #4d7c0f;

    --radius-lg: 0.875rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;

    --shadow-sm: 0 2px 10px rgba(17, 24, 39, 0.06);
    --shadow-md: 0 10px 28px rgba(17, 24, 39, 0.10);
    --shadow-lg: 0 18px 46px rgba(17, 24, 39, 0.12);
    --shadow-colored: 0 20px 60px -12px rgba(102, 126, 234, 0.35);
    --shadow-colored-accent: 0 20px 60px -12px rgba(132, 204, 22, 0.35);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Modern glassmorphism utilities */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-card-strong {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Animated gradient background */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.gradient-animated {
    background-size: 200% 200%;
    animation: gradient-shift 25s ease-in-out infinite;
}

/* Enhanced mesh gradient */
.mesh-gradient {
    background:
        radial-gradient(at 10% 20%, rgba(102, 126, 234, 0.15) 0px, transparent 50%),
        radial-gradient(at 90% 10%, rgba(132, 204, 22, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 90%, rgba(118, 75, 162, 0.1) 0px, transparent 50%),
        radial-gradient(at 20% 80%, rgba(102, 126, 234, 0.08) 0px, transparent 50%);
}

/* Smooth reveal animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.animate-fade-in {
    animation: fade-in 0.6s ease-out;
}

.animate-scale-in {
    animation: scale-in 0.6s ease-out;
}

.gradient-bg {
    background: linear-gradient(
        135deg,
        #667eea 0%,
        #764ba2 50%,
        #65a30d 100%
    );
    background-size: 200% 200%;
}

.hero-pattern {
    background: linear-gradient(
        135deg,
        #667eea 0%,
        #764ba2 40%,
        #6366f1 60%,
        #8b5cf6 100%
    );
    background-size: 300% 300%;
    position: relative;
    overflow: hidden;
}

.hero-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(132, 204, 22, 0.18) 0%, transparent 60%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    animation: gradient-shift 20s ease infinite;
}

.hero-split-pattern {
    position: relative;
    overflow: hidden;
}

/* For the homepage we replace the "crosses" with a split pattern (bus / house) */
.hero-pattern.hero-split-pattern {
    background-image:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 49.6%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0) 50.4%,
            rgba(255, 255, 255, 0) 100%
        ),
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 45%),
        radial-gradient(circle at 90% 100%, rgba(132, 204, 22, 0.22), rgba(132, 204, 22, 0) 55%);
}

.hero-split-pattern::before,
.hero-split-pattern::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    pointer-events: none;
    background-repeat: repeat;
    background-size: 84px 84px;
    opacity: 1;
}

.hero-split-pattern::before {
    left: 0;
    right: calc(50% + 2px);
    background-position: 10px 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.08'%3E%3Cpath d='M24 50V34c0-3 2-5 5-5h21c4 0 7 3 7 7v14'/%3E%3Cpath d='M65 50h-6'/%3E%3Cpath d='M24 50h6'/%3E%3Ccircle cx='33' cy='52' r='4'/%3E%3Ccircle cx='57' cy='52' r='4'/%3E%3Cpath d='M31 29v-4h20v4'/%3E%3Cpath d='M26 38h12'/%3E%3Cpath d='M46 38h14'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-split-pattern::after {
    left: calc(50% - 2px);
    right: 0;
    background-position: 16px 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.08'%3E%3Cpath d='M26 42l16-14 16 14'/%3E%3Cpath d='M30 40v18h24V40'/%3E%3Cpath d='M39 58V46h6v12'/%3E%3Cpath d='M49 45h5v6h-5z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-split-pattern > * {
    position: relative;
    z-index: 1;
}

.hero-mixed-pattern {
    position: relative;
    overflow: hidden;
}

/* Mixed icons (bus/house) without a hard split seam */
.hero-pattern.hero-mixed-pattern {
    background: linear-gradient(
        135deg,
        #667eea 0%,
        #764ba2 40%,
        #6366f1 60%,
        #8b5cf6 100%
    );
    background-size: 300% 300%;
}

.hero-mixed-pattern::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-repeat: repeat;
    background-size: 168px 168px;
    background-position: 14px 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='168' viewBox='0 0 168 168'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.08'%3E%3Cg%3E%3Cpath d='M24 50V34c0-3 2-5 5-5h21c4 0 7 3 7 7v14'/%3E%3Cpath d='M65 50h-6'/%3E%3Cpath d='M24 50h6'/%3E%3Ccircle cx='33' cy='52' r='4'/%3E%3Ccircle cx='57' cy='52' r='4'/%3E%3Cpath d='M31 29v-4h20v4'/%3E%3Cpath d='M26 38h12'/%3E%3Cpath d='M46 38h14'/%3E%3C/g%3E%3Cg transform='translate(84 0)'%3E%3Cpath d='M26 42l16-14 16 14'/%3E%3Cpath d='M30 40v18h24V40'/%3E%3Cpath d='M39 58V46h6v12'/%3E%3Cpath d='M49 45h5v6h-5z'/%3E%3C/g%3E%3Cg transform='translate(0 84)'%3E%3Cpath d='M26 42l16-14 16 14'/%3E%3Cpath d='M30 40v18h24V40'/%3E%3Cpath d='M39 58V46h6v12'/%3E%3Cpath d='M49 45h5v6h-5z'/%3E%3C/g%3E%3Cg transform='translate(84 84)'%3E%3Cpath d='M24 50V34c0-3 2-5 5-5h21c4 0 7 3 7 7v14'/%3E%3Cpath d='M65 50h-6'/%3E%3Cpath d='M24 50h6'/%3E%3Ccircle cx='33' cy='52' r='4'/%3E%3Ccircle cx='57' cy='52' r='4'/%3E%3Cpath d='M31 29v-4h20v4'/%3E%3Cpath d='M26 38h12'/%3E%3Cpath d='M46 38h14'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-mixed-pattern > * {
    position: relative;
    z-index: 1;
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card-hover::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(132, 204, 22, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px -12px rgba(102, 126, 234, 0.25), 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.card-hover:hover::before {
    opacity: 1;
}

.service-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 30px -5px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px -5px rgba(102, 126, 234, 0.5);
}

.service-icon--accent {
    background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
    box-shadow: 0 10px 30px -5px rgba(132, 204, 22, 0.4);
}

.service-icon--accent:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 15px 40px -5px rgba(132, 204, 22, 0.5);
}

.logo-container {
    max-width: 340px;
}

.logo-container img {
    margin: -8px;
}

/* Enhanced shadows with color */
.shadow-md {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

.shadow-2xl {
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.18), 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

/* Button enhancements */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -8px currentColor;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Accessible focus with glow */
a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(132, 204, 22, 0.6);
    outline-offset: 3px;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 0 6px rgba(132, 204, 22, 0.1);
}

::selection {
    background: rgba(132, 204, 22, 0.3);
    color: #1f2937;
}

/* Smooth link underlines */
a {
    transition: all 0.2s ease;
}

/* Enhanced badge styles */
.badge-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.badge-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #84cc16 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
