/* ===========================
   What We Build Premium Section
   =========================== */

.what-we-build-section {
  position: relative;
  width: 100%;
  padding: 80px 0;
  background: #000000;
  color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.what-we-build-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

/* ===========================
   SERVICE GRID
   =========================== */

.wwb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

/* ===========================
   SERVICE CARD
   =========================== */

.wwb-card {
  position: relative;
  height: 100%;
  background: #1B1B1D;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(60px);
  animation: slideUp 0.8s ease-out forwards;
}

.wwb-card[data-index="0"] {
  animation-delay: 0ms;
}

.wwb-card[data-index="1"] {
  animation-delay: 150ms;
}

.wwb-card[data-index="2"] {
  animation-delay: 300ms;
}

.wwb-card:hover {
  transform: translateY(-10px);
  border-color: rgba(200, 154, 63, 0.3);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45);
  background: linear-gradient(135deg, #1B1B1D 0%, rgba(200, 154, 63, 0.05) 100%);
}

/* Card Visual Area */
.wwb-card-visual {
  position: relative;
  height: 170px;
  border-radius: 18px;
  margin: 16px;
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wwb-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.wwb-card:hover .wwb-card-visual img {
  transform: scale(1.08);
}

/* Card Content Area */
.wwb-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wwb-card-title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: 1px;
}

.wwb-card-description {
  margin: 0 0 25px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 1px;
}

/* Learn More Button */
.wwb-button {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.35s ease;
  letter-spacing: 1px;
}

.wwb-button:hover {
  background: linear-gradient(135deg, rgba(200, 154, 63, 0.2), rgba(255, 154, 106, 0.15));
  border-color: rgba(200, 154, 63, 0.4);
  color: #FFE5D9;
  transform: translateX(6px);
  box-shadow: 0 10px 30px rgba(200, 154, 63, 0.15);
}

.wwb-button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s ease;
}

.wwb-button:hover svg {
  transform: translateX(3px);
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  .what-we-build-section {
    padding: 100px 0;
  }

  .what-we-build-container {
    padding: 0 25px;
  }

  .wwb-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .wwb-card-title {
    font-size: 32px;
  }

  .wwb-card-content {
    padding: 25px;
  }

  .wwb-card-visual {
    height: 150px;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .what-we-build-section {
    padding: 80px 0;
  }

  .what-we-build-container {
    padding: 0 20px;
  }

  .wwb-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .wwb-card-visual {
    height: 140px;
    margin: 12px;
    border-radius: 16px;
  }

  .wwb-card-content {
    padding: 20px;
  }

  .wwb-card-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .wwb-card-description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .wwb-button {
    width: 100%;
    justify-content: center;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .what-we-build-section {
    padding: 60px 0;
  }

  .what-we-build-container {
    padding: 0 16px;
  }

  .wwb-card-title {
    font-size: 22px;
  }

  .wwb-card-description {
    font-size: 14px;
  }

  .wwb-logo {
    font-size: 50px;
  }
}
