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

:root {
    --maxone-red: #E30613;
    --maxone-black: #1a1a1a;
    --danfoss-red: #e02b1d;
    --light-gray: #f5f5f5;
    --medium-gray: #666;
    --dark-gray: #333;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--maxone-red);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--maxone-red);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--maxone-red);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.9) 0%, rgba(224, 43, 29, 0.85) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%231a1a1a" width="1200" height="600"/><circle cx="200" cy="150" r="80" fill="%23333" opacity="0.3"/><circle cx="800" cy="400" r="120" fill="%23333" opacity="0.2"/><circle cx="1000" cy="200" r="60" fill="%23333" opacity="0.25"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--maxone-red);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: var(--light-gray);
}

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

/* Section Styles */
section {
    padding: 5rem 2rem;
}

.section-light {
    background: white;
}

.section-dark {
    background: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--maxone-black);
    margin-bottom: 1rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--maxone-red);
    margin: 1rem auto;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--medium-gray);
    margin-bottom: 3rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--maxone-red) 0%, var(--danfoss-red) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.service-card h3 {
    color: var(--maxone-black);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content h3 {
    color: var(--maxone-red);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.partner-badge {
    display: inline-block;
    margin-top: 2rem;
}

.partner-badge img {
    max-width: 350px;
    width: 100%;
    height: auto;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
    background: #e0e0e0;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

/* Hidden gallery items */
.hidden-gallery-item {
    display: none;
}

.hidden-gallery-item.show {
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.7) 0%, rgba(224, 43, 29, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--medium-gray);
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--maxone-red) 0%, var(--danfoss-red) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(227, 6, 19, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(227, 6, 19, 0.4);
}

.load-more-btn:active {
    transform: translateY(-1px);
}

.load-more-btn.hidden {
    display: none;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-box {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
}

.contact-box.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(227, 6, 19, 0.15);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--maxone-red) 0%, var(--danfoss-red) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.contact-box h4 {
    color: var(--maxone-black);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-box p,
.contact-box a {
    color: var(--dark-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.contact-box a:hover {
    color: var(--maxone-red);
}

/* Footer */
footer {
    background: var(--maxone-black);
    color: white;
    padding: 2rem 2rem 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom {
    text-align: center;
    color: #888;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        height: 500px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(30px);
}

.loading.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* Simple Lightbox */
.simple-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.simple-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    cursor: default;
}

.simple-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.simple-close:hover {
    color: var(--maxone-red);
}

/* Navigation arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 40px;
    padding: 20px 15px;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.lightbox-nav:hover {
    background: var(--maxone-red);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .simple-lightbox img {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .simple-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
    
    .lightbox-nav {
        font-size: 30px;
        padding: 15px 10px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}/* ============================================================================
   PARTNERS CAROUSEL SECTION
   ============================================================================ */

.partners-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 3rem auto 2rem;
    padding: 0 60px;
}

.partners-carousel {
    overflow: hidden;
    width: 100%;
}

.partners-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
}

/* Partner Card */
.partner-card {
    min-width: calc(25% - 1.5rem); /* 4 karty na desktop */
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInCard 0.6s ease-out forwards;
}

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

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(227, 6, 19, 0.15);
}

.partner-logo {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-card h4 {
    color: var(--maxone-black);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* Navigation Arrows */
.partners-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners-nav:hover {
    background: var(--maxone-red);
    transform: translateY(-50%) scale(1.1);
}

.partners-prev {
    left: 0;
}

.partners-next {
    right: 0;
}

/* Carousel Dots */
.partners-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.partner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.partner-dot:hover {
    background: #999;
}

.partner-dot.active {
    background: var(--maxone-red);
    width: 30px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .partner-card {
        min-width: calc(33.333% - 1.34rem); /* 3 karty na tablet */
    }
}

@media (max-width: 768px) {
    .partners-carousel-wrapper {
        padding: 0 50px;
    }

    .partner-card {
        min-width: calc(50% - 1rem); /* 2 karty na mobile */
    }

    .partners-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .partners-prev {
        left: 5px;
    }

    .partners-next {
        right: 5px;
    }

    .partner-logo {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .partner-card {
        min-width: 100%; /* 1 karta na malých mobiloch */
    }

    .partners-carousel-wrapper {
        padding: 0 45px;
    }

    .partners-nav {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .partner-card h4 {
        font-size: 0.9rem;
    }
}

/* Loading Animation for Partner Cards */
.partner-card:nth-child(1) { animation-delay: 0.1s; }
.partner-card:nth-child(2) { animation-delay: 0.2s; }
.partner-card:nth-child(3) { animation-delay: 0.3s; }
.partner-card:nth-child(4) { animation-delay: 0.4s; }
.partner-card:nth-child(5) { animation-delay: 0.5s; }
.partner-card:nth-child(6) { animation-delay: 0.6s; }
.partner-card:nth-child(7) { animation-delay: 0.7s; }
.partner-card:nth-child(8) { animation-delay: 0.8s; }

/* ============================================================================
   PARALLAX SECTION
   Pridaj tento kód na koniec style.css
   ============================================================================ */

.parallax-section {
    position: relative;
    height: 500px;
    background-image: url('./images/parallax-bg.jpg');
    background-attachment: fixed;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Tmavý overlay pre lepšiu čitateľnosť textu */
.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(227, 6, 19, 0.85) 0%, 
        rgba(26, 26, 26, 0.85) 100%
    );
    z-index: 1;
}

/* Obsah parallax sekcie */
.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.parallax-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.parallax-text {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.parallax-button {
    display: inline-block;
    background: white;
    color: var(--maxone-red);
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.parallax-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    background: var(--light-gray);
}

/* Responzívny dizajn */
@media (max-width: 768px) {
    .parallax-section {
        height: 400px;
        background-attachment: scroll; /* Vypne parallax na mobile kvôli výkonu */
    }

    .parallax-title {
        font-size: 2rem;
    }

    .parallax-text {
        font-size: 1.1rem;
    }

    .parallax-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .parallax-section {
        height: 350px;
    }

    .parallax-title {
        font-size: 1.75rem;
    }

    .parallax-text {
        font-size: 1rem;
    }
}

/* Animácia pre parallax content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
