:root {
  --accent: #fecc00;
  --accent-dark: #e6b800;
}

/* 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);
  }
}

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

.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%;
}

/* Hero gradient background animation */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero {
  background-size: 200% 200%;
  overflow: hidden;
}

/* Hero gallery layout - wystający z prawej strony */
@media (min-width: 1024px) {
  .hero .container {
    position: relative;
  }
  
  .hero [class*="lg:absolute"] {
    position: absolute !important;
  }
}

/* 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;
}

/* Button ripple effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-ripple:hover::before {
  width: 300px;
  height: 300px;
}

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

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

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

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* 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;
  }
}

/* Print styles */
@media print {
  .topbar,
  .scroll-indicator,
  footer {
    display: none;
  }
}

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

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  /* Add dark mode styles if needed */
}

/* 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);
}

/* Border gradient */
.border-gradient {
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.border-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

/* Stagger animation for lists */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* Text reveal animation */
@keyframes textReveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.text-reveal {
  animation: textReveal 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bounce animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

/* Rotate on hover */
.rotate-hover {
  transition: transform 0.3s ease;
}

.rotate-hover:hover {
  transform: rotate(5deg);
}

/* Scale up on hover */
.scale-hover {
  transition: transform 0.3s ease;
}

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

/* Shake animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.animate-shake {
  animation: shake 0.5s ease;
}

/* Slide in from left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out;
}

/* Typewriter effect */
@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--accent);
  animation: typewriter 3s steps(40) 1s 1 normal both;
}

/* Glow pulse */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 5px var(--accent), 0 0 10px var(--accent);
  }
  50% {
    box-shadow: 0 0 20px var(--accent), 0 0 30px var(--accent);
  }
}

.glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}

/* Flip card effect */
.flip-card {
  perspective: 1000px;
}

.flip-card-inner {
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  backface-visibility: hidden;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* Gradient animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* Underline on hover */
.hover-underline {
  position: relative;
}

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

.hover-underline:hover::after {
  width: 100%;
}

/* Neon text effect */
.neon-text {
  text-shadow: 
    0 0 5px var(--accent),
    0 0 10px var(--accent),
    0 0 20px var(--accent),
    0 0 40px var(--accent);
}

/* Responsive text sizes */
@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
}

/* Loading spinner */
.spinner {
  border: 3px solid rgba(254, 204, 0, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 8px 12px;
  background: #000;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.tooltip:hover::before {
  opacity: 1;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent);
  color: #000;
}

/* Divider with text */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e5e5e5;
}

.divider::before {
  margin-right: 1rem;
}

.divider::after {
  margin-left: 1rem;
}

/* Smooth appearance for images */
img {
  opacity: 1;
  transition: opacity 0.3s ease-in;
}

img.lazy {
  opacity: 0;
  animation: fadeIn 0.5s ease-in forwards;
}

@media (prefers-reduced-motion: no-preference) {
  img.lazy {
    animation-delay: 0.1s;
  }
}

/* Enhanced hover effects for cards */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Improved button animations */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

/* Subtle parallax scroll effect */
.parallax-slow {
  transition: transform 0.3s ease-out;
}

/* Better focus states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

/* 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;
}

/* Loading state */
.skeleton-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

/* 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;
}

/* Hamburger menu animation */
#hamburger-top,
#hamburger-middle,
#hamburger-bottom {
  transform-origin: center;
}

#hamburger-top.rotate-45 {
  transform: rotate(45deg) translateY(8px);
}

#hamburger-middle.opacity-0 {
  opacity: 0;
}

#hamburger-bottom.-rotate-45 {
  transform: rotate(-45deg) translateY(-8px);
}

/* Better scroll snap for sections */
@media (min-width: 768px) {
  .scroll-snap-section {
    scroll-snap-align: start;
  }
  
  html.snap-scroll {
    scroll-snap-type: y proximity;
  }
}

/* Enhanced backdrop blur */
.backdrop-blur-strong {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Image overlay gradient */
.img-overlay-gradient {
  position: relative;
}

.img-overlay-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.img-overlay-gradient:hover::after {
  opacity: 1;
}

/* Cookie Consent Banner Styles - Mały popup w prawym dolnym rogu */
#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);
}
