/* Reset a základné štýly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: #414042;
    background-color: #f9f7f7;
}

/* Navigácia */
.navbar {
    background-color: #f9f7f7;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    font-size: 1.5rem;
    font-weight: bold;
    color: #274082;
    text-decoration: none;
    transition: opacity 0.3s ease;
    align-items: center;
    margin-top: -0.5vw
}

.logo:hover {
    opacity: 0.9;
}

.logo-img {
    width: 96px;
}

.logo-text {
    margin-left: 8px;
    font-size: 2vh;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #274082;
    text-decoration: none;
    font-weight: 500;
}

.nav-links li {
    transition: transform 0.3s ease;
}

.nav-links li:hover {
    transform: translateY(-2px);
}

/* Hamburger menu */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #274082;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Hero sekcia */
.hero {
    background: linear-gradient(rgba(39, 64, 130, 0.5), rgba(39, 64, 130, 0.7)), url('images/cnc.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #f9f7f7;
    padding-top: 80px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #274082;
    color: #f9f7f7;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

@media (max-width: 768px) {
    .cta-button {
        display: none;
    }
}

.cta-button:hover {
    background-color: #1a2b57;
}

/* Sekcie */
section {
    padding: 5rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #414042;
}

/* Služby */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: #274082;
    margin-bottom: 1rem;
}

/* Produkty */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #414042;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.p-3 {
    border-top: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.arrow {
    
    width: 30%;
    height: auto;
    transition: transform 0.3s ease;

}

.product-image-arrow {
    position: relative;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-details {
    color: #f9f7f7;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border: 2px solid #f9f7f7;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.product-card:hover .view-details {
    background-color: #f9f7f7;
    color: #414042;
}

.product-card h3, .product-card p {
    padding: 1rem;
}

.product-card h3 {
    color: #414042;
    margin: 0;
}

.product-card p {
    color: #666;
    margin: 0;
}

/* Kontakt */
.contact-info, .contact-form {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    height: 100%;
}

.contact-person {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.contact-person-last {
    border-bottom: none;
    padding-bottom: none;
}

.contact-person h4 {
    color: #274082;
    font-weight: 600;
}

.contact-person-last h4 {
    color: #274082;
    font-weight: 600;
}

.contact-person p {
    color: #414042;
}

.company-info {
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.company-info h4 {
    color: #274082;
    font-weight: 600;
}

.company-info p {
    color: #414042;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: #274082;
    color: #f9f7f7;
    text-align: center;
    padding: 2rem 0;
}

/* Sekcia O nás */
.about {
    background-color: #f9f7f7;
}

.about-content {
    position: relative;
    min-height: 300px; /* Nastavte podľa potreby */
}

.about-content h3 {
    color: #274082;
    font-weight: 600;
}

.about-content p {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: #f9f7f7;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.about-content p.visible {
    opacity: 1;
    transform: translateY(0);
}

.position {
    display: flex;
}

.position h4 {
    padding-right: 5px;
}

.contact-form textarea {
    height: 440px;
    resize: vertical;
}

.submit-button {
    padding: 1rem;
    background-color: #274082;
    color: #f9f7f7;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #1a2b57;
    color: #f9f7f7;
}

/* Responzívny dizajn */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #f9f7f7;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .product-image {
        height: 150px;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .contact-info, .contact-form {
        margin-bottom: 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .about-content {
        padding: 2rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .contact-person {
        padding-bottom: 1rem;
    }
} 