/* 
  Glass Service Bošnjace - Insurance Hero Stilovi
  Autor: Svilenkovic Dimitrije
  Verzija: 4.0 - Complete Modern Redesign
*/

: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;
}

.hero-modern.section-universal {
  background: var(--primary-dark);
  color: var(--white);
  padding: 40px 0 80px 0;
  margin-top: 80px !important; /* Increase top margin to account for fixed header */
  position: relative;
  overflow: hidden;
}

.hero-modern.section-universal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(52, 152, 219, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(193, 0, 0, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, rgba(193,0,0,0.05), rgba(52,152,219,0.05));
  pointer-events: none;
}

@media (max-width: 600px) {
  .hero-modern.section-universal {
    padding: 40px 0 60px 0;
    margin-top: 80px !important; /* Keep top margin for mobile too */
  }
}

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

.hero-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: 14px;
  padding: 10px 24px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0 0 20px 0;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.highlight-text {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.highlight-text::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(135deg, rgba(193,0,0,0.3), rgba(52,152,219,0.3));
  z-index: -1;
  transform: skew(-15deg);
}

.hero-subtitle {
  color: var(--gray);
  font-size: 1.3rem;
  margin: 0;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Main Content Layout */
.hero-main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 2;
}

/* Left Column */
.hero-left-column {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Benefits Section */
.hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--primary-light);
  border-radius: 20px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.benefit-item:hover::before {
  opacity: 1;
}

.benefit-item:hover {
  border-color: var(--accent-blue);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(52,152,219,0.2);
}

.benefit-icon {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
  color: var(--white);
  border-radius: 16px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.benefit-content {
  position: relative;
  z-index: 2;
}

.benefit-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px 0;
}

.benefit-content p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* CTA Section */
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-primary {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
  color: var(--white);
  border: none;
  border-radius: 16px;
  padding: 20px 32px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(52,152,219,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

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

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

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(193,0,0,0.4);
}

.cta-subtitle {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 4px;
}

.cta-secondary {
  background: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
  border-radius: 16px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
}

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

/* Trust Indicators */
.hero-trust {
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 24px;
  background: rgba(52,152,219,0.08);
  border-radius: 16px;
  border: 1px solid var(--input-border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-item i {
  color: var(--accent-red);
  font-size: 1rem;
}

/* Right Column */
.hero-right-column {
  position: relative;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  margin-bottom: 40px;
}

.hero-image-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
  border: 3px solid var(--accent-blue);
}

.hero-image-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image-container:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 40px 24px 24px;
  color: var(--white);
}

.overlay-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 600;
}

.overlay-content i {
  color: var(--accent-red);
  font-size: 1.3rem;
}

/* Floating Stats */
.floating-stats {
  position: absolute;
  top: 20px;
  right: -20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 10;
}

.stat-card {
  background: var(--primary-light);
  border: 2px solid var(--accent-blue);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  min-width: 140px;
}

.stat-card:hover {
  border-color: var(--accent-red);
  transform: translateX(-8px);
  box-shadow: 0 12px 40px rgba(193,0,0,0.3);
}

.stat-card-1 { animation: float 3s ease-in-out infinite; }
.stat-card-2 { animation: float 3s ease-in-out infinite 1s; }
.stat-card-3 { animation: float 3s ease-in-out infinite 2s; }

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

.stat-icon {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
  color: var(--white);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-red);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
}

/* Insurance Partners */
.insurance-partners {
  background: var(--primary-light);
  border: 2px solid var(--input-border);
  border-radius: 20px;
  padding: 24px;
  margin-top: 24px;
}

.insurance-partners h4 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  text-align: center;
}

.partners-subtitle {
  color: var(--gray);
  font-size: 0.9rem;
  text-align: center;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 8px;
}

.partners-grid::-webkit-scrollbar {
  width: 6px;
}

.partners-grid::-webkit-scrollbar-track {
  background: rgba(52,152,219,0.1);
  border-radius: 3px;
}

.partners-grid::-webkit-scrollbar-thumb {
  background: var(--accent-blue);
  border-radius: 3px;
}

.partners-grid::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

.partner-item {
  background: rgba(52,152,219,0.1);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray);
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partner-item:hover {
  background: rgba(52,152,219,0.2);
  border-color: var(--accent-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52,152,219,0.2);
}

.partner-item:last-child {
  background: linear-gradient(135deg, rgba(193,0,0,0.1), rgba(52,152,219,0.1));
  border-color: var(--accent-red);
  color: var(--accent-red);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .floating-stats {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin-top: 24px;
  }
  
  .stat-card {
    min-width: 120px;
  }
}

@media (max-width: 992px) {
  .hero-main-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .floating-stats {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .stat-card {
    min-width: 100px;
  }
  
     .partners-grid {
     grid-template-columns: repeat(3, 1fr);
     max-height: 180px;
   }
}

@media (max-width: 600px) {
  .hero-modern.section-universal {
    margin-top: 100px !important; /* Increase top margin for mobile too */
  }
  
  .hero-header { 
    margin-bottom: 40px; 
  }
  
  .hero-title { 
    font-size: 2rem; 
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-left-column {
    gap: 32px;
  }
  
  .benefit-item {
    padding: 20px;
    gap: 16px;
  }
  
  .benefit-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
  
  .benefit-content h3 {
    font-size: 1.1rem;
  }
  
  .cta-primary {
    padding: 18px 24px;
    font-size: 1.1rem;
  }
  
  .cta-secondary {
    padding: 14px 24px;
    font-size: 1rem;
  }
  
  .hero-trust {
    flex-direction: column;
    gap: 16px;
  }
  
  .floating-stats {
    flex-direction: column;
    align-items: center;
  }
  
  .stat-card {
    width: 100%;
    max-width: 200px;
  }
  
     .partners-grid {
     grid-template-columns: repeat(2, 1fr);
     max-height: 160px;
   }
   
   .partners-subtitle {
     font-size: 0.8rem;
   }
}

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