/* Modern CSS with WOW effect for Inteliq */

/* Variables */
:root {
  /* Color Scheme - Modern Indigo & Teal */
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-dark: #3730a3;
  --secondary: #06b6d4;
  --secondary-light: #22d3ee;
  --secondary-dark: #0891b2;
  --accent: #f43f5e;
  --accent-light: #fb7185;
  --accent-dark: #e11d48;
  
  /* Neutrals */
  --dark: #1e293b;
  --dark-light: #334155;
  --light: #f8fafc;
  --light-dark: #e2e8f0;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

  .star {
    animation: none !important;
  }

  .heart-pulse {
    animation: none !important;
  }
}

/* Mobile: disable expensive animations for better performance */
@media (max-width: 768px) {
  .star {
    animation: none !important;
  }

  .heart-pulse {
    animation: none !important;
  }

  /* Disable all hover transitions on mobile - they cause jank */
  .service-card,
  .feature-item,
  .industry-card,
  .timeline-item,
  .footer-card,
  .social-icon,
  .cta-button-footer,
  .btn-action {
    transition: none !important;
  }

  .service-card:hover,
  .feature-item:hover,
  .industry-card:hover,
  .footer-card:hover,
  .social-icon:hover {
    transform: none !important;
    box-shadow: inherit !important;
  }

  /* Disable backdrop-filter on mobile - very expensive */
  .footer-card,
  .navbar-modern {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Focus states for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

/* Base Styles */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  max-width: 100%;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: 1140px; 
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}


/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

h2:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 9999px;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

/* Buttons */
.btn {
  transition: all var(--transition-normal);
  font-weight: 600;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: white;
}

.btn-outline-primary {
  color: var(--primary);
  border: 2px solid var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-color: transparent;
}

/* Navbar */
.navbar {
  transition: all var(--transition-normal);
  background-color: transparent;
  padding: 1.5rem 0;
  z-index: 1000;
}

.navbar-nav .nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--light);
  letter-spacing: 0.5px;
  transition: all var(--transition-normal);
  position: relative;
  padding: 0.5rem 1rem;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: width var(--transition-normal);
}

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

.navbar.scrolled .nav-link,
.navbar.show .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.navbar-nav .nav-link:hover {
  color: var(--primary);
}

.navbar-light .navbar-nav .nav-link {
  color: var(--dark);
  font-weight: 600;
  padding: 0.5rem 1rem;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  padding: 0.75rem 0;
}

.navbar-brand img {
  transition: width var(--transition-normal);
  width: 100px;
}

.navbar.scrolled .navbar-brand img {
  width: 60px;
}

.navbar .btn-primary {
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
}

.navbar.scrolled .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  transition: all var(--transition-normal);
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

/* Hero Section */
.hero-section {
  min-height: 100vh; /* zamiast height */
  padding-top: 100px; /* aby nie nachodziło na navbar */
  padding-bottom: 100px;
}

.contact-section {
  padding-top: 240px; /* dodane! */
  padding-bottom: 80px;
}

.navbar-nav .btn {
  margin-left: 4px;
  margin-right: 4px;
}

.hero-section::before {
  content: 'inteliq';
  position: absolute;
  top: 23%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 110px;
  font-weight: 700;
  color: rgba(79, 70, 229, 0.05);
  z-index: 1;
  animation: float 5s ease-in-out infinite;
  white-space: nowrap;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%234f46e5' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  z-index: 0;
}

.hero-section .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  margin-bottom: 1.5rem;
  text-align: center;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s ease-out;
}

.hero-section p {
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.2s;
  animation-fill-mode: both;
}

.hero-section .btn {
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  animation: fadeInUp 1s ease-out 0.4s;
  animation-fill-mode: both;
}

/* Services Section */
#services {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--light) 0%, var(--light-dark) 100%);
  position: relative;
  overflow: hidden;
}

.service-category {
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.service-category h3 {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2rem;
  text-align: center;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-xl);
}

.service-card .icon {
  margin-bottom: 1.5rem;
  position: relative;
}

.service-card .icon::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  background-color: rgba(79, 70, 229, 0.1);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.service-card .icon i {
  font-size: 3rem;
  transition: all var(--transition-normal);
}

.service-card:hover .icon i {
  transform: scale(1.1);
}

.service-card h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.service-card p {
  color: var(--dark-light);
  margin-bottom: 0;
}

/* What We Do Section */
#what-we-do {
  padding: 5rem 0;
  background-color: var(--light);
  position: relative;
}

#what-we-do .card {
  background-color: white;
  border-radius: 1rem;
  border: none;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  height: 100%;
}

#what-we-do .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

