.services {
  box-sizing: border-box;
  margin: 0 auto;
  gap: 20px;
  position: relative;
  padding: 0 30px;
  width: 100%;
  max-width: 1160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  list-style: none;
}

.service-article {
  border-radius: 32px;
  padding: 0;
  overflow: visible;
  box-shadow: 0 20px 60px var(--shadow-light), 0 8px 25px var(--shadow-medium),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid var(--border-light);
  position: relative;
  transform: translateY(0);
  margin-bottom: 10rem;
}

.service-article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 32px;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.service-article:hover {
  transform: translateY(-16px) scale(1.02);
  box-shadow: 0 40px 120px var(--shadow-medium), 0 16px 40px var(--shadow-heavy),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.service-article:hover::before {
  opacity: 1;
}

/* Service-specific hover effects */
/* #service01:hover {
		box-shadow: 
				0 20px 80px rgba(255, 68, 68, 0.15),
				0 16px 40px rgba(255, 68, 68, 0.1),
				inset 0 1px 0 rgba(255,255,255,0.9);
}

#service02:hover {
		box-shadow: 
				0 20px 120px rgba(255, 140, 66, 0.15),
				0 16px 40px rgba(255, 140, 66, 0.1),
				inset 0 1px 0 rgba(255,255,255,0.9);
}

#service03:hover {
		box-shadow: 
				0 20px 120px rgba(24, 55, 156, 0.15),
				0 16px 40px rgba(24, 55, 156, 0.1),
				inset 0 1px 0 rgba(255,255,255,0.9);
} */

/* Animated gradient borders */
.service-article::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 32px;
  padding: 2px;
  /* background delete - 250725 angelbaek */
  background-size: 400% 400%;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  animation: brandGradientShift 6s ease infinite;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/*
250725 angelbaek css add: servie-one,two,three class after effect
*/
.service-one::after {
  background: linear-gradient(
    45deg,
    color-mix(in srgb, var(--primary-color) 60%, white),
    color-mix(in srgb, var(--primary-color) 80%, white),
    color-mix(in srgb, var(--primary-color) 60%, white)
  );
}
.service-two::after {
  background: linear-gradient(
    45deg,
    color-mix(in srgb, var(--accent-color) 60%, white),
    color-mix(in srgb, var(--accent-color) 80%, white),
    color-mix(in srgb, var(--accent-color) 60%, white)
  );
}
.service-three::after {
  background: linear-gradient(
    45deg,
    color-mix(in srgb, var(--link-color) 60%, white),
    color-mix(in srgb, var(--link-color) 80%, white),
    color-mix(in srgb, var(--link-color) 60%, white)
  );
}

.service-article:hover::after {
  opacity: 0.6;
}

@keyframes brandGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.article-title {
  padding: 45px 50px 30px;
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--bg-tertiary) 100%
  );
  border-bottom: 2px solid var(--border-light);
  border-radius: 32px 32px 0 0;
  position: relative;
  overflow: hidden;
}

.article-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transition: left 0.8s ease;
}

.article-title h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -1.5px;
  position: relative;
  display: inline-block;
}

/* .article-title h2::after {
		content: '';
		position: absolute;
		bottom: -16px;
		left: 0;
		width: 0;
		height: 5px;
		background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
		transition: width 1s cubic-bezier(0.25, 0.8, 0.25, 1);
} */

.service-article:hover .article-title h2::after {
  /* width 수정 250725 -bsh */
  width: 100%;
}

#service02 .article-title h2::after,
#service02 .textbox::before,
#service02 .textbox h6::before {
  background: linear-gradient(90deg, var(--accent-color), var(--warning-color));
}

#service03 .article-title h2::after,
#service03 .textbox::before,
#service03 .textbox h6::before {
  background: linear-gradient(90deg, var(--link-color), var(--success-color));
}

.main {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 50px;
  position: relative;
}

.textbox {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.textbox h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.2s;
}

.textbox h6 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
}

.textbox h6::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.textbox p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 2.5rem 0;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.4s;
}

.btn-primary,
.textbox a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.875rem 1.75rem;
  border-radius: 6px;

  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);

  position: relative;
  overflow: hidden;
  z-index: 2;

  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.5s;

  transition: all 0.2s ease;
}

.btn-primary::before,
.textbox a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-primary:hover::before,
.textbox a:hover::before {
  left: 100%;
}

.btn-primary:hover,
.textbox a:hover {
  /* transform: translateY(-2px); */
  box-shadow: var(--shadow-lg);
}

.btn-primary::after,
.textbox a::after {
  content: "→";
  margin-left: 12px;
  transition: transform 0.4s ease;
  font-size: 1.3rem;
}

.btn-primary:hover::after,
.textbox a:hover::after {
  transform: translateX(8px);
}

/* Service-specific button colors */
#service02 .btn-primary,
#service02 .textbox a {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color));
}

#service03 .btn-primary,
#service03 .textbox a {
  background: linear-gradient(135deg, var(--link-color), rgb(100, 125, 236));
}

.imgbox {
  flex: 1;
  max-width: 480px;
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  box-shadow: 0 25px 50px var(--shadow-medium), 0 12px 30px var(--shadow-light);
  opacity: 0;
  transform: translateX(60px);
  animation: fadeInRight 1s ease forwards;
  animation-delay: 0.6s;
}

.imgbox img {
  width: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.95) contrast(1.05);
}

/* Progress indicators */
.progress-indicator {
  position: absolute;
  top: 0;
  right: 40px;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  border: 3px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: all 0.6s ease;
  opacity: 0.7;
  box-shadow: 0 8px 25px var(--shadow-light);
  z-index: 1;
}

.service-article:hover .progress-indicator {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 12px 35px var(--shadow-medium);
}

#service02:hover .progress-indicator {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

#service03:hover .progress-indicator {
  border-color: var(--link-color);
  color: var(--link-color);
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Staggered animations */
.service-article {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease forwards;
}

.service-article:nth-child(1) {
  animation-delay: 0.1s;
}

.service-article:nth-child(2) {
  animation-delay: 1s;
}

.service-article:nth-child(3) {
  animation-delay: 1.8s;
}

/* Responsive Design */
@media (max-width: 768px) {
  .services {
    gap: 40px;
  }

  .main {
    flex-direction: column;
    gap: 40px;
    padding: 40px 30px;
  }

  .article-title {
    padding: 35px 30px 25px;
  }

  .article-title h2 {
    font-size: 2.2rem;
  }

  .textbox h3 {
    font-size: 1.8rem;
  }

  .textbox h6::before {
    left: -25px;
    width: 20px;
  }

  .imgbox {
    max-width: 100%;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
  }

  .progress-indicator {
    top: 0;
    right: 0;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
  }
}

.concept-title {
  position: absolute;
  top: 25%;
  padding: 4px 12px;
  color: #1e90ff;
  border-radius: 999px;
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  max-width: 80%;
  pointer-events: none;
}

.concept-subtitle {
  position: absolute;
  bottom: 30%;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  color: #1e293b;
  max-width: 80%;
}
