/*
Theme Name: Stratera Theme
Author: Martin
Description: Custom theme for Stratera s.r.o.
Version: 2.0
*/

/* ============================================
   DESIGN SYSTEM - CSS VARIABLES
   ============================================ */

:root {
    /* Primary Colors */
    --primary-color: #00C4CC;
    --primary-dark: #00A3A9;
    --primary-light: #4DD9DD;
    --primary-gradient: linear-gradient(135deg, #00C4CC 0%, #00A3A9 100%);

    /* Secondary Colors */
    --secondary-color: #1a1a2e;
    --secondary-light: #16213e;

    /* Neutral Colors */
    --text-color: #333333;
    --text-muted: #6c757d;
    --white: #ffffff;
    --grey-light: #f8f9fa;
    --grey-medium: #e9ecef;
    --grey-dark: #343a40;

    /* Accent Colors */
    --accent-gold: #ffc107;
    --accent-success: #28a745;
    --accent-danger: #dc3545;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(0, 196, 204, 0.3);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(10px);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing */
    --section-padding: 100px;
    --container-max: 1200px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

/* ============================================
   ANIMATION KEYFRAMES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Animation utility classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 {
    transition-delay: 0.1s;
}

.animate-delay-2 {
    transition-delay: 0.2s;
}

.animate-delay-3 {
    transition-delay: 0.3s;
}

.animate-delay-4 {
    transition-delay: 0.4s;
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background: var(--white);
    padding: 15px 0;
    /* Standardized padding */
    border-bottom: 1px solid var(--grey-medium);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: all var(--transition-normal);
    will-change: padding, background-color, box-shadow;
    /* Optimize */
    transform: translateZ(0);
    /* Force GPU */
}

/* Fix for WP Admin Bar */
body.admin-bar header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }
}

header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    /* Slightly tighter */
    transition: margin var(--transition-normal);
}

.logo img {
    height: 55px;
    /* Slightly smaller default */
    transition: all var(--transition-normal);
    will-change: transform, height;
}

.logo:hover img {
    transform: scale(1.05);
}

.header-info {
    display: flex;
    gap: 25px;
    font-size: 14px;
    color: var(--text-muted);
}

.header-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-fast);
}

.header-info span:hover {
    color: var(--primary-color);
}

.header-info i {
    color: var(--primary-color);
    font-size: 16px;
}

/* Navigation */
nav {
    background: var(--secondary-color);
    padding: 0;
    position: relative;
    overflow: hidden;
}

nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 196, 204, 0.1), transparent);
    animation: shimmer 3s infinite;
}

nav ul,
nav .nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
    justify-content: center;
}

nav li {
    position: relative;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 15px 25px;
    display: block;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

nav a:hover::before,
nav li.current-menu-item a::before,
nav li.current_page_item a::before {
    width: 100%;
}

nav a:hover {
    color: var(--primary-color);
    background: rgba(0, 196, 204, 0.1);
}

nav li.current-menu-item a,
nav li.current_page_item a {
    color: var(--primary-color);
}

/* ============================================
   HERO SLIDER
   ============================================ */

.hero-slider {
    background: transparent !important;
    overflow: hidden;
    position: relative;
    height: 60vh;
    min-height: 450px;
    max-height: 700px;
}

.hero-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: transparent !important;
    /* No background bleed */
}

.hero-slide-bg {
    position: absolute;
    top: -15%;
    /* Buffer for parallax (15% up) */
    left: 0;
    width: 100%;
    height: 130%;
    /* Extra height (15% up + 15% down = 30% extra) */
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
    backface-visibility: hidden;
    /* Prevent flickering */
    transform: translate3d(0, 0, 0);
    /* Initial state */
    filter: none !important;
    mix-blend-mode: normal !important;
}

.hero-slide::before,
.hero-slide::after {
    display: none !important;
    /* Completely kill pseudo-overlays */
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    /* Stronger text shadow for readability on un-dimmed images */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-description p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    /* Stronger text shadow for readability */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin: 0 auto;
    opacity: 1;
}