#what-we-do .card-img-top {
  width: 100%;
  max-width: 180px;
  max-height: 180px;
  margin: 0 auto;
  object-fit: contain;
  padding: 1rem;
  transition: all var(--transition-normal);
}

#what-we-do .card:hover .card-img-top {
  transform: scale(1.05);
}

#what-we-do .card-body {
  padding: 2rem;
}

#what-we-do .card-title {
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--dark);
}

#what-we-do .card-text {
  color: var(--dark-light);
}

#what-we-do p {
  font-size: 1.125rem;
  color: var(--dark-light);
}

/* Who We Serve Section */
#who-we-serve {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

#who-we-serve h2 {
  color: white;
}

#who-we-serve h2:after {
  background: white;
}

#who-we-serve .lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto 3rem;
}

#who-we-serve .client-type {
  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

#who-we-serve .client-type::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
}

#who-we-serve .client-type:hover {
  transform: translateY(-10px) scale(1.05);
  background-color: rgba(255, 255, 255, 0.2);
}

#who-we-serve .client-type i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
  transition: all var(--transition-normal);
}

#who-we-serve .client-type:hover i {
  transform: scale(1.1);
}

#who-we-serve .client-type h5 {
  font-weight: 600;
  margin: 0;
  color: white;
  font-size: 0.9rem;
  text-align: center;
}

/* Timeline Section */
.timeline {
  position: relative;
  margin: 0 auto;
  padding: 2rem 0;
  max-width: 800px;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  z-index: 1;
}

.timeline-item {
  width: 50%;
  padding: 2rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  text-align: right;
  left: 0;
}

.timeline-item:nth-child(even) {
  text-align: left;
  left: 50%;
}


.timeline-item::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: white;
  border: 4px solid var(--primary);
  top: 24px;
  border-radius: 50%;
  z-index: 3;
}

.timeline-item:nth-child(even)::before {
  left: -10px;
}

.timeline-icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 10px;
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  z-index: 10;
}


.timeline-item:nth-child(even) .timeline-icon {
  left: -55px;
}

.timeline-content {
  background-color: white;
  padding: 2rem;
  border-radius: 1rem; /* normalne zaokrąglenie */
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  width: 100%;
  max-width: 600px; /* żeby dymek nie był za szeroki */
  margin: 0 auto; /* centrujemy */
  text-align: left;
  position: relative;
}


.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}



.timeline-content h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

.timeline-content p {
  color: var(--dark-light);
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem;
}

.footer h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.footer a:hover {
  color: var(--primary-light);
}

.footer .social-icons a {
  font-size: 1.25rem;
  margin-right: 1rem;
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

/* Custom CV Button */
.custom-cv-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.custom-cv-button:hover {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: white;
}

/* Animations */
@keyframes float {
  0% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, calc(-50% - 20px));
  }
  100% {
    transform: translate(-50%, -50%);
  }
}

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

/* Responsive Styles */
@media (max-width: 991.98px) {
  .hero-section::before {
    font-size: 90px;
  }
  
  .navbar-nav .nav-link {
    font-size: 1.25rem;
    padding: 0.75rem;
    color: var(--dark);
  }
  
  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
  }
  
  .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item::before {
    left: 25px;
    right: auto;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-icon {
    left: 0;
    right: auto;
  }
  
  .timeline-item:nth-child(even) .timeline-icon {
    left: 0;
  }
}

@media (max-width: 767.98px) {
  .hero-section::before {
    font-size: 70px;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}

@media (max-width: 575.98px) {
  .hero-section::before {
    font-size: 50px;
  }
  
  h2 {
    font-size: 2rem;
  }
}

/* Custom SVG Icons */
.service-icon {
  width: 70px;
  height: 70px;
  transition: all var(--transition-normal);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(3deg);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.client-icon {
  width: 48px;
  height: 48px;
  transition: all var(--transition-normal);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.client-type:hover .client-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.feature-icon {
  width: 56px;
  height: 56px;
  transition: all var(--transition-normal);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
}

.feature-item:hover .feature-icon {
  transform: scale(1.1) translateY(-2px);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
}

/* Feature items styling */
.feature-item {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.feature-item h5 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--dark-light);
  font-size: 0.95rem;
}

/* Loading Spinner */
#loading-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

#loading-spinner img {
  width: 150px;
  height: 150px;
}

.blur {
  filter: blur(1px);
  opacity: 0.5;
  pointer-events: none;
}

/* Scroll Arrow */
.scroll-arrow {
  position: relative;
  margin-top: 30px;
  font-size: 3rem;
  color: var(--primary);
  animation: bounce 2s infinite;
  text-align: center;
  cursor: pointer;
  z-index: 10;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(10px);
  }
  60% {
    transform: translateY(5px);
  }
}
