/* Base Styles */
:root {
    --primary-color: #3a3a3a;
    --secondary-color: #717171;
    --accent-color: #c0c0c0;
    --light-accent: #f5f5f5;
    --dark-accent: #505050;
    --white: #ffffff;
    --black: #1a1a1a;
    --gradient-metal: linear-gradient(135deg, #c0c0c0, #a0a0a0, #c0c0c0);
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --section-divider: 1px solid rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
    position: relative;
}

section:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--section-divider);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.primary-btn:hover {
    background-color: var(--dark-accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section Button Overrides */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.hero .btn {
    padding: 12px 24px;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero .primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.hero .secondary-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.hero .btn:hover {
    background-color: var(--dark-accent);
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Section Headers */
section h2 {
    font-size: 36px;
    font-weight: 600;
    color: var(--dark-accent);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

section h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

/* Header & Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
}

header .container {
    padding: 20px 0;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.logo img {
    max-height: 50px;
    transition: var(--transition);
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin: 0 15px;
}

.menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.menu a:hover {
    color: var(--gold);
}

.menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.menu a:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
}

.phone-number a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.phone-number a:hover {
    color: var(--gold);
}

/* Language Switcher */
.language-switch {
    display: flex;
    align-items: center;
    margin-left: 20px;
    z-index: 1000;
}

.lang-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 2px;
    overflow: hidden;
    width: 30px;
    height: 20px;
}

.lang-link:hover {
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.lang-link img {
    width: 30px;
    height: auto;
    object-fit: cover;
}

footer .language-switch {
    margin-left: 0;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: 15px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Scrolled Header */
header.scrolled {
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

header.scrolled .logo {
    color: var(--black);
}

header.scrolled .menu a {
    color: var(--black);
}

header.scrolled .phone-number a {
    color: var(--black);
}

header.scrolled .hamburger span {
    background-color: var(--black);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .menu li {
        margin: 0 10px;
    }
}

@media (max-width: 992px) {
    .phone-number {
        display: none;
    }
    
    .menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.9);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 999;
    }
    
    header.scrolled .menu {
        background-color: var(--white);
    }
    
    .menu.active {
        left: 0;
    }
    
    .menu li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    header .language-switch {
        margin-left: 0;
        margin-right: 15px;
    }
}

@media (max-width: 768px) {
    .header-content {
        position: relative;
    }
    
    .logo img {
        max-height: 40px;
    }
}

@media (max-width: 576px) {
    header .container {
        padding: 15px 10px;
    }
    
    .logo img {
        max-height: 35px;
    }
    
    .hamburger {
        margin-left: 10px;
    }
    
    .hamburger span {
        width: 22px;
    }
}

@media (max-width: 400px) {
    .logo img {
        max-height: 30px;
    }
    
    .lang-link {
        width: 25px;
        height: 16px;
    }
    
    .lang-link img {
        width: 25px;
    }
    
    .hamburger span {
        width: 20px;
        height: 2px;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    will-change: transform; /* Optimize for animations */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.8) 40%,
        rgba(0, 0, 0, 0.95) 100%
    );
    z-index: 1;
}

/* Alternativní verze s výraznějším vignette efektem - pro použití odkomentujte tuto verzi a zakomentujte výše uvedenou
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.5) 30%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 1;
}
*/

/* Třetí varianta s velmi výrazným kontrastem mezi středem a okraji
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 20%,
        rgba(0, 0, 0, 0.7) 40%,
        rgba(0, 0, 0, 0.95) 100%
    );
    z-index: 1;
}
*/

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeIn 1.5s ease forwards;
}

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

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h2 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 0 0 35%;
}

.portrait {
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    display: block;
    width: 100%;
}

.about-text {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.about-text h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-metal);
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 25px;
    line-height: 1.8;
}

.about-highlights {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.about-highlights .highlight-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.about-highlights .highlight-item::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 14px;
}

.about-highlights .highlight-title {
    font-weight: 600;
    color: var(--dark-accent);
}

.about-cta {
    font-weight: 500;
    font-size: 18px;
    color: var(--primary-color);
    margin: 30px 0 20px;
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin: 0 auto 30px;
        max-width: 400px;
        width: 100%;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
}

/* Services Section */
.services {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.services h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-accent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 22px;
}

.service-content p {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .service-image {
        height: 200px;
    }
}

/* Projects Section */
.projects {
    background-color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.project-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-info p {
    color: var(--secondary-color);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

.projects-more {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    font-size: 18px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.projects-more p {
    position: relative;
    padding: 0 5px;
    margin: 0;
    white-space: nowrap;
    line-height: 1.5;
}

.decorative-line {
    display: inline-block;
    width: 30px;
    height: 1px;
    background-color: var(--secondary-color);
    flex-shrink: 0;
}

/* Make the "A mnoho desítek dalších..." text responsive on mobile */
@media (max-width: 768px) {
    .projects-more {
        gap: 10px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 0 15px;
    }
    
    .projects-more p {
        font-size: 17px;
        white-space: normal;
        text-align: center;
        line-height: 1.4;
    }
    
    .decorative-line {
        width: 20px;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .projects-more {
        gap: 8px;
        padding: 0 10px;
    }
    
    .projects-more p {
        font-size: 16px;
        line-height: 1.3;
    }
    
    .decorative-line {
        width: 15px;
    }
}

@media (max-width: 360px) {
    .projects-more p {
        font-size: 15px;
    }
    
    .decorative-line {
        width: 12px;
    }
}

/* Reviews Section */
.reviews {
    background-color: #f9f9f9;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.review-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.review-author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.review-author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-author-info h4 {
    margin: 0 0 5px;
    font-size: 18px;
    color: var(--primary-color);
}

.review-stars {
    color: #FFD700;
    font-size: 14px;
}

.review-text {
    font-style: italic;
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.google-reviews {
    text-align: center;
    margin-top: 30px;
}

.google-reviews-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.google-reviews-link i {
    margin-right: 8px;
    font-size: 18px;
}

.google-reviews-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.reviews-header {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.google-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--white);
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.rating-stars {
    color: #FFD700;
    font-size: 24px;
    margin-bottom: 5px;
}

.rating-text {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-count {
    color: var(--secondary-color);
    font-size: 14px;
}

/* Responsive reviews */
@media (max-width: 992px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .review-card {
        padding: 30px 20px;
    }
    
    .review-author-img {
        width: 50px;
        height: 50px;
    }
    
    .review-author-info h4 {
        font-size: 16px;
    }
}

/* Historical Repairs Gallery Section */
.historical-gallery {
    background-color: var(--light-accent);
    padding: 80px 0;
}

.historical-gallery .section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.historical-gallery .section-intro h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.historical-gallery .section-intro p {
    color: var(--secondary-color);
    font-size: 16px;
    line-height: 1.7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
    height: 250px;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-footer {
    text-align: center;
    margin-top: 40px;
}

.gallery-footer p {
    font-style: italic;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    padding: 0 20px; 
    max-width: 100%; 
    box-sizing: border-box; 
    font-size: 18px;
    line-height: 1.5;
}

.gallery-footer p::before,
.gallery-footer p::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background-color: var(--secondary-color);
    vertical-align: middle;
    margin: 0 15px;
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .gallery-footer p {
        font-size: 17px;
    }
    
    .gallery-footer p::before,
    .gallery-footer p::after {
        width: 30px;
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .gallery-footer p {
        font-size: 16px;
        padding: 0 10px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .gallery-footer p::before,
    .gallery-footer p::after {
        width: 25px;
        margin: 0 8px;
        flex-shrink: 0;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .gallery-item {
        height: 180px;
    }
    
    .historical-gallery .section-intro h3 {
        font-size: 20px;
    }
    
    .gallery-footer p {
        font-size: 15px;
        white-space: normal;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
        line-height: 1.4;
        max-width: 85%;
    }
    
    .gallery-footer p::before,
    .gallery-footer p::after {
        width: 20px;
        margin: 0 6px;
    }
}

@media (max-width: 400px) {
    .gallery-footer p {
        max-width: 80%;
        font-size: 14px;
    }
    
    .gallery-footer p::before,
    .gallery-footer p::after {
        width: 15px;
        margin: 0 5px;
    }
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.contact-intro h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-intro p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.contact-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.contact-cta .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
}

.contact-cta .btn i {
    font-size: 20px;
}

.contact-content {
    display: flex;
    gap: 50px;
    margin-top: 30px;
}

.contact-info {
    flex: 1;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-metal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 20px;
    color: var(--black);
}

.contact-text {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.contact-text h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--secondary-color);
}

.contact-text a {
    color: var(--secondary-color);
    transition: var(--transition);
    display: inline-block;
    max-width: 100%;
}

.contact-text a:hover {
    color: var(--accent-color);
}

.contact-form {
    flex: 1;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-accent);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(192, 192, 192, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px 30px;
    width: 100%;
    max-width: 200px;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--dark-accent);
}

/* Form Status Messages */
.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    color: #2e7d32;
}

.form-status.error {
    display: block;
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid #F44336;
    color: #d32f2f;
}

@media (max-width: 992px) {
    .contact-content {
        flex-direction: column;
    }
    
    .contact-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
}

/* Additional responsive styles for contact section */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-item {
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Mobile Fixes */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    /* Ensure all content is properly contained */
    .container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    
    /* Ensure contact items don't overflow */
    .contact-item {
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-text {
        max-width: calc(100% - 70px); /* 50px icon + 20px margin */
    }
    
    /* Make sure all links wrap properly */
    a {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero h2 {
        font-size: 20px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    /* Fix for About section on smaller screens */
    .about-text h3 {
        white-space: nowrap; /* Keep "O mně" on a single line */
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .services-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .review-card {
        padding: 30px 20px;
    }
    
    /* Additional fixes for very small screens */
    .about-text h3 {
        font-size: 20px;
    }
    
    .logo {
        font-size: 20px;
    }
}

/* Animation Styles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Different animation styles for different elements */
.service-card.animate-on-scroll {
    transition-delay: calc(var(--card-index, 0) * 0.1s);
}

.project-card.animate-on-scroll {
    transition-delay: calc(var(--card-index, 0) * 0.1s);
}

.review-card.animate-on-scroll {
    transition-delay: calc(var(--card-index, 0) * 0.1s);
}

.about-text p.animate-on-scroll {
    transition-delay: 0.2s;
}

.about-highlights.animate-on-scroll {
    transition-delay: 0.4s;
}

.about-cta.animate-on-scroll {
    transition-delay: 0.6s;
}

section h2.animate-on-scroll {
    transform: translateY(-20px);
    transition-delay: 0.1s;
}

.footer-content.animate-on-scroll {
    transform: translateY(20px);
}

.footer-logo.animate-on-scroll {
    transition-delay: 0.1s;
}

.footer-links.animate-on-scroll {
    transition-delay: 0.2s;
}

.footer-bottom.animate-on-scroll {
    transition-delay: 0.3s;
}

.service-image.animate-on-scroll,
.project-image.animate-on-scroll {
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-content.animate-on-scroll,
.project-content.animate-on-scroll {
    transform: translateY(30px);
    transition-delay: 0.2s;
}

.contact-info.animate-on-scroll {
    transform: translateX(-30px);
}

.contact-form.animate-on-scroll {
    transform: translateX(30px);
}

.gallery-item.animate-on-scroll {
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-item.animate {
    transform: scale(1) !important;
}

/* Fade in animation for hero content */
.hero-content {
    animation: fadeIn 1.5s ease forwards;
}

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

/* Ensure animations don't run on mobile devices for better performance */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .hero-content {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.footer-content.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
}

.footer-logo {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.1s;
}

.footer-logo.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
}

.footer-logo h3 {
    font-size: 22px;
    margin-bottom: 5px;
    color: var(--white);
}

.footer-logo p {
    font-size: 14px;
    color: var(--accent-color);
}

.footer-links {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.2s;
}

.footer-links.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: var(--white);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.3s;
}

.footer-bottom.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--accent-color);
}

.footer-credits {
    margin-top: 15px;
    font-size: 14px;
    color: var(--accent-color);
    text-align: center;
}

.footer-credits a {
    color: var(--light-accent);
    transition: var(--transition);
}

.footer-credits a:hover {
    color: var(--white);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links ul {
        justify-content: center;
        margin-top: 15px;
    }
    
    .footer-links li {
        margin: 5px 10px;
    }
}

@media (max-width: 576px) {
    .footer-links ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links li {
        margin: 5px 0;
    }
}

/* ==========================================
   SERVICE PAGE STYLES
   ========================================== */

/* Service card link wrapper (homepage) */
a.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

a.service-card-link .service-card {
    cursor: pointer;
}

a.service-card-link:hover .service-card {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: var(--secondary-color);
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span.separator {
    margin: 0 8px;
    color: var(--accent-color);
}

.breadcrumb span.current {
    color: var(--primary-color);
    font-weight: 500;
}

/* Service Page Hero */
.service-hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    max-height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    margin-top: 0;
}

.service-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.service-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.service-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeIn 1s ease forwards;
}

.service-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-hero p {
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .service-hero {
        height: 40vh;
        min-height: 280px;
    }
    .service-hero h1 {
        font-size: 30px;
    }
    .service-hero p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .service-hero h1 {
        font-size: 24px;
    }
}

/* Service Page Content */
.service-content-section {
    padding: 60px 0;
    background-color: var(--white);
}

.service-content-section .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.service-content-section h2 {
    font-size: 28px;
    color: var(--dark-accent);
    margin-bottom: 20px;
    text-align: left;
}

.service-content-section h2:after {
    margin: 15px 0 0;
}

.service-content-section h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: 35px;
}

.service-content-section p {
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.service-content-section ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
}

.service-content-section ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--secondary-color);
    line-height: 1.6;
}

.service-content-section ul li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 14px;
}

/* Service CTA Section */
.service-cta {
    background-color: #f9f9f9;
    padding: 60px 0;
    text-align: center;
}

.service-cta h2 {
    margin-bottom: 15px;
}

.service-cta p {
    color: var(--secondary-color);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.service-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.service-cta .btn i {
    margin-right: 8px;
}

/* Related Services */
.related-services {
    padding: 60px 0;
    background-color: var(--white);
}

.related-services h2 {
    text-align: center;
    margin-bottom: 40px;
}

.related-services .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Expanded Footer with Service Links */
.footer-content-expanded {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-section p {
    font-size: 14px;
    color: var(--accent-color);
    line-height: 1.6;
}

.footer-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}

.footer-services-grid a {
    color: var(--accent-color);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 2px 0;
}

.footer-services-grid a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-section .contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    font-size: 14px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section .contact-link:hover {
    color: var(--white);
}

.footer-section .contact-link i {
    width: 20px;
    text-align: center;
}

@media (max-width: 992px) {
    .footer-content-expanded {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-content-expanded {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-services-grid {
        grid-template-columns: 1fr 1fr;
        justify-items: center;
    }
}

@media (max-width: 480px) {
    .footer-services-grid {
        grid-template-columns: 1fr;
    }
}

/* JSON-LD Schema won't affect display */
