/* General Styles */
body,
html {
    margin: 0;
    padding: 0;
    font-family: Roboto, Verdana, Geneva, Tahoma, sans-serif;
    box-sizing: border-box;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Navigation Bar */
nav {
    background-color: transparent; /* Initially transparent */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease-in-out; /* Smooth transition */
}

.scrolled {
    background-color: rgba(0, 43, 73, 0.9); /* Semi-transparent navy blue */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); /* Optional: Adds a subtle shadow */
}

nav .logo a {
    margin-left: 75px;
} 

/* nav .logo a {
    margin-left: 50px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0s linear 0.6s;
} 

.scrolled .logo a {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease-in-out;
} */




nav ul {
    list-style: none;
    margin-right: 50px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin: 0 50px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    display: block;
    margin: 5px 0 5px 0;
    font-family: Roboto, Verdana, Geneva, Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.3;
    font-weight: bold;
    position: relative;
    z-index: 1;
    text-align: center;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, white 50%, #fff 50%);
    background-size: 200% 100%;
    background-position: -100%;
    transition: all 0.3s ease-in-out;

}

nav ul li a:before {
    display: block;
    content: "";
    width: 0;
    height: 3px;
    bottom: -3px;
    left: 0;
    z-index: 0;
    position: absolute;
    background: white;
    transition: all 0.5s ease-in-out;
}

nav ul li a:hover {
    background-position: 0%;
}

nav ul li a:hover:before {
    width: 100%;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    background-color: white;
    border-radius: -20px;
    height: 3px;
    margin: 4px 30px 4px 0;
    width: 30px;
}

/* #section1 {
    position: relative;
    padding-top: 372px;
    overflow: hidden;
    background: url('Photos/background_photo.jpg') no-repeat center center;
    background-size: cover;
} */

#section1 {
    background-image: url("Photos/background_photo.jpg");
    background-size: cover;
    background-position: center top;
    padding-top: 474px;
    
}

#section2 h2 {
    font-size: 2.4em !important;
    color: #002b49;
    margin: 50px 0 100px 0 !important;
}

/* #section1 video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: cover;
} */

.logo2 {
    width: 600px;
    max-width: 350px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: -450px;
}

h1{
    color: white;
    font-size: 2.2em;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 25px 10px 25px;
}

.more {
    font-weight: bold;
    color: white;
    padding: 0;
    font-size: 1.3em;
    border: none;
    border-radius: 36px;
    margin-top: 10px;
    display: inline-block;
}

.more a {
    color: white;
    text-decoration: none;
    display: inline-block;
    border: 3px solid white;
    padding: 10px 30px 10px 30px;
    margin: 0;
    border-radius: inherit;
    transition: ease-in-out 0.3s;
}

.more a:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Content Sections */
.content {
    padding: 100px 20px; /* Added padding to avoid overlap with fixed navbar */
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f4f4f4;
}

#section2 {
    background-color: white;
    display: inline-block;
    min-height: fit-content;
}

.about-container {
    display: flex;
    align-items: flex-start; /* Zabezpečí, že všetky stĺpce sa začnú od hornej časti */
    justify-content: center;
    text-align: justify;
    margin-top: 100px;
}

.about-text {
    width: 33%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Začneme od začiatku, nie od stredu */
}

.about-text p {
    font-size: 1.2em;
    line-height: 1.5em;
    margin: 0 50px 0 50px !important;
}

.about-text.left {
    align-items: flex-end;
    text-align: right;
}

.about-text.right {
    align-items: flex-start;
    text-align: left;
}

.about-text h3 {
    font-size: 25px;
    margin-right: 50px;
    margin-top: 0;
    color: #002b49;
}

.about-image {
    width: 15%;
    text-align: center;
    align-self: flex-start; /* Zabezpečí, že obrázok bude vyrovnaný na začiatok */
}

