:root {
  --accent: #fecc00;
  --accent-dark: #e6b800;
  --primary: #1a1a1a;
  --secondary: #333333;
}

/* Scroll Progress Bar */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--accent-dark));
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Custom Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}

/* Enhanced nav links */
.nav-link {
  position: relative;
  padding-bottom: 4px;
}

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

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

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Image zoom on hover */
.img-zoom {
  overflow: hidden;
  border-radius: 1rem;
}

.img-zoom img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Focus styles for accessibility */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Selection color */
::selection {
  background: var(--accent);
  color: #000;
}

::-moz-selection {
  background: var(--accent);
  color: #000;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Custom container max-widths */
.container {
  max-width: 1400px;
}

/* Enhanced shadows */
.shadow-custom {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.shadow-custom-lg {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Accent glow effect */
.accent-glow {
  box-shadow: 0 0 30px rgba(254, 204, 0, 0.3);
}

/* Transition utilities */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent horizontal overflow */
html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

/* Improved mobile menu transition - Full Screen */
#mobile-menu {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  transform: translateX(100%);
  opacity: 0;
  max-width: 100vw;
  width: 100vw;
  box-sizing: border-box;
}

#mobile-menu:not(.hidden) {
  transform: translateX(0);
  opacity: 1;
}

#mobile-menu > div {
  max-width: 100%;
  box-sizing: border-box;
}

/* Portfolio card hover effect */
.portfolio-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(254, 204, 0, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.portfolio-card:hover::before {
  opacity: 1;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Modern Portfolio Style */
.portfolio-modern {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.portfolio-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.portfolio-modern .line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Żółta kropka jako sygnat */
.yellow-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  margin: 0 4px;
  animation: pulse 2s ease-in-out infinite;
}

.yellow-dot-large {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* Floating yellow dots animation */
@keyframes floatDots {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) translateX(10px);
    opacity: 1;
  }
}

.floating-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: floatDots 4s ease-in-out infinite;
  opacity: 0.6;
}

.floating-dot:nth-child(1) { animation-delay: 0s; }
.floating-dot:nth-child(2) { animation-delay: 0.5s; }
.floating-dot:nth-child(3) { animation-delay: 1s; }
.floating-dot:nth-child(4) { animation-delay: 1.5s; }

/* Accent line with dots */
.accent-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.accent-line::before,
.accent-line::after {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.accent-line::before {
  position: absolute;
  left: -50px;
}

.accent-line::after {
  position: absolute;
  right: -50px;
}

/* Dot grid background pattern */
.dot-pattern {
  background-image: radial-gradient(circle, var(--accent) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.1;
}

/* Yellow accent underline */
.yellow-underline {
  position: relative;
  display: inline-block;
}

.yellow-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.6;
}

/* Portfolio Slider Styles */
.portfolio-slider {
  position: relative;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#portfolio-slider-track {
  display: flex;
  will-change: transform;
}

.slider-dot {
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot:hover {
  transform: scale(1.2);
}

.slider-dot.bg-accent {
  transform: scale(1.3);
}

/* Service icon animation */
.service-icon {
  transition: all 0.3s ease;
}

/* Infinite Scroll Animation for Clients */
.clients-scroll {
  animation: scroll 40s linear infinite;
  will-change: transform;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.clients-scroll:hover {
  animation-play-state: paused;
}

/* Ensure proper spacing and alignment for client logos */
.clients-scroll > div {
  display: flex;
  align-items: center;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Stats counter animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.stat-item {
  animation: countUp 0.6s ease-out forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

/* Smooth text gradient */
.text-gradient {
  background: linear-gradient(135deg, #fecc00 0%, #e6b800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cookie Consent Banner Styles */
#cookie-consent-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: auto;
  z-index: 10000;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1.25rem;
  width: 360px;
  max-width: calc(100vw - 3rem);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}

#cookie-consent-banner.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

#cookie-consent-banner.hidden {
  display: none !important;
  visibility: hidden;
}

.cookie-consent-content {
  width: 100%;
}

.cookie-consent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.cookie-consent-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  letter-spacing: -0.01em;
}

.cookie-consent-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  line-height: 1;
}

.cookie-consent-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.cookie-consent-text {
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
}

.cookie-consent-text p {
  margin: 0 0 0.375rem 0;
}

.cookie-consent-text p:last-child {
  margin-bottom: 0;
}

.cookie-consent-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cookie-consent-button {
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.01em;
  width: 100%;
}

.cookie-consent-button-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 2px 4px rgba(254, 204, 0, 0.2);
}

.cookie-consent-button-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 8px rgba(254, 204, 0, 0.3);
  transform: translateY(-1px);
}

.cookie-consent-button-primary:active {
  transform: translateY(0);
}

.cookie-consent-button-secondary {
  background: #ffffff;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.cookie-consent-button-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #1f2937;
}

.cookie-consent-button-link {
  background: transparent;
  color: #6b7280;
  text-decoration: none;
  padding: 0.5rem;
  font-size: 0.75rem;
  text-align: center;
}

.cookie-consent-button-link:hover {
  color: #374151;
  text-decoration: underline;
}

#cookie-consent-details {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cookie-consent-category {
  margin-bottom: 0.875rem;
  padding: 0.875rem;
  background: #fafafa;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.cookie-consent-category:hover {
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.08);
}

.cookie-consent-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.375rem;
}

.cookie-consent-category-title {
  font-weight: 500;
  color: #1f2937;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}

.cookie-consent-category-description {
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.5;
  margin-top: 0.375rem;
}

.cookie-consent-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-consent-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-consent-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
}

.cookie-consent-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.cookie-consent-toggle input:checked + .cookie-consent-slider {
  background-color: var(--accent);
}

.cookie-consent-toggle input:checked + .cookie-consent-slider:before {
  transform: translateX(20px);
}

.cookie-consent-toggle input:disabled + .cookie-consent-slider {
  background-color: #e5e7eb;
  cursor: not-allowed;
  opacity: 0.5;
}

.cookie-consent-required-badge {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.625rem;
  font-weight: 500;
  border-radius: 0.25rem;
  margin-left: 0.375rem;
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  #cookie-consent-banner {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    width: auto;
    max-width: none;
    padding: 1rem;
  }

  .cookie-consent-title {
    font-size: 0.875rem;
  }

  .cookie-consent-text {
    font-size: 0.75rem;
  }

  .cookie-consent-category {
    padding: 0.75rem;
  }
}

/* Overlay when banner is visible - delikatniejszy */
body.consent-banner-open {
  padding-bottom: 0;
}

/* Accessibility improvements - subtelniejsze */
.cookie-consent-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 0.375rem;
}

.cookie-consent-toggle input:focus-visible + .cookie-consent-slider {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 12px;
}

/* Animation for details section - delikatniejsza */
#cookie-consent-details {
  animation: slideInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Smooth scroll dla bannera */
#cookie-consent-banner {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Delikatniejszy scrollbar dla bannera */
#cookie-consent-banner::-webkit-scrollbar {
  width: 6px;
}

#cookie-consent-banner::-webkit-scrollbar-track {
  background: transparent;
}

#cookie-consent-banner::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

#cookie-consent-banner::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