/* Swiper Enhancements */
.swiper-button-next,
.swiper-button-prev {
    color: var(--white) !important;
    background: rgba(0, 196, 204, 0.3);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: all var(--transition-normal);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all var(--transition-normal);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    width: 30px;
    border-radius: 6px;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   SECTION STYLES
   ============================================ */

.intro-section {
    padding: var(--section-padding) 0;
    background: var(--white);
    text-align: center;
}

.intro-section h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    color: var(--secondary-color);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 20px auto 0;
    border-radius: 2px;
}

.services,
.projects-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--grey-light) 0%, var(--white) 100%);
}

.about-section,
.career-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.9;
}

.section-content.text-center {
    text-align: center;
}

.section-intro {
    max-width: 800px;
    margin: -40px auto 50px;
    font-size: 1.15rem;
    color: var(--text-muted);
    text-align: center;
}

/* ============================================
   UNIFIED CARD COMPONENT
   ============================================ */

.card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-slow);
    border: 1px solid transparent;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 196, 204, 0.2);
}

.card:hover::before {
    opacity: 1;
}

/* ============================================
   SERVICE CARDS
   ============================================ */

.email-highlight {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    transition: all var(--transition-normal);
}

.email-highlight:hover {
    color: var(--primary-dark) !important;
    text-decoration: none !important;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-grid>p,
.service-grid>br {
    display: none !important;
}

.service-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Gradient border effect on hover - same as servis-item */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 2px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.service-card p,
.service-card ul {
    position: relative;
    z-index: 1;
}

/* ============================================
   VALUES GRID (Unified with Service Cards)
   ============================================ */

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.values-grid>p,
.values-grid>br {
    display: none !important;
}

.value-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-slow);
}

/* Gradient border effect on hover - same as servis-item */
.value-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 2px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.value-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.value-item:hover::after {
    opacity: 1;
}

.value-item h4 {
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.value-item p {
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* ============================================
   PROJECT CARDS
   ============================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-item {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    border: 1px solid transparent;
}

.project-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 196, 204, 0.2);
}

.project-item a {
    text-decoration: none;
    color: inherit;
}

.project-thumbnail {
    height: 250px;
    background: var(--grey-light);
    overflow: hidden;
    position: relative;
}

.project-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-item:hover .project-thumbnail::before {
    opacity: 1;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item:hover .project-thumbnail img {
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
    background: var(--white);
    position: relative;
}

.project-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.project-item:hover .project-info::before {
    transform: scaleX(1);
}

.project-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--grey-light) 0%, var(--grey-medium) 100%);
}

/* ============================================
   SERVIS ARCHIVE STYLES
   ============================================ */

.servis-archive {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--grey-light) 0%, var(--white) 100%);
    min-height: 70vh;
}

.servis-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    margin-top: 50px;
}

.servis-item {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    border: 1px solid transparent;
    position: relative;
}

.servis-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 2px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.servis-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.servis-item:hover::after {
    opacity: 1;
}

.servis-header {
    padding: 22px 28px;
    background: linear-gradient(135deg, var(--grey-light) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--grey-medium);
    transition: all var(--transition-normal);
}

.servis-item:hover .servis-header {
    background: linear-gradient(135deg, rgba(0, 196, 204, 0.05) 0%, var(--white) 100%);
}

.servis-header h3 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.servis-thumbnail {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.servis-thumbnail a {
    display: block;
    height: 100%;
}

.servis-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.servis-item:hover .servis-thumbnail img {
    transform: scale(1.1);
}

.servis-thumbnail::before,
.servis-thumbnail::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    background: none !important;
    /* Completely remove any color overlay and icons on hover */
}

.servis-item:hover .servis-thumbnail::before,
.servis-item:hover .servis-thumbnail::after {
    display: none !important;
    opacity: 0 !important;
}

.servis-content {
    padding: 22px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.servis-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

.servis-description p {
    margin: 0 0 8px 0 !important;
}

.servis-description br {
    display: none !important;
}

.servis-description ul {
    list-style: none;
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
}

.servis-description li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 4px !important;
    line-height: 1.4;
}

.servis-description li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary-gradient);
    border-radius: 50%;
}

.servis-description strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.servis-year {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--grey-medium);
}

.servis-year::before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 2px;
    background: var(--primary-gradient);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    padding: 80px 0;
}

.contact-person {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid transparent;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.contact-person::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition-slow);
}

.contact-person:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 196, 204, 0.2);
}

.contact-person:hover::before {
    transform: scaleY(1);
}

