/* Custom Styles and Enhancements for PRIOT d.o.o. */
:root {
  --priot-red: #fa4646;
  --priot-red-hover: #ff5c5c;
  --priot-dark: #0d0f17;
  --priot-darker: #080a0f;
  --priot-surface: #141724;
  --priot-surface-light: #1b1f30;
  --priot-border: rgba(255, 255, 255, 0.1);
  --priot-border-hover: rgba(250, 70, 70, 0.4);
  --priot-text: #ffffff;
  --priot-text-muted: #9499ab;
  --priot-text-dim: #656a7d;
  --plyr-color-main: #fa4646;
}

/* Global resets & typography */
body {
  background-color: var(--priot-dark);
  color: var(--priot-text);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.serif-bold {
  font-family: 'Roboto Serif', serif;
  font-style: italic;
  font-weight: 700;
}

/* Navigation enhancements */
.wrapper-navigation {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(13, 15, 23, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.text-nav-link {
  transition: color 0.2s ease;
}

.text-nav-link:hover, .text-nav-link.active {
  color: var(--priot-red) !important;
}

/* Button & interactive states */
.button_primary, .button-hero {
  background-color: var(--priot-red);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button_primary:hover, .button-hero:hover {
  background-color: var(--priot-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(250, 70, 70, 0.35);
}

/* Card hover animations */
.card-feature, .project-card, .card.projects {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* Marquee infinite scroll */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.partners-marquee {
  overflow: hidden;
  position: relative;
  display: flex;
  white-space: nowrap;
}

.wr_marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.partners-marquee:hover .wr_marquee-track {
  animation-play-state: paused;
}

/* Subpage banner & breadcrumbs */
.page-header {
  padding: 80px 0 50px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(250, 70, 70, 0.12) 0%, rgba(13, 15, 23, 0) 70%);
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--priot-text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--priot-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--priot-red);
}

.breadcrumb-separator {
  color: var(--priot-text-dim);
}

/* Article / Case study page styling */
.article-container, .legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}

.article-header {
  margin-bottom: 40px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  color: var(--priot-text-muted);
  font-size: 14px;
}

.article-body, .legal-body {
  font-size: 17px;
  line-height: 1.8;
  color: #c9cedd;
}

.article-body h2, .legal-body h2 {
  font-size: 28px;
  color: #fff;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--priot-border);
}

.article-body h3, .legal-body h3 {
  font-size: 22px;
  color: #fff;
  margin: 32px 0 12px;
}

.article-body p, .legal-body p {
  margin-bottom: 20px;
}

.article-body ul, .legal-body ul, .article-body ol, .legal-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body li, .legal-body li {
  margin-bottom: 10px;
}

.article-body blockquote {
  border-left: 4px solid var(--priot-red);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--priot-surface);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #e2e6f3;
}

.article-image-box {
  margin: 40px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--priot-border);
  background: var(--priot-surface);
}

.article-image-box img {
  width: 100%;
  height: auto;
  display: block;
}

.article-image-caption {
  padding: 12px 20px;
  font-size: 13px;
  color: var(--priot-text-muted);
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}

/* Tech tags */
.tech-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 32px;
}

.tech-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e9f5;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Fira Mono', monospace;
}

/* Contact & Form Styling */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--priot-surface);
  border: 1px solid var(--priot-border);
  border-radius: 20px;
  padding: 40px;
}

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #d1d5e5;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  box-sizing: border-box;
  background: var(--priot-darker);
  border: 1px solid var(--priot-border);
  border-radius: 10px;
  padding: 14px 18px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--priot-red);
  box-shadow: 0 0 0 3px rgba(250, 70, 70, 0.2);
}

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

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(250, 70, 70, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--priot-red);
  font-size: 20px;
  flex-shrink: 0;
}

/* Cookie Banner & Modal */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 520px;
  background: rgba(20, 23, 36, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--priot-border);
  border-radius: 16px;
  padding: 24px;
  z-index: 99999;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  display: none;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cookie-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn-cookie-accept {
  background: var(--priot-red);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-cookie-accept:hover {
  background: var(--priot-red-hover);
}

.btn-cookie-manage {
  background: transparent;
  color: #b0b5c7;
  border: 1px solid var(--priot-border);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-cookie-manage:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* Toast message */
.toast-success {
  position: fixed;
  top: 30px;
  right: 30px;
  background: #10b981;
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 100000;
  display: none;
  font-weight: 500;
}