.about-image img {
    width: 100%;
    height: auto;
    margin-bottom: 50px;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    margin-left: 50px;
    background-color: #00c1d4; /* Modrá farba */
    color: white;
    text-align: center;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 36px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.btn:hover {
    background-color: #00abbc; /* Tmavšia modrá pri hover */
}


/* Icon Container */
.icons-container {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Zarovná ikonky a texty hore */
}

/* Ikona a text */
.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition:
    transform 0.5s ease,
    opacity 0.5s ease;
    -webkit-transition: transform 0.5s ease; /* Safari a Chrome */
    -moz-transition: transform 0.5s ease;    /* Firefox */
    -o-transition: transform 0.5s ease;      /* Opera */        
}

/* Obrázok v ikone */
.icon-box img {
    width: 100px; /* Nastavte šírku obrázka */
    height: 100px; /* Pevná výška pre všetky obrázky */
    object-fit: contain; /* Udržuje proporcie obrázka */
}

/* Text pod ikonou */
.icon-box p {
    font-size: 16px;
    font-weight: bold;
    width: 100%; /* Zabezpečí rovnakú šírku textov */
    text-align: center; /* Zarovná text na stred */
    color: #4b4b4b !important;
}

/* Animácia pri hover */
.icon-box:hover {
    transform: scale(1.2);  /* Zväčšenie ikony pri hoveri */
    transition: transform 0.3s ease; /* Plynulý prechod pri hover */
}

/* Animácia pri zobrazení pri skrolovaní (viditeľné) */
.icons-container.visible .icon-box {
    opacity: 1;
    transform: translateY(0); /* Presunutie na pôvodnú pozíciu */
}

/* oneskorenie pri každom dieťati */
.icon-box:nth-child(1) {
    transition-delay: 0.05s;
}
.icon-box:nth-child(2) {
    transition-delay: 0.1s;
}
.icon-box:nth-child(3) {
    transition-delay: 0.15s;
}
.icon-box:nth-child(4) {
    transition-delay: 0.2s;
}
.icon-box:nth-child(5) {
    transition-delay: 0.25s;
}


#section2 p {
    color: #4b4b4b;
    margin: 50px 50px 50px 50px;
}

#section3 {
    background-color: #f3f3f3;
    min-height: fit-content;
    display: block;
    padding-top: 100px;
    background-image: url("Photos/background_photo_top.jpg");
    background-position: center top;
    background-repeat: no-repeat;
}

#more-contact {
    font-size: 2.4em;
    margin-bottom: -150px !important;
    color: #002b49;
}

#section4 {
    background-color: #002b49;
    justify-content: center;
    align-items: center;
    display: block;
    height: fit-content;
    padding-bottom: 132px;
    background-image: url("Photos/background_photo_form.jpg");
    background-position: center top;
    background-repeat: no-repeat;
    padding-top: 180px;
    
}

p {
    font-size: 1.5em;
}

/* Responsive Styles */

@media (max-width: 900px) {
    .about-container {
        display: flex;
        flex-direction: column;
        align-items: center; /* CENTRUJE VŠETKO HORIZONTÁLNE */
        justify-content: center; /* CENTRUJE VŠETKO VERTIKÁLNE */
        text-align: center; /* CENTRUJE TEXT */
        margin-top: 100px;
        width: 100%;
    }

    .about-text {
        width: 100%;
        max-width: 700px;
        text-align: center;
        margin-bottom: 20px;
    }

    .about-text h3 {
        font-size: 26px;
        font-weight: bold;
        color: #002b49;
        margin: 0 auto 20px auto;
    }

    .about-text p {
        font-size: 18px;
        line-height: 1.6;
        color: #333 !important;
        margin: 0 !important;
        text-align: center; /* TEXT NA STRED */
    }

    .about-image {
        width: 100%;
        max-width: 400px;
        justify-content: center; /* CENTRUJE OBRÁZOK HORIZONTÁLNE */
        align-items: center; /* CENTRUJE OBRÁZOK VERTIKÁLNE */
        margin: 5px auto 35px auto;
    }

    .about-image img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0;
        
    }

    .btn {
        margin-top: 30px;
        background-color: #00c1d4;
        color: white;
        text-decoration: none;
        font-size: 1.1em;
        border: none;
        border-radius: 36px;
        text-align: center;
        padding: 10px 20px;
        margin-left: auto;
        margin-right: auto; /* TLAČIDLO NA STRED */
        margin-bottom: -25px;
        
    }

    /* Icon Container - mobilná verzia */
    .icons-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .icon-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 200px;
    }

    .icon-box img {
        width: 120px;
        height: 120px;
        object-fit: contain;
    }

    .icon-box p {
        font-size: 16px;
        font-weight: bold;
        color: #4b4b4b;
    }

