:root {
    --primary-blue: #0f172a;
    --secondary-blue: #1e40af;
    --accent-blue: #3b82f6;
    --light-blue: #dbeafe;
    
    /* CHANGED: Replaced Gold/Purple with Corporate Reds */
    --brand-red: #ef4444;       /* Primary Red */
    --brand-red-dark: #b91c1c;  /* Deep Red for contrast */
    
    --success-green: #10b981;
    --warning-orange: #f97316;
    
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    
    --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --heading-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* CHANGED: Updated Gradients to Blue-Red combinations */
    --gradient-primary: linear-gradient(135deg, var(--secondary-blue) 0%, var(--accent-blue) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--brand-red-dark) 0%, var(--secondary-blue) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-blue) 0%, var(--brand-red) 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 100%);
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-2xl: 32px;
    
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
}

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

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--body-font);
    color: var(--neutral-800);
    background: linear-gradient(180deg, var(--neutral-50) 0%, #ffffff 100%);
    line-height: 1.75;
    font-size: 1rem;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* CHANGED: Updated background glow to include Red */
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(239, 68, 68, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.025em;
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 { 
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

h3 { 
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h4 { 
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--neutral-700);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--neutral-600);
}

.navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-lg) 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1000;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-md) 0;
}

.navbar-brand {
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.025em;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.navbar-brand:hover::after {
    width: 100%;
}

/* === DEFINITIVE NAVIGATION STYLES (v4 - FINAL) === */

/* Base style for nav links */
.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--neutral-700);
    padding: 0.75rem 1rem;
    margin: 0;
    background-color: transparent !important;
    border-radius: 0;
    transition: color 0.3s ease;
    position: relative;
    text-decoration: none;
    border: none !important;
    box-shadow: none !important;
}

/* Span inside for underline */
.navbar-nav .nav-link span {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

/* Underline pseudo-element */
.navbar-nav .nav-link span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-blue);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

/* Text color on hover */
.navbar-nav .nav-link:hover {
    color: var(--primary-blue);
}

/* Underline animation on hover */
.navbar-nav .nav-link:hover span::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* ADDED: Disable underline on click for dropdown toggle */
.navbar-nav .nav-link.dropdown-toggle:active span::after {
    transform: scaleX(0) !important;
}

/* Active link text style */
.navbar-nav .nav-link.active {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Underline animation for active links, EXCLUDING the dropdown toggle */
.navbar-nav .nav-link.active:not(.dropdown-toggle) span::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Main Dropdown Menu Style */
.navbar .dropdown-menu {
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-sm);
    background-color: white;
}

/* Dropdown Item Styling */
.navbar .dropdown-item {
    font-weight: 500;
    color: var(--neutral-700);
    background-color: transparent !important;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    position: relative;
    transition: color 0.3s ease;
    white-space: normal;
}

/* Make span a block to attach pseudo-element */
.navbar .dropdown-item span {
    position: relative;
    display: inline-block;
}

/* Dropdown item underline */
.navbar .dropdown-item span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px; /* Position below text */
    left: 0;
    background-color: var(--secondary-blue);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

/* Dropdown item hover/focus state */
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    color: var(--primary-blue);
    background-color: transparent !important;
    transform: none;
}

.navbar .dropdown-item:hover span::after,
.navbar .dropdown-item:focus span::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* === MOBILE/DESKTOP TWEAKS === */

/* On mobile, align items left and apply specific dropdown styles */
@media (max-width: 991.98px) {
    .navbar-nav {
        align-items: flex-start;
    }
    .navbar-nav .dropdown-menu {
        position: relative;
        left: -7.5%;
        width: 115%;
        text-align: left;
        background-color: var(--neutral-100);
        margin-top: 0.5rem;
    }
}

