@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==================== DARK MODE VARIABLES ==================== */
html.dark-mode {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: #21262d;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --border-color: #30363d;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --accent-blue: #58a6ff;
  --accent-green: #3fb950;
}

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: rgba(255, 255, 255, 0.95);
  --text-primary: #333333;
  --text-secondary: #666666;
  --border-color: rgba(30, 90, 205, 0.08);
  --shadow-color: rgba(30, 90, 205, 0.08);
  --accent-blue: #1E5ACD;
  --accent-green: #2EC540;
  --header-height: 84px;
}

html.dark-mode,
html.dark-mode body {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 10;
}

/* ==================== HEADER ==================== */
.header {
  background: #111;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  height: var(--header-height);
}

.header.scrolled {
  padding: 0;
  background: rgba(17, 17, 17, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5%;
  transition: padding 0.4s ease;
  gap: 20px;
}

@media (min-width: 901px) {
  .header .container {
    padding: 18px 0;
  }
  
  .header .container > .logo {
    flex: 0;
  }
  
  .nav {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    padding-top: 0;
    flex: 1;
    justify-content: center;
  }
  
  .nav.active {
    display: flex;
  }
  
  .nav a {
    margin-left: 32px;
    min-height: auto;
    padding: 0;
    font-size: 1rem;
  }
  
  .nav a:first-child {
    margin-left: 0;
  }
  
  .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0;
  }
  
  .burger {
    display: none;
  }
  
  .theme-toggle {
    width: 44px;
    height: 44px;
  }
}

.header.scrolled .container {
  padding: 8px 0;
}

.header.scrolled {
  --header-height: 60px;
}

.logo img {
  height: 48px;
  width: auto;
  transition: height 0.4s ease;
}

@media (min-width: 901px) {
  .logo img {
    height: 48px;
  }
}

.header.scrolled .logo img {
  height: 38px;
}

.header.scrolled .theme-toggle,
.header.scrolled .burger {
  width: 40px;
  height: 40px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 32px;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav a:hover {
  color: #2EC540;
}

.nav a.active {
  color: #2EC540;
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #2EC540;
  border-radius: 1px;
}

/* ==================== HERO ==================== */
.hero,
.kontakt-hero,
.sluzby-hero,
.reference-hero,
.o-nas-hero,
.gdpr-hero,
.cookies-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url('../images/hero-bg.png') right 70%/cover no-repeat;
  color: #fff;
  padding: 160px 0 90px;
  min-height: 400px;
  display: flex;
  align-items: center;
  text-align: center;
  background-attachment: fixed;
}

