/* General Styles */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: #2D2D2D;
    background-color: #F7F7F7;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Ensuring navbar is on top */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em;
}

.navbar-links {
    display: flex;
    gap: 1.5em;
}

.navbar a, .dropbtn {
    text-decoration: none;
    color: #2D2D2D;
    font-weight: 700;
    position: relative;
    transition: color 0.3s;
}

.navbar a::after, .dropbtn::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #112794;
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.navbar a:hover, .dropbtn:hover {
    color: #112794;
}

.navbar a:hover::after, .dropbtn:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1001; /* Ensuring dropdown is above other elements */
}

.dropdown-content a {
    color: #2D2D2D;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropbtn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #333;
    font-weight: 500;
    padding: 0;
    transition: color 0.3s, transform 0.3s;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 16px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Navbar */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001; /* Ensuring mobile menu icon is above clock */
}

.menu-line {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: transform 0.3s;
}

.mobile-navbar-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1001; /* Ensuring mobile navbar links are above clock */
}

.mobile-navbar-links a {
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #ddd;
    transition: background 0.3s ease;
}

.mobile-navbar-links a:hover {
    background: #f0f0f0;
}

.mobile-navbar-links.open {
    display: flex;
    max-height: 500px;
}

/* Media Queries */
@media (max-width: 768px) {
    .navbar-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }
}

/* Hero container */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    overflow: hidden;
}

/* Gradient v spodnej časti pre čitateľnosť */
.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    z-index: 1;
}

/* Obsah vpredu */
.hero-content {
    z-index: 2;
    max-width: 700px;
    padding: 2em;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
}

.hero-content  {
    /*max-width: 380px;*/
    width: 90%;
    margin-bottom: 1em;
}
/* default: zobrazovať (mobil/tablet) */
.hero-logo {
    display: block;
  }
  
  /* na desktopoch (širšie než 1024px) skryť */
  @media (min-width: 1025px) {
    .hero-logo {
      display: none !important;
    }
  }
.hero-logo {
    position: absolute;
    top: 80%;
    left: 65%;                  /* posunute viac doprava */
    transform: translateY(-50%);  
    margin-top: 80px;
    z-index: 3;
  }
  .hero-logo img {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.7));
  }
  
/* tablet */
@media (max-width: 768px) {
    .hero-logo {
      top: 0;      
      left: 10px;
    }
  
    .hero-logo img {
        width: 190px !important;   /* zväčšené o +50px oproti 140px */
        filter: drop-shadow(0 3px 6px rgba(0,0,0,0.9));
      }
    }
    
  
  /* malé mobily */
@media (max-width: 420px) {
    .hero-logo {
      top: 0;      
      left: 8px;
    }
    .hero-logo img {
        width: 180px !important;   /* zväčšené o +50px oproti 130px */
        filter: drop-shadow(0 3px 8px rgba(0,0,0,1));
      }
    }

/* Titulok s decentným tieňom */

.hero-premium {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(54px, 11vw, 140px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1;
    position: relative;
    display: inline-block;
    overflow: hidden;
  }
  
  /* zvýraznené slovo – cut-out efekt */
  .hero-premium span {
    position: relative;
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: 2px #fff; /* obrys */
  }
  
  /* decentný pruh cez text ako "cut" */
  .hero-premium span::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 50%;
    background: #fff;
    color: #111;
    overflow: hidden;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(-50%);
  }
  
  /* jemný vstupný efekt */
  .hero-premium {
    animation: slideIn 1s ease forwards;
    opacity: 0;
    transform: translateY(40px);
  }
  
  @keyframes slideIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
.hero-content p {
    font-size: 21px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1em;
}

/* Button */
.btn {
    background: #112794;
    color: #fff;
    padding: 0.7em 2em;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 2rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0d1f60;
}

@media (max-width: 768px) {
    .btn {
        font-size: 1.2rem;
        padding: 0.65em 1.6em;
        display: inline-block;
        max-width: 90vw;
        text-align: center;
        white-space: nowrap;
    }
}