/* On desktop, apply specific spacing and sizing */
@media (min-width: 992px) {
    .navbar {
        position: relative;  /* CRITICAL FIX: Maintains positioning context for dropdown */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow: visible !important; /* ENSURES content can spill out */
    }

    .navbar-nav {
        overflow: visible !important; /* Double check to ensure no clipping */
    }

    .navbar-nav .nav-item {
        position: relative; /* This makes the dropdown stick to the specific link */
        overflow: visible !important;
    }

    .navbar-nav .nav-item.dropdown {
        position: relative !important;
        overflow: visible !important;
    }

    .navbar-nav .nav-link {
        margin: 0 0.5rem;
    }

    .navbar .dropdown-menu {
        /* THE FIX: Absolute positioning breaks it out of the navbar flow */
        position: absolute !important;
        top: 100% !important; /* Pushes it exactly below the nav items */
        left: 0 !important;
        right: auto !important;
        bottom: auto !important;

        min-width: 420px;
        margin-top: var(--spacing-sm);

        /* Ensure it floats above other content */
        z-index: 99999 !important;

        /* Visual tweaks */
        display: none; /* Hidden by default, Bootstrap toggles this */
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.2s ease;

        /* FORCE it to be visible when needed */
        max-height: none !important;
        overflow: visible !important;
        clip-path: none !important;
    }

    /* Animation state when Bootstrap adds the 'show' class */
    .navbar .dropdown-menu.show {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* ADDED: Explicitly disable underline for active dropdown toggle */
    .navbar-nav .nav-link.active.dropdown-toggle span::after {
        transform: scaleX(0) !important;
    }
}

.btn {
    font-weight: 600;
    padding: var(--spacing-lg) var(--spacing-2xl);
    border-radius: var(--border-radius-2xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::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;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.btn-lg {
    padding: var(--spacing-xl) var(--spacing-3xl);
    font-size: 1.125rem;
}

.btn-sm {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 0.875rem;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-section {
    background: 
        linear-gradient(135deg, 
            rgba(15, 23, 42, 0.98) 0%, 
            rgba(15, 23, 42, 0.85) 60%, 
            rgba(30, 64, 175, 0.5) 100%); /* Lighter blue, less opaque */
    color: #fff;
    padding: 140px 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hydraulicke_vyvazeni_1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(8px);
    z-index: -1;
    transform: scale(1.1); /* To avoid hard edges from the blur */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-section .lead {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section {
        padding: 80px 0;
    }
}

.section-about {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--light-gray) 0%, white 100%);
    position: relative;
}

.section-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--medium-gray), transparent);
}

.card {
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card:hover {
    box-shadow: var(--shadow-xl);
}

.feature-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(247,250,252,0.9));
    border: 1px solid rgba(255,255,255,0.2);
}

.feature-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--light-text);
    line-height: 1.6;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

footer {
    background-color: #2c3e50;
    color: white;
}

/* Reference Page Styles */
.reference-item .card-title {
    font-size: 1.75rem;
}

.reference-results {
    border-left: 3px solid var(--primary-blue);
    padding-left: 20px;
}

.reference-results h4 {
    font-size: 1.2rem;
    color: var(--dark-text);
}

.reference-results ul {
    list-style: none;
    padding: 0;
}

.reference-results ul li {
    margin-bottom: 0.5rem;
}

/* Blog Page Styles */
.blog-post-card {
    border-radius: 15px;
    overflow: hidden;
}

.blog-post-card .card-title a {
    color: var(--primary-blue);
}

.blog-post-card .card-title a:hover {
    color: var(--secondary-blue);
}

.blog-post-card img {
    object-fit: cover;
    height: 100%;
}

.blog-post header h1 {
    font-size: 2.8rem;
}

.post-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content h2, .post-content h3, .post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 1.2rem;
}

.post-content ul, .post-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

/* Service Page Styles */
.service-features .feature-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.service-features .feature-item:last-child {
    border-bottom: none;
}

.benefits-list .benefit-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.benefits-list .benefit-item:hover {
    background: var(--medium-gray);
    transform: translateX(5px);
}

/* Contact Page Enhancements */
.contact-info-card,
.contact-form-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
}

.contact-info-card {
    border: none;
    box-shadow: var(--shadow-lg);
}

