/* Brand cards */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.brand-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease-out;
  position: relative;
  z-index: 1;
}

.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.brand-logo-container {
  height: 140px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9fb;
  position: relative;
  overflow: hidden;
}

.brand-logo-container::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: translateX(-100%);
  transition: all 1s ease;
}

.brand-card:hover .brand-logo-container::before {
  transform: translateX(100%);
}

.brand-logo {
  max-height: 100%;
  max-width: 80%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-card:hover .brand-logo {
  transform: scale(1.05);
}

.brand-info {
  padding: 1.5rem;
  text-align: center;
}

.brand-name {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-family: 'Space Grotesk', sans-serif;
}

.brand-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* Brand detail page - Updated Hero */
.brand-hero {
  background: linear-gradient(135deg, #051937, #004d7a);
  position: relative;
  padding: 10rem 0 6rem;
  color: white;
  overflow: hidden;
  margin-bottom: 2rem;
}

.brand-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.brand-hero::after {
  display: none; /* Remove the gradient overlay */
}

.brand-hero__logo {
  max-height: 120px;
  max-width: 100%;
  margin-bottom: 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-radius: 12px;
}

/* Qatar Digital Hub Distributor Section */
.distributor-section {
  background: white;
  padding: 5rem 0;
  position: relative;
  z-index: 2;
}

.distributor-title {
  font-weight: bold;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.distributor-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  height: 4px;
  width: 60px;
  background: var(--primary-blue);
}

.service-icon-container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 3rem;
  gap: 1.5rem;
}

.service-icon {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  background-color: #f5f7fa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.service-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.service-icon i {
  font-size: 1.8rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.service-icon span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dark);
}

.brand-overview__title {
  font-weight: bold;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.brand-overview__title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  height: 4px;
  width: 60px;
  background: var(--primary-blue);
}

.brand-stat {
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.brand-stat__icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(0, 102, 204, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.brand-stat__icon i {
  color: var(--primary-blue);
  font-size: 1.5rem;
}

.brand-stat__content h5 {
  font-weight: bold;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.brand-stat__content p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.brand-areas {
  background-color: #f5f5f7;
  padding: 5rem 0;
}

.area-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
}

.area-card:hover {
  transform: translateY(-5px);
}

.area-card__title {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.area-card__title i {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-right: 0.75rem;
}

.area-card__title h4 {
  margin-bottom: 0;
  font-weight: bold;
  font-size: 1.1rem;
}

.product-showcase {
  padding: 5rem 0;
}

.product-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
}

.product-item:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.product-item__image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.product-item__content {
  padding: 1.5rem;
  background: white;
}

.product-item__title {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.product-item__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Inquiry Form */
.inquiry-form {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.inquiry-form__title {
  margin-bottom: 1.5rem;
  font-weight: bold;
  text-align: center;
}

.inquiry-form .form-control {
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.inquiry-form .form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.15);
  border-color: var(--primary-blue);
}

.inquiry-form .btn-whatsapp {
  background-color: #25D366;
  border-color: #25D366;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 100%;
}

.inquiry-form .btn-whatsapp:hover {
  background-color: #1da851;
  border-color: #1da851;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.inquiry-form .btn-whatsapp i {
  margin-right: 0.5rem;
}

/* Animations */
.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-right {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

.animate-fade-left {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Brand Hero Section - Modified */
.brand-hero-section {
  background: linear-gradient(135deg, #2c5282, #0b4f71);
  padding: 10rem 0 6rem;
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.brand-hero-section h1 {
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.brand-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
}

/* Image placeholders */
.brand-hero__logo-placeholder {
  height: 100px;
  width: 200px;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  border-radius: 12px;
  font-weight: bold;
  color: #666;
}

.hero-image-placeholder {
  height: 200px;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
}

.hero-image-placeholder i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.product-item__placeholder {
  height: 200px;
  width: 100%;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
}

.product-item__placeholder i {
  font-size: 2.5rem;
}