.contact-person a {
    color: var(--primary-color);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.contact-person a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.map-container {
    margin-top: 40px;
    width: 100%;
    position: relative;
    padding-bottom: 50%;
    height: 0;
    background: var(--grey-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.button-link,
.back-to-projects,
a.button-link {
    display: inline-block;
    padding: 14px 35px;
    background: var(--primary-gradient);
    color: var(--white) !important;
    text-decoration: none !important;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.button-link::before,
.back-to-projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.button-link:hover::before,
.back-to-projects:hover::before {
    left: 100%;
}

.button-link:hover,
.back-to-projects:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

/* ============================================
   PAGE & SINGLE POST STYLES
   ============================================ */

.page-content,
.single-project,
.projects-archive,
.servis-archive {
    padding: 80px 0;
    min-height: 60vh;
    position: relative;
    z-index: 10;
}

.entry-title,
.project-title,
.page-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--secondary-color);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.entry-title::after,
.project-title::after,
.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 20px auto 0;
    border-radius: 2px;
}

.project-meta-box {
    max-width: 900px;
    margin: 0 auto 30px;
    background: var(--grey-light);
    padding: 25px 35px;
    border-radius: var(--radius-md);
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.meta-value {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

@media (max-width: 600px) {
    .project-meta-box {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
}

.entry-content,
.project-content {
    max-width: 900px;
    margin: 0 auto 50px;
    line-height: 1.9;
}

/* ============================================
   GALLERY STYLES
   ============================================ */

.project-gallery {
    margin-top: 70px;
}

.gallery-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 196, 204, 0.5) 0%, rgba(0, 163, 169, 0.5) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
    pointer-events: none;
    /* Důležité: Umožní prokliknutí skrz overlay */
}

.gallery-item:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item a {
    display: block;
    /* Odkaz musí být block */
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.project-footer {
    margin-top: 70px;
    text-align: center;
}

/* ============================================
   HOME ABOUT SECTION
   ============================================ */

.home-about {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    border: 1px solid transparent;
    position: relative;
    max-width: 1000px;
    margin: 0 auto 50px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.home-about::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 2px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.home-about:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.home-about:hover::after {
    opacity: 1;
}

/* Base card behavior before the after-border kicks in */
.home-about::before {
    display: none;
}

.home-about:hover::before {
    transform: scaleY(1);
}

.home-about h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

.home-about p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Decorative gradient removed to match clean tile style */

/* Content padding inside home-about card */
.home-about .servis-content {
    padding: 40px;
}

.home-about .servis-content h1 {
    color: var(--secondary-color);
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin-bottom: 15px;
    text-align: center;
}

.home-about .servis-content h2 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.home-about .servis-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: center;
}

.home-about .servis-content p:last-child {
    margin-bottom: 0;
}

.hero-text {
    margin-bottom: 60px;
}

.intro-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* ============================================
   CAREER SECTION (UNIFIED)
   ============================================ */

/* Symetrical button positioning - centered with equal spacing */
.home-button-wrap {
    margin: 40px auto;
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.career-item {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid transparent;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.career-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition-slow);
}

.career-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: rgba(0, 196, 204, 0.2);
}

.career-item:hover::before {
    transform: scaleY(1);
}

.career-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
}

.career-item p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.career-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 196, 204, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300C4CC' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

footer p {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
}

footer p:last-child {
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
    .servis-list {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .header-info {
        display: none;
    }

    nav ul,
    nav .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        padding: 12px 15px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .header-top {
        justify-content: center;
    }

    .hero-slider {
        height: 50vh;
        min-height: 350px;
    }

    .service-grid,
    .values-grid,
    .projects-grid,
    .career-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .servis-thumbnail {
        height: 200px;
    }

    .project-thumbnail {
        height: 200px;
    }

    nav a {
        padding: 10px 12px;
        font-size: 11px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mt-4 {
    margin-top: 40px;
}

.mt-5 {
    margin-top: 50px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.mb-4 {
    margin-bottom: 40px;
}

.mb-5 {
    margin-bottom: 50px;
}

.py-1 {
    padding-top: 10px;
    padding-bottom: 10px;
}

.py-2 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.py-3 {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* Hide empty elements */
.entry-content>p:empty,
.project-content>p:empty,
.section-content>p:empty {
    display: none !important;
}