.contact-form-card {
    border: 1px solid var(--neutral-300);
    box-shadow: var(--shadow-md);
}

/* Prevent horizontal overflow on contact page */
.contact-info-card .card-body,
.contact-form-card .card-body {
    padding: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure cards don't overflow their containers */
.card {
    max-width: 100%;
    box-sizing: border-box;
}

/* Prevent form inputs from causing overflow */
.form-control,
.btn {
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix row overflow on contact page */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
}

/* FORCE navbar and all children to allow overflow */
header {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

.navbar {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

.navbar.fixed-top {
    overflow: visible !important;
    max-height: none !important;
}

.navbar .container {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    max-height: none !important;
    height: auto !important;
}

.navbar-collapse {
    overflow: visible !important;
    max-height: none !important;
}

.navbar-nav {
    overflow: visible !important;
    max-height: none !important;
}

.nav-item.dropdown {
    overflow: visible !important;
    max-height: none !important;
}

.container .row {
    margin-left: -15px;
    margin-right: -15px;
}

.container [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.form-control {
    border: 1px solid var(--neutral-300);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(66, 153, 225, 0.25);
}

/* Reference Page Styles */
.reference-item {
    border-left: 4px solid var(--accent-blue);
    transition: all 0.3s ease;
}

.reference-item:hover {
    border-left-color: var(--primary-blue);
    transform: translateX(5px);
}

.reference-results {
    background: linear-gradient(135deg, var(--light-gray), rgba(66, 153, 225, 0.05));
    border-radius: 12px;
    padding: 1.5rem;
}

/* Blog Enhancements */
.blog-post-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-md);
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.blog-post-card img {
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.blog-post-card:hover img {
    transform: scale(1.05);
}

/* Footer Enhancement */
footer {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>') repeat;
}

footer .container {
    position: relative;
    z-index: 2;
}

/* Responsive Enhancements */
@media (max-width: 992px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .btn-lg {
        display: block;
        margin-bottom: 1rem;
    }
    
    .benefits-list .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .benefits-list .benefit-item i {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }
    
    .hero-section {
        padding: var(--spacing-2xl) 0;
        min-height: 70vh;
    }
    
    .section-about {
        padding: var(--spacing-xl) 0;
    }
    
    .feature-card {
        padding: var(--spacing-lg);
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .floating-shape {
        display: none;
    }
}

/* Premium loading states */
.loading-shimmer {
    background: linear-gradient(90deg, var(--neutral-200) 25%, var(--neutral-100) 50%, var(--neutral-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* Scroll indicators */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform-origin: left;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-indicator.visible {
    opacity: 1;
}

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

::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Selection styling */
::selection {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-blue);
}

::-moz-selection {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-blue);
}

/* Enhanced Hero Section Styles */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-xl);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    line-height: 1.7;
    opacity: 0.9;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl) auto;
    color: rgba(255, 255, 255, 0.95);
}

.hero-actions {
    margin-bottom: var(--spacing-2xl);
}

.hero-actions .btn {
    margin: var(--spacing-sm);
    min-width: 200px;
}

/* Stats Section */
.stat-item {
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

/* Enhanced Section Titles */
.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--neutral-600);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Feature Cards */
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.feature-icon i {
    font-size: 2.5rem;
    color: white;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

.feature-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.3;
}

.feature-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--neutral-600);
    margin-bottom: var(--spacing-lg);
}

.feature-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--gradient-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Logo Carousel Styles */
.logo-carousel-section {
    background-color: var(--neutral-100);
}

.logo-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.logo-carousel:before, .logo-carousel:after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.logo-carousel:before {
    left: 0;
    background: linear-gradient(to right, var(--neutral-100), transparent);
}

.logo-carousel:after {
    right: 0;
    background: linear-gradient(to left, var(--neutral-100), transparent);
}

.logo-track {
    display: flex;
    width: calc(230px * 12);
    animation: scroll 40s linear infinite;
}

.logo-item {
    width: 150px;
    height: 60px;
    margin: 0 40px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-230px * 6));
    }
}

