/* --- Base & Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}


html {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  background-color: #080a0f;
  color: #e2e8f0;
  overflow-x: hidden;
  user-select: auto !important; /* Odblokowanie zaznaczania tekstu dla SEO i UX */
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  -ms-user-select: auto !important;
}

/* --- Background: radial glow in top-right corner --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 90% 15%, rgba(234, 179, 8, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 5% 95%, rgba(234, 179, 8, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* --- Glassmorphism card --- */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  transition: transform 0.35s cubic-bezier(.22, .68, 0, 1.2), border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-6px) scale(1.025);
  border-color: rgba(234, 179, 8, 0.55);
  box-shadow: 0 0 32px rgba(234, 179, 8, 0.2), 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* --- Neon button pulse --- */
@keyframes pulse-neon {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4), 0 0 16px rgba(234, 179, 8, 0.3);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(234, 179, 8, 0), 0 0 30px rgba(234, 179, 8, 0.5);
  }
}

.btn-pulse {
  animation: pulse-neon 2.2s ease-in-out infinite;
}

/* --- Gradient text --- */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #EAB308 60%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Portfolio Card Redesign --- */
.portfolio-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(234, 179, 8, 0.3);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.7), 0 0 20px rgba(234, 179, 8, 0.05);
}

.portfolio-image-ctx {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, #111827 0%, #000000 100%);
}

.portfolio-image-ctx::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(8, 10, 15, 0.8) 100%);
  z-index: 1;
}

.portfolio-card:hover .portfolio-image-ctx img {
  transform: scale(1.05);
}

.portfolio-image-ctx img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-details {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-strategy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  color: #EAB308;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.portfolio-strategy-badge span {
  width: 6px;
  height: 6px;
  background: #EAB308;
  border-radius: 50%;
  box-shadow: 0 0 10px #EAB308;
}

.portfolio-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.portfolio-card p {
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.portfolio-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portfolio-tag-v2 {
  font-size: 0.7rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.portfolio-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-cta {
  color: #EAB308;
  gap: 0.75rem;
}

.portfolio-seo-stats {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 0.875rem;
  font-weight: 800;
  color: #fff;
}


/* --- Section divider subtle --- */
.section-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.3), transparent);
}

/* --- Icon circle --- */
.icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.icon-circle:hover {
  background: rgba(234, 179, 8, 0.18);
  border-color: rgba(234, 179, 8, 0.6);
  transform: scale(1.08);
}

/* --- Scroll progress bar at top --- */
#scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #EAB308, #22D3EE);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* --- Navbar glass --- */
nav {
  background: rgba(8, 10, 15, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- Smooth underline nav link --- */
/* --- Premium Navigation --- */
.glass-nav {
  background: rgba(15, 18, 25, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 20px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-nav:hover {
  border-color: rgba(234, 179, 8, 0.3);
  box-shadow: 0 12px 45px -12px rgba(234, 179, 8, 0.15);
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #EAB308, transparent);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #EAB308;
}

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


/* --- Floating particles (purely decorative CSS) --- */
@keyframes float-particle {

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

  33% {
    transform: translateY(-30px) translateX(15px);
    opacity: 0.7;
  }

  66% {
    transform: translateY(10px) translateX(-10px);
    opacity: 0.3;
  }
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: float-particle var(--dur, 8s) ease-in-out infinite;
  animation-delay: var(--del, 0s);
}

/* --- Trusted By Section --- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 1rem;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.25rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  min-height: 120px;
}

.trust-logo {
  max-width: 120px;
  max-height: 48px;
  object-fit: contain;
  opacity: 0.4;
  filter: grayscale(1) brightness(1.5);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 0.5rem;
}

.trust-name {
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  opacity: 0.25;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.4s ease;
}

.trust-scope {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(8, 10, 15, 0.98);
  padding: 1.5rem;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.7rem;
  font-weight: 800;
  color: #EAB308;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  line-height: 1.4;
  z-index: 20;
}

.trust-item:hover {
  background: rgba(234, 179, 8, 0.05);
  border-color: rgba(234, 179, 8, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8);
}

.trust-item:hover .trust-logo {
  opacity: 1;
  filter: grayscale(0) brightness(1);
  transform: scale(1.05);
}

.trust-item:hover .trust-name {
  opacity: 0.8;
  color: #EAB308;
}

.trust-item:hover .trust-scope {
  opacity: 1;
  transform: scale(1);
}

.trust-badge {
  display: inline-flex;
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.15);
  border-radius: 9999px;
  color: #EAB308;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* --- Featured Project (Flagship) Section --- */
.featured-section {
  position: relative;
  min-height: 80vh;
  padding: 100px 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #000;
}

.featured-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
}

.featured-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) contrast(1.1);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(234, 179, 8, 0.08) 0%, transparent 60%),
              linear-gradient(to right, #080a0f 30%, transparent 100%);
  z-index: 1;
}

.featured-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.featured-tag {
  display: inline-flex;
  padding: 0.5rem 1.25rem;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 9999px;
  color: #EAB308;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.featured-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  color: #fff;
  letter-spacing: -0.04em;
  margin-bottom: 2.5rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .featured-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.featured-stats-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.f-stat-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 1.5rem;
  transition: all 0.4s ease;
}

.f-stat-card:hover {
  border-color: rgba(234, 179, 8, 0.4);
  background: rgba(234, 179, 8, 0.05);
  transform: translateY(-5px);
}

.f-stat-card-red:hover {
  border-color: rgba(225, 29, 72, 0.4);
  background: rgba(225, 29, 72, 0.05);
  transform: translateY(-5px);
}

.f-stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.25rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.f-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.featured-tech {
  margin-top: 3rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.tech-icon-v2 {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-icon-v2 span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EAB308;
  box-shadow: 0 0 10px #EAB308;
}