.logo2 {
    margin-top: -425px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: none !important;
}
    
    h1{
    color: white;
    font-size: 2em;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 25px 10px 25px;
    margin-top: -450px;
        margin-bottom: 50px;
}
}


@media (max-width: 900px) {
    nav {
        padding: 15px 0 15px 0 !important;
        background-color: rgba(0, 43, 73, 0.9); /* Initially transparent */
    }

    nav ul {
        display: flex; /* Po otvorení bude menu flexibilné */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60.5px;
        left: 0;
        background-color: rgba(0, 43, 73, 0.9);
        margin-top: 20px;
        margin-bottom: 20px;
        max-height: 0; /* Na začiatku je skryté */
        overflow: hidden; /* Skrýva obsah */
        transition: max-height 0.4s ease-in-out; /* Plynulý prechod len pre max-height */
    }

    nav ul.show {
        max-height: 500px; /* Nastav max-height, ktoré bude dostatočne veľké na zobrazenie menu */
    }

    nav ul li {
        margin: 10px 0;
        padding-bottom: 10px;
        padding-top: 10px;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    nav .logo a {
        margin-left: 20px;
    }

    .logo2 {
        width: 600px;
        max-width: 300px;
        display: block;
        margin-left: 50px;
        margin-right: 50px;
        margin-top: -350px;
    }
}


footer {
    background-color: white;
    color: #4b4b4b;
    text-align: center;
    padding: 0 0 100px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p{
    font-size: 0.9em;
    margin: 0 51px;
}

/* Contact Form Styles */

#contact-form {
    width: 100%;
    max-width: 1200px; /* Set maximum width of the form */
    margin: 0 auto; /* Center the form horizontally */
    background-color: #002b49;
    border-radius: 8px;
    font-family: inherit;
}

#contact-form .form-group {
    margin-bottom: 33px;
}

#contact-form label {
    display: none; /* Hide the label but keep it for accessibility */
}

#contact-form input,
#contact-form textarea {
    width: 95%;
    padding: 10px 0 10px 0;
    font-size: 18px;
    border: none;
    border-bottom: 2px solid #fff;
    background: none;
    color: white;
    outline: none;
    transition: border-color 0.3s ease-in-out;
    font-family: Roboto, Verdana, Geneva, Tahoma, sans-serif;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: white;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-bottom: 2px solid #00c1d4;
}

#contact-form button {
    background-color: #00c1d4;
    color: white;
    padding: 10px 20px;
    font-size: 1.2em;
    border: none;
    border-radius: 36px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 110px; /* Full-width button to match the input fields */
}

#contact-form button:hover {
    background-color: #00abbc;
}

.form-group {
    margin-bottom: 15px;
}

/* Align checkbox and text in the same row */

.checkbox-group #agree {
    width: 10%;
}

.checkbox-group {
    /* Inline Flexbox to keep everything in one line */
    display: flex;
    align-items: center; /* Align items vertically */
    gap: 25px; /* Space between checkbox and label */
    justify-content: center; /* Center the items horizontally */
    margin-top: 50px;
}

