/* --- ZÁKLADNÉ RESET A FARBY --- */
:root {
  --bg-color: #0b0f17;
  --card-bg: #030508;
  --accent-cyan: #00d2fe;
  --text-color: #ffffff;
  --text-muted: #8a99ad;
  --border-inactive: #1e293b;
  --header-height: 80px;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

/* --- FIXED HEADER --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
}

.logo-img {
  height: 30px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.logo-link:hover .logo-img {
  opacity: 0.85;
}

.nav-desktop a {
  color: var(--text-color);
  text-decoration: none;
  margin-left: 2.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.nav-desktop a:hover {
  color: var(--accent-cyan);
}

/* Hamburger Tlačidlo */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger-btn span {
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg-color);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-inactive);
}

.nav-mobile a {
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 0;
  font-weight: 600;
}

.nav-mobile.active {
  display: flex;
}

/* --- HERO CAROUSEL SEKCIA --- */
.hero-section {
  width: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  /* Odstránený padding, obrázok pôjde až pod glassmorphism header */
}

.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  align-items: center;
  height: 100%;
  will-change: transform;
}

.carousel-track.transitioning {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* SLAJDY - Zaberajú 100% šírky a výšky obrazovky */
.slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100dvh;
  cursor: pointer;
  box-sizing: border-box;
  opacity: 1; /* Všetky sú viditeľné na 100%, prechod rieši posun */
}

.slide-card {
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative; /* DÔLEŽITÉ: Pridané kvôli overlay vrstve */
}

/* Ochranný tmavý overlay nad obrázkom */
.slide-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Tmavší vrch pre hlavičku, čistý stred pre logo a tmavší spodok pre celkový balans */
  background: linear-gradient(to bottom, rgba(11, 15, 23, 0.8) 0%, rgba(11, 15, 23, 0) 25%, rgba(11, 15, 23, 0) 75%, rgba(11, 15, 23, 0.6) 100%);
  pointer-events: none; /* Zabezpečí, že klikanie a swipe prejde "cez" vrstvu až na slajd */
  z-index: 1; /* Udrží tmavý film nad obrázkom, ale pod textami/logom */
}

.slide-card picture {
  width: 100%;
  height: 100%;
  display: flex;
}

/* OBRÁZKY NA FULLSCREEN */
.slide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Obrázok vyplní celú plochu bez deformácie */
  pointer-events: none;
}

