/* Konfiguracja klas Tailwind Custom */
:root {
    --hyp-bg: #ffffff;
    --hyp-black: #000000;
    --hyp-gray: #666666;
    --hyp-border: #e7e7e7;
    --hyp-borderDark: #1a1a1a;
    --hyp-cardDark: #080808;
    --hyp-orange: #d9531e;
    --hyp-orangeHover: #bf4314;
  }

  body {
    background-color: #ffffff;
    color: #000000;
    font-family: "Inter", sans-serif;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  }

  /* Typografia brutalistyczna */
  .font-display {
    font-family: 'Space Grotesk', 'Syne', sans-serif;
  }

  .hyp-hero-title {
    font-family: 'Space Grotesk', 'Syne', sans-serif;
    letter-spacing: -0.04em;
    line-height: 0.88;
    font-weight: 800;
    text-transform: uppercase;
  }

  /* Kolory Hyperset */
  .bg-hyp-cardDark { background-color: var(--hyp-cardDark); }
  .bg-hyp-orange { background-color: var(--hyp-orange); }
  .bg-hyp-orangeHover { background-color: var(--hyp-orangeHover); }
  .text-hyp-orange { color: var(--hyp-orange); }
  .border-hyp-border { border-color: var(--hyp-border); }
  .border-hyp-borderDark { border-color: var(--hyp-borderDark); }

  /* Siatki i obramowania */
  .grid-border-x {
    border-left: 1px solid var(--hyp-border);
    border-right: 1px solid var(--hyp-border);
  }

  .grid-border-t {
    border-top: 1px solid var(--hyp-border);
  }

  .grid-border-b {
    border-bottom: 1px solid var(--hyp-border);
  }

  /* Wskaźnik industrialny (4 kreski) */
  .tech-box-indicator {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
  }

  .tech-box-indicator span {
    width: 14px;
    height: 2px;
    background: #000000;
  }

  /* ================= ANIMACJE ================= */

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

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes scaleIn {
    from {
      opacity: 0;
      transform: scale(0.96);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  @keyframes drawLine {
    from { width: 0; }
    to { width: 100%; }
  }

  /* Klasy animacji */
  .anim-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .anim-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .anim-fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
  }

  .anim-fade-in.is-visible {
    opacity: 1;
  }

  .anim-slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .anim-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
  }

  .anim-scale-in {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .anim-scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
  }

  /* Opóźnienia stagger */
  .delay-100 { transition-delay: 0.1s; }
  .delay-200 { transition-delay: 0.2s; }
  .delay-300 { transition-delay: 0.3s; }
  .delay-400 { transition-delay: 0.4s; }
  .delay-500 { transition-delay: 0.5s; }
  .delay-600 { transition-delay: 0.6s; }

  /* Nav link underline animation */
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--hyp-orange);
    transition: width 0.3s ease, left 0.3s ease;
  }

  .nav-link:hover::after {
    width: 100%;
    left: 0;
  }

  /* Card hover lift effect */
  .card-lift {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  }

  .card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.12);
  }

  /* Smooth image zoom on hover */
  .img-zoom {
    overflow: hidden;
  }

  .img-zoom img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .img-zoom:hover img {
    transform: scale(1.05);
  }

  /* Pulse dot */
  @keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }

  .animate-pulse {
    animation: pulseDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  /* Selection style */
  ::selection {
    background: #000;
    color: #fff;
  }

  /* Scrollbar styling */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #f1f1f1;
  }

  ::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 0;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #555;
  }

/* ================= LOGO ================= */
.logo-invert {
  filter: invert(1);
}

/* ================= HERO BACKGROUND ================= */
.hero-bg-logo {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* Subtle floating animation for hero watermark */
@keyframes floatSlow {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-52%) translateX(10px); }
}

.hero-bg-logo img {
  animation: floatSlow 8s ease-in-out infinite;
}

/* Hexagonal grid pattern for hero background */
.hero-hex-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15L30 0z' fill='none' stroke='%23000000' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

/* Decorative electric line accent in hero */
.hero-electric-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--hyp-border) 30%, var(--hyp-border) 70%, transparent 100%);
  pointer-events: none;
}