/* Label and paragraph style adjustments */
.checkbox-group label,
.checkbox-group p {
    margin: 0; /* Remove any default margin */
    font-size: 1em; /* Adjust the text size */
    color: #ffffff; /* Gray color for better contrast */
}

/* Checkbox styles */
.checkbox-group input[type="checkbox"] {
    margin: 0; /* Remove any default margin from checkbox */
    width: 15px !important;
    height: 15px !important;
}

.checkbox-group a {
    color: #00c1d4; /* Gray color for better contrast */
}

/* New Section Styles */

#section5 {
    background-color: white;
    display: flex;
    justify-content: center; /* Center the content horizontally */
    align-items: flex-start;
    text-align: center; /* Center the text inside each column */
    margin: auto; /* Center the section itself */
    min-height: fit-content;
    max-width: 1200px;
}

#section5 .info-column {
    flex: 1;
    padding: 0 0; /* Add padding to create space around content */
    position: relative; /* Ensure that pseudo-elements are positioned relative to the column */
}

#section5 .info-column:not(:last-child):after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100px;
    background-color: #00c1d4;
    margin-top: 30px;
}

#section5 h2 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #00c1d4;
}

#section5 p {
    font-weight: 400;
    font-size: 1.1em;
    margin: 15px 0;
    color: #4b4b4b;
}

#section5 a {
    color: #00c1d4;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

/* Responsive Styles */

@media (max-width: 900px) {
    #section5 {
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-left: none; /* Remove border on mobile */
        border-right: none; /* Remove border on mobile */
        padding-top: 50px;
    }

    #section5 .info-column:after {
        display: none; /* Remove vertical lines on mobile */
    }
    
    #section5 h2 {
    margin-top: 50px;
}
}

/* Styles for Image Sections */

#section2-1 .image-section {
    margin-bottom: 50px;
    text-align: center;
}

#section2-1 .image-block img {
    width: 25%;
    max-width: 600px;
}

#section2-1 .text-block {
    margin-top: 20px;
}

#section2-1 .text-block p {
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #333;
}

#section2-1 .text-block .more-text {
    display: none;
    margin-top: -10px;
}

#section2-1 .text-block button {
    background-color: #00c1d4;
    color: white;
    padding: 10px 20px;
    font-size: 1.2em;
    border: none;
    border-radius: 36px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

#section2-1 .text-block button:hover {
    background-color: #00abbc;
}

@media (max-width: 900px) {
    #section2-1 .image-block img {
        width: 70%;
        margin-bottom: 15px;
    }

    #section2-1 .text-block {
        margin-top: 30px;
    }

    #section2 p {
        color: white;
        margin: 5px 5px 5px 5px;
    }
}

/* Hide sections initially */
.section {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 1s ease-out,
        transform 1s ease-out;
}

/* When the section is visible, apply the animation */
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section with the 'More' Button */
#section2-1 .text-block {
    margin-top: 20px;
    text-align: center; /* Center content horizontally */
}

/* Center the 'More' Button */
#section2-1 .text-block button {
    background-color: #38afb9;
    color: white;
    padding: 10px 20px;
    font-size: 1.2em;
    border: none;
    border-radius: 36px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    margin: 20px auto 0 auto; /* Center the button horizontally */
    display: block; /* Ensure the button is a block element for centering */
}

#section2-1 .text-block button:hover {
    background-color: #00abbc;
}

@media (max-width: 900px) {
    #contact-form {
        width: 90%; /* Allow form to take 90% of the screen width on smaller devices */
    }
}

@media (max-width: 1200px) {
    nav ul li {
        margin: 0 22px;
        position: relative;

    }
    
    nav { 
        padding: 0;

    }
    
}

/* Common Styles */
.more-text {
    display: none;
}

#services-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service {
    display: flex;
    align-items: center;
    gap: 20px;
}

.service-image {
    margin-right: 50px;
    margin-left: 150px;
}

.service-image img,
.service-image-reversed img {
    width: 100%;
    height: auto;
    display: block;
}

