/* ============================================
   BRANDS GALLERY - ULTRA MODERN & FUTURISTIC
   ============================================ */

/* Section Spacing */
.brand-height-115 {
  height: 115px;
}

.brand-height-lg-70 {
  height: 70px;
}

.brand-height-120 {
  height: 120px;
}

.brand-height-lg-80 {
  height: 80px;
}

.brand-height-60 {
  height: 60px;
}

.brand-height-lg-40 {
  height: 40px;
}

/* Main Section */
.brand-gallery-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
  padding: 0;
}

.brand-gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 85, 0, 0.03) 25%, 
    rgba(38, 147, 255, 0.03) 50%, 
    rgba(40, 167, 69, 0.03) 75%, 
    transparent 100%);
  animation: brand-background-slide 15s linear infinite;
}

@keyframes brand-background-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

/* Section Wrapper */
.brand-gallery-wrapper {
  position: relative;
  z-index: 2;
}

/* Section Heading */
.brand-section-heading {
  text-align: center;
  margin-bottom: 20px;
  padding: 0 20px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.brand-section-title {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #ff5500 0%, #ff8833 50%, #ff5500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 85, 0, 0.3);
  animation: brand-title-glow 3s ease-in-out infinite;
}

@keyframes brand-title-glow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

.brand-title-underline {
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, #ff5500 0%, #2693FF 50%, #28a745 100%);
  margin: 0 auto 20px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.brand-title-underline::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  animation: brand-underline-shine 2s linear infinite;
}

@keyframes brand-underline-shine {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

.brand-section-subtitle {
  font-size: 18px;
  color: #b0b0b0;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Carousel Container */
.brand-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  margin: 0;
}

/* Carousel Track */
.brand-carousel-track {
  display: flex;
  gap: 40px;
  animation: brand-carousel-scroll 30s linear infinite;
  will-change: transform;
}

.brand-carousel-track:hover {
  animation-play-state: paused;
}

@keyframes brand-carousel-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% / 2 - 20px));
  }
}

/* Brand Item */
.brand-item {
  flex: 0 0 320px;
  min-width: 320px;
}

/* Brand Card */
.brand-card {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 30, 50, 0.8), rgba(20, 20, 35, 0.9));
  border-radius: 20px;
  padding: 40px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 2px solid rgba(255, 85, 0, 0.1);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, 
    #ff5500 0%, 
    #2693FF 33%, 
    #28a745 66%, 
    #ff5500 100%);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.brand-card:hover::before {
  opacity: 1;
  animation: brand-border-rotate 3s linear infinite;
}

@keyframes brand-border-rotate {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

.brand-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(255, 85, 0, 0.3),
    0 0 40px rgba(38, 147, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Shine Effect */
.brand-shine-effect {
  position: absolute;
  top: -100%;
  left: -100%;
  width: 50%;
  height: 300%;
  background: linear-gradient(45deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.1) 45%, 
    rgba(255, 255, 255, 0.3) 50%, 
    rgba(255, 255, 255, 0.1) 55%, 
    transparent 100%);
  transform: rotate(45deg);
  animation: brand-shine-sweep 4s ease-in-out infinite;
}

@keyframes brand-shine-sweep {
  0% {
    top: -100%;
    left: -100%;
  }
  50% {
    top: 100%;
    left: 100%;
  }
  100% {
    top: -100%;
    left: -100%;
  }
}

/* Logo Wrapper */
.brand-logo-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  max-width: 100%;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0.95) contrast(1.1);
  transition: all 0.4s ease;
}

.brand-card:hover .brand-logo {
  filter: brightness(1.1) contrast(1.2);
  transform: scale(1.05);
}

/* Progress Bar */
.brand-progress-bar {
  position: relative;
  width: 90%;
  max-width: 800px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 40px auto 0;
  overflow: hidden;
}

.brand-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ff5500 0%, #2693FF 50%, #28a745 100%);
  border-radius: 10px;
  animation: brand-progress-animation 30s linear infinite;
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.5);
}

@keyframes brand-progress-animation {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Floating Particles */
.brand-floating-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.brand-particle-1 {
  background: #ff5500;
  top: 20%;
  left: 10%;
  animation: brand-float-1 8s ease-in-out infinite;
  box-shadow: 0 0 20px #ff5500;
}

.brand-particle-2 {
  background: #2693FF;
  top: 60%;
  right: 15%;
  animation: brand-float-2 10s ease-in-out infinite;
  box-shadow: 0 0 20px #2693FF;
}

.brand-particle-3 {
  background: #28a745;
  bottom: 25%;
  left: 20%;
  animation: brand-float-3 12s ease-in-out infinite;
  box-shadow: 0 0 20px #28a745;
}

@keyframes brand-float-1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(50px, -50px) scale(1.5);
    opacity: 1;
  }
}

@keyframes brand-float-2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-60px, 40px) scale(1.5);
    opacity: 1;
  }
}

@keyframes brand-float-3 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(40px, -60px) scale(1.5);
    opacity: 1;
  }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* Large Tablets */
@media (max-width: 1024px) {
  .brand-section-title {
    font-size: 42px;
  }
  
  .brand-item {
    flex: 0 0 280px;
    min-width: 280px;
  }
  
  .brand-card {
    height: 200px;
    padding: 35px;
  }
  
  .brand-logo {
    max-height: 120px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .brand-height-115,
  .brand-height-lg-70 {
    height: 70px;
  }
  
  .brand-height-120,
  .brand-height-lg-80 {
    height: 80px;
  }
  
  .brand-height-60,
  .brand-height-lg-40 {
    height: 40px;
  }
  
  .brand-section-title {
    font-size: 36px;
  }
  
  .brand-section-subtitle {
    font-size: 16px;
  }
  
  .brand-item {
    flex: 0 0 260px;
    min-width: 260px;
  }
  
  .brand-card {
    height: 180px;
    padding: 30px;
  }
  
  .brand-logo {
    max-height: 100px;
  }
  
  .brand-carousel-track {
    gap: 30px;
  }
  
  .brand-progress-bar {
    max-width: 500px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .brand-section-title {
    font-size: 28px;
  }
  
  .brand-section-subtitle {
    font-size: 14px;
    padding: 0 20px;
  }
  
  .brand-title-underline {
    width: 80px;
    height: 3px;
  }
  
  .brand-item {
    flex: 0 0 220px;
    min-width: 220px;
  }
  
  .brand-card {
    height: 160px;
    padding: 25px;
    border-radius: 15px;
  }
  
  .brand-logo {
    max-height: 80px;
  }
  
  .brand-carousel-container {
    padding: 30px 0;
  }
  
  .brand-carousel-track {
    gap: 20px;
  }
  
  .brand-progress-bar {
    max-width: 90%;
    height: 3px;
    margin-top: 30px;
  }
  
  .brand-floating-particle {
    width: 4px;
    height: 4px;
  }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
  .brand-section-title {
    font-size: 24px;
  }
  
  .brand-item {
    flex: 0 0 200px;
    min-width: 200px;
  }
  
  .brand-card {
    height: 140px;
    padding: 20px;
  }
  
  .brand-logo {
    max-height: 70px;
  }
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {
  .brand-carousel-track,
  .brand-shine-effect,
  .brand-progress-fill,
  .brand-floating-particle {
    animation: none;
  }
  
  .brand-card {
    transition: none;
  }
}