:root {
    /* Základní barvy */
    --primary-color: #6eadff; /* RGB: 110, 173, 255 - modrá */
    --primary-dark: #3a85e0;
    --primary-light: #9dc4ff;
    --primary-lighter: #e6f0ff;
    
    /* Akcentová barva */
    --accent-color: #ff4b4b; /* RGB: 255, 75, 75 - červená */
    --accent-dark: #e03a3a;
    --accent-light: #ff8080;
    
    /* Neutrální barvy */
    --dark-color: #162447;
    --text-color: #333333;
    --light-color: #f5f7fa;
    --gray-color: #6c757d;
    --white-color: #ffffff;
    --black-color: #000000;
    
    /* Efekty */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.18);
    
    /* Přechody */
    --transition-fast: all 0.2s ease;
    --transition-medium: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Border radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
    --border-radius-full: 50%;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --gutter: 30px;
    
    /* Typografie */
    --font-family: 'Montserrat', sans-serif;
    --font-size-base: 16px;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Z-index */
    --z-back: -10;
    --z-normal: 1;
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-medium);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading h2 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--dark-color);
    margin-bottom: 20px;
    position: relative;
}

.separator {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: var(--border-radius-full);
}

.bg-light {
    background-color: var(--light-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    text-align: center;
    border-radius: var(--border-radius-md);
    transition: var(--transition-medium);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0, 0);
    transition: var(--transition-medium);
    border-radius: 100%;
}

.btn:hover::after {
    transform: scale(2, 2);
    opacity: 0;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    color: var(--white-color);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.secondary-btn {
    background-color: var(--accent-color);
    color: var(--white-color);
    border: 2px solid var(--accent-color);
}

.secondary-btn:hover {
    background-color: var(--accent-dark);
    color: var(--white-color);
    border-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.outline-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.outline-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    background-color: var(--white-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
    height: var(--header-height);
}

header.scrolled {
    height: 60px;
    box-shadow: var(--shadow-md);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    display: block;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    transition: var(--transition-medium);
}

nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 40px;
    position: relative;
}

.nav-menu li a {
    color: var(--dark-color);
    font-weight: var(--font-weight-medium);
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transition: var(--transition-medium);
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 10;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: var(--transition-medium);
}

/* Hero Section */
.hero {
    width: 100%;
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    background: linear-gradient(to right, var(--primary-lighter) 50%, var(--white-color) 50%);
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--gray-color);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.image-container {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-color);
    border-radius: var(--border-radius-md);
    z-index: -1;
}

.image-container img {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    transition: var(--transition-slow);
}

.image-container:hover img {
    transform: scale(1.05);
}

/* About Section */
.about-section {
    padding: 100px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    background-color: var(--primary-light);
    z-index: -1;
    border-radius: var(--border-radius-md);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-md);
    transition: var(--transition-medium);
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: var(--font-weight-bold);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray-color);
    font-size: 1.05rem;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white-color);
    padding: 40px 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-lighter);
    z-index: -1;
    transition: var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-lighter);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition-medium);
}

.service-card:hover .service-icon {
    background-color: var(--white-color);
    box-shadow: var(--shadow-sm);
}

.service-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: var(--font-weight-semibold);
    color: var(--dark-color);
}

.service-card p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    position: relative;
}

.service-link::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition-medium);
}

.service-link:hover::after {
    margin-left: 10px;
}

/* Projects Section */
.projects-section {
    padding: 100px 0;
    position: relative;
}

.project-slider {
    margin-bottom: 40px;
    position: relative;
}

.project-slide {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.project-image {
    height: 500px;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-slide:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: var(--white-color);
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.slider-nav button {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-full);
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-sm);
}

.slider-nav button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.slider-nav button i {
    font-size: 16px;
}

/* Articles Section */
.articles-section {
    padding: 100px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.article-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.article-image {
    height: 220px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 25px;
}

.article-date {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: var(--font-weight-medium);
}

.article-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--dark-color);
}

.article-content p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

.article-link {
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    position: relative;
    display: inline-flex;
    align-items: center;
}

.article-link::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition-medium);
}

.article-link:hover::after {
    margin-left: 10px;
}

.center-btn {
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
}

.footer-logo h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-logo p {
    opacity: 0.7;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--white-color);
    position: relative;
    padding-bottom: 15px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: var(--border-radius-full);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-medium);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact ul li i {
    margin-right: 15px;
    width: 20px;
    color: var(--primary-color);
}

.footer-contact ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-medium);
}

.footer-contact ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom a {
    color: var(--primary-color);
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
    z-index: var(--z-tooltip);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Media Queries */
@media (max-width: 1024px) {
    :root {
        --header-height: 70px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .about-content {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .hero {
        background: var(--white-color);
        padding-top: 100px;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        background-color: var(--white-color);
        transition: var(--transition-medium);
        z-index: calc(var(--z-fixed) - 1);
        justify-content: center;
        padding-top: 50px;
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-menu.active {
        top: 0;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin: 20px 0;
    }
    
    .nav-menu li a {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 24px;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .section-heading h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .about-text h3 {
        font-size: 1.7rem;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .project-image {
        height: 350px;
    }
    
    .project-info h3 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        gap: 30px;
    }
}