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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

html.menu-open {
  overflow: hidden;
  height: 100%;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--primary-color);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* ==========================================
   2. CSS VARIABLES
   ========================================== */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #2d2d2d;
  --bg-light: #f5f5f5;
  --text-light: #f5f5f5;
  --text-dark: #1a1a1a;
  --text-muted: #666666;
  --accent-color: #00d4ff;
  --transition: 0.3s ease;
}

[data-theme="light"] {
  --primary-color: #f5f5f5;
  --secondary-color: #ffffff;
  --bg-light: #1a1a1a;
  --text-light: #1a1a1a;
  --text-dark: #f5f5f5;
  --text-muted: #666666;
  --accent-color: #0099cc;
}
[data-theme="light"] .trust-item {
  color: #1a1a1a;
}

[data-theme="light"] .service-card h3,
[data-theme="light"] .service-card li {
  color: #1a1a1a;
}

[data-theme="light"] .service-list li:before {
  color: #0099cc; /* Saglabā cyan bultiņas */
}
[data-theme="light"] .service-card p {
  color: #1a1a1a;
}
[data-theme="light"] .section-subtitle {
  color: #1a1a1a;
}
[data-theme="light"] .trust {
  border-bottom: 2px solid rgba(0, 0, 0, 0.1); /* Tumša līnija */
  /* Vai arī: */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Smalka ēna vietā */
}
[data-theme="light"] .library-item h3,
[data-theme="light"] .library-item p {
  color: #1a1a1a;
}
[data-theme="light"] [style*="background: rgba(0, 0, 0"] {
  background: rgba(0, 0, 0, 0.75) !important;
  color: #ffffff !important;
}
[data-theme="light"] .form-group label {
  color: #1a1a1a;
}
/* ==========================================
   3. LAYOUT
   ========================================== */
.container {
  max-width: none;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ==========================================
   4. NAVIGATION (BASE - MOBILE FIRST)
   ========================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 100px; /* 40px atkāpe abās pusēs */
  width: 100%; /* Aizpilda visu platumu */
  max-width: none;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 1003;
}

.logo img,
.logo-animated {
  height: 35px;
  width: auto;
  max-height: 35px;
  object-fit: contain;
  animation: float 3s ease-in-out infinite;
}

.logo-text {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-light);
  letter-spacing: 1px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--accent-color);
  border-radius: 8px;
  cursor: pointer;
  z-index: 1002;
  position: relative;
}

.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--accent-color);
  margin: 2px 0;
  transition: 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Navigation Links - Hidden by default on mobile */
.nav-links {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  width: 100%; /* ← Trūka šī rindiņa */
  background: rgb(0, 0, 0); /* ← Trūka šī rindiņa (vai rgba) */
  padding: 20px;
  border-top: 2px solid var(--accent-color);
  z-index: 999;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  gap: 0;
}
.nav-links.active {
  display: flex !important;
}

.nav-links a {
  padding: 15px 0;
  border-bottom: 1px solid #333;
  color: var(--text-light);
  text-decoration: none;
  text-align: center;
  display: block;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

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

.lang-indicator {
  border: 1px solid var(--accent-color);
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--accent-color);
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
  background: rgba(0, 212, 255, 0.1);
  cursor: default;
}

/* Theme Toggle */
.theme-toggle {
  background: #1a1a1a;
  border: 2px solid #00d4ff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* NOŅEMTS: font-size: 16px; (nav vajadzīgs SVG) */
  box-shadow:
    0 0 12px rgba(0, 212, 255, 0.3),
    inset 0 0 8px rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
  z-index: 1001;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow:
    0 0 20px rgba(0, 212, 255, 0.5),
    inset 0 0 12px rgba(0, 212, 255, 0.3);
}

/* === JAUNS: Spuldzes ikona === */
.theme-toggle svg {
  width: 20px;
  height: 20px;
  color: #ffffff; /* Pelēka kontūra dark mode (izslēgta) */
  fill: none;
  transition: all 0.3s ease;
}