/* ================= HERO ELECTRIC ANIMATIONS ================= */

/* Typewriter effect for WE DELIVER */
.hero-line-1 {
  display: block;
  position: relative;
}

.typewriter-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: typewriterReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  width: 0;
}

@keyframes typewriterReveal {
  from { width: 0; }
  to { width: 100%; }
}

.typewriter-cursor {
  display: inline-block;
  color: var(--hyp-orange);
  font-weight: 300;
  animation: cursorBlink 0.8s step-end infinite;
  margin-left: 2px;
  opacity: 0;
  animation-delay: 1.2s;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Electric glitch effect for ELECTRICITY */
.hero-line-2 {
  display: block;
  position: relative;
  animation: electricReveal 0.1s ease-out 0.8s both;
  opacity: 0;
}

@keyframes electricReveal {
  from { 
    opacity: 0; 
    transform: translateX(-20px) skewX(-10deg);
    filter: blur(8px);
  }
  to { 
    opacity: 1; 
    transform: translateX(0) skewX(0deg);
    filter: blur(0);
  }
}

.hero-line-2 {
  text-shadow: 
    0 0 0px transparent,
    0 0 0px transparent;
  animation: 
    electricReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both,
    electricFlicker 4s infinite 2s,
    electricGlow 3s infinite 2s;
}

@keyframes electricFlicker {
  0%, 100% { opacity: 1; }
  5% { opacity: 0.95; }
  6% { opacity: 1; }
  7% { opacity: 0.9; }
  8% { opacity: 1; }
  48% { opacity: 1; }
  49% { opacity: 0.85; }
  50% { opacity: 1; }
  88% { opacity: 1; }
  89% { opacity: 0.9; }
  90% { opacity: 1; }
}

@keyframes electricGlow {
  0%, 100% { 
    text-shadow: 
      0 0 0px transparent,
      0 0 0px transparent;
  }
  25% { 
    text-shadow: 
      0 0 20px rgba(217, 83, 30, 0.15),
      0 0 40px rgba(217, 83, 30, 0.08);
  }
  50% { 
    text-shadow: 
      0 0 10px rgba(217, 83, 30, 0.1),
      0 0 20px rgba(217, 83, 30, 0.05);
  }
  75% { 
    text-shadow: 
      0 0 30px rgba(217, 83, 30, 0.2),
      0 0 60px rgba(217, 83, 30, 0.1);
  }
}

/* Electric current lines background */
.hero-current-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero-current-lines::before,
.hero-current-lines::after {
  content: '';
  position: absolute;
  top: -100%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(217, 83, 30, 0.3) 20%,
    rgba(217, 83, 30, 0.6) 50%,
    rgba(217, 83, 30, 0.3) 80%,
    transparent 100%
  );
  animation: currentFlow 3s linear infinite;
}

.hero-current-lines::before {
  left: 15%;
  height: 60%;
  animation-duration: 2.5s;
  animation-delay: 0s;
}

.hero-current-lines::after {
  left: 75%;
  height: 80%;
  animation-duration: 3.5s;
  animation-delay: 1s;
}

@keyframes currentFlow {
  0% { top: -100%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 200%; opacity: 0; }
}

/* Additional current particles */
.current-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--hyp-orange);
  border-radius: 50%;
  opacity: 0;
  animation: particleSpark 2s ease-out infinite;
}

.current-particle:nth-child(1) { left: 20%; top: 30%; animation-delay: 0.3s; }
.current-particle:nth-child(2) { left: 45%; top: 60%; animation-delay: 0.8s; }
.current-particle:nth-child(3) { left: 70%; top: 20%; animation-delay: 1.2s; }
.current-particle:nth-child(4) { left: 85%; top: 50%; animation-delay: 1.6s; }
.current-particle:nth-child(5) { left: 35%; top: 80%; animation-delay: 2.0s; }

@keyframes particleSpark {
  0% { opacity: 0; transform: scale(0); }
  20% { opacity: 1; transform: scale(1.5); }
  40% { opacity: 0.3; transform: scale(1); }
  60% { opacity: 1; transform: scale(2); }
  100% { opacity: 0; transform: scale(0); }
}

