/* Index Enhanced CSS - Styl dla strony głównej z unifikacją z blogiem */

/* ============================================
   MODERN HEADER 2025 - Complete Rebuild
   ============================================ */

/* CSS Custom Properties */
:root {
  --nav-bg: rgba(255, 255, 255, 0.95);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.98);
  --nav-border: rgba(0, 0, 0, 0.1);
  --nav-text: #4b5563;
  --nav-text-hover: #3b82f6;
  --nav-cta-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --nav-cta-secondary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --nav-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --nav-z-index: 1000;
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Header */
.main-header {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--nav-border);
  transition: var(--transition-base);
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  height: auto;
  max-width: 100vw;
  width: 100%;
  box-sizing: border-box;
  will-change: transform;
  backface-visibility: hidden;
}

.main-header::before {
  display: none;
}

.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--nav-shadow);
}

.main-header.scrolled::before {
  display: none;
}

/* Nav Container - CSS Grid Layout */
.nav-container {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 0.75rem;
  min-height: 60px;
  height: 60px;
  position: relative;
  z-index: 1001;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

/* Mobile: Hide desktop menu and language switcher, show hamburger */
@media (max-width: 767px) {
  .nav-container {
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }
  
  .nav-menu--desktop {
    display: none !important;
    visibility: hidden !important;
  }
  
  .language-switcher {
    display: none !important;
    visibility: hidden !important;
  }
  
  .hamburger {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  
  /* Ensure mobile menu is accessible */
  .nav-menu--mobile {
    display: block !important;
    visibility: visible !important;
  }
}

/* Tablet: Show language switcher, hide hamburger */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-container {
    grid-template-columns: auto 1fr auto auto;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
  }
  
  .hamburger {
    display: none !important;
  }
  
  .nav-menu--desktop {
    display: flex !important;
  }
  
  .language-switcher {
    display: flex !important;
  }
}

/* Desktop: Full layout */
@media (min-width: 1024px) {
  .nav-container {
    grid-template-columns: auto 1fr auto auto;
    gap: 1rem;
    padding: 0.5rem 1.5rem;
  }
  
  .hamburger {
    display: none !important;
  }
}

@media (min-width: 640px) {
  .nav-container {
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    min-height: 70px;
    height: 70px;
  }
}

@media (min-width: 768px) {
  .nav-container {
    grid-template-columns: auto 1fr auto auto;
    min-height: 75px;
    height: 75px;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
  }
}

@media (min-width: 1024px) {
  .nav-container {
    grid-template-columns: auto 1fr auto auto;
    min-height: 80px;
    height: 80px;
    gap: 1rem;
    padding: 0.5rem 1.5rem;
  }
}

/* Navigation Logo */
.nav-logo {
  display: flex !important;
  align-items: center;
  text-decoration: none;
  transition: var(--transition-base);
  border-radius: 8px;
  padding: 0;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1002;
  position: relative;
  min-width: 140px;
  max-width: 160px;
  overflow: hidden;
  flex-shrink: 1;
}

@media (min-width: 640px) {
  .nav-logo {
    min-width: 160px;
    max-width: 180px;
  }
}

@media (min-width: 768px) {
  .nav-logo {
    min-width: 180px;
    max-width: 200px;
  }
}

@media (min-width: 1024px) {
  .nav-logo {
    min-width: 200px;
    max-width: 220px;
  }
}

.nav-logo:hover {
  transform: translateY(-2px);
  background: rgba(59, 130, 246, 0.05);
}

.nav-logo-img {
  width: 140px;
  height: auto;
  max-height: 45px;
  min-height: 35px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1002;
  position: relative;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .nav-logo-img {
    width: 160px;
    max-height: 50px;
    min-height: 40px;
  }
}

@media (min-width: 768px) {
  .nav-logo-img {
    width: 180px;
    max-height: 55px;
    min-height: 45px;
  }
}

@media (min-width: 1024px) {
  .nav-logo-img {
    width: 200px;
    max-height: 60px;
    min-height: 50px;
  }
}

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

/* Desktop Menu */
.nav-menu--desktop {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  overflow: visible;
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
}

/* Mobile: Hide desktop menu */
@media (max-width: 767px) {
  .nav-menu--desktop {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .nav-menu--desktop {
    display: flex !important;
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .nav-menu--desktop {
    gap: 1rem;
  }
}

@media (min-width: 1280px) {
  .nav-menu--desktop {
    gap: 1.25rem;
  }
}

.nav-menu--desktop > li {
  position: relative;
}

.nav-menu--desktop > li .nav-cta,
.nav-menu--desktop > li > a.nav-cta,
.nav-menu--desktop > li .header-cta,
.nav-menu--desktop > li > a.header-cta {
  z-index: 1004 !important;
  position: relative;
  isolation: isolate;
}

.nav-link {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  padding: 0.4rem 0;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-base);
  position: relative;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .nav-link {
    font-size: 14px;
  }
}

@media (min-width: 1280px) {
  .nav-link {
    font-size: 15px;
  }
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--nav-text-hover);
  transform: translateY(-1px);
}

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

.nav-link:focus {
  outline: 2px solid var(--nav-text-hover);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Active State - Modern 2025/2026 Style */
.nav-link.active,
.nav-link[aria-current="page"] {
  color: var(--nav-text-hover);
  font-weight: 700;
  transform: translateY(-2px);
  text-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.nav-link.active::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.6), 0 0 20px rgba(139, 92, 246, 0.4);
  animation: activeUnderline 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes activeUnderline {
  0% {
    width: 0;
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    width: 100%;
    opacity: 1;
  }
}

/* Active state for nav-buttons */
.nav-button.active,
.nav-button[aria-current="page"],
.nav-link.nav-button.active,
.nav-link.nav-button[aria-current="page"] {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 30px rgba(59, 130, 246, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: activeButtonPulse 2s ease-in-out infinite;
}

.nav-button.active::after,
.nav-button[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 4px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.6) 100%);
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6);
  animation: activeButtonUnderline 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes activeButtonPulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 30px rgba(59, 130, 246, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 40px rgba(59, 130, 246, 0.7), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  }
}

@keyframes activeButtonUnderline {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 80%;
    opacity: 1;
  }
}

/* Enhanced active state for specific button colors */
.nav-button--blue.active,
.nav-button--blue[aria-current="page"] {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(147, 197, 253, 0.5);
}

.nav-button--green.active,
.nav-button--green[aria-current="page"] {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5), 0 0 40px rgba(16, 185, 129, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(110, 231, 183, 0.5);
}

.nav-button--orange.active,
.nav-button--orange[aria-current="page"] {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5), 0 0 40px rgba(245, 158, 11, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(253, 186, 116, 0.5);
}

.nav-button--teal.active,
.nav-button--teal[aria-current="page"] {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.5), 0 0 40px rgba(20, 184, 166, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(94, 234, 212, 0.5);
}

.nav-button--pink.active,
.nav-button--pink[aria-current="page"] {
  background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.5), 0 0 40px rgba(236, 72, 153, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(251, 113, 133, 0.5);
}

.nav-button--indigo.active,
.nav-button--indigo[aria-current="page"] {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5), 0 0 40px rgba(79, 70, 229, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(165, 180, 252, 0.5);
}

.nav-button--yellow.active,
.nav-button--yellow[aria-current="page"] {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.5), 0 0 40px rgba(234, 179, 8, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(253, 224, 71, 0.5);
}

.nav-button--blue-light.active,
.nav-button--blue-light[aria-current="page"] {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.5), 0 0 40px rgba(96, 165, 250, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(147, 197, 253, 0.5);
}

.nav-button--purple.active,
.nav-button--purple[aria-current="page"] {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.5), 0 0 40px rgba(147, 51, 234, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(196, 181, 253, 0.5);
}

/* CTA Links - styled like buttons but work like nav-link */
.nav-link-cta {
  padding: 0.625rem 1.25rem !important;
  border-radius: 12px;
  font-weight: 700 !important;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1006 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  white-space: nowrap;
  isolation: isolate;
}

.nav-link-cta::after {
  display: none !important;
}

.nav-link-cta--primary {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: white !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.nav-link-cta--primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  color: white !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5);
}

.nav-link-cta--secondary {
  background: rgba(59, 130, 246, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #3b82f6 !important;
  border: 2px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.nav-link-cta--secondary:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  color: #2563eb !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.nav-link-cta:focus {
  outline: 3px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

/* ============================================
   Navigation Buttons - Colorful Animated Buttons
   ============================================ */

/* Base Button Styles */
.nav-button,
.nav-link.nav-button,
a.nav-button,
button.nav-button {
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  min-height: 32px;
  max-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  color: white;
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nav-button,
  .nav-link.nav-button,
  a.nav-button,
  button.nav-button {
    padding: 0.4rem 0.85rem;
    font-size: 12.5px;
    min-height: 34px;
    max-height: 38px;
  }
}

@media (min-width: 1024px) {
  .nav-button,
  .nav-link.nav-button,
  a.nav-button,
  button.nav-button {
    padding: 0.4rem 0.9rem;
    font-size: 13px;
    min-height: 36px;
    max-height: 40px;
  }
}

/* Override nav-link styles when nav-button is present */
.nav-link.nav-button::after {
  display: none;
}

.nav-link.nav-button {
  color: white !important;
}

.nav-button::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 ease, height 0.6s ease;
  pointer-events: none;
}

.nav-button:active::before {
  width: 300px;
  height: 300px;
}

/* Color Variants */
.nav-button--blue {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.nav-button--green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.nav-button--orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.nav-button--teal {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.25);
}

.nav-button--pink {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.25);
}

.nav-button--yellow {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.25);
  color: #0f172a;
  font-weight: 700;
}

.nav-button--purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
}

.nav-button--indigo {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.nav-button--cyan {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.25);
  color: white;
}

.nav-button--blue-light {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: 2px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Hover Animations */
.nav-button:hover {
  transform: translateY(-1px) scale(1.01);
  background-position: 100% 50%;
}

.nav-button--blue:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.nav-button--green:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.nav-button--orange:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.nav-button--teal:hover {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.4);
}

.nav-button--pink:hover {
  background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.4);
}

.nav-button--yellow:hover {
  background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%);
  box-shadow: 0 4px 16px rgba(234, 179, 8, 0.4);
  color: #030712;
  font-weight: 700;
}

.nav-button--purple:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.nav-button--indigo:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.nav-button--cyan:hover {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.4);
  color: white;
}

.nav-button--blue-light:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: rgba(59, 130, 246, 0.5);
  color: white;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

/* Focus States (Accessibility) */
.nav-button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 12px;
}

.nav-button--blue:focus-visible {
  outline-color: #3b82f6;
}

.nav-button--green:focus-visible {
  outline-color: #10b981;
}

.nav-button--orange:focus-visible {
  outline-color: #f59e0b;
}

.nav-button--teal:focus-visible {
  outline-color: #14b8a6;
}

.nav-button--pink:focus-visible {
  outline-color: #ec4899;
}

.nav-button--yellow:focus-visible {
  outline-color: #eab308;
}

.nav-button--purple:focus-visible {
  outline-color: #8b5cf6;
}

.nav-button--indigo:focus-visible {
  outline-color: #6366f1;
}

.nav-button--cyan:focus-visible {
  outline-color: #06b6d4;
}

.nav-button--blue-light:focus-visible {
  outline-color: #3b82f6;
}

/* Active States */
.nav-button:active {
  transform: translateY(0) scale(0.98);
}

.nav-button--blue:active {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.nav-button--green:active {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
}

.nav-button--orange:active {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
}

.nav-button--teal:active {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
}

.nav-button--pink:active {
  background: linear-gradient(135deg, #be185d 0%, #9f1239 100%);
}

.nav-button--yellow:active {
  background: linear-gradient(135deg, #a16207 0%, #854d0e 100%);
  color: #030712;
  font-weight: 700;
}

.nav-button--purple:active {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
}

.nav-button--indigo:active {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
}

.nav-button--cyan:active {
  background: linear-gradient(135deg, #0e7490 0%, #155e75 100%);
  color: white;
}

.nav-button--blue-light:active {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  border-color: rgba(59, 130, 246, 0.6);
}

/* Responsive Styles */
@media (max-width: 767px) {
  .nav-button {
    padding: 0.3rem 0.65rem;
    font-size: 11px;
    min-height: 30px;
    max-height: 34px;
    border-radius: 8px;
  }
  
  .nav-button:hover {
    transform: translateY(-1px) scale(1.01);
  }
  
  .nav-button:active {
    transform: translateY(0) scale(0.97);
  }
  
  /* Ensure nav buttons don't overflow on mobile */
  .nav-menu--desktop .nav-button {
    font-size: 10px;
    padding: 0.25rem 0.5rem;
    min-height: 28px;
    max-height: 32px;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .nav-container {
    padding: 0.5rem 0.5rem;
    gap: 0.25rem;
  }
  
  .nav-logo {
    min-width: 120px !important;
    max-width: 140px !important;
  }
  
  .nav-logo-img {
    width: 120px !important;
    max-height: 40px !important;
  }
  
  .hamburger {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

/* Ensure buttons work in mobile menu */
.mobile-nav-link.nav-button,
.mobile-nav-cta.nav-button {
  width: 100% !important;
  margin-bottom: 0.75rem;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.875rem 1.25rem !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  min-height: 44px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1 !important;
  position: relative !important;
  box-sizing: border-box !important;
}

/* Active state for mobile nav buttons */
.mobile-nav-link.nav-button.active,
.mobile-nav-link.nav-button[aria-current="page"],
.mobile-nav-cta.nav-button.active,
.mobile-nav-cta.nav-button[aria-current="page"] {
  transform: translateX(8px) translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 30px rgba(59, 130, 246, 0.5);
  border-left: 6px solid rgba(255, 255, 255, 0.8);
  padding-left: calc(0.9rem - 6px);
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.mobile-nav-dropdown-toggle.nav-button {
  width: 100%;
  text-align: left;
  justify-content: space-between;
}

/* Navigation CTA Buttons - OLD (keeping for mobile menu) */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 12px;
  min-height: 44px;
  transition: var(--transition-base);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1003;
  pointer-events: auto !important;
  cursor: pointer;
}

.nav-cta--primary {
  background: var(--nav-cta-primary);
  color: white;
}

.nav-cta--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.nav-cta--secondary {
  background: var(--nav-cta-secondary);
  color: white;
}

.nav-cta--secondary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.nav-cta:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Header CTA Buttons - NEW WORKING VERSION (like hero buttons) */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  border-radius: 12px;
  min-height: 44px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1004 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  border: none;
  outline: none;
  white-space: nowrap;
  isolation: isolate;
}

.header-cta::before,
.header-cta::after {
  pointer-events: none;
}

.header-cta--primary {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: white !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.header-cta--primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5);
  color: white !important;
}

.header-cta--primary:active {
  transform: translateY(0) scale(1);
}

.header-cta--secondary {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #3b82f6 !important;
  border: 2px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.header-cta--secondary:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
  color: #2563eb !important;
}

.header-cta--secondary:active {
  transform: translateY(0) scale(1);
}

.header-cta:focus {
  outline: 3px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

.header-cta:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

/* Ensure header CTA buttons are always above dropdown */
.nav-menu--desktop > li:last-child,
.nav-menu--desktop > li:nth-last-child(2) {
  z-index: 1006 !important;
  position: relative;
  isolation: isolate;
}

/* Ensure CTA links are always clickable */
.nav-menu--desktop > li > a.nav-link-cta {
  z-index: 1007 !important;
  position: relative;
  isolation: isolate;
}

/* Desktop Dropdown */
.nav-dropdown {
  position: relative;
  z-index: 1001;
  display: inline-block;
}

/* Ensure dropdown menu is positioned correctly */
.nav-dropdown .nav-dropdown-menu {
  position: absolute !important;
  top: calc(100% + 0.5rem) !important;
  left: 0 !important;
  z-index: 1002 !important;
}

/* Force menu visibility when aria-expanded is true */
.nav-dropdown-toggle[aria-expanded="true"] ~ .nav-dropdown-menu,
.nav-dropdown .nav-dropdown-toggle[aria-expanded="true"] ~ .nav-dropdown-menu,
.nav-dropdown[aria-expanded="true"] .nav-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  display: block !important;
  position: absolute !important;
  top: calc(100% + 0.5rem) !important;
  left: 0 !important;
  z-index: 1002 !important;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  color: var(--nav-text);
  font-weight: 500;
  font-size: 15px;
  padding: 0.5rem 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-base);
  font-family: inherit;
  position: relative;
}

/* Override nav-dropdown-toggle styles when nav-button is present */
.nav-dropdown-toggle.nav-button {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
  color: white !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25) !important;
  min-height: 36px !important;
}

.nav-dropdown-toggle.nav-button::after {
  display: none !important;
}

.nav-dropdown-toggle.nav-button:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
  color: white !important;
  transform: translateY(-1px) scale(1.01) !important;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4) !important;
}

.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transition: width 0.3s ease;
}

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

.nav-dropdown-toggle:hover {
  color: var(--nav-text-hover);
}

.nav-dropdown-toggle:focus {
  outline: 2px solid var(--nav-text-hover);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-dropdown-toggle.nav-button:focus-visible {
  outline: 3px solid #8b5cf6 !important;
  outline-offset: 3px !important;
  border-radius: 12px !important;
}

.nav-dropdown-toggle.nav-button:active {
  transform: translateY(0) scale(0.98) !important;
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%) !important;
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.nav-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 240px;
  max-width: 300px;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  border: 1px solid rgba(0, 0, 0, 0.1);
  pointer-events: none;
  overflow: hidden;
  /* Ensure dropdown doesn't extend beyond its container */
  right: auto;
  width: auto;
  display: block !important;
}

.nav-dropdown-menu li {
  margin: 0;
  padding: 0;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown .nav-dropdown-toggle[aria-expanded="true"] ~ .nav-dropdown-menu,
.nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown-menu,
.nav-dropdown-toggle[aria-expanded="true"] ~ .nav-dropdown-menu,
.nav-dropdown[aria-expanded="true"] .nav-dropdown-menu,
.nav-dropdown-menu[style*="opacity: 1"] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  display: block !important;
}

.nav-dropdown-menu a,
.nav-dropdown-submenu-toggle {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-submenu-toggle:hover {
  background: rgba(59, 130, 246, 0.05);
  color: var(--nav-text-hover);
  padding-left: 1.5rem;
}

.nav-dropdown-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(59, 130, 246, 0.02);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-dropdown-submenu li {
  margin: 0;
  padding: 0;
}

.nav-dropdown-item:hover .nav-dropdown-submenu,
.nav-dropdown-submenu-toggle[aria-expanded="true"] ~ .nav-dropdown-submenu {
  max-height: 500px !important;
  overflow: visible;
}

.nav-dropdown-submenu a {
  display: block;
  padding: 0.625rem 1.25rem 0.625rem 2.5rem;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-dropdown-submenu a:hover,
.nav-dropdown-submenu a:focus {
  background: rgba(59, 130, 246, 0.08);
  color: var(--nav-text-hover);
  padding-left: 2.75rem;
}

.nav-dropdown-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 0.5rem 0;
  list-style: none;
}

.submenu-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
  margin-left: auto;
}

.nav-dropdown-submenu-toggle[aria-expanded="true"] .submenu-arrow {
  transform: rotate(90deg);
}

/* Hamburger Button */
.hamburger {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer !important;
  transition: var(--transition-base);
  z-index: 10002 !important;
  flex-shrink: 0;
  position: relative;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .hamburger {
    display: none !important;
  }
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--nav-text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  border-radius: 2px;
}

.hamburger:hover span {
  background: var(--nav-text-hover);
}

.hamburger:hover {
  background: rgba(59, 130, 246, 0.1);
}

.hamburger:active {
  background: rgba(59, 130, 246, 0.2);
}

.hamburger:focus {
  outline: 2px solid var(--nav-text-hover);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Ensure hamburger is always visible and clickable on mobile */
@media (max-width: 767px) {
  .hamburger {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 10002 !important;
    position: relative !important;
  }
}

/* Hamburger Animation - Transform to X */
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu */
.nav-menu--mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: min(90vw, 380px);
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: white;
  z-index: 10000 !important;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  display: block;
  -webkit-overflow-scrolling: touch;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

/* Mobile menu on small screens */
@media (max-width: 480px) {
  .nav-menu--mobile {
    width: 90vw;
    max-width: 90vw;
  }
}

/* Ensure mobile menu is properly displayed on mobile */
@media (max-width: 767px) {
  .nav-menu--mobile {
    display: block !important;
  }
  
  .nav-menu--mobile.is-open {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

@media (min-width: 768px) {
  .nav-menu--mobile {
    display: none !important;
  }
}

.nav-menu--mobile.is-open {
  transform: translateX(0) !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  display: block !important;
}

/* Force visibility of mobile menu content when open */
.nav-menu--mobile.is-open .mobile-menu-content,
.nav-menu--mobile.is-open .mobile-menu-list,
.nav-menu--mobile.is-open .mobile-menu-list li,
.nav-menu--mobile.is-open .mobile-menu-list li a,
.nav-menu--mobile.is-open .mobile-menu-list li button {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999 !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  pointer-events: none;
  display: block;
  touch-action: none;
}

@media (min-width: 768px) {
  .mobile-menu-backdrop {
    display: none !important;
  }
}

.mobile-menu-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-content {
  padding: 5rem 1.5rem 2rem;
  min-height: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.mobile-menu-list > li {
  width: 100%;
  display: block;
  box-sizing: border-box;
}

.mobile-nav-link,
.mobile-nav-cta {
  display: block;
  padding: 1rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  color: var(--nav-text);
  border-radius: 8px;
  transition: var(--transition-base);
  position: relative;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  pointer-events: auto;
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  background: rgba(59, 130, 246, 0.05);
  color: var(--nav-text-hover);
  transform: translateX(4px);
}

/* Active state for mobile navigation */
.mobile-nav-link.active,
.mobile-nav-link[aria-current="page"],
.mobile-nav-cta.active,
.mobile-nav-cta[aria-current="page"] {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.25) 0%, rgba(139, 92, 246, 0.15) 100%);
  color: var(--nav-text-hover);
  font-weight: 700;
  border-left: 6px solid;
  border-image: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%) 1;
  padding-left: calc(1rem - 6px);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  text-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.mobile-nav-link.active::before,
.mobile-nav-link[aria-current="page"]::before {
  content: '▶';
  position: absolute;
  left: 0.5rem;
  color: var(--nav-text-hover);
  font-size: 0.875rem;
  font-weight: bold;
  animation: slideIn 0.3s ease;
  text-shadow: 0 2px 4px rgba(59, 130, 246, 0.4);
}

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

.mobile-nav-cta {
  text-align: center;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1002;
  pointer-events: auto;
}

.mobile-nav-cta--primary {
  background: var(--nav-cta-primary);
  color: white;
}

.mobile-nav-cta--primary:hover,
.mobile-nav-cta--primary:focus {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.mobile-nav-cta--secondary {
  background: var(--nav-cta-secondary);
  color: white;
}

.mobile-nav-cta--secondary:hover,
.mobile-nav-cta--secondary:focus {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

/* Mobile Dropdown */
.mobile-nav-dropdown {
  border-bottom: 1px solid #e5e7eb;
}

.mobile-nav-dropdown-toggle {
  width: 100% !important;
  padding: 1rem !important;
  background: none;
  border: none;
  text-align: left;
  font-weight: 500;
  font-size: 16px;
  color: var(--nav-text);
  cursor: pointer !important;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-base);
  font-family: inherit;
  box-sizing: border-box !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1 !important;
  position: relative !important;
}

.mobile-nav-dropdown-toggle:hover,
.mobile-nav-dropdown-toggle:focus {
  background: rgba(59, 130, 246, 0.05);
  color: var(--nav-text-hover);
}

.mobile-nav-dropdown-toggle[aria-expanded="true"] .mobile-dropdown-arrow {
  transform: rotate(180deg);
}

.mobile-nav-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(59, 130, 246, 0.02);
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-dropdown-menu li {
  margin: 0;
  padding: 0;
}

.mobile-nav-dropdown-toggle[aria-expanded="true"] ~ .mobile-nav-dropdown-menu {
  max-height: 800px;
}

.mobile-nav-submenu-toggle {
  width: 100% !important;
  padding: 0.75rem 1rem 0.75rem 2rem !important;
  background: none;
  border: none;
  text-align: left;
  font-weight: 500;
  font-size: 14px;
  color: var(--nav-text);
  cursor: pointer !important;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-base);
  font-family: inherit;
  box-sizing: border-box !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1 !important;
  position: relative !important;
}

.mobile-nav-submenu-toggle:hover,
.mobile-nav-submenu-toggle:focus {
  background: rgba(59, 130, 246, 0.08);
  color: var(--nav-text-hover);
}

.mobile-nav-submenu-toggle[aria-expanded="true"] .submenu-arrow {
  transform: rotate(90deg);
}

.mobile-nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(59, 130, 246, 0.04);
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-submenu li {
  margin: 0;
  padding: 0;
}

.mobile-nav-submenu-toggle[aria-expanded="true"] ~ .mobile-nav-submenu {
  max-height: 300px !important;
}

/* Ensure mobile submenu is visible when expanded */
.mobile-nav-submenu-toggle[aria-expanded="true"] ~ .mobile-nav-submenu {
  display: block !important;
  visibility: visible !important;
}

.mobile-nav-submenu a {
  display: block !important;
  padding: 0.75rem 1rem 0.75rem 3rem !important;
  color: #6b7280;
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition-base);
  width: 100% !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1 !important;
  position: relative !important;
}

.mobile-nav-submenu a:hover,
.mobile-nav-submenu a:focus {
  background: rgba(59, 130, 246, 0.1);
  color: var(--nav-text-hover);
  padding-left: 3.25rem;
}

/* Ensure all mobile menu items are visible and clickable */
.mobile-menu-list li,
.mobile-menu-list li a,
.mobile-menu-list li button {
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1 !important;
  position: relative !important;
}

/* Fix for mobile menu dropdown items */
.mobile-nav-dropdown-menu li {
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
}

.mobile-nav-dropdown-menu li a {
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.mobile-nav-dropdown-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 0.5rem 0;
  list-style: none;
}

/* Navigation Logo - from blog */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0px;
  border-radius: 8px;
}

.nav-logo:hover {
  transform: translateY(-2px);
  background: rgba(59, 130, 246, 0.05);
}

.nav-logo:active {
  transform: translateY(0);
}

.nav-logo img,
.nav-logo-img {
  width: 280px;
  height: 210px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

@media (min-width: 768px) {
  .nav-logo img,
  .nav-logo-img {
    width: 400px;
    height: 300px;
  }
}

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

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  transition: color 0.3s ease;
  letter-spacing: -0.3px;
}

.nav-logo:hover .brand-name {
  color: #3b82f6;
}

.brand-subtitle {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  transition: color 0.3s ease;
  letter-spacing: 0.2px;
}

.nav-logo:hover .brand-subtitle {
  color: #9ca3af;
}

/* Navigation Links - from blog */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: flex-end;
}

.nav-links a {
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  z-index: 1;
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 240px;
  max-width: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  margin: 0;
  padding: 0.5rem 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  pointer-events: none;
  display: block !important;
  list-style: none;
  overflow: hidden;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown .nav-dropdown-toggle[aria-expanded="true"] ~ .nav-dropdown-menu,
.nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown-menu,
.nav-dropdown-toggle[aria-expanded="true"] ~ .nav-dropdown-menu,
.nav-dropdown[aria-expanded="true"] .nav-dropdown-menu,
.nav-dropdown-menu[style*="opacity: 1"] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  display: block !important;
}

.nav-dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  border-bottom: none;
}

.nav-dropdown-menu a:hover {
  background: rgba(59, 130, 246, 0.05);
  color: #3b82f6;
  padding-left: 24px;
}

.nav-dropdown-menu a:last-child {
  border-bottom: none;
}

/* Two-level dropdown menu styles */
.nav-dropdown-item {
  position: relative;
}

.nav-dropdown-submenu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 20px;
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  border-bottom: none;
  cursor: pointer;
  pointer-events: auto !important;
  position: relative;
  z-index: 1;
}

.nav-dropdown-submenu-toggle:hover {
  background: rgba(59, 130, 246, 0.05);
  color: #3b82f6;
  padding-left: 24px;
}

.nav-dropdown-submenu-toggle .submenu-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
  margin-left: auto;
}

.nav-dropdown-item:hover .submenu-arrow,
.nav-dropdown-submenu-toggle[aria-expanded="true"] .submenu-arrow {
  transform: rotate(90deg);
}

.nav-dropdown-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(59, 130, 246, 0.02);
  pointer-events: auto !important;
  position: relative;
  z-index: 1;
}

.nav-dropdown-item:hover .nav-dropdown-submenu,
.nav-dropdown-submenu-toggle[aria-expanded="true"] ~ .nav-dropdown-submenu {
  max-height: 500px !important;
  overflow: visible !important;
  display: block !important;
}

/* When JavaScript sets max-height dynamically, ensure smooth transition */
.nav-dropdown-submenu[style*="max-height"] {
  transition: max-height 0.3s ease;
}

/* Ensure submenu is visible when expanded */
.nav-dropdown-submenu-toggle[aria-expanded="true"] ~ .nav-dropdown-submenu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.nav-dropdown-submenu a {
  display: block;
  padding: 10px 20px 10px 40px;
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.2s ease;
  border-bottom: none;
}

.nav-dropdown-submenu a:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  padding-left: 44px;
}

.nav-dropdown-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 8px 0;
}

/* Mobile menu submenu styles */
.mobile-menu-dropdown-item {
  border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-submenu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 0;
  color: #4b5563;
  text-decoration: none;
  border-bottom: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding-left: 0;
  cursor: pointer;
}

.mobile-menu-submenu-toggle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  transition: width 0.3s ease;
}

.mobile-menu-submenu-toggle:hover::before {
  width: 4px;
}

.mobile-menu-submenu-toggle:hover {
  color: #2563eb;
  padding-left: 12px;
  background: rgba(59, 130, 246, 0.05);
  transform: translateX(4px);
}

.mobile-menu-submenu-toggle .submenu-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.mobile-menu-dropdown-item.active .submenu-arrow {
  transform: rotate(90deg);
}

.mobile-menu-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(59, 130, 246, 0.02);
}

.mobile-menu-dropdown-item.active .mobile-menu-submenu {
  max-height: 200px;
}

.mobile-menu-submenu a {
  padding-left: 40px;
  font-size: 13px;
  color: #6b7280;
}

.mobile-menu-dropdown-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 8px 0;
}

/* Mobile Menu Dropdown */
.mobile-menu-dropdown {
  border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.mobile-dropdown-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.mobile-menu-dropdown.active .mobile-dropdown-arrow {
  transform: rotate(180deg);
}

.mobile-menu-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(59, 130, 246, 0.02);
}

.mobile-menu-dropdown.active .mobile-menu-dropdown-content {
  max-height: 300px;
}

.mobile-menu-dropdown-content a {
  padding-left: 24px;
  font-size: 14px;
  color: #6b7280;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  transition: width 0.3s ease;
  z-index: -1;
}

.nav-links a:not(.btn-contact):hover {
  color: #3b82f6;
  transform: translateY(-1px);
}

.nav-links a:not(.btn-contact):active {
  transform: translateY(0);
}

.nav-links a:not(.btn-contact):hover::after {
  width: 100%;
}

.nav-links .btn-contact {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  color: white;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  z-index: 1001;
  pointer-events: auto;
  text-decoration: none;
}

.nav-links .btn-contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  z-index: -1;
  transition: opacity 0.3s ease;
}

.nav-links .btn-contact::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 151, 170, 0.9) 0%, rgba(212, 122, 255, 0.9) 100%);
  transform: translate(-50%, -50%);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}

.nav-links .btn-contact:hover::after {
  width: 200px;
  height: 200px;
  opacity: 0.6;
}

.nav-links .btn-contact:hover {
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.nav-links .btn-projekty-www {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.nav-links .btn-projekty-www:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.nav-links .btn-contact,
.nav-links .btn-contact * {
  position: relative;
  z-index: 1001;
  pointer-events: auto !important;
}

.nav-links .btn-contact::before,
.nav-links .btn-contact::after {
  pointer-events: none !important;
}

.nav-links .btn-contact:active {
  transform: scale(0.95);
}

.nav-links .btn-contact:active::after {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Menu Button - from blog */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #1f2937;
  padding: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.mobile-menu-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.15) 50%, transparent 100%);
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.mobile-menu-btn:hover::before {
  width: 60px;
  height: 60px;
}

.mobile-menu-btn:hover {
  color: #2563eb;
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.mobile-menu-btn:active {
  transform: scale(0.95) rotate(45deg);
}

.mobile-menu-btn.active {
  transform: rotate(90deg);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: #4b5563;
  text-decoration: none;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding-left: 0;
}

.mobile-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  transition: width 0.3s ease;
}

.mobile-menu a:hover::before {
  width: 4px;
}

.mobile-menu a:hover {
  color: #2563eb;
  padding-left: 12px;
  background: rgba(59, 130, 246, 0.05);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* Hero Section - from blog */
/* Note: Layout is handled by Tailwind classes, this only adds visual effects */
.hero-section {
  position: relative;
  overflow: hidden;
  animation: heroSectionFadeIn 1s ease-out;
  color: white;
}

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

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
  pointer-events: none;
  z-index: 1;
  animation: heroBackgroundPulse 8s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
  pointer-events: none;
  z-index: 1;
}

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

.hero-container {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  /* Ensure proper centering - don't override Tailwind's mx-auto */
}

/* Hero section z-index utilities */
.hero-section-z-index {
  z-index: 1;
}

.hero-bg-z-index {
  z-index: 0;
}

/* Mobile: Center everything */
.hero-container > .grid {
  width: 100%;
}

.hero-container > .grid > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

/* Desktop: Left align text, but keep logo centered */
@media (min-width: 1024px) {
  .hero-container > .grid > div:first-child {
    align-items: flex-start;
  }
  
  .hero-container > .grid > div:first-child > .hero-logo {
    align-self: center;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center !important;
    align-items: center;
    text-align: center !important;
  }
  
  .hero-container > .grid > div:first-child > .hero-text {
    text-align: left;
    width: 100%;
    align-self: stretch;
  }
}

/* Add fadeInUp keyframe if not exists */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-container::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: heroContainerLine 1.5s ease-out 1s forwards;
}

@keyframes heroContainerLine {
  to {
    width: 80%;
  }
}

/* Hero Logo */
.hero-logo {
  animation: heroLogoFadeIn 1s ease-out both;
  display: flex;
  justify-content: center !important;
  align-items: center;
  width: 100%;
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

.hero-logo img {
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.3)) brightness(1.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: heroLogoGlow 3s ease-in-out infinite;
  margin: 0 auto;
  display: block;
}

.hero-logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 30px rgba(255, 255, 255, 0.5)) brightness(1.2);
}

@keyframes heroLogoFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroLogoGlow {
  0%, 100% {
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.3)) brightness(1.1);
  }
  50% {
    filter: drop-shadow(0 6px 25px rgba(255, 255, 255, 0.4)) brightness(1.15);
  }
}

.hero-text h1 {
  animation: heroFadeInUp 0.8s ease-out 0.2s both;
  position: relative;
}

.hero-text h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  animation: expandLine 1s ease-out 0.8s forwards;
}

@keyframes expandLine {
  to {
    width: 100%;
  }
}

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

/* Gradient Text - Radial */
.gradient-text-radial {
  background: radial-gradient(
    81.97% 84.34% at 60.76% 33.92%,
    #ffffff 0.5%,
    #1997aa 21.5%,
    #ffcd55 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Radial Gradient Overlay */
.radial-gradient-overlay {
  position: relative;
}

.radial-gradient-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    81.97% 84.34% at 60.76% 33.92%,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(25, 151, 170, 0.3) 50%,
    rgba(255, 205, 85, 0.2) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.radial-gradient-overlay > * {
  position: relative;
  z-index: 2;
}

/* Card Hover Effects - from blog */
.card-enhanced {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.card-enhanced::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 50%, transparent 100%);
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 0;
  pointer-events: none;
}

.card-enhanced:hover::before {
  width: 400px;
  height: 400px;
}

.card-enhanced > * {
  position: relative;
  z-index: 1;
}

.card-enhanced:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.card-enhanced:active {
  transform: translateY(-4px) scale(0.98);
}

/* Gradient Button - from blog */
.btn-gradient {
  position: relative;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  color: white;
  padding: 14px 24px;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  z-index: 1;
}

.btn-gradient::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 151, 170, 0.9) 0%, rgba(212, 122, 255, 0.9) 100%);
  transform: translate(-50%, -50%);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}

.btn-gradient:hover::after {
  width: 250px;
  height: 250px;
  opacity: 0.6;
}

.btn-gradient span {
  position: relative;
  z-index: 2;
}

.btn-gradient:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.btn-gradient:hover span i,
.btn-gradient:hover i {
  transform: translate(4px, -50%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Footer - from blog */
.footer {
  background: var(--gradient-hero, linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%));
  color: white;
  padding: 60px 20px 30px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

/* Footer Logo Styles */
.footer-logo {
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 93px;
  object-fit: contain;
  display: block !important;
  margin: 0 auto;
  /* Removed filter to show logo in original colors */
  opacity: 0.95;
  transition: opacity 0.3s ease, transform 0.3s ease;
  visibility: visible !important;
}

.footer-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .footer-logo {
    max-width: 150px;
    max-height: 70px;
  }
}

/* Footer logo container */
.footer-logo-container {
  display: flex !important;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1rem;
  visibility: visible !important;
}

.footer-logo-container a {
  display: inline-block !important;
  transition: transform 0.3s ease;
  visibility: visible !important;
}

.footer-logo-container a:hover {
  transform: scale(1.05);
}

.footer-logo-container picture,
.footer-logo-picture {
  display: block !important;
  visibility: visible !important;
  width: 100%;
  height: auto;
}

.footer-logo-container img,
.footer-logo {
  display: block !important;
  visibility: visible !important;
  width: auto;
  height: auto;
}

.footer-logo-link {
  display: inline-block !important;
  visibility: visible !important;
}

/* Footer logo link in gray footer - keep original colors */
.bg-gray-900 .footer-logo {
  /* Removed filter to show logo in original colors */
  opacity: 0.95;
}

/* Footer logo link */
.footer a[aria-label*="Strona główna"],
.bg-gray-900 a[aria-label*="Strona główna"] {
  display: inline-block;
  transition: transform 0.3s ease;
}

.footer a[aria-label*="Strona główna"]:hover,
.bg-gray-900 a[aria-label*="Strona główna"]:hover {
  transform: scale(1.05);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

.footer-section:hover h3 {
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-section p {
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 16px;
  transition: opacity 0.3s ease;
}

.footer-section:hover p {
  opacity: 1;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.footer-section ul li:hover {
  transform: translateX(4px);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-block;
  padding: 2px 0;
}

.footer-section a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  transition: width 0.3s ease;
}

.footer-section a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-section a:hover::after {
  width: 100%;
}

.footer-section a:active {
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  position: relative;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  transition: width 0.6s ease;
}

.footer:hover .footer-bottom::before {
  width: 200px;
}

.footer-bottom p {
  opacity: 0.7;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.footer:hover .footer-bottom p {
  opacity: 0.9;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 4px 0;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a:active {
  transform: scale(0.95);
}

/* Back to Top Button - from blog */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.6);
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.back-to-top:active {
  transform: translateY(-2px);
}

.back-to-top:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

.back-to-top-icon {
  line-height: 1;
  font-weight: bold;
}

/* Fade-on-scroll animation */
.fade-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-on-scroll.animate-fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .fade-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .fade-on-scroll.animate-fade-in {
    opacity: 1;
    transform: none;
  }
  
  .hero-section,
  .hero-container,
  .hero-logo,
  .hero-text h1,
  .hero-text p,
  .hero-search {
    animation: none !important;
  }
  
  .hero-logo img {
    animation: none !important;
  }
  
  .hero-section::before {
    animation: none !important;
  }
  
  .hero-container::after {
    animation: none !important;
  }
  
  .hero-text h1::after {
    animation: none !important;
    width: 100%;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-section {
    padding: 60px 20px;
  }

  .hero-container > .grid > div:first-child {
    align-items: center !important;
    text-align: center !important;
  }

  .hero-logo {
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    text-align: center !important;
  }

  .hero-text {
    text-align: center !important;
    align-items: center;
    width: 100%;
  }

  .hero-text p {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-section {
    padding: 50px 16px;
    min-height: 400px;
  }

  .hero-logo img {
    width: 80px;
    height: 80px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-text p {
    font-size: 18px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 40px 16px;
  }

  .hero-text h1 {
    font-size: 28px;
  }
}

/* Touch-friendly optimizations */
button,
a,
.nav-links a {
  -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
  touch-action: manipulation;
}

/* Ensure minimum touch target size (44x44px) */
button,
.nav-links a {
  min-height: 44px;
  min-width: 44px;
}

/* Expandable Cards */
.expandable-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.expandable-card .card-preview {
  transition: all 0.3s ease;
}

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

.expandable-card.expanded {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.expandable-card .card-hover-preview {
  transition: all 0.3s ease;
  max-height: 0;
  overflow: hidden;
}

.expandable-card:hover .card-hover-preview {
  max-height: 200px;
  display: block;
}

.expandable-card .card-details {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.expandable-card.expanded .card-details {
  max-height: 2000px;
  opacity: 1;
  display: block;
}

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

/* Portfolio Filter Buttons */
.portfolio-filter-btn {
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 14px;
  background: white;
  border: 2px solid #e5e7eb;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-filter-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.portfolio-filter-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.portfolio-category {
  display: block;
}

.portfolio-category.hidden {
  display: none;
}

.portfolio-grid .expandable-card {
  display: block;
}

.portfolio-grid .expandable-card.hidden {
  display: none;
}

/* Industry Selector Buttons */
.industry-selector-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  background: white;
  color: #374151;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.industry-selector-btn:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.industry-selector-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

@media (max-width: 640px) {
  .industry-selector-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* ============================================
   Process Visual Section - Jak to Działa
   ============================================ */

/* Main Section Container */
.process-visual-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.process-visual-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: backgroundPulse 8s ease-in-out infinite;
}

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

.process-visual-section > div {
  position: relative;
  z-index: 1;
}

/* Timeline Container */
.process-timeline {
  position: relative;
  padding: 2rem 0;
}

/* Desktop Horizontal Timeline Line */
.process-timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(99, 102, 241, 0.3) 10%,
    rgba(99, 102, 241, 0.6) 50%,
    rgba(99, 102, 241, 0.3) 90%,
    transparent 100%
  );
  transform: translateY(-50%);
  z-index: 0;
  animation: timelinePulse 3s ease-in-out infinite;
}

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

/* Mobile Vertical Timeline */
.process-timeline-vertical {
  position: absolute;
  left: 1.5rem;
  top: 0;
  bottom: 0;
  width: 3px;
  z-index: 0;
}

.process-timeline-vertical-line {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(99, 102, 241, 0.3) 10%,
    rgba(99, 102, 241, 0.6) 50%,
    rgba(99, 102, 241, 0.3) 90%,
    transparent 100%
  );
  animation: timelinePulse 3s ease-in-out infinite;
}

/* Process Steps Container */
.process-steps-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .process-steps-container {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

/* Process Step Card */
.process-step-card {
  position: relative;
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 2px solid rgba(99, 102, 241, 0.3);
}

.process-step-card:hover .process-step-image {
  transform: scale(1.15);
}

.process-step-card:hover .process-step-icon {
  transform: translate(-50%, -50%) scale(1.25) rotate(10deg);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.process-step-card:hover .process-step-number {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.process-step-card:hover .process-step-title {
  color: #6366f1;
  transform: translateY(-2px);
}

.process-step-card:hover .process-step-time {
  background: rgba(99, 102, 241, 0.2);
  transform: scale(1.05);
}

/* Step Number Badge */
.process-step-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Image Wrapper */
.process-step-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

@media (min-width: 1024px) {
  .process-step-image-wrapper {
    height: 180px;
  }
}

.process-step-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(99, 102, 241, 0.4) 100%
  );
  z-index: 1;
  transition: opacity 0.3s ease;
}

.process-step-card:hover .process-step-image-overlay {
  opacity: 0.6;
}

/* Step Icon */
.process-step-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  z-index: 2;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-10px);
  }
}

.process-step-card:hover .process-step-icon {
  animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(-50%, -50%) scale(1.3) rotate(-10deg);
  }
  75% {
    transform: translate(-50%, -50%) scale(1.3) rotate(10deg);
  }
}

/* Step Content */
.process-step-content {
  padding: 1.5rem;
}

.process-step-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
}

.process-step-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #4b5563;
  text-align: center;
  margin-bottom: 1rem;
}

.process-step-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6366f1;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.process-step-time-icon {
  font-size: 1rem;
}

/* CTA Section */
/* Process Header Animations */
.process-header-icon {
  animation: iconRotate 4s ease-in-out infinite;
}

@keyframes iconRotate {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(5deg) scale(1.05);
  }
  75% {
    transform: rotate(-5deg) scale(1.05);
  }
}

.process-header-title {
  animation: titleFadeIn 1s ease-out;
}

@keyframes titleFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.process-header-description {
  animation: descriptionFadeIn 1s ease-out 0.2s both;
}

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

.process-header-time {
  animation: timeFadeIn 1s ease-out 0.4s both;
}

@keyframes timeFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.process-cta {
  position: relative;
  z-index: 1;
}

.process-cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(99, 102, 241, 0.5);
  }
}

.process-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
  animation: none;
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
  .process-steps-container {
    gap: 2.5rem;
  }
  
  .process-step-card {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .process-step-image-wrapper {
    height: 220px;
  }
  
  .process-step-content {
    padding: 1.25rem;
  }
  
  .process-timeline {
    padding: 1.5rem 0;
  }
}

@media (max-width: 768px) {
  .process-visual-section > div {
    padding: 1.5rem 0;
  }
  
  .process-visual-section .text-center {
    margin-bottom: 2.5rem;
  }
  
  .process-visual-section h2 {
    font-size: 2rem;
  }
  
  .process-visual-section p {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .process-visual-section {
    padding: 1.5rem 0;
  }
  
  .process-visual-section > div {
    padding: 1rem 0;
  }
  
  .process-steps-container {
    gap: 2rem;
  }
  
  .process-step-card {
    max-width: 100%;
  }
  
  .process-step-image-wrapper {
    height: 200px;
  }
  
  .process-step-icon {
    font-size: 2.5rem;
  }
  
  .process-step-title {
    font-size: 1.125rem;
  }
  
  .process-step-description {
    font-size: 0.8125rem;
  }
  
  .process-step-number {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
    top: 0.75rem;
    right: 0.75rem;
  }
  
  .process-step-content {
    padding: 1rem;
  }
  
  .process-cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .process-timeline-vertical {
    left: 1rem;
  }
}

/* Image optimization for different screen sizes */
@media (min-width: 1024px) {
  .process-step-image {
    object-position: center;
  }
}

/* Enhanced hover effects for touch devices */
@media (hover: none) and (pointer: coarse) {
  .process-step-card:active {
    transform: translateY(-4px);
  }
  
  .process-step-card:active .process-step-image {
    transform: scale(1.05);
  }
}

/* Fade on Scroll Animation - Enhanced for Process Steps */
.process-step-card.fade-on-scroll {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step-card.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered animation delays for process steps */
.process-step-card[data-step="1"].fade-on-scroll.visible {
  transition-delay: 0.1s;
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.process-step-card[data-step="2"].fade-on-scroll.visible {
  transition-delay: 0.2s;
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.process-step-card[data-step="3"].fade-on-scroll.visible {
  transition-delay: 0.3s;
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.process-step-card[data-step="4"].fade-on-scroll.visible {
  transition-delay: 0.4s;
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.process-step-card[data-step="5"].fade-on-scroll.visible {
  transition-delay: 0.5s;
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

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

/* Animated Arrows Between Steps (Desktop Only) */
.process-arrows-container {
  display: none;
}

@media (min-width: 1024px) {
  .process-arrows-container {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
    pointer-events: none;
    max-width: 100%;
  }
  
  .process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #6366f1;
    opacity: 0.5;
    animation: arrowPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
  }
  
  .process-arrow-1 {
    grid-column: 2;
    animation-delay: 0.2s;
  }
  
  .process-arrow-2 {
    grid-column: 3;
    animation-delay: 0.4s;
  }
  
  .process-arrow-3 {
    grid-column: 4;
    animation-delay: 0.6s;
  }
  
  .process-arrow-4 {
    grid-column: 5;
    animation-delay: 0.8s;
  }
}

.process-arrow {
  display: none;
}

@keyframes arrowPulse {
  0%, 100% {
    opacity: 0.4;
    transform: translateX(0);
  }
  50% {
    opacity: 0.8;
    transform: translateX(5px);
  }
}

/* Enhanced Step Cards with More Visual Elements */
.process-step-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899, #f43f5e);
  border-radius: 1.5rem;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.process-step-card:hover::before {
  opacity: 0.1;
  animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.2;
  }
}

/* ============================================
   Unified Section Container Styles
   ============================================ */

/* Common section container styles for consistency */
section[class*="section-animate"],
section[class*="py-"] {
  position: relative;
}

/* Section container padding consistency */
section > div[class*="max-w-"] {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  section > div[class*="max-w-"] {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  section > div[class*="max-w-"] {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Section divider spacing */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
  margin: 0;
  border: none;
}

/* Consistent section vertical spacing */
section.section-animate {
  scroll-margin-top: 80px;
}

/* Section title consistency */
.section-title {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    margin-bottom: 1.5rem;
  }
}

/* ============================================
   Package Cards Animations and Styles
   ============================================ */

.package-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-card.fade-on-scroll.visible,
.package-card.fade-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.package-card[data-animation-delay="0"] {
  transition-delay: 0ms;
}

.package-card[data-animation-delay="100"] {
  transition-delay: 100ms;
}

.package-card[data-animation-delay="200"] {
  transition-delay: 200ms;
}

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

.package-card-premium:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 25px 50px rgba(79, 70, 229, 0.4);
}

/* Package card list items spacing */
.package-card ul li {
  transition: all 0.3s ease;
}

.package-card ul li:hover {
  background-color: rgba(0, 0, 0, 0.02);
  padding-left: 0.5rem;
  border-radius: 0.5rem;
}

.package-card-premium ul li:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Fade on scroll animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-on-scroll.visible,
.fade-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Language Switcher Fix - Prevent clipping */
.language-switcher {
  display: none !important;
  align-items: center !important;
  gap: 0.125rem !important;
  border: 1px solid rgba(209, 213, 219, 1) !important;
  border-radius: 0.5rem !important;
  padding: 0.125rem !important;
  background: white !important;
  min-width: fit-content !important;
  white-space: nowrap !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 10002 !important;
  flex-shrink: 0 !important;
  height: 32px !important;
}

/* Show language switcher on tablet and desktop */
@media (min-width: 768px) {
  .language-switcher {
    display: flex !important;
  }
}

.language-switcher button {
  padding: 0.25rem 0.5rem !important;
  border-radius: 0.375rem !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  border: none !important;
  background: transparent !important;
  color: #374151 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  min-width: 2rem !important;
  text-align: center !important;
  flex-shrink: 0 !important;
  height: 28px !important;
}

@media (min-width: 768px) {
  .language-switcher {
    height: 36px !important;
    gap: 0.25rem !important;
    padding: 0.25rem !important;
  }
  
  .language-switcher button {
    padding: 0.375rem 0.625rem !important;
    font-size: 0.8125rem !important;
    min-width: 2.25rem !important;
    height: 32px !important;
  }
}

.language-switcher button:hover {
  background: rgba(59, 130, 246, 0.1) !important;
  color: #1e40af !important;
}

.language-switcher button.active,
.language-switcher button.current-lang {
  background: #1e3a8a !important;
  color: white !important;
  font-weight: 600 !important;
}

.language-switcher button:focus-visible {
  outline: 2px solid #3b82f6 !important;
  outline-offset: 2px !important;
}

@media (max-width: 768px) {
  .language-switcher {
    gap: 0.125rem !important;
    padding: 0.125rem !important;
  }
  .language-switcher button {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
    min-width: 2rem !important;
  }
}

/* ============================================
   COOKIE BANNER FIXES - Prevent horizontal scroll
   ============================================ */
#cookie-consent-banner {
  max-width: 100vw !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 1rem !important;
  left: 0 !important;
  right: 0 !important;
  overflow: hidden !important;
}

.cookie-banner-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 1rem !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
}

.cookie-banner-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.cookie-banner-text {
  flex: 1 !important;
  width: 100% !important;
}

.cookie-banner-title {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem !important;
  color: white !important;
  margin-top: 0 !important;
}

.cookie-banner-description {
  font-size: 0.875rem !important;
  color: #d1d5db !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.cookie-banner-link {
  text-decoration: underline !important;
  color: #34d399 !important;
  transition: color 0.2s !important;
}

.cookie-banner-link:hover {
  color: #10b981 !important;
}

.cookie-banner-buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.cookie-banner-btn {
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
  border-radius: 0.5rem !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-size: 0.875rem !important;
}

.cookie-banner-btn-accept {
  background-color: #16a34a !important;
  color: white !important;
}

.cookie-banner-btn-accept:hover {
  background-color: #15803d !important;
}

.cookie-banner-btn-decline {
  background-color: transparent !important;
  border: 2px solid #4b5563 !important;
  color: white !important;
}

.cookie-banner-btn-decline:hover {
  border-color: #6b7280 !important;
}

@media (min-width: 640px) {
  .cookie-banner-buttons {
    flex-direction: row !important;
  }
  
  .cookie-banner-btn {
    width: auto !important;
    min-width: 120px !important;
  }
}

@media (min-width: 768px) {
  #cookie-consent-banner {
    padding: 1.5rem !important;
  }
  
  .cookie-banner-container {
    padding: 0 1.5rem !important;
  }
  
  .cookie-banner-content {
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.5rem !important;
  }
  
  .cookie-banner-text {
    flex: 1 !important;
  }
  
  .cookie-banner-buttons {
    flex-shrink: 0 !important;
    width: auto !important;
  }
}

/* Cookie Settings Button */
.cookie-banner-btn-settings {
  background-color: transparent !important;
  border: 2px solid #6b7280 !important;
  color: white !important;
}

.cookie-banner-btn-settings:hover {
  border-color: #9ca3af !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Cookie Settings Modal */
#cookie-settings-overlay {
  animation: fadeIn 0.3s ease;
}

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

#cookie-settings-modal {
  animation: slideUp 0.3s ease;
}

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

.cookie-category-item {
  transition: background-color 0.2s;
}

.cookie-category-item:hover {
  background-color: #f9fafb;
}

.cookie-category-item input[disabled] + div {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   HEADER FIXES - Prevent horizontal scroll
   ============================================ */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative !important;
}

/* Ensure body doesn't interfere with sticky header */
body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.main-header {
  max-width: 100vw !important;
  width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 60px !important;
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
}

@media (min-width: 640px) {
  .main-header {
    min-height: 70px !important;
  }
}

@media (min-width: 768px) {
  .main-header {
    min-height: 75px !important;
  }
}

@media (min-width: 1024px) {
  .main-header {
    min-height: 80px !important;
  }
}

.nav-container {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  height: 60px !important;
  min-height: 60px !important;
  max-height: none !important;
}

@media (min-width: 640px) {
  .nav-container {
    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
  }
}

@media (min-width: 768px) {
  .nav-container {
    height: 75px !important;
    min-height: 75px !important;
    max-height: 75px !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}

@media (min-width: 1024px) {
  .nav-container {
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* Logo size adjustments - optimized to prevent overflow */
.nav-logo {
  min-width: 140px !important;
  max-width: 160px !important;
  flex-shrink: 1 !important;
  overflow: hidden !important;
}

.nav-logo-img {
  max-width: 100% !important;
  height: auto !important;
  width: 140px !important;
  max-height: 45px !important;
}

@media (min-width: 640px) {
  .nav-logo {
    min-width: 160px !important;
    max-width: 180px !important;
  }
  
  .nav-logo-img {
    width: 160px !important;
    max-height: 50px !important;
  }
}

@media (min-width: 768px) {
  .nav-logo {
    min-width: 180px !important;
    max-width: 200px !important;
  }
  
  .nav-logo-img {
    width: 180px !important;
    max-height: 55px !important;
  }
}

@media (min-width: 1024px) {
  .nav-logo {
    min-width: 200px !important;
    max-width: 220px !important;
  }
  
  .nav-logo-img {
    width: 200px !important;
    max-height: 60px !important;
  }
}

/* Header buttons - ensure they fit */
.header-cta {
  font-size: 13px !important;
  padding: 0.5rem 1rem !important;
  min-height: 40px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (min-width: 768px) {
  .header-cta {
    font-size: 14px !important;
    padding: 0.625rem 1.25rem !important;
    min-height: 44px !important;
  }
}

/* Ensure nav menu doesn't overflow */
.nav-menu--desktop {
  flex-wrap: nowrap !important;
  overflow: visible !important;
  max-width: 100% !important;
  gap: 0.5rem !important;
  position: relative !important;
}

/* Ensure dropdown can overflow container */
.nav-dropdown {
  overflow: visible !important;
}

@media (min-width: 768px) {
  .nav-menu--desktop {
    gap: 0.75rem !important;
  }
}

@media (min-width: 1024px) {
  .nav-menu--desktop {
    gap: 1rem !important;
  }
}

.nav-menu--desktop > li {
  flex-shrink: 1 !important;
  min-width: 0 !important;
}

.nav-menu--desktop > li > a,
.nav-menu--desktop > li > button {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Mobile menu button */
.mobile-menu-toggle {
  flex-shrink: 0 !important;
  min-width: 44px !important;
  width: 44px !important;
  height: 44px !important;
}