/* Service Page Image Gallery Styles */
.service-page .row img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

/* Special height for hydraulic balancing images (they need more space) */
.service-page .row img[src*="hydraulicke_vyvazeni"] {
    height: 550px;
}

.service-page .row img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Ensure consistent spacing for service image galleries */
.service-page .row.mb-5 {
    margin-bottom: 3rem !important;
}

.service-page .col-md-4.mb-3,
.service-page .col-md-6.mb-3 {
    margin-bottom: 1rem !important;
}

/* Service content styling */
.service-content .lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--neutral-700);
    margin-bottom: 2rem;
}

.service-features .feature-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.service-features .feature-item:hover {
    background-color: rgba(59, 130, 246, 0.05);
    border-radius: var(--border-radius-sm);
    padding-left: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
}

.benefits-list .benefit-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.benefits-list .benefit-item:hover {
    background-color: rgba(59, 130, 246, 0.05);
    border-radius: var(--border-radius-sm);
    padding-left: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
}

/* Logo sizing for consistent display */
.logo-item {
    width: 150px !important;
    height: 80px !important;
    object-fit: contain !important;
    padding: 10px;
    background: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-xs);
}

/* COMPREHENSIVE PAGE CONSISTENCY FIXES */

/* Typography Consistency */
.container h1, .service-page h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
    font-weight: 800 !important;
    color: var(--primary-blue) !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2 !important;
}

.container h2, .service-page h2 {
    font-size: clamp(2rem, 3vw, 2.5rem) !important;
    font-weight: 700 !important;
    color: var(--primary-blue) !important;
    margin-bottom: 1.5rem !important;
}

.container h3, .service-page h3 {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem) !important;
    font-weight: 600 !important;
    color: var(--primary-blue) !important;
    margin-bottom: 1rem !important;
}

.container h4, .service-page h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem) !important;
    font-weight: 600 !important;
    color: var(--primary-blue) !important;
    margin-bottom: 1rem !important;
}

.container h5, .service-page h5 {
    font-size: clamp(1.125rem, 1.5vw, 1.25rem) !important;
    font-weight: 600 !important;
    color: var(--primary-blue) !important;
    margin-bottom: 0.75rem !important;
}

/* Consistent paragraph spacing and sizing */
.container p, .service-page p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: var(--neutral-700) !important;
    margin-bottom: 1.5rem !important;
}

.container .lead, .service-page .lead {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem) !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: var(--neutral-600) !important;
    margin-bottom: 2rem !important;
}

/* Service page header consistency */
.service-page header {
    padding: 3rem 0 !important;
    text-align: center !important;
}

.service-page header h1 {
    margin-bottom: 1rem !important;
}

.service-page header .lead {
    max-width: 800px !important;
    margin: 0 auto 2rem auto !important;
}

/* Main page section improvements */
.section-about {
    padding: 6rem 0 !important;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.5) 0%, white 100%) !important;
}

.section-about h2 {
    text-align: center !important;
    margin-bottom: 1.5rem !important;
}

.section-about .lead {
    text-align: center !important;
    max-width: 800px !important;
    margin: 0 auto 4rem auto !important;
}

/* Feature cards improvements */
.feature-card {
    padding: 2.5rem 2rem !important;
    height: 100% !important;
    border-radius: var(--border-radius-lg) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: var(--shadow-md) !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
}

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

.feature-card-svg {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-blue);
}

.feature-card h4 {
    font-size: 1.375rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    color: var(--primary-blue) !important;
}

.feature-card p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: var(--neutral-600) !important;
    margin-bottom: 0 !important;
}