/* ŠÍPKY */
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3); /* Jemný tmavý podklad pod šípkou */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 20;
  user-select: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.arrow-btn:hover {
  background: rgba(0, 210, 254, 0.8);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.arrow-prev {
  left: 2rem;
}
.arrow-next {
  right: 2rem;
}

/* --- OBSAHOVÁ SEKCIA (DIVÍZIE) --- */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.content-section h2 {
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 3rem;
  text-align: center;
}

.divisions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.division-card {
  background: #0f1623;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-inactive);
}

.division-card h3 {
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: #fff;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
}

.btn:hover {
  background: var(--accent-cyan);
  color: #fff;
}

.btn-more {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: #fff;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
}

.btn-more:hover {
  background: var(--accent-cyan);
  color: #fff;
}

/* --- ROZLOŽENIE TLAČIDIEL (DESKTOP) --- */
.card-buttons {
  display: flex;
  justify-content: space-between; /* Odtlačí prvé tlačidlo doľava a druhé doprava */
  align-items: center;
}

/* Jemná úprava samotných buttonov, aby nerobili vizuálne problémy vo flexboxe */
.card-buttons .btn,
.card-buttons .btn-more {
  margin-top: 1.5rem; /* Zabezpečí rovnakú medzeru od textu pre oba buttony */
}

/* --- RESPONSIVITA (MOBIL FIX) --- */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger-btn { display: flex; }
  .logo-img { height: 20px; }

  /* Zabezpečíme, aby na mobile bol slajd na 100% displeja */
  .hero-section {
    height: 100dvh !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .slide {
    flex: 0 0 100vw !important;
    padding: 0 !important;
  }
  
  .slide-card {
    height: 100dvh !important;
  }

  .arrow-btn {
    display: none !important; /* Na mobile preberá funkciu Swipe */
  }
  
  /* Ponecháme nastavenia mriežky z tvojho pôvodného kódu */
  .divisions-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* --- ROZŠÍRENÝ FOOTER --- */
.main-footer {
  width: 100%;
  background-color: #05080e;
  border-top: 1px solid var(--border-inactive);
  padding: 4rem 0 0 0; /* Pridaný horný padding pre vzdušnosť */
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.footer-logo {
  height: 25px;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.footer-col p {
  line-height: 1.8;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #fff;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: var(--accent-cyan);
  transform: translateY(-3px); /* Jemný pohyb ikonky hore */
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

/* --- PODSTRÁNKA O-SPOLOČNOSTI --- */
.page-subpage .subpage-main {
  padding-top: var(--header-height);
}

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

.section-title {
  font-size: 2rem;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent-cyan);
  padding-left: 1rem;
}

.section-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #fff;
}

/* Mriežka divízií 2x2 na desktope */
.divisions-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Natvrdo 2 rovnaké stĺpce */
  gap: 2rem;
  margin-top: 2rem;
}

/* Na mobiloch a tabletoch automaticky prepne na 1 stĺpec pod sebou */
@media (max-width: 768px) {
  .divisions-detail-grid {
    grid-template-columns: 1fr;
  }
}

.detail-card {
  background: #0d131f;
  border: 1px solid var(--border-inactive);
  padding: 1.75rem;
  border-radius: 6px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
}

.detail-card h3 {
  color: var(--accent-cyan);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.contact-grid {
  background: #0d131f;
  border: 1px solid var(--border-inactive);
  padding: 2.5rem;
  border-radius: 6px;
  margin-top: 2rem;
}

/* Azúrové X v názve */
.accent-x {
  color: var(--accent-cyan);
  font-weight: 300;
}

.accent-xx {
  color: var(--accent-cyan);
  font-weight: 800;
}

.accent {
  color: #fff;
  font-weight: 800;
}

.accent-light {
  color: #fff;
  font-weight: 300;
}

.h3 {
  color: #fff;
}

.h3-light {
  color: #fff;
  font-weight: 300;
}

/* Normal / Neboldovaný text pre Technologies s.r.o. */
.text-light {
  font-weight: 300; /* Jemné, neboldované písmo */
  color: #ffffff; /* Prípadne #ffffff, ak ho chceš čisto biele */
}

.text-light2 {
  font-weight: 300; /* Jemné, neboldované písmo */
  color: var(--text-muted);
}

/* --- ŠTÝLY PRE DLHŠÍ TEXT O SPOLOČNOSTI --- */
.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.about-text .lead-text {
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1.7;
}

.about-text strong {
  color: #ffffff;
}

/* Taktické skrytie pre SEO robotov */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- ROZLOŽENIE TLAČIDIEL (MOBIL) --- */
@media (max-width: 768px) {
  .card-buttons {
    /* flex-direction: column; Usporiada tlačidlá pod seba */
    align-items: flex-start; /* Zarovná ich na ľavý okraj */
  }
  
  .card-buttons .btn-more {
    margin-top: 1rem; /* Medzera medzi prvým a druhým tlačidlom na mobile */
  }
}

/* --- SCROLL INDIKÁTOR --- */
.scroll-indicator {
  position: absolute;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff; /* Zmenené na čistú bielu pre lepší základný kontrast */
  text-decoration: none;
  z-index: 10;
  transition: color 0.3s ease;
}

.scroll-indicator:hover {
  color: var(--accent-cyan);
}

.scroll-text {
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 600;
  /* Dvojitý tmavý tieň s rozostrením pre dokonalú čitateľnosť */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.7);
}

.scroll-arrow {
  animation: bounce 2s infinite;
  /* Ten istý tieň aplikovaný na SVG grafiku */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 15px rgba(0, 0, 0, 0.7));
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Plynulé skrolovanie po kliknutí na indikátor */
html {
  scroll-behavior: smooth;
}

/* --- OBRÁZKY V KARTÁCH DIVÍZIÍ --- */
.card-image {
  width: 100%;
  height: 180px; /* Fixná výška pre vytvorenie vodorovného obdĺžnika */
  border-radius: 4px; /* Jemné zaoblenie rohov, aby to ladilo s tlačidlami */
  overflow: hidden;
  margin-bottom: 1.5rem; /* Medzera medzi obrázkom a nadpisom karty */
  border: 1px solid rgba(255, 255, 255, 0.05); /* Veľmi jemný okraj */
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Dokonale vyplní obdĺžnik a oreže prebytok zhora/zdola */
  object-position: center; /* Zabezpečí, že stred obrázka (kde máš logo) zostane viditeľný */
  display: block;
  transition: transform 0.4s ease; /* Príprava na hover animáciu */
}

/* Voliteľné: Jemný zoom obrázka pri prejdení myšou na kartu */
.detail-card:hover .card-image img {
  transform: scale(1.05);
}

/* --- VYSKAKOVACIE OKNO (WIP MODAL) --- */
.wip-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 14, 0.85); /* Tmavé polopriesvitné pozadie */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* Musí byť nad všetkým, aj nad headerom */
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Trieda na skrytie okna */
.wip-modal.hidden {
  opacity: 0;
  visibility: hidden;
}

.wip-content {
  background: var(--card-bg);
  border: 1px solid var(--accent-cyan);
  padding: 3rem 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 0 35px rgba(0, 210, 254, 0.15);
}

.wip-content h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.wip-content p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* --- KONTAKTNÝ FORMULÁR --- */
.contact-grid.split {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* Ľavá strana (texty) bude užšia, pravá (formulár) širšia */
  gap: 4rem;
  background: transparent;
  border: none;
  padding: 0;
}

/* Úprava ľavej časti s údajmi */
.info-block {
  margin-top: 2rem;
}

.info-block p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Zarovnanie nadpisu v kontaktnej sekcii doľava */
.contact-info h2 {
  text-align: left;
}

/* Úprava pravého kontajnera pre formulár */
.contact-form-wrapper {
  background: #0d131f; /* Rovnaká farba ako tvoje divízne karty */
  padding: 3rem;
  border-radius: 6px;
  border: 1px solid var(--border-inactive);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(11, 15, 23, 0.7); /* Ešte tmavšie vnútro poľa */
  border: 1px solid var(--border-inactive);
  border-radius: 4px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Stav pri písaní do políčka */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 210, 254, 0.15);
}

/* Úprava natívnej šípky výberového poľa v tmavom režime */
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a99ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.2em;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-color);
  color: #fff;
}

.btn-submit {
  align-self: flex-start;
  cursor: pointer;
  border: none;
  margin-top: 1rem;
  padding: 0.8rem 2rem;
}

/* --- Responzivita pre formulár na mobiloch --- */
@media (max-width: 768px) {
  .contact-grid.split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .contact-form-wrapper {
    padding: 1.5rem;
  }
}