/* Spuldze IEDEGUSIES light mode */
[data-theme="light"] .theme-toggle svg {
  color: #ffd700; /* Zeltaina */
  fill: rgba(255, 215, 0, 0.3); /* Caurspīdīgs aizpildījums */
  filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.8));
}

/* Vītņa redzamāka kad iedegusies */
[data-theme="light"] .theme-toggle .filament {
  opacity: 1;
  stroke: #ffaa00;
}

[data-theme="light"] .theme-toggle {
  background: #ffffff;
  border-color: #ffd700;
  box-shadow:
    0 0 12px rgba(255, 215, 0, 0.6),
    inset 0 0 10px rgba(255, 255, 200, 0.5);
}

[data-theme="light"] .theme-toggle:hover {
  box-shadow:
    0 0 20px rgba(255, 215, 0, 0.9),
    inset 0 0 15px rgba(255, 255, 255, 0.8);
}
[data-theme="light"] .nav {
  background: #ffffff;
  backdrop-filter: none;
}

[data-theme="light"] .logo-text,
[data-theme="light"] .nav-links a {
  color: #ffffff;
}

[data-theme="light"] .nav-links a:hover {
  color: #00d4ff;
}

[data-theme="light"] .lang-indicator {
  border-color: #00d4ff;
  color: #00d4ff;
}
[data-theme="light"] .hero {
  color: #ffffff;
}
/* Mobile Theme Toggle Position */
@media (max-width: 768px) {
  .theme-toggle {
    position: fixed;
    top: 20px;
    right: 80px;
    width: 34px;
    height: 34px;
    /* NOŅEMTS: font-size: 14px; */
  }

  .mobile-menu-btn {
    position: fixed;
    top: 20px;
    right: 20px;
  }
}

/* ==========================================
   5. DESKTOP NAVIGATION (min-width: 769px)
   ========================================== */
@media (min-width: 769px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }

  .nav {
    padding: 15px 0;
  }

  .logo img,
  .logo-animated {
    height: 40px;
    max-height: 40px;
  }

  .logo-text {
    font-size: 24px;
  }

  /* Hide mobile button on desktop */
  .mobile-menu-btn {
    display: none !important;
  }

  /* Desktop Nav Links - Flexbox layout */
  .nav-links {
    display: flex !important; /* Override mobile display: none */
    flex-direction: row;
    position: static; /* Remove fixed positioning */
    width: auto;
    background: transparent;
    padding: 0;
    border: none;
    max-height: none;
    overflow: visible;
    margin-left: auto; /* Push to right */
    margin-right: 20px; /* Space before theme toggle */
    gap: 25px;
  }

  .nav-links a {
    padding: 8px 4px;
    border: none;
    font-size: 15px;
    white-space: nowrap;
    position: relative;
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
  }

  .nav-links a:hover::after {
    width: 100%;
  }

  .lang-indicator {
    margin: 0;
    padding: 4px 8px;
    font-size: 11px;
  }

  /* Theme toggle desktop positioning */
  .theme-toggle {
    position: relative;
    top: auto;
    right: auto;
    margin: 0;
  }
}

/* ==========================================
   6. HERO SECTION
   ========================================== */
.hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: 60px;
}

.hero-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transform: scale(1.02);
  transition:
    opacity 0.5s ease,
    transform 0.8s ease;
  pointer-events: none;
}

.hero-poster-img.hidden {
  opacity: 0;
  transform: scale(1);
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.hero-video-bg.loaded {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.7)
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 40px;
  max-width: 600px;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-indicator span {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  position: relative;
}

.scroll-indicator span::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
  animation: scroll 2s infinite;
}

/* ==========================================
   7. COMPONENTS
   ========================================== */
.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--accent-color);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: 2px solid var(--accent-color);
}

.cta-button:hover {
  background: transparent;
  color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}

.cta-button.large {
  padding: 18px 50px;
  font-size: 18px;
  background: var(--primary-color);
  color: var(--accent-color);
  border-color: var(--primary-color);
}

.cta-button.large:hover {
  background: transparent;
  color: var(--primary-color);
}

.section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-light);
}