/* Stats section improvements */
.stat-item {
    text-align: center !important;
    padding: 2rem 1rem !important;
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    margin-bottom: 0.5rem !important;
    background: var(--gradient-accent) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.stat-label {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Button consistency */
.btn {
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 1rem 2rem !important;
    border-radius: var(--border-radius-md) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    border: none !important;
}

.btn-lg {
    font-size: 1.125rem !important;
    padding: 1.25rem 2.5rem !important;
}

.btn-primary {
    background: var(--gradient-primary) !important;
    color: white !important;
    box-shadow: var(--shadow-lg) !important;
}

.btn-primary:hover {

    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-2xl) !important;
    color: white !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid var(--accent-blue) !important;
    color: var(--accent-blue) !important;
    box-shadow: var(--shadow-md) !important;
}

.btn-secondary:hover {
    background: var(--gradient-primary) !important;
    color: white !important;
    border-color: transparent !important;
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-xl) !important;
}

/* Section spacing consistency */
section, .container.my-5 {
    padding: 4rem 0 !important;
}

/* Service page specific improvements */
.service-content {
    margin-top: 3rem !important;
}

.service-content .row {
    margin-top: 3rem !important;
}

.service-features .feature-item span,
.benefits-list .benefit-item span,
.benefits-list .benefit-item strong,
.benefits-list .benefit-item small {
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

.benefits-list .benefit-item strong {
    font-weight: 600 !important;
    color: var(--primary-blue) !important;
}

.benefits-list .benefit-item small {
    font-size: 0.875rem !important;
    color: var(--neutral-500) !important;
}

/* Logo carousel section spacing */
.logo-carousel-section {
    padding: 4rem 0 !important;
    background: rgba(248, 250, 252, 0.5) !important;
}

.logo-carousel-section h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
    font-weight: 600 !important;
    color: var(--neutral-600) !important;
    text-align: center !important;
    margin-bottom: 3rem !important;
}

/* HERO SECTION TEXT WHITE COLOR FIX */
.hero-section .hero-title,
.hero-section h1 {
    color: white !important;
    text-shadow: 0 4px 20px rgba(255, 0, 0, 0.2) !important;
}

.hero-section .hero-subtitle,
.hero-section .lead,
.hero-section p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 10px rgba(255, 0, 0, 0.3) !important;
}

/* Hero buttons - secondary should NOT be white text */
.hero-section .btn-secondary {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid var(--accent-blue) !important;
    color: var(--accent-blue) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: var(--shadow-md) !important;
}

.hero-section .btn-secondary:hover {
    background: var(--gradient-primary) !important;
    color: white !important;
    border-color: transparent !important;
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-xl) !important;
}

.hero-section .btn-primary {
    color: white !important;
}

.hero-section .btn-primary:hover {
    color: white !important;
}