.hero h1,
.kontakt-hero h1,
.sluzby-hero h1,
.reference-hero h1,
.o-nas-hero h1,
.cookies-hero h1 {
  font-size: 3.2rem;
  margin-bottom: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p,
.kontakt-hero p,
.sluzby-hero p,
.reference-hero p,
.o-nas-hero p,
.cookies-hero p {
  font-size: 1.35rem;
  margin-bottom: 35px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

/* Hero animation */
.hero>.container>* {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero>.container.visible>*:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.hero>.container.visible>*:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.hero>.container.visible>*:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

/* ==================== TRUST BAR ==================== */
.trust-bar {
  background: #111;
  padding: 30px 0;
  border-top: 1px solid rgba(46, 197, 64, 0.3);
}

.trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-align: left;
}

.trust-item i {
  font-size: 1.8rem;
  color: #2EC540;
}

.trust-item strong {
  font-size: 1.1rem;
  display: block;
}

.trust-item span {
  font-size: 0.85rem;
  opacity: 0.7;
  display: block;
}

.trust-number {
  font-size: 2rem;
  font-weight: 800;
  color: #2EC540;
  line-height: 1;
}

.trust-number::after {
  content: '+';
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  background: #1E5ACD;
  color: #fff;
  padding: 15px 34px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn:hover {
  background: #2EC540;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(46, 197, 64, 0.3);
}

.btn i {
  margin-right: 8px;
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 100px 0;
}

.section:nth-child(even) {
  background: #f8f9fa;
}

h2 {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 25px;
  color: #1E5ACD;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

h2.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== GRIDS ==================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 50px;
  margin-top: 30px;
}

/* ==================== CARDS ==================== */
.card {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(30, 90, 205, 0.08);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(30, 90, 205, 0.08);
  opacity: 0;
  transform: translateY(30px);
}

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

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(30, 90, 205, 0.15);
  border-color: rgba(30, 90, 205, 0.2);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1E5ACD, #2EC540);
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #1E5ACD;
}

/* Card badge (Denisa/Michal) */
.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #1E5ACD, #2EC540);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==================== PROCESS SECTION ==================== */
.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.process-step {
  text-align: center;
  flex: 1;
  min-width: 180px;
  max-width: 250px;
  padding: 0 15px;
}

.process-icon {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E5ACD, #2EC540);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: transform 0.3s;
}

.process-icon:hover {
  transform: scale(1.1);
}

.process-icon i {
  font-size: 1.6rem;
  color: #fff;
}

.process-number {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 28px;
  height: 28px;
  background: #111;
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: #1E5ACD;
}

.process-step p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

.process-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #1E5ACD, #2EC540);
  margin-top: 40px;
  flex-shrink: 0;
  opacity: 0.5;
}

/* ==================== QUICK CONTACT ==================== */
.quick-contact {
  background: #1E5ACD;
  color: #ffffff;
  padding: 70px 0;
  text-align: center;
  border-top: 1px solid #2EC540;
}

.quick-contact h2 {
  font-size: 2.1rem;
  margin-bottom: 22px;
  color: #ffffff !important;
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

.quick-contact p {
  font-size: 1.2rem;
  line-height: 1.9;
  color: #ffffff;
}

.quick-contact a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.quick-contact a:hover {
  color: #2EC540;
}

.quick-contact i {
  color: #ffffff;
  margin-right: 10px;
  font-size: 1.3rem;
}

.quick-contact .btn {
  background: #ffffff;
  color: #1E5ACD !important;
  border: 2px solid #ffffff;
  margin-top: 20px;
  padding: 14px 36px;
}

.quick-contact .btn:hover {
  background: #2EC540;
  color: #ffffff !important;
  border-color: #2EC540;
  transform: translateY(-3px);
}

.quick-contact-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==================== FOOTER ==================== */
.footer {
  background: #111;
  color: #aaa;
  padding: 60px 0 0;
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  margin-top: 15px;
  line-height: 1.7;
  color: #888;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 18px;
  font-size: 1rem;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: #aaa;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #2EC540;
}

.footer-col a i {
  margin-right: 8px;
  width: 16px;
}

.footer-bottom {
  text-align: center;
  padding: 25px 0;
}

.footer-bottom p {
  color: #666;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #888;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: #2EC540;
}

/* ==================== TEAM SECTION (O nás) ==================== */
.team-grid {
  gap: 40px;
  margin-top: 30px;
}

.team-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(30, 90, 205, 0.08);
  border: 1px solid rgba(30, 90, 205, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(30, 90, 205, 0.15);
}

.team-card-photo {
  height: 200px;
  background: linear-gradient(135deg, #1E5ACD, #2EC540);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-placeholder-icon {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-placeholder-icon i {
  font-size: 2.5rem;
  color: #fff;
}

.team-card-info {
  padding: 30px;
}

.team-card-info h3 {
  font-size: 1.5rem;
  color: #111;
  margin-bottom: 5px;
}

.team-role {
  display: inline-block;
  color: #1E5ACD;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.team-card-info p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
}

.team-skills {
  list-style: none;
}

.team-skills li {
  padding: 6px 0;
  font-size: 0.95rem;
  color: #444;
}

.team-skills li i {
  color: #2EC540;
  margin-right: 10px;
  font-size: 0.85rem;
}

/* ==================== VÝHODY GRID (O nás) ==================== */
.vyhody-grid {
  gap: 30px;
}

.vyhoda-item {
  text-align: center;
  padding: 30px 20px;
}

.vyhoda-item i {
  color: #1E5ACD;
  margin-bottom: 18px;
}

.vyhoda-item h3 {
  font-size: 1.15rem;
  color: #111;
  margin-bottom: 10px;
}

.vyhoda-item p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* ==================== SERVICES (Služby) ==================== */
.sluzby-hero {
  padding: 160px 0 90px;
}

.sluzby-grid .card {
  text-align: center;
}

.sluzby-grid .card h3 {
  color: #1E5ACD;
  margin-bottom: 15px;
}

/* ==================== FAQ ==================== */
.faq-list {
  max-width: 780px;
  margin: 40px auto 0;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.faq-item:first-child {
  border-top: 1px solid #e0e0e0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  font-family: inherit;
  transition: color 0.3s;
}

.faq-question:hover {
  color: #1E5ACD;
}

.faq-question i {
  color: #1E5ACD;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 15px;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 22px;
}

.faq-answer p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}

/* ==================== KONTAKT ==================== */
.kontakt-hero {
  padding: 160px 0 90px;
}

.kontakt-info h2,
.kontakt-form h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #1E5ACD;
}

.kontakt-info i {
  color: #1E5ACD;
  margin-right: 8px;
}

.kontakt-form label {
  display: block;
  margin-top: 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

.kontakt-form input,
.kontakt-form textarea,
.kontakt-form select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  margin-top: 8px;
  transition: all 0.3s;
  background: #fff;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus,
.kontakt-form select:focus {
  outline: none;
  border-color: #1E5ACD;
  box-shadow: 0 0 0 4px rgba(30, 90, 205, 0.1);
}

.kontakt-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231E5ACD' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.gdpr-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.gdpr-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #1E5ACD;
  flex-shrink: 0;
}

.gdpr-checkbox label {
  margin-top: 0;
  font-weight: 400;
  font-size: 0.9rem;
}

.gdpr-checkbox a {
  color: #1E5ACD;
}

.form-info {
  font-size: 0.85rem;
  color: #666;
  margin-top: 15px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success h3 {
  color: #111;
  margin-bottom: 10px;
}

.form-success p {
  color: #666;
}

.kontakt-perks {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kontakt-perk {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #444;
}

.kontakt-perk i {
  color: #2EC540;
  font-size: 1.1rem;
}

/* ==================== REFERENCE ==================== */
.reference-hero {
  padding: 160px 0 90px;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 30px;
}

.reference-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.reference-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.reference-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.reference-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: all 0.5s ease;
}

.reference-item:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

.reference-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  padding: 40px 20px 20px;
  text-align: center;
  transition: all 0.3s;
}

.reference-caption h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.reference-caption p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Multi-image gallery for references - hidden, used for lightbox only */
.reference-item[data-images] {
  cursor: pointer;
}

.reference-item[data-images]::after {
  content: '📷 +' attr(data-images);
  display: none;
}

.reference-note {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 50px;
  padding: 20px 25px;
  background: #f0f4ff;
  border-radius: 12px;
  border-left: 4px solid #1E5ACD;
}

.reference-note i {
  color: #1E5ACD;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.reference-note p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

.reference-note a {
  color: #1E5ACD;
  font-weight: 600;
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  text-align: center;
  color: #fff;
  padding: 20px;
  font-size: 1.1rem;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  transition: transform 0.3s;
  z-index: 10001;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 50px;
  cursor: pointer;
  padding: 20px;
  transition: opacity 0.3s;
  user-select: none;
}

.lightbox-nav:hover {
  opacity: 0.7;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-tag {
  display: inline-block;
  background: linear-gradient(135deg, #1E5ACD, #2EC540);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-top: 10px;
}

/* ==================== FLOATING CTA ==================== */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  animation: pulse 2s infinite;
}

.floating-cta a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #2EC540, #1E5ACD);
  color: #fff;
  padding: 14px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 25px rgba(46, 197, 64, 0.4);
  transition: all 0.3s;
}

.floating-cta a:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 35px rgba(46, 197, 64, 0.5);
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* ==================== COOKIE BANNER ==================== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111;
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  z-index: 999;
  flex-wrap: wrap;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.25);
}

#cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 280px;
  text-align: center;
}