/* Scanline overlay effect */
.hero-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.015) 2px,
    rgba(0, 0, 0, 0.015) 4px
  );
  opacity: 0.5;
}


/* ========== ELECTRIC TEXT WRAPPER ========== */
.electric-text {
  display: inline-block;
  opacity: 0;
  animation: 
    electricReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both,
    electricFlicker 5s infinite 2.5s,
    electricGlow 4s infinite 2.5s;
}

/* ========== SPARKS / ISKRY ========== */
.hero-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--hyp-orange);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 6px 2px rgba(217, 83, 30, 0.6);
}

.spark:nth-child(1)  { top: 15%; left: 10%; animation: sparkFly 3s ease-out 1.8s infinite; }
.spark:nth-child(2)  { top: 25%; left: 55%; animation: sparkFly 2.5s ease-out 2.1s infinite; }
.spark:nth-child(3)  { top: 45%; left: 30%; animation: sparkFly 3.2s ease-out 2.4s infinite; }
.spark:nth-child(4)  { top: 60%; left: 70%; animation: sparkFly 2.8s ease-out 1.9s infinite; }
.spark:nth-child(5)  { top: 35%; left: 85%; animation: sparkFly 3.5s ease-out 2.7s infinite; }
.spark:nth-child(6)  { top: 70%; left: 20%; animation: sparkFly 2.2s ease-out 2.2s infinite; }
.spark:nth-child(7)  { top: 20%; left: 75%; animation: sparkFly 3s ease-out 3.0s infinite; }
.spark:nth-child(8)  { top: 55%; left: 45%; animation: sparkFly 2.6s ease-out 2.5s infinite; }
.spark:nth-child(9)  { top: 80%; left: 60%; animation: sparkFly 3.3s ease-out 1.7s infinite; }
.spark:nth-child(10) { top: 40%; left: 15%; animation: sparkFly 2.4s ease-out 2.8s infinite; }
.spark:nth-child(11) { top: 10%; left: 50%; animation: sparkFly 3.1s ease-out 2.0s infinite; }
.spark:nth-child(12) { top: 65%; left: 90%; animation: sparkFly 2.7s ease-out 3.2s infinite; }

@keyframes sparkFly {
  0%   { opacity: 0; transform: translate(0, 0) scale(0); }
  10%  { opacity: 1; transform: translate(0, 0) scale(1); }
  30%  { opacity: 1; transform: translate(20px, -30px) scale(0.8); }
  60%  { opacity: 0.6; transform: translate(40px, -60px) scale(0.4); }
  100% { opacity: 0; transform: translate(40px, -60px) scale(0); }
}



/* ========== LOGO SPIN ========== */
.logo-spin {
  animation: logoSpin 10s linear infinite;
}

.logo-spin-slow {
  animation: logoSpin 20s linear infinite;
}

@keyframes logoSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* ========== HEXAGON SPIN ========== */
.hex-spin {
  animation: hexSpin 12s linear infinite;
}

@keyframes hexSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


.hex-spin-slow {
  animation: hexSpin 30s linear infinite;
}


/* ========== FLOATING RECRUITMENT BUBBLE ========== */
#recruit-bubble.is-visible {
  opacity: 1;
  transform: translateX(0);
}


.cookie-banner {
  position: fixed;
  bottom: 24px; 
  left: 50%;
  transform: translateX(-50%); 
  
  width: 50%; 
  min-width: 320px; 
  max-width: 900px; 
  
  background-color: #1e293b;
  color: #f8fafc;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: none; 
  box-sizing: border-box;
}

.cookie-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
}

.cookie-banner a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner a:hover {
  color: #7dd3fc;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.cookie-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-accept {
  background-color: #3b82f6;
  color: #ffffff;
}

.btn-accept:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
}

.btn-reject {
  background-color: transparent;
  color: #94a3b8;
  border: 1px solid #475569;
}

.btn-reject:hover {
  background-color: #334155;
  color: #f8fafc;
}

/* Responsywność - na nieco szerszych ekranach układ w rzędzie */
@media (min-width: 1024px) {
  .cookie-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .cookie-banner p {
    text-align: left;
    flex: 1; 
    padding-right: 20px;
  }
  .cookie-buttons {
    width: auto; 
  }
}