/* 
  Glass Service Bošnjace - Brands Stilovi
  Autor: Svilenkovic Dimitrije
  Verzija: 4.0 - Complete Modern Dark 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;
}

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

.brands-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.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(193, 0, 0, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

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

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

.brands-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);
}

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

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

/* Intro Section */
.brands-intro {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.brands-intro p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Brands Grid */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

/* Brand Cards */
.brand-card {
  background: var(--primary-light);
  border-radius: 28px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  border: 2px solid var(--input-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.brand-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-8px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

.brand-card.featured {
  border-color: var(--accent-red);
  background: linear-gradient(135deg, rgba(193,0,0,0.08), rgba(52,152,219,0.05));
}

.brand-card.featured:hover {
  border-color: var(--accent-red);
  box-shadow: 0 8px 40px rgba(193,0,0,0.2);
}

/* Brand Logo */
.brand-logo {
  background: var(--white);
  border-radius: 20px;
  padding: 24px;
  margin: 24px 24px 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

.brand-card:hover .brand-logo {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(52,152,219,0.2);
}

.brand-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: brightness(1) grayscale(0.2);
  transition: all 0.3s ease;
}

.brand-card:hover .brand-logo img {
  filter: brightness(1) grayscale(0);
  transform: scale(1.05);
}

/* Brand Content */
.brand-content {
  padding: 0 24px 24px 24px;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.brand-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 12px 0;
  transition: color 0.3s ease;
}

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

.brand-content p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 16px 0;
  flex: 1;
}

/* Brand Features */
.brand-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.brand-feature {
  background: rgba(52,152,219,0.1);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.brand-feature i {
  color: var(--accent-blue);
  font-size: 0.75rem;
}

.brand-card:hover .brand-feature {
  background: rgba(52,152,219,0.15);
  border-color: var(--accent-blue);
  color: var(--white);
}

/* Featured Badge */
.featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
  color: var(--white);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(193,0,0,0.3);
}

/* Quality Section */
.brands-quality {
  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;
}

.brands-quality::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;
}

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

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

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

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

.quality-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(52,152,219,0.08);
  border-radius: 16px;
  border: 1px solid var(--input-border);
  transition: all 0.3s ease;
}

.quality-feature:hover {
  background: rgba(52,152,219,0.12);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.quality-icon {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
  color: var(--white);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.quality-feature:hover .quality-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(193,0,0,0.3);
}

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

.quality-text p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

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

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

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

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

.cta-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 24px auto;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
  box-shadow: 0 8px 32px rgba(52,152,219,0.3);
}

.brands-cta:hover .cta-icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 12px 40px rgba(193,0,0,0.4);
}

.brands-cta h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 16px 0;
  position: relative;
  z-index: 2;
}

.brands-cta p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 32px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

/* Buttons */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

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

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

/* Logo hover effects for specific brands */
.brand-card[data-brand="pilkington"]:hover .brand-logo {
  background: linear-gradient(135deg, #e3f2fd, #f0f7ff);
}

.brand-card[data-brand="saint-gobain"]:hover .brand-logo {
  background: linear-gradient(135deg, #fff3e0, #fff8f1);
}

.brand-card[data-brand="lucas"]:hover .brand-logo {
  background: linear-gradient(135deg, #f3e5f5, #fce4ec);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .brands-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .quality-features {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .brands-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }
  
  .brands-title {
    font-size: 2rem;
  }
  
  .brands-quality, .brands-cta {
    padding: 36px 24px;
  }
  
  .quality-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .brands-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  
  .brand-logo {
    height: 100px;
    margin: 20px 20px 16px 20px;
    padding: 20px;
  }
  
  .brand-content {
    padding: 0 20px 20px 20px;
  }
}

@media (max-width: 600px) {
  .brands-header {
    margin-bottom: 32px;
  }
  
  .brands-title {
    font-size: 1.8rem;
  }
  
  .brands-subtitle {
    font-size: 1rem;
  }
  
  .brands-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .brand-card {
    border-radius: 20px;
  }
  
  .brand-logo {
    height: 80px;
    margin: 16px 16px 12px 16px;
    padding: 16px;
    border-radius: 16px;
  }
  
  .brand-content {
    padding: 0 16px 16px 16px;
  }
  
  .brand-content h3 {
    font-size: 1.2rem;
  }
  
  .brand-content p {
    font-size: 0.9rem;
  }
  
  .brands-quality, .brands-cta {
    padding: 32px 20px;
    border-radius: 20px;
  }
  
  .quality-header h3 {
    font-size: 1.5rem;
  }
  
  .brands-cta h3 {
    font-size: 1.5rem;
  }
  
  .cta-icon {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* Smooth transitions for brand card filtering */
.brand-card {
  transition: all 0.3s ease, max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.brand-card.showing {
  opacity: 1;
  transform: scale(1);
}