#cookie-banner a {
  color: #2EC540;
  text-decoration: underline;
}

#cookie-banner button {
  background: #fff;
  color: #111;
  border: none;
  padding: 10px 25px;
  cursor: pointer;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
}

#cookie-banner button:hover {
  background: #2EC540;
  color: #fff;
}

#cookie-banner.hidden {
  display: none !important;
}

/* ==================== COOKIES & GDPR pages ==================== */
.cookies-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.cookies-content h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: #1E5ACD;
  text-align: left;
}

.cookies-content ul.cookies-list {
  list-style: none;
  margin: 20px 0;
}

.cookies-content ul.cookies-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
}

.cookies-content ul.cookies-list li::before {
  content: "✓";
  color: #2EC540;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ==================== BURGER ANIMATION ==================== */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s;
}

.burger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.burger span {
  width: 28px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  transition: all 0.3s;
  border-radius: 2px;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ==================== THEME TOGGLE ==================== */
.theme-toggle {
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 15px;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #2EC540;
  color: #2EC540;
  transform: rotate(20deg);
}

.theme-toggle .fas {
  transition: transform 0.3s ease;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }

  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }

  .header .container {
    display: flex;
    align-items: center;
    padding: 12px 5%;
    min-height: 60px;
    gap: 10px;
  }

  .logo {
    flex: 0 0 auto;
  }

  .logo img {
    height: 36px !important;
  }

  .nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    overflow-y: auto;
    padding-top: 10px;
  }

  .nav.active {
    display: flex;
    z-index: 1001;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .burger {
    display: flex;
    flex-shrink: 0;
  }

  .nav a {
    padding: 18px 5%;
    margin: 0;
    border-bottom: 1px solid #222;
    text-align: center;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
  }

  .nav a::after {
    display: none !important;
  }

  .nav a:hover {
    background: #222;
    color: #2EC540;
  }

  .nav a.active {
    color: #2EC540;
    background: rgba(255, 255, 255, 0.03);
    font-weight: 700;
    border-left: 4px solid #2EC540;
    padding-left: calc(5% - 4px);
  }

  .hero h1,
  .kontakt-hero h1,
  .sluzby-hero h1,
  .reference-hero h1,
  .o-nas-hero h1 {
    font-size: 2rem;
  }

  .hero p,
  .kontakt-hero p,
  .sluzby-hero p,
  .reference-hero p,
  .o-nas-hero p {
    font-size: 1.1rem;
    padding: 0 15px;
  }

  .hero,
  .kontakt-hero,
  .sluzby-hero,
  .reference-hero,
  .o-nas-hero {
    padding: 120px 0 60px;
    background-attachment: scroll;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .card {
    padding: 30px 20px;
  }

  .card h3 {
    font-size: 1.25rem;
  }

  .process-connector {
    display: none;
  }

  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 35px;
  }

  .process-step {
    max-width: 280px;
  }

  .trust-items {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding: 0 20px;
  }

  .trust-item {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 25px;
    padding: 0 20px 30px;
  }

  .footer-col {
    padding: 0;
  }

  .footer-brand p {
    margin: 15px auto 0;
  }

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

  .section {
    padding: 60px 0;
  }

  h2 {
    font-size: 1.75rem;
    padding: 0 15px;
  }

  .demo-container {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .demo-controls {
    gap: 12px;
  }

  .demo-control {
    padding: 15px 18px;
  }

  .demo-visual {
    aspect-ratio: 16/10;
    padding: 25px;
  }

  .cursor-glow {
    display: none !important;
  }
}

@media (max-width: 600px) {
  body {
    overflow-x: hidden;
  }

  .hero h1,
  .kontakt-hero h1,
  .sluzby-hero h1,
  .reference-hero h1,
  .o-nas-hero h1 {
    font-size: 1.75rem;
  }

  .btn {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  #cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
    gap: 15px;
  }

  #cookie-banner p {
    font-size: 0.9rem;
  }

  .floating-cta {
    display: block;
  }

  .lightbox-nav {
    font-size: 30px;
    padding: 12px;
  }

  .lightbox-prev {
    left: 5px;
  }

  .lightbox-next {
    right: 5px;
  }

  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 28px;
  }

  .quick-contact-row {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .quick-contact h2 {
    font-size: 1.6rem;
  }

  .quick-contact p {
    font-size: 1rem;
  }

  .kontakt-form input,
  .kontakt-form textarea,
  .kontakt-form select {
    font-size: 16px;
  }

  .faq-question {
    font-size: 1rem;
    padding: 18px 0;
  }

  .reference-item img {
    height: 220px;
  }

  .footer-bottom {
    padding: 20px 15px;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }
}