@media (max-width: 420px) {
    .btn {
        font-size: 1em;
        padding: 0.6em 1.3em;
    }
}
/* Slideshow Styles */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.mySlides {
    display: none;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.dot-container {
    text-align: center;
    position: absolute;
    width: 100%;
    bottom: 20px;
    z-index: 2;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* Clock Styles */
.clock {
    background: #f8f8f8;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #A37E2C;
    position: relative;
    box-shadow: 0 1vw 2vw -0.5vw rgba(0, 0, 0, 0.8);
    z-index: 999; /* Lowered z-index */
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #A37E2C;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    position: absolute;
    z-index: 1000; /* Adjusted z-index */
}

.hour-hand {
    position: absolute;
    z-index: 1000; /* Adjusted z-index */
    width: 2px;
    height: 30px;
    background: #006039;
    top: 20px;
    left: 50%;
    margin-left: -1px;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    transform-origin: 50% 30px;
}

.minute-hand {
    position: absolute;
    z-index: 1000; /* Adjusted z-index */
    width: 2px;
    height: 40px;
    background: #006039;
    top: 10px;
    left: 50%;
    margin-left: -1px;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    transform-origin: 50% 40px;
}

.second-hand {
    position: absolute;
    z-index: 1000; /* Adjusted z-index */
    width: 1px;
    height: 45px;
    background: black;
    top: 5px;
    left: 50%;
    margin-left: -0.5px;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    transform-origin: 50% 45px;
}

.diallines {
    position: absolute;
    z-index: 1000; /* Adjusted z-index */
    width: 1px;
    height: 5px;
    background: #006039;
    left: 50%;
    margin-left: -0.5px;
    transform-origin: 50% 50px;
}

.diallines:nth-of-type(5n) {
    width: 2px;
    height: 10px;
    background: #006039;
}

/* Responsive Clock */
@media (max-width: 1024px) {
    .clock {
        width: 80px;
        height: 80px;
    }
    .hour-hand {
        height: 25px;
        top: 15px;
        transform-origin: 50% 25px;
    }
    .minute-hand {
        height: 30px;
        top: 10px;
        transform-origin: 50% 30px;
    }
    .second-hand {
        height: 35px;
        top: 5px;
        transform-origin: 50% 35px;
    }
    .diallines {
        height: 4px;
        transform-origin: 50% 40px;
    }
    .diallines:nth-of-type(5n) {
        height: 8px;
    }
}

@media (max-width: 768px) {
    .clock {
        width: 60px;
        height: 60px;
    }
    .hour-hand {
        height: 20px;
        top: 10px;
        transform-origin: 50% 20px;
    }
    .minute-hand {
        height: 25px;
        top: 5px;
        transform-origin: 50% 25px;
    }
    .second-hand {
        height: 30px;
        top: 2.5px;
        transform-origin: 50% 30px;
    }
    .diallines {
        height: 3px;
        transform-origin: 50% 30px;
    }
    .diallines:nth-of-type(5n) {
        height: 6px;
    }
}

/* Background Section */
.background-section {
    position: relative;
    padding: 4em 2em;
    text-align: center;
    color: #FFFFFF;
    background: url('stena zahorak.jpeg') no-repeat center center/cover;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.background-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.background-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    margin-bottom: 1em;
}

.features-container {
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap;
}

.feature-item {
    background: rgba(255, 255, 255, 0.8);
    color: #2D2D2D;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    transition: transform 0.3s ease;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item i {
    font-size: 2em;
    color: #112794;
    margin-bottom: 0.5em;
}

.feature-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    margin: 0.5em 0;
}

.feature-item p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 1em;
}

/* Partners Section */
.partners {
    background-color: white;
    text-align: center;
    padding: 60px 0;
    margin: 0;
}

.partners h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    color: #2D2D2D;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
}

.partners h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #112794;
    margin: 20px auto 0;
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo a {
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo img {
    width: 300px;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.partner-logo a:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: #2D2D2D;
    color: #fff;
    text-align: center;
    padding: 2em;
}

footer a {
    color: #112794;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .partners h2 {
        font-size: 2em;
    }
    .partner-logo img {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .partners h2 {
        font-size: 1.8em;
    }
    .partner-logo img {
        width: 200px;
    }
}
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1em;
  }

  .popup-content {
    background: white;
    padding: 2em;
    border-radius: 20px;
    max-width: 90%;
    width: 420px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: fadeInBounce 0.8s ease;
    position: relative;
    font-family: 'Montserrat', sans-serif;
  }

  .popup-content h2 {
    color: #112794;
    font-size: 2em;
    margin-bottom: 0.5em;
  }

  .popup-content p {
    font-size: 1.2em;
    color: #2D2D2D;
    line-height: 1.6;
  }

  .popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.8em;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  .popup-close:hover {
    color: #112794;
  }

  @keyframes fadeInBounce {
    0% {
      opacity: 0;
      transform: translateY(40px);
    }
    60% {
      transform: translateY(-10px);
    }
    80% {
      transform: translateY(5px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (max-width: 480px) {
    .popup-content {
      width: 100%;
      padding: 1.5em;
    }
    .popup-content h2 {
      font-size: 1.6em;
    }
    .popup-content p {
      font-size: 1em;
    }
  }
 /* MODAL OVERLAY (polopriesvitné pozadie bez blur celého tela) */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* POPUP BOX - BLUR IBA VNÚTRI */
  .modal-box {
    position: relative;
    width: 95%;
    max-width: 340px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: #fff;
    text-align: center;
    animation: fadeIn 0.6s ease;
  }
  
  /* CLOSE BUTTON */
  .close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 24px;
    color: #ffffffcc;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s ease;
  }
  .close:hover {
    color: #ffffff;
  }
  
  /* TITLE */
  .video-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  }
  
  /* VIDEO */
  .video-wrapper video {
    width: 100%;
    height: auto;
    max-height: 65vh;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    object-fit: cover;
  }
  
  /* UNMUTE BUTTON - MODERNÝ ŠTÝL */
  #unmuteBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65em 1.6em;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #112794, #3366ff);
    border: none;
    border-radius: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
    margin-top: 1.2rem;
    backdrop-filter: blur(8px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
  #unmuteBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(17, 39, 148, 0.3);
    background: linear-gradient(135deg, #1a34b8, #5083ff);
  }
  
  /* FADE IN ANIMATION */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }