/* ═══════════════════════════════════════════
   RCE Automatyka — style.css
   ═══════════════════════════════════════════ */

/* ── ZMIENNE ── */
:root {
  --navy:       #1E274A;
  --navy-mid:   #1E274A;
  --navy-dark:  #151B33;
  --blue:       #009FE3;
  --blue-light: #E6F5FC;
  --steel:      #8ca0b8;
  --off-white:  #f0f4f8;
}

/* ── TYPOGRAFIA ── */
body {
  font-family: 'Roboto', sans-serif;
  background: #fff;
  line-height: 1.6;
  color: #1e274a;
}

h1, h2, h3,
.heading, .nav-link, .btn-primary,
.kicker, .section-kicker {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

/* ── TOP BAR ── */
#topbar {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── NAWIGACJA ── */
#navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b8cde0;
  transition: color 0.2s;
}
.nav-link:hover  { color: #fff; }
.nav-link.active { color: var(--blue) !important; }


/* ── HERO ── */
#hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Ciemny overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(15, 22, 50, 0.65) 0%,
    rgba(15, 22, 50, 0.35) 50%,
    rgba(15, 22, 50, 0.10) 100%
  );
  z-index: 1;
}

/* Kontener pozycjonujący panel po lewej */
.hero-content-wrap {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
}

/* Pojedynczy ciemny panel — kompaktowy */
.hero-panel-single {
  background: rgba(10, 16, 38, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--blue);
  border-radius: 2px;
  max-width: 500px;
  width: 100%;
  padding: 2.5rem 2.5rem 2.25rem;
  text-align: left;
}

/* Kicker badge — niebieski prostokąt */
.kicker-badge {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

/* H1 */
.hero-panel-single h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 3.8vw, 2.65rem);
  font-weight: 800;
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: 1.1rem;
  letter-spacing: -0.025em;
}

/* Opis */
.hero-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.7;
  margin-bottom: 1.9rem;
  max-width: 380px;
}

/* CTA row */
.hero-cta-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Outline button */
.btn-outline-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-outline-hero:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

@media (max-width: 640px) {
  .hero-content-wrap { padding: 0 1.25rem; }
  .hero-panel-single { padding: 1.75rem 1.5rem; max-width: 100%; }
  .hero-panel-single h1 { font-size: 1.75rem; }
}

/* ── PRZYCISK ── */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2.4rem;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0, 159, 227, 0.4);
}
.btn-primary:hover {
  background: #0086c0;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 159, 227, 0.5);
}

/* ── SCROLL CUE ── */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2.2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── SECTION KICKER ── */
.section-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ═══════════════════════════════════════════
   SERVICES SLIDER
   ═══════════════════════════════════════════ */
#services { background: var(--off-white); }

.service-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(13, 27, 46, 0.08);
  transition: box-shadow 0.3s;
}

.service-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--blue);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 159, 227, 0.35);
}

/* viewport + track */
.slider-viewport {
  overflow: hidden;
  position: relative;
}

.slider-track {
  display: flex;
  gap: 24px;
  will-change: transform;
}

/* per-card transitions */
.slide-item {
  flex-shrink: 0;
  cursor: pointer;
  transition:
    transform  0.65s cubic-bezier(0.77, 0, 0.175, 1),
    opacity    0.65s ease,
    box-shadow 0.65s ease;
  transform-origin: bottom center;
}

.slide-item.is-far {
  transform: scale(0.78);
  opacity: 0.3;
}

.slide-item.is-side {
  transform: scale(0.9);
  opacity: 0.65;
}

.slide-item.is-active {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 20px 60px rgba(13, 27, 46, 0.18);
}

/* ── CAROUSEL WRAPPER & PEEK ── */
.svc-carousel-wrap {
  /* allow left-edge peek to bleed past padding */
  overflow: hidden;
}

/* Arrow buttons — floating over the carousel */
.svc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.22s, transform 0.18s, box-shadow 0.22s;
  box-shadow: 0 4px 18px rgba(0,0,0,0.28);
  flex-shrink: 0;
}
.svc-arrow:hover    { background: var(--blue); transform: translateY(-50%) scale(1.08); box-shadow: 0 6px 24px rgba(0,159,227,0.4); }
.svc-arrow--left  { left: 1.25rem; }
.svc-arrow--right { right: 1.25rem; }

 
/* ═══════════════════════════════════════════
   EXPERIENCE BANNER
   ═══════════════════════════════════════════ */