html.dark-mode .theme-toggle {
  border-color: rgba(255, 255, 255, 0.2);
}

html.dark-mode .theme-toggle:hover {
  border-color: #ffd43b;
  color: #ffd43b;
}

/* ==================== DARK MODE OVERRIDES ==================== */
html.dark-mode .header {
  background: #0d1117;
}

html.dark-mode .header.scrolled {
  background: rgba(13, 17, 23, 0.97);
}

html.dark-mode .trust-bar {
  background: #0d1117;
  border-top-color: rgba(63, 185, 80, 0.3);
}

html.dark-mode .section:nth-child(even) {
  background: #161b22;
}

html.dark-mode .card,
html.dark-mode .team-card {
  background: var(--bg-card);
  border-color: var(--border-color);
  box-shadow: 0 8px 32px var(--shadow-color);
}

html.dark-mode .card:hover {
  box-shadow: 0 20px 50px var(--shadow-color);
  border-color: rgba(88, 166, 255, 0.2);
}

html.dark-mode .card h3,
html.dark-mode .process-step h3,
html.dark-mode .team-card-info h3 {
  color: var(--accent-blue);
}

html.dark-mode .card p,
html.dark-mode .process-step p,
html.dark-mode .team-card-info p,
html.dark-mode .team-skills li,
html.dark-mode .vyhoda-item p,
html.dark-mode .faq-answer p,
html.dark-mode .kontakt-perk,
html.dark-mode .section > .container > p {
  color: var(--text-primary);
}

