/* === Index Page Specific Styles === */

/* Hero Section */
.hero-section {
  padding: 6rem 0 5rem 0;
  background: linear-gradient(135deg, var(--mint), var(--emerald-600));
  color: white;
  text-align: center;
}
.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 2rem;
}
.hero-content h1 {
  background: linear-gradient(45deg, #a7f3d0, #ecfccb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.hero-buttons .btn-primary {
  background-color: var(--white);
  color: var(--mint);
}
.hero-buttons .btn-primary:hover {
  background-color: var(--gray);
}

/* Services Grid (General, for index.php sections) */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service-icon {
  font-size: 3rem;
  color: var(--mint);
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark);
}
.service-card p {
  color: #666;
  line-height: 1.6;
}

/* Why Choose Us Grid */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.why-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.why-icon-circle {
  width: 60px;
  height: 60px;
  background-color: var(--mint);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.why-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark);
}
.why-card p {
  color: #666;
  line-height: 1.6;
}

/* Design Services Section */
.design-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .design-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .design-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.design-service-card {
  background: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.design-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.design-service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.design-service-content {
  padding: 1.5rem;
}
.design-service-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}
.design-service-content p {
  color: #666;
  line-height: 1.6;
}

/* CTA Section (General) */
.cta-section {
  background: linear-gradient(45deg, var(--mint), var(--mint-dark));
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
  animation: pulse 2s infinite;
}
.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.cta-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  align-items: center;
}
@media (min-width: 600px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}
.cta-section .btn-secondary-outline {
  border-color: var(--white);
  color: var(--white);
}
.cta-section .btn-secondary-outline:hover {
  background-color: var(--white);
  color: var(--mint);
}

/* Influencer Intro Section */
.influencer-intro-section {
  background: #f8fffa;
  border-bottom: 1px solid #e0f7ef;
}
.influencer-intro-section h2 {
  color: #2ed8b6;
}
.influencer-intro-section p {
  color: #333;
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Animations for elements inside sections */
.animated-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}
.animated-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}
.animated-button {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Specific animation delays for staggered effect */
.animated-text:nth-child(1) { animation-delay: 0.1s; }
.animated-text:nth-child(2) { animation-delay: 0.2s; }

.animated-card:nth-child(1) { animation-delay: 0.3s; }
.animated-card:nth-child(2) { animation-delay: 0.4s; }
.animated-card:nth-child(3) { animation-delay: 0.5s; }
.animated-card:nth-child(4) { animation-delay: 0.6s; }
.animated-card:nth-child(5) { animation-delay: 0.7s; }
.animated-card:nth-child(6) { animation-delay: 0.8s; }

.animated-button { animation-delay: 0.9s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bg-dark {
  background: #ffffff;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2.5rem 0.5rem;
  justify-items: center;
  margin-top: 2.5rem;
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 170px; /* Ensure enough space for logo + name */
}

.brand-logo-wrapper {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
}

.brand-name {
  color: #2ed8b6;
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1rem;
  opacity: 1;
  position: static; /* Not absolute, so it always shows below logo */
  pointer-events: auto;
  text-align: center;
  background: none;
  padding: 0;
  z-index: 1;
  transition: none;
}

.brand-card:hover .brand-logo,
.brand-card:focus .brand-logo {
  transform: scale(1.08);
  transition: transform 0.2s;
}

.brand-card:hover .brand-name,
.brand-card:focus .brand-name {
  transform: scale(1.06);
  transition: transform 0.2s;
}

.brand-logo,
.brand-name {
  transition: transform 0.2s;
}

/* Responsive */
@media (max-width: 1200px) {
  .brands-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 900px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem 0.2rem;
  }
  .brand-logo-wrapper {
    width: 70px;
    height: 70px;
  }
  .brand-logo {
    width: 55px;
    height: 55px;
  }
}