.service-content {
    flex: 2;
    text-align: left;
    margin-top: -20px;
}

.service-title {
    font-size: 1.7em;
    margin-bottom: 20px;
    margin-top: 135px;
    color: #002b49;
}

.service-description {
    font-size: 1.2em;
    color: #4b4b4b;
    margin-right: 150px;
    margin-top: 0;
    margin-bottom: 0;
}

.show-more-btn {
    background-color: #00c1d4;
    color: white;
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 36px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    margin-bottom: 100px !important;
    margin-top: 25px !important;
    
}

.show-more-btn:hover {
    background-color: #00abbc;
}

/* Reversed Layout */
.service-reversed {
    flex-direction: row-reverse;
}

.service-image-reversed {
    margin-right: 150px;
    margin-left: 50px;
}

.service-content-reversed {
    text-align: right;
    margin-right: -38;
    margin-left: auto;
}

.service-description-reversed {
    font-size: 1.2em;
    color: #4b4b4b;
    margin-left: 150px;
    margin-top: 0;
    margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .service,
    .service-reversed {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .service-image,
    .service-image-reversed {
        margin: 0 auto 20px auto;
    }

    .service-image img,
    .service-image-reversed img {
        width: 100%;
        height: auto;
        display: block;
    }

    .service-content,
    .service-content-reversed {
        display: block;
        margin: 0 auto;
        text-align: center;
    }

    .service-description,
    .service-description-reversed {
        margin: 0 auto 20px auto;
    }

    .show-more-btn,
    .show-more-btn-reversed {
        display: block;
        margin-bottom: 90px !important;
    }
    .service-description,
    .service-description-reversed {
        margin-top: -20px;
    }
}

#more-contact {
    text-align: center;
    margin: 100px 0 -100px -0;
    color: #002b49;
    font-size: 0.7em;
}

@media (max-width: 900px) {
    #more-contact {
        text-align: center;
        margin-top: 50px;
    }

.show-more-btn {
    margin:40px auto 40px !important;
}
    
.service-title {
    margin-top: 10px;
    margin-bottom: 50px
}
}

.gdpr h2 {
    color: #002b49;
    margin: 50px;
    text-align: center;
}

.gdpr p {
    padding: 0 50px 20px 50px;
    text-align: left;
    font-size: medium;
}

.gdpr h3 {
    text-align: left;
    padding: 0 50px 0 50px;
}

/* CSS pre animácie zo spodu */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px); /* Začne zo spodku */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Konečná pozícia */
    }
}

/* Tieto triedy sa použijú na prvky, ktoré chceme animovať */
.animate-up {
    opacity: 0; /* Začína ako neviditeľný */
    animation: slideUp 0.8s forwards; /* Použitie animácie */
}

/* Pridaný efekt pri skrolovaní */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (min-width: 1950px) {
    #section3, #section4 {
        background-size: contain; /* Pre väčšie obrazovky môže byť lepšie contain */
        }
}

@media screen and (min-width: 1950px) {
    #section1{
        background-size: cover;  /* Roztiahne obrázok na celú plochu bez medzier */
        background-position: center; /* Udrží stred obrázka */
        background-repeat: no-repeat; /* Zabráni opakovaniu */
        padding-bottom: 585px;
        margin-top: -100px;
        }
}

@media screen and (min-width: 1950px) {
    .logo2 {
        margin-top:-150px !important;
        }
}

      @media screen and (min-width: 2400px) {
        .service-image {
    margin-right: 50px;
    margin-left: 500px;
    margin-top: -100px;
}
}

      @media screen and (min-width: 2400px) {
        .service-image-reversed {
    margin-left: 50px;
    margin-right: 500px;
    margin-top: -100px;
}
}

h2 {
    font-size: 2.4em;
    color: #002b49;
    margin-bottom: 100px;
}

#section4 h2 {
    color: #ffffff;  
}