html.dark-mode .reference-item {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

html.dark-mode .reference-note {
  background: #21262d;
  border-left-color: var(--accent-blue);
}

html.dark-mode .reference-note p {
  color: var(--text-secondary);
}

html.dark-mode .faq-item {
  border-bottom-color: #30363d;
}

html.dark-mode .faq-item:first-child {
  border-top-color: #30363d;
}

html.dark-mode .faq-question {
  color: var(--text-primary);
}

html.dark-mode .kontakt-form input,
html.dark-mode .kontakt-form textarea,
html.dark-mode .kontakt-form select {
  background: #21262d;
  border-color: #30363d;
  color: var(--text-primary);
}

html.dark-mode .kontakt-form input:focus,
html.dark-mode .kontakt-form textarea:focus {
  border-color: var(--accent-blue);
}

html.dark-mode .footer {
  background: #0d1117;
  color: #8b949e;
}

html.dark-mode .footer-col a {
  color: #8b949e;
}

html.dark-mode .footer-col a:hover {
  color: var(--accent-green);
}

html.dark-mode .footer-bottom p,
html.dark-mode .footer-bottom a {
  color: #6e7681;
}

html.dark-mode .quick-contact {
  background: #161b22;
  border-top-color: var(--accent-green);
}

html.dark-mode .trust-item i,
html.dark-mode .kontakt-perk i {
  color: var(--accent-green);
}

html.dark-mode .process-connector {
  opacity: 0.3;
}

html.dark-mode h2 {
  color: var(--accent-blue);
}

html.dark-mode .cookies-content h2 {
  color: var(--accent-blue);
}

html.dark-mode .lightbox {
  background: rgba(0, 0, 0, 0.98);
}

/* ==================== SMART HOME DEMO ==================== */
.demo-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  color: #fff;
}

html:not(.dark-mode) .demo-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.demo-section h2 {
  color: #fff;
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 15px;
}

.demo-section .demo-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 50px;
  font-size: 1.1rem;
}

.demo-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .demo-container {
    grid-template-columns: 1fr;
  }
}