.section-title.dark {
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 60px;
  font-size: 18px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-color);
}

/* ==========================================
   8. SECTIONS
   ========================================== */
.trust {
  background: var(--secondary-color);
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-badges {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.trust-item svg {
  color: var(--accent-color);
}

.services {
  padding: 100px 0;
  background: var(--secondary-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.service-card {
  background: var(--primary-color);
  padding: 40px 30px;
  border-radius: 8px;
  text-align: left;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-badge {
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.service-list {
  list-style: none;
  margin: 20px 0;
}

.service-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.service-list li:before {
  content: "→";
  color: var(--accent-color);
  margin-right: 10px;
  font-weight: bold;
}

.service-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-section {
  padding: 80px 0;
  text-align: center;
  background: var(--accent-color);
  color: var(--primary-color);
}

.cta-section h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.library {
  padding: 100px 0;
  background: var(--primary-color);
}

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

.library-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  background: var(--secondary-color);
}

.library-item:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.library-thumb {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.library-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.library-item:hover .library-overlay {
  opacity: 1;
}

.play-btn {
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 24px;
  transition: var(--transition);
}

.library-item:hover .play-btn {
  transform: scale(1.1);
}

.library-item h3 {
  padding: 20px 20px 10px;
  font-size: 20px;
  color: var(--text-light);
}

.library-item p {
  padding: 0 20px 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

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

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

.modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  background: var(--primary-color);
  border-radius: 8px;
  overflow: hidden;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 36px;
  color: var(--text-light);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--accent-color);
  transform: rotate(90deg);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.why-fpv {
  padding: 100px 0;
  background: var(--bg-light);
  color: var(--text-dark);
}

.why-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.benefits-list {
  list-style: none;
}

.benefits-list li {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--accent-color);
  color: var(--primary-color);
  border-radius: 50%;
  font-weight: bold;
  flex-shrink: 0;
}

.benefits-list h4 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.benefits-list p {
  color: var(--text-muted);
  line-height: 1.6;
}

.why-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact {
  padding: 100px 0;
  background: var(--bg-light);
  color: var(--text-dark);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 18px;
}

.contact-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 30px;
  font-style: italic;
}

.pricing-hint {
  background: rgba(0, 212, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
  margin: 30px 0;
}

.pricing-hint p {
  color: var(--text-dark);
  font-size: 16px;
  margin-bottom: 5px;
}

.pricing-hint strong {
  color: var(--accent-color);
  font-size: 20px;
}

.pricing-hint small {
  color: var(--text-muted);
  font-size: 12px;
}

.contact-details {
  margin-top: 40px;
}

.contact-details p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: var(--text-dark);
}

.contact-form {
  background: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 16px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background: #ffffff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--accent-color);
  color: var(--primary-color);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background: #00b8e0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.form-status {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(0, 255, 0, 0.1);
  color: #4caf50;
  border: 1px solid #4caf50;
}

.form-status.error {
  display: block;
  background: rgba(255, 0, 0, 0.1);
  color: #f44336;
  border: 1px solid #f44336;
}

.footer {
  background: #111;
  padding: 60px 0 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta {
  margin-bottom: 40px;
}

.footer-cta p {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
  margin: 5px 0;
  font-size: 14px;
}

.gdpr-text {
  font-size: 12px;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   9. WHATSAPP FLOAT
   ========================================== */
.whatsapp-float {
  position: fixed;
  height: 50px;
  width: 50px;
  padding: 0;
  bottom: 40px !important;
  right: 20px;
  border-radius: 50%;
  z-index: 999;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: #25d366;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.4s ease,
    opacity 0.4s ease,
    bottom 0.4s ease;
}

.whatsapp-float span:first-child {
  font-size: 24px;
}

.whatsapp-float span:last-child {
  display: none;
}

.whatsapp-float.scrolled-down {
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}

/* Desktop WhatsApp */
@media (min-width: 769px) {
  .whatsapp-float {
    width: auto;
    height: 60px;
    padding: 0 26px;
    border-radius: 999px;
  }

  .whatsapp-float span:first-child {
    font-size: 20px;
  }

  .whatsapp-float span:last-child {
    display: inline;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
  }
}

/* ==========================================
   10. COOKIE BANNER
   ========================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(
    26,
    26,
    26,
    0.85
  ) !important; /* Tumšs, 85% necaurspīdīgs, var redzēt kas zemāk */
  backdrop-filter: blur(
    10px
  ); /* Blur efekts fonam (var redzēt saturu, bet izpludinātu) */
  -webkit-backdrop-filter: blur(10px); /* Safari */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 20px 100px 20px !important; /* Apakšā 100px, lai pogas neietu zem WhatsApp */
  z-index: 10000 !important; /* Virs WhatsApp pogas (9999) */
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5); /* Ēna augšā */
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: white;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  z-index: 10001 !important; /* Vēl augstāk par pašu banner */
  position: relative;
}

/* Pogu stili */
.cookie-buttons button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  flex: 1;
  max-width: 200px;
}

.cookie-btn.accept {
  background: #00d4ff;
  color: #111;
}

.cookie-btn.decline {
  background: transparent;
  color: #f5f5f5;
  border: 1px solid #666;
}

/* Linki bannerī */
.cookie-content a {
  color: #00d4ff;
  text-decoration: underline;
}

/* ==========================================
   11. ANIMATIONS
   ========================================== */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes scroll {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*/* ==========================================
   12. RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }
  .section-title {
    font-size: 28px;
  }
  .hero-subtitle {
    font-size: 16px;
  }

  .services-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .why-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .trust-badges {
    flex-direction: column;
    gap: 20px;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .cookie-buttons {
    flex-direction: row !important; /* Pogas blakus, nevis viena zem otras */
    width: 100%;
    justify-content: center;
  }

  .cookie-buttons button {
    width: auto; /* Ne 100%, lai nav pārāk platas */
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .logo img,
  .logo-animated {
    height: 30px;
    max-height: 30px;
  }

  /* Logo pa kreisi - SALABOTS */
  .nav .container .logo {
    margin-left: -15px !important;
    transform: translateX(-5px);
  }

  .whatsapp-float {
    bottom: 10px !important;
    z-index: 9999 !important; /* Zem cookie banner */
  }

  .mobile-menu-btn {
    width: 40px;
    height: 40px;
    top: 15px;
    right: 15px;
  }

  .theme-toggle {
    top: 15px;
    right: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-bg {
    display: none;
  }
  .hero-poster-img {
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .logo-animated {
    animation: none;
  }
}

/* ==========================================
   PRIVACY & TERMS - MOBILE
   ========================================== */

/* Pamata stili */
.privacy-page,
.terms-page {
  padding: 40px 60px;
  width: 100%;
  max-width: none !important;
  margin: 0;
  line-height: 1.6;
}

/* Fix: iekšējais container pilnam platumam (ATSEVIŠĶI!) */
.privacy-page .legal-page .container,
.terms-page .legal-page .container {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 20px !important;
}

/* MOBILE specifiski */
@media (max-width: 768px) {
  /* ŠIS IET NAVIGĀCIJAI: */
  .nav .container {
    padding: 0 40px !important;
  }

  /* ŠIS IET LAPAS SATURAM: */
  .privacy-page,
  .terms-page {
    padding: 0;
    margin-top: 80px;
  }
  /* ... pārējais kods ... */
}

.privacy-page h1,
.terms-page h1 {
  font-size: 24px;
  margin-bottom: 15px;
}

.privacy-page h2,
.terms-page h2 {
  font-size: 24px !important;
  margin-top: 25px;
}

.privacy-page p,
.terms-page p {
  font-size: 16px;
  margin-bottom: 12px;
}

.footer-links {
  flex-direction: row !important;
  gap: 10px;
}

.footer-links span {
  display: inline;
}

/* Light mode teksts */
[data-theme="light"] .privacy-page,
[data-theme="light"] .terms-page,
[data-theme="light"] .privacy-page h1,
[data-theme="light"] .terms-page h1 {
  color: #1a1a1a;
}
