/* 
  Glass Service Bošnjace - Process Stilovi
  Autor: Svilenkovic Dimitrije
  Verzija: 4.1 - Elegant Grid Design
*/

:root {
  --primary-dark: #181a20;
  --primary-light: #23262f;
  --accent-red: #c10000;
  --accent-blue: #3498db;
  --white: #fff;
  --gray: #bfc9d1;
  --input-bg: #23262f;
  --input-border: #353945;
  --input-focus: #3498db;
  --error: #ff4d4f;
  --success: #00c48c;
}

.process-elegant.section-universal {
  background: var(--primary-dark);
  color: var(--white);
  padding: 48px 0 80px 0;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.process-elegant.section-universal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(52, 152, 219, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(193, 0, 0, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

@media (max-width: 600px) {
  .process-elegant.section-universal {
    padding: 28px 0 40px 0;
    margin-top: 0;
  }
}

/* Header */
.process-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.process-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 24px;
  border-radius: 16px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
}

.process-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--white);
  line-height: 1.2;
}

.process-subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  margin: 0 auto 32px auto;
  max-width: 700px;
  line-height: 1.6;
}

/* Process Steps Grid */
.process-steps {
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.process-step {
  position: relative;
  transition: all 0.3s ease;
}

.step-card {
  background: var(--primary-light);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  border: 2px solid var(--input-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(52,152,219,0.05), rgba(193,0,0,0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.step-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  overflow: visible;
}

.step-number {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
  color: var(--white);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(52,152,219,0.3);
  z-index: 10;
  opacity: 1;
  visibility: visible;
}

.step-card:hover .step-number {
  box-shadow: 0 6px 20px rgba(193,0,0,0.4);
}

.step-icon {
  background: rgba(52,152,219,0.1);
  color: var(--accent-blue);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 20px auto 20px auto;
  transition: all 0.3s ease;
  border: 2px solid rgba(52,152,219,0.2);
  position: relative;
  z-index: 2;
}

.step-icon::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px dashed var(--accent-blue);
  border-radius: 50%;
  opacity: 0;
  animation: rotate 15s linear infinite;
  transition: opacity 0.3s ease;
}

.step-card:hover .step-icon::before {
  opacity: 0.6;
}

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

.step-card:hover .step-icon {
  background: var(--accent-blue);
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(52,152,219,0.4);
}

.step-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 12px 0;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.step-card:hover h3 {
  color: var(--accent-blue);
}

.step-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 20px 0;
  position: relative;
  z-index: 2;
  flex-grow: 1;
}

.step-features {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.feature-tag {
  background: rgba(52,152,219,0.1);
  border: 1px solid rgba(52,152,219,0.2);
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: var(--accent-blue);
  font-weight: 500;
  transition: all 0.3s ease;
}

.step-card:hover .feature-tag {
  background: rgba(52,152,219,0.2);
  border-color: var(--accent-blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* Progress Bar */
.process-progress {
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.progress-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.progress-bar {
  background: var(--input-border);
  height: 4px;
  border-radius: 2px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
  height: 100%;
  width: 16.66%;
  border-radius: 2px;
  transition: width 0.8s ease;
  box-shadow: 0 0 10px rgba(52,152,219,0.5);
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-step {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 8px;
  text-align: center;
  min-width: 80px;
}

.progress-step.active {
  color: var(--accent-blue);
  background: rgba(52,152,219,0.1);
  transform: scale(1.05);
}

.progress-step:hover {
  color: var(--white);
  background: rgba(52,152,219,0.15);
}

/* Why Choose Us */
.why-choose {
  background: var(--primary-light);
  border-radius: 28px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  padding: 48px;
  margin-bottom: 48px;
  border: 2px solid var(--accent-blue);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.why-choose::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(193,0,0,0.03), rgba(52,152,219,0.03));
  pointer-events: none;
}

.why-header {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.why-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 16px 0;
}

.why-header p {
  color: var(--gray);
  font-size: 1rem;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 2;
}

.why-card {
  background: rgba(52,152,219,0.08);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  border: 1px solid var(--input-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(52,152,219,0.05), rgba(193,0,0,0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.why-card:hover {
  background: rgba(52,152,219,0.12);
  border-color: var(--accent-blue);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.why-icon {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
  color: var(--white);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px auto;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(52,152,219,0.3);
  position: relative;
  z-index: 2;
}

.why-card:hover .why-icon {
  transform: scale(1.1) rotateY(180deg);
  box-shadow: 0 8px 30px rgba(193,0,0,0.4);
}

.why-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 12px 0;
  position: relative;
  z-index: 2;
}

.why-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* CTA Section */
.process-cta {
  background: var(--primary-light);
  border-radius: 28px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  padding: 48px;
  border: 2px solid var(--accent-blue);
  position: relative;
  z-index: 2;
  overflow: hidden;
  transition: all 0.3s ease;
}

.process-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(193,0,0,0.05), rgba(52,152,219,0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.process-cta:hover::before {
  opacity: 1;
}

.process-cta:hover {
  border-color: var(--accent-red);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

.cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 2;
}

.cta-text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px 0;
}

.cta-text p {
  color: var(--gray);
  font-size: 1rem;
  margin: 0;
}

/* Buttons */
.cta-buttons {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(52,152,219,0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(193,0,0,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
  background: var(--accent-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52,152,219,0.3);
}

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

.section-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
  transition-delay: var(--delay, 0s);
}

.section-animate.visible {
  opacity: 1;
  transform: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .why-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .step-number {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
    top: -23px;
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 992px) {
  .process-title {
    font-size: 2rem;
  }
  
  .process-steps, .why-choose, .process-cta {
    padding: 36px 24px;
  }
  
  .cta-content {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  
  .progress-steps {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .progress-step {
    min-width: 60px;
    font-size: 0.8rem;
  }
  
  .step-number {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    top: -22px;
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .step-card {
    min-height: 240px;
    padding: 24px 20px;
  }
  
  .step-icon {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    top: -20px;
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 600px) {
  .process-header {
    margin-bottom: 32px;
  }
  
  .process-title {
    font-size: 1.8rem;
  }
  
  .process-subtitle {
    font-size: 1rem;
  }
  
  .process-steps, .why-choose, .process-cta {
    padding: 32px 20px;
    border-radius: 20px;
  }
  
  .why-header h3 {
    font-size: 1.5rem;
  }
  
  .cta-text h3 {
    font-size: 1.5rem;
  }
  
  .why-icon {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .progress-steps {
    justify-content: center;
  }
  
  .progress-step {
    min-width: 50px;
    font-size: 0.75rem;
    padding: 4px 2px;
  }
  
  .step-number {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    top: -8px;
    opacity: 1;
    visibility: visible;
  }
}

/* Smooth transitions for enhanced UX */
.process-step {
  transition: all 0.3s ease;
}

.process-step.hiding {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.process-step.showing {
  opacity: 1;
  transform: scale(1);
}