/* MOBILE OPTIMIZATION FOR ALL PAGES */
@media (max-width: 768px) {
    /* Service pages mobile fixes */
    
    .service-page .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .service-page header {
        padding: 2rem 0 !important;
        text-align: center !important;
    }
    
    .service-page header h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
        padding: 0 0.5rem !important;
    }
    
    .service-page header .lead {
        font-size: clamp(1.125rem, 2.5vw, 1.375rem) !important;
        line-height: 1.5 !important;
        padding: 0 1rem !important;
    }
    
    /* Service page images mobile */
    .service-page .row.mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .service-page .row img {
        height: 200px !important;
        margin-bottom: 1rem !important;
    }
    
    .service-page .row img[src*="hydraulicke_vyvazeni"] {
        height: 280px !important;
    }
    
    /* Service content mobile */
    .service-content {
        margin-top: 1.5rem !important;
        padding: 0 1rem !important;
    }
    
    .service-content .row {
        margin-top: 2rem !important;
    }
    
    .service-content .col-md-6 {
        margin-bottom: 2rem !important;
    }
    
    .service-content h3 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Service feature items mobile */
    .service-features .feature-item,
    .benefits-list .benefit-item {
        padding: 1rem 0.5rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .service-features .feature-item span,
    .benefits-list .benefit-item div {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    /* Button spacing mobile */
    .service-content .text-center .btn {
        display: block !important;
        width: 100% !important;
        margin: 0.5rem 0 !important;
        max-width: 300px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Hero section mobile */
    .hero-section {
        padding: 4rem 0 !important;
        min-height: 70vh !important;
        background-attachment: scroll !important;
    }
    
    .hero-section h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-section .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.125rem) !important;
        line-height: 1.5 !important;
        margin-bottom: 2rem !important;
        padding: 0 1rem !important;
    }
    
    .hero-actions .btn {
        display: block !important;
        width: 100% !important;
        max-width: 280px !important;
        margin: 0.75rem auto !important;
    }
    
    /* Stats mobile */
    .stat-item {
        padding: 1.5rem 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .stat-number {
        font-size: clamp(2rem, 8vw, 2.5rem) !important;
    }
    
    .stat-label {
        font-size: 0.875rem !important;
    }
    
    /* Feature cards mobile */
    .feature-card {
        padding: 1.5rem 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .feature-card i {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .feature-card h4 {
        font-size: 1.25rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .feature-card p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    /* Main page sections mobile */
    .section-about {
        padding: 3rem 0 !important;
    }
    
    .section-about h2 {
        font-size: clamp(1.75rem, 6vw, 2.25rem) !important;
        margin-bottom: 1rem !important;
        padding: 0 1rem !important;
    }
    
    .section-about .lead {
        font-size: clamp(1rem, 4vw, 1.125rem) !important;
        margin-bottom: 2rem !important;
        padding: 0 1rem !important;
    }
    
    /* Logo carousel mobile */
    .logo-carousel-section {
        padding: 2.5rem 0 !important;
    }
    
    .logo-carousel-section h3 {
        font-size: clamp(1.25rem, 5vw, 1.75rem) !important;
        margin-bottom: 2rem !important;
        padding: 0 1rem !important;
    }
    
    /* Blog section mobile */
    .container .row .col-12 h2 {
        font-size: clamp(1.75rem, 6vw, 2.25rem) !important;
        padding: 0 1rem !important;
    }
    
    .container .row .col-12 .lead {
        font-size: clamp(1rem, 4vw, 1.125rem) !important;
        padding: 0 1rem !important;
    }
}

/* PERFECT TEXT ALIGNMENT FIXES */
.text-center,
.text-center h1,
.text-center h2, 
.text-center h3,
.text-center .lead,
.text-center p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Blog section heading alignment fix */
.container .row .col-12.text-center.mb-5 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.container .row .col-12.text-center.mb-5 h2,
.container .row .col-12.text-center.mb-5 .lead {
    text-align: center !important;
    width: 100% !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Partners section alignment fix */
.logo-carousel-section .container h3 {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* FOOTER TEXT WHITE FIX */
footer,
footer *,
footer p,
footer .container,
footer .container * {
    color: white !important;
}

/* ULTRA PROFESSIONAL SERVICE PAGES REDESIGN */
.service-page {
    background: #ffffff;
    font-family: var(--body-font);
}

/* Hero Section with Clean Design */
.service-hero {
    background: 
        linear-gradient(135deg, 
            rgba(15, 23, 42, 0.9) 0%, 
            rgba(30, 64, 175, 0.85) 50%, 
            rgba(59, 130, 246, 0.8) 100%);
    position: relative;
    overflow: hidden;
    padding: 8rem 0 6rem 0;
    margin-bottom: 0;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        /* CHANGED: Replaced Purple with Red */
        radial-gradient(circle at 80% 70%, rgba(220, 38, 38, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.service-hero .container {
    position: relative;
    z-index: 2;
}

.service-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.service-page .service-hero h1,
.service-hero .service-hero-content h1 {
    color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: white !important;
    background-clip: unset !important;
    font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    margin-bottom: 2rem !important;
    letter-spacing: -0.025em !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

.service-page .service-hero .lead,
.service-hero .service-hero-content .lead {
    color: white !important;
    font-size: clamp(1.125rem, 2.5vw, 1.375rem) !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
    margin-bottom: 0 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    max-width: 700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Modern Image Showcase */
.service-showcase {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #f8fafc, #ffffff, #f8fafc);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.showcase-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.showcase-item img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.showcase-item img[src*="hydraulicke_vyvazeni"] {
    height: 700px;
    object-fit: contain;
    background: #f8fafc;
}

.showcase-item:hover img {
    transform: scale(1.05);
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(30, 41, 59, 0.95));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.showcase-overlay h4 {
    color: white !important;
    font-weight: 700 !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.6), 0 2px 10px rgba(0, 0, 0, 0.5) !important;
    margin-bottom: 0.5rem !important;
}

.showcase-overlay p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3) !important;
    margin-bottom: 0 !important;
}

.showcase-item:hover .showcase-overlay {
    transform: translateY(0);
}

/* Premium Content Sections */
.service-content {
    padding: 8rem 0;
    background: white;
}

.content-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 6rem auto;
}

.content-header h2 {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 2rem !important;
    position: relative;
}

.content-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    /* CHANGED: Blue to Red Gradient */
    background: linear-gradient(90deg, #3b82f6, #ef4444);
    border-radius: 2px;
}

.content-header .lead {
    font-size: clamp(1.125rem, 2vw, 1.25rem) !important;
    color: #64748b !important;
    line-height: 1.7 !important;
    margin-bottom: 0 !important;
}

/* Advanced Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-card-pro {
    background: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    /* CHANGED: Blue to Red Gradient */
    background: linear-gradient(90deg, #3b82f6, #ef4444);
}

.feature-card-pro:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

.feature-card-pro h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-bottom: 2rem !important;
}

.feature-list-pro {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list-pro li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
}

.feature-icon-pro {
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    /* CHANGED: Blue to Red Gradient */
    background: linear-gradient(135deg, #3b82f6, #ef4444);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.feature-icon-pro i {
    color: white;
    font-size: 0.75rem;
}

.feature-text-pro {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
}

/* Benefits Section */
.benefits-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-card-pro {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid #e2e8f0;
}

.benefit-card-pro:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.benefit-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /* CHANGED: Blue to Red Gradient */
    background: linear-gradient(135deg, #3b82f6, #ef4444);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.benefit-icon-large i {
    color: white;
    font-size: 2rem;
}

.benefit-card-pro h4 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-bottom: 1rem !important;
}

.benefit-card-pro p {
    font-size: 0.95rem !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

/* Call to Action Section */
.service-cta-pro {
    background: 
        linear-gradient(135deg, 
            rgba(15, 23, 42, 0.9) 0%, 
            rgba(30, 64, 175, 0.85) 50%, 
            rgba(59, 130, 246, 0.8) 100%);
    position: relative;
    overflow: hidden;
    padding: 8rem 0;
    text-align: center;
}

.service-cta-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        /* CHANGED: Replaced Purple with Red */
        radial-gradient(circle at 70% 60%, rgba(220, 38, 38, 0.15) 0%, transparent 50%);
}

.service-cta-pro .container {
    position: relative;
    z-index: 2;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.service-cta-pro h3 {
    font-size: clamp(2rem, 4vw, 2.5rem) !important;
    font-weight: 700 !important;
    color: white !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.service-cta-pro p {
    font-size: clamp(1rem, 2vw, 1.125rem) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6 !important;
    margin-bottom: 3rem !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    /* CHANGED: Blue to Red Gradient */
    background: linear-gradient(135deg, #3b82f6, #ef4444) !important;
    border: none !important;
    color: white !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3) !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.btn-cta-primary:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4) !important;
    color: white !important;
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-3px) scale(1.05) !important;
    color: white !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .service-hero {
        padding: 5rem 0 4rem 0;
    }
    
    .service-showcase,
    .service-content,
    .benefits-section {
        padding: 4rem 0;
    }
    
    .service-cta-pro {
        padding: 5rem 0;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .showcase-item img {
        height: 250px;
    }
    
    .showcase-item img[src*="hydraulicke_vyvazeni"] {
        height: 300px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-card-pro {
        padding: 2rem 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 300px;
    }
}