/* tło i overlay #experience ustawione inline w HTML */
#experience { position: relative; }
#experience::before { display: none; }

/* ═══════════════════════════════════════════
   CERTYFIKATY
   ═══════════════════════════════════════════ */
 
/* ── karta ── */
.cert-card {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  min-height: 130px;   /* równa wysokość kart 1×1 */
}
 
/* niebieska linia wjeżdżająca od dołu po lewej */
.cert-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s ease;
}
.cert-card:hover::before { transform: scaleY(1); }
.cert-card:hover {
  background: rgba(0,159,227,0.07);
  border-color: rgba(0,159,227,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
 
/* ── kontener obrazka 1×1 ── */
.cert-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 90px;   /* stała wysokość — obrazki wyrównane */
}
 
/* ── kontener obrazka dla karty full-width (col-span-2) ── */
.cert-card--wide {
  min-height: 110px;
  flex-direction: row;
}
.cert-img-wrap--wide {
  height: 70px;   /* logo poziome — nie potrzebuje aż tyle miejsca */
  max-width: 260px;
}
 
/* ── sam obrazek ── */
.cert-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
 
  /* loga na ciemnym tle — odfiltruj białe tło jeśli PNG nie ma przezroczystości */
  mix-blend-mode: screen;   /* → białe logo na ciemnym tle */
  opacity: 0.7;
  transition: opacity 0.3s, filter 0.3s, transform 0.3s;
}
.cert-card:hover .cert-img {
  opacity: 1;
  mix-blend-mode: screen;   /* zostaje białe, ale pełne */
  transform: scale(1.05);
}
 
/* ═══════════════════════════════════════════
   KLIENCI — MARQUEE
   ═══════════════════════════════════════════ */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  flex-wrap: nowrap;
  animation: marquee 30s linear infinite;
}
.animate-marquee:hover { animation-play-state: paused; }
.animate-marquee > div {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5rem;
  padding-right: 5rem;
}

.client-logo {
  height: 65px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.3s ease;
}
.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ═══════════════════════════════════════════
   SWIPER (strony projektów)
   ═══════════════════════════════════════════ */
.project-slider {
  --swiper-navigation-size: 20px;
  --swiper-theme-color: #ffffff;
}

.project-slider .swiper-button-next,
.project-slider .swiper-button-prev {
  background-color: rgba(30, 39, 74, 0.7);
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  z-index: 10;
}
.project-slider .swiper-button-next::after,
.project-slider .swiper-button-prev::after {
  font-size: 18px !important;
  font-weight: bold;
}
.project-slider .swiper-button-next:hover,
.project-slider .swiper-button-prev:hover {
  background-color: var(--blue);
  transform: scale(1.1);
}

.project-slider .swiper-pagination-bullet {
  background: #ffffff !important;
  opacity: 0.6;
  width: 10px;
  height: 10px;
}
.project-slider .swiper-pagination-bullet-active {
  opacity: 1;
  width: 25px;
  border-radius: 5px;
  background: var(--blue) !important;
}
.project-slider .swiper-slide { background-color: #000; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
#footer      { background: var(--navy); }
.footer-link { color: var(--steel); font-size: 0.875rem; transition: color 0.2s; }
.footer-link:hover { color: #fff; }

/* ═══════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════ */
#mobile-menu { display: none; }

@media (max-width: 768px) {
  #nav-links { display: none !important; }
  #mobile-menu { display: block; }
}

/* ═══════════════════════════════════════════
   PROJEKTY UE — STRONA
   ═══════════════════════════════════════════ */

/* Hero Projects Section */
#hero-projects {
  scroll-behavior: smooth;
}

#hero-projects h1 {
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Project Cards */
.group {
  position: relative;
}

.group:hover .fa-arrow-right::before {
  transition: transform 0.3s ease;
}

/* EU Projects Grid Responsiveness */
@media (max-width: 1024px) {
  #eu-projects .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  #eu-projects .grid {
    grid-template-columns: 1fr;
  }
  
  #hero-projects .grid {
    grid-template-columns: 1fr;
  }
}

/* Stats Card Animation */
.border-l-4 {
  animation: slideInRight 0.8s ease-out;
}

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

/* Backdrop Blur Support */
@supports not (backdrop-filter: blur(4px)) {
  .backdrop-blur {
    background-color: rgba(30, 39, 74, 0.8);
  }
}