.demo-visual {
  position: relative;
  background: linear-gradient(145deg, #21262d 0%, #0d1117 100%);
  border-radius: 20px;
  padding: 40px;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1px solid #30363d;
  transition: all 0.5s ease;
}

.demo-visual.night-mode {
  background: linear-gradient(145deg, #0a0a12 0%, #1a1a2e 100%);
}

.demo-visual.night-mode .demo-scene-icon {
  color: #ffd43b;
  text-shadow: 0 0 30px rgba(255, 212, 59, 0.5);
}

.demo-scene-icon {
  font-size: 5rem;
  color: #87ceeb;
  transition: all 0.5s ease;
  margin-bottom: 20px;
}

.demo-scene-status {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.demo-scene-temp {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-scene-temp i {
  color: #ff6b6b;
}

.demo-shutters {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #4a4a5a 0%, #2a2a3a 100%);
  transition: height 0.8s ease;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding-top: 10px;
}

.demo-shutters span {
  width: 30%;
  height: 100%;
  background: repeating-linear-gradient(0deg,
      #5a5a6a 0px,
      #5a5a6a 8px,
      #4a4a5a 8px,
      #4a4a5a 12px);
}

html:not(.dark-mode) .demo-shutters {
  background: linear-gradient(180deg, #8b7355 0%, #6b5344 100%);
}

html:not(.dark-mode) .demo-shutters span {
  background: repeating-linear-gradient(0deg,
      #9b8365 0px,
      #9b8365 8px,
      #8b7355 8px,
      #8b7355 12px);
}

.demo-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px 25px;
  transition: all 0.3s ease;
}

.demo-control:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(88, 166, 255, 0.3);
}

.demo-control-label {
  display: flex;
  align-items: center;
  gap: 15px;
}

.demo-control-label i {
  font-size: 1.3rem;
  color: var(--accent-green);
}

.demo-control-label span {
  font-weight: 500;
}

.demo-toggle {
  position: relative;
  width: 60px;
  height: 32px;
  background: #30363d;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.demo-toggle.active {
  background: var(--accent-green);
}

.demo-toggle::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.demo-toggle.active::after {
  transform: translateX(28px);
}

.demo-slider-control {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 140px;
}

.demo-slider {
  flex: 1;
  height: 8px;
  background: #30363d;
  border-radius: 4px;
  appearance: none;
  cursor: pointer;
}

.demo-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent-green);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
}

.demo-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.demo-slider-value {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  min-width: 40px;
  text-align: right;
}

html:not(.dark-mode) .demo-control-label span,
html:not(.dark-mode) .demo-slider-value {
  color: #e6edf3;
}

html:not(.dark-mode) .demo-control {
  background: rgba(255, 255, 255, 0.08);
}

html:not(.dark-mode) .demo-control:hover {
  background: rgba(255, 255, 255, 0.12);
}

html:not(.dark-mode) .demo-slider {
  background: #4a4a5a;
}

html:not(.dark-mode) .demo-toggle {
  background: #4a4a5a;
}

html:not(.dark-mode) .demo-slider::-webkit-slider-thumb {
  background: var(--accent-green);
}

/* ==================== MICRO ANIMATIONS ==================== */

/* Link underline animation */
.nav a {
  position: relative;
}

.nav a::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #2EC540;
  border-radius: 1px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav a:hover::before {
  width: 100%;
}

/* Button ripple effect */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

/* Icon hover animations */
.trust-item i,
.kontakt-perk i,
.vyhoda-item i {
  transition: transform 0.3s ease;
}

.trust-item:hover i {
  transform: scale(1.2) rotate(5deg);
}

.kontakt-perk:hover i,
.vyhoda-item:hover i {
  transform: scale(1.15);
}

/* Process icon animation */
.process-icon {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.process-step:hover .process-icon {
  animation: none;
  transform: scale(1.1);
}

/* Gradient text shimmer */
h2 {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green), var(--accent-blue));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html.dark-mode h2 {
  background: linear-gradient(90deg, #58a6ff, #3fb950, #58a6ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
}

/* Staggered reveal for list items */
.trust-items,
.kontakt-perks,
.vyhody-grid {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo hover glow */
.logo img {
  filter: drop-shadow(0 0 0 transparent);
  transition: filter 0.3s ease;
}

.logo:hover img {
  filter: drop-shadow(0 0 8px rgba(46, 197, 64, 0.5));
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
  z-index: 1001;
  width: 0%;
  transition: width 0.1s linear;
}

/* Cursor follower glow */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(30, 90, 205, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* Section divider wave */
.section-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
}

.section-divider::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: var(--bg-secondary);
  border-radius: 50% 50% 0 0;
}

/* Image parallax on hover */
.reference-item img {
  transform: scale(1);
  transition: transform 0.5s ease;
}

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

/* Form input focus animation */
.kontakt-form input,
.kontakt-form textarea,
.kontakt-form select {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
  transform: translateY(-2px);
}

/* Floating CTA pulse animation enhancement */
.floating-cta a {
  animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 6px 25px rgba(46, 197, 64, 0.4);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 10px 35px rgba(46, 197, 64, 0.5);
  }
}

.floating-cta a:hover {
  animation: none;
}

/* Smooth section transitions */
.section {
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30, 90, 205, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ==================== STICKY FOOTER ==================== */
.footer {
  margin-top: auto;
}

/* ==================== SCROLL PROGRESS BAR ==================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
  border-radius: 0 2px 2px 0;
}
.section:hover::before {
  opacity: 1;
}

/* ==================== SMART PANEL & GLASSMORPHISM ==================== */
.smart-panel-section {
  padding: 80px 0;
  position: relative;
  overflow: visible;
}

.tablet-frame {
  position: relative;
  background: #1a1a1a;
  padding: 15px;
  border-radius: 32px;
  box-shadow: 
    0 25px 60px rgba(0,0,0,0.6), 
    inset 0 0 15px rgba(255,255,255,0.05),
    inset 0 4px 6px rgba(255,255,255,0.1);
  max-width: 950px;
  margin: 0 auto;
  border: 1px solid #333;
  z-index: 100; /* Above shutters and heat overlay */
}

.camera-dot {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
  box-shadow: inset 0 -1px 2px rgba(255,255,255,0.2);
}

.panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  overflow: hidden;
}

html.dark-mode .panel {
  background: rgba(20, 25, 30, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 600;
  font-size: 1.1rem;
}

html.dark-mode .panel-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.panel-header div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-energy {
  color: var(--accent-green);
  transition: color 0.3s;
}
.panel-energy.high { color: #ff4757; }
.panel-energy.med { color: #ffa502; }

.reset-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s, color 0.3s;
}
.reset-btn:hover {
  color: #1E5ACD;
  transform: rotate(180deg);
}
html.dark-mode .reset-btn { color: #888; }
html.dark-mode .reset-btn:hover { color: #58a6ff; }

.panel-category {
  font-size: 1.2rem;
  color: #1E5ACD;
  margin: 25px 0 15px;
  font-weight: 700;
  border-bottom: 2px solid rgba(30, 90, 205, 0.1);
  padding-bottom: 5px;
}
html.dark-mode .panel-category {
  color: #58a6ff;
  border-bottom-color: rgba(88, 166, 255, 0.1);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.panel-card {
  background: rgba(255, 255, 255, 0.5);
  padding: 20px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease, background 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255,255,255,0.2);
}

html.dark-mode .panel-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255,255,255,0.05);
}

.panel-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

html.dark-mode .panel-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.card-icon {
  font-size: 2rem;
  color: var(--accent-blue);
  width: 40px;
  text-align: center;
  transition: color 0.3s, text-shadow 0.3s;
}

.card-icon.active-glow {
  color: #ffd43b;
  text-shadow: 0 0 15px rgba(255, 212, 59, 0.8);
}

.card-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.card-status {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.3s;
  white-space: nowrap; /* Keep on one line */
}

.card-status.highlight {
  color: var(--accent-green);
  font-weight: 600;
}

/* Custom Fan Rotation */
.fa-spin-custom {
  animation: spinCustom 2s infinite linear !important;
}
@keyframes spinCustom {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.demo-toggle {
  position: relative;
  width: 50px;
  height: 28px;
  background: #cbd5e1;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

html.dark-mode .demo-toggle {
  background: #30363d;
}

.demo-toggle.active {
  background: var(--accent-green);
}

.demo-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.demo-toggle.active::after {
  transform: translateX(22px);
}

/* Heating Controls Pro */
.heating-controls-pro {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn-sm {
  background: rgba(30, 90, 205, 0.1);
  border: none;
  color: #1E5ACD;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.icon-btn-sm:hover {
  background: #1E5ACD;
  color: #fff;
}
html.dark-mode .icon-btn-sm {
  background: rgba(88, 166, 255, 0.1);
  color: #58a6ff;
}
html.dark-mode .icon-btn-sm:hover {
  background: #58a6ff;
  color: #fff;
}

/* PV Flow Animation */
.pv-flow-container {
  display: flex;
  gap: 6px;
  background: rgba(0,0,0,0.05);
  padding: 4px 8px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  height: 12px;
  align-items: center;
  width: 60px;
}
html.dark-mode .pv-flow-container {
  background: rgba(255,255,255,0.05);
}
.pv-dot {
  width: 5px;
  height: 5px;
  background: #ffd43b;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 5px #ffd43b;
}

body.pv-active .pv-dot {
  animation: pvMove 1.5s linear infinite;
}

body.pv-active .pv-dot:nth-child(2) { animation-delay: 0.5s; }
body.pv-active .pv-dot:nth-child(3) { animation-delay: 1s; }

@keyframes pvMove {
  0% { transform: translateX(-20px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(60px); opacity: 0; }
}

/* Blinds Controls */
.blinds-controls {
  display: flex;
  gap: 8px;
}
.icon-btn {
  background: rgba(30, 90, 205, 0.1);
  border: none;
  color: #1E5ACD;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.icon-btn:hover {
  background: #1E5ACD;
  color: #fff;
}
.icon-btn.active {
  background: #1E5ACD;
  color: #fff;
  box-shadow: 0 0 10px rgba(30, 90, 205, 0.4);
}
html.dark-mode .icon-btn {
  background: rgba(88, 166, 255, 0.1);
  color: #58a6ff;
}
html.dark-mode .icon-btn:hover, html.dark-mode .icon-btn.active {
  background: #58a6ff;
  color: #fff;
}

/* Action Cards */
.card-action {
  justify-content: center;
  cursor: pointer;
  border: 1px dashed rgba(0,0,0,0.2);
}
html.dark-mode .card-action {
  border-color: rgba(255,255,255,0.2);
}
.card-action .card-info {
  flex-grow: 0;
}

@media (max-width: 600px) {
  .tablet-frame { padding: 10px; border-radius: 24px; }
  .panel { padding: 20px; border-radius: 14px; }
  .panel-grid { grid-template-columns: 1fr; }
  .heating-controls { width: 100px; }
}

/* ==================== GLOBAL INTERACTIVE EFFECTS ==================== */

/* Side Shutters (Žaluzie po stranách) */
.side-shutters {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  z-index: 5; /* Behind content containers */
  pointer-events: none;
  display: flex;
  justify-content: space-between;
}

.shutter-side {
  width: 15%;
  height: 0%; /* Animates from 0 to 100% */
  background: linear-gradient(180deg, #4a4a5a 0%, #2a2a3a 100%);
  background-image: repeating-linear-gradient(0deg, #5a5a6a 0px, #5a5a6a 8px, #4a4a5a 8px, #4a4a5a 12px);
  transition: height 0.05s linear; /* Fast for JS interval */
  box-shadow: 5px 0 20px rgba(0,0,0,0.5);
}

.shutter-right {
  box-shadow: -5px 0 20px rgba(0,0,0,0.5);
}

html:not(.dark-mode) .shutter-side {
  background: linear-gradient(180deg, #8b7355 0%, #6b5344 100%);
  background-image: repeating-linear-gradient(0deg, #9b8365 0px, #9b8365 8px, #8b7355 8px, #8b7355 12px);
}

@media (max-width: 768px) {
  .shutter-side {
    width: 25%;
  }
}

/* Heat Overlay (Edge Glow) */
.heat-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  pointer-events: none;
  z-index: 9; /* Behind container (10), above shutters (5) */
  box-shadow: inset 0 0 calc(var(--heat-intensity, 0) * 180px) rgba(255, 140, 0, calc(var(--heat-intensity, 0) * 0.8));
  transition: box-shadow 0.5s ease;
}

/* PV Glow Overlay */
body.pv-active {
  box-shadow: inset 0 0 100px rgba(255, 212, 59, 0.15);
}
body.pv-active::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(255, 212, 59, 0.08), transparent 45%);
  z-index: 9000;
}

/* Floating Music Notes */
@keyframes floatUp {
  0% { transform: translateY(100vh) rotate(0deg) scale(0.5); opacity: 0; }
  10% { opacity: 1; transform: translateY(80vh) rotate(45deg) scale(1.2); }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(360deg) scale(1); opacity: 0; }
}

#music-container {
  position: fixed;
  bottom: 0; left: 0; width: 100%; height: 0;
  z-index: 9998;
  pointer-events: none;
}

.floating-note {
  position: absolute;
  bottom: 0;
  font-size: 2.5rem;
  color: var(--accent-blue);
  animation: floatUp 5s linear forwards;
  text-shadow: 0 0 20px rgba(30, 90, 205, 0.8);
}

/* Air Particles (Větrání) */
@keyframes floatRandom {
  0% { transform: translate(0, 0) scale(0); opacity: 0; }
  20% { opacity: 0.6; transform: translate(calc(var(--tx)*0.2), calc(var(--ty)*0.2)) scale(1); }
  80% { opacity: 0.6; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

#particles-container {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  z-index: 9997;
  pointer-events: none;
  overflow: hidden;
}

.air-particle {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: floatRandom 4s ease-out forwards;
  box-shadow: 0 0 10px rgba(46, 197, 64, 0.8);
}