.hero-services {
  position: relative;
  height: 700px;
  display: flex;
  flex-direction: column;
  background-image: url("../../assets/img/image3.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Services List */

/* ------------------------------------- */
/* 개별 서비스 페이지 */

.Service-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-self: center;
  width: 90%;
  max-width: 1200px;
  margin: 6rem auto auto auto;
  padding: 4rem 0 0 0;
  border-radius: 15px;
}

.Service-container .Service-content {
  display: flex;
  flex-direction: row;
}

.Service-container-Text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.Service-container-Image {
  display: flex;
  flex: 1;
  align-items: center;
}

.Service-container-Image img {
  display: block;
  align-items: flex-start;
  object-fit: contain;
  overflow: visible;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  animation: fadeInRight 1.2s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
  align-self: flex-start;
}

.S1-title {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2rem 0;
}

.S1-title h1,
h2 {
  font-size: 3rem;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.S1-content {
  display: flex;
  flex-direction: column;
  width: 90%;
  justify-content: flex-start;
  padding: 2rem 0;
}

.S1-content p {
  font-size: 1.1rem;
  line-height: 2;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px); /* start slightly below */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px); /* start slightly to the right */
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 간략한 장점 카드 */

.service-summary-container {
  max-width: 1400px;
  width: 100%;
  text-align: center;
}

.service-summary-container .blockColumns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.service-summary-container .blockColumn {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 26%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-summary-container .blockColumn .image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  width: 80px;
  margin-bottom: 16px;
}

.service-summary-container .blockColumn img {
  height: 50px;
  width: auto;
}

.service-summary-container .blockColumn img.checkmark {
  height: 40px;
  align-self: center;
  margin: 0;
}

.service-summary-container .blockColumn .check {
  display: flex;
  height: 50px;
  width: 50px;
  justify-self: center;
  border-radius: 50%;
  background-color: burlywood;
  justify-content: center;
  align-self: center;
  margin-top: 5px;
}

.service-summary-container .blockColumn h2 {
  color: #333;
  margin-bottom: 20px;
}

.service-summary-container .blockColumn p {
  color: #666;
  font-size: 1rem;
}

/* 서비스 사용 전, 후 */
.problems-solutions {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 30px;
  padding: 80px 60px;
  margin: 5rem 0;
}

.problems-solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

.problem-solution-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.3s ease;
}

.problem-solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.problem-card {
  border-left: 5px solid #e53e3e;
}

.solution-card {
  border-left: 5px solid #38a169;
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.3rem;
  color: white;
}

.problem-card .card-icon {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

.solution-card .card-icon {
  background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.problem-card .card-title {
  color: #c53030;
}

.solution-card .card-title {
  color: #2f855a;
}

.card-content ul {
  list-style: none;
  padding: 0;
}

.card-content li {
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  padding-left: 30px;
  color: #4a5568;
  line-height: 1.6;
}

.card-content li:last-child {
  border-bottom: none;
}

.problem-card li::before {
  content: "⚠";
  position: absolute;
  left: 0;
  color: #e53e3e;
  font-weight: bold;
}

.solution-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #38a169;
  font-weight: bold;
}

.impact-section {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: white;
  border-radius: 30px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.impact-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

/* ------------이미지랑 설명------------ */
.tech-stack {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 400px;
}

.tech-content-left {
  position: relative;
  max-width: 1600px;
  width: 100%;
  padding: 60px 40px;
  margin-bottom: 2rem;
  display: flex;
  gap: 60px;
  align-items: center;
  background-color: white;
  overflow: visible;
  flex-wrap: wrap;
}

.border {
  display: flex;
  width: 50%;
  height: 1px;
  border-bottom: 1px solid rgba(189, 189, 189, 0.8);
}

.tech-content-right {
  position: relative;
  max-width: 1600px;
  width: 100%;
  margin-top: 4rem;
  padding: 60px 40px;
  display: flex;
  gap: 40px;
  align-items: center;
  background-color: white;
  overflow: visible;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.tech-info {
  border-radius: 10px;
  padding: 15px 0 15px 0;
  max-width: 500px;
  min-width: 280px;
  flex: 1;
}

.tech-info h3 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 20px;
  text-align: center;
}

.tech-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-info li {
  display: flex;
  position: relative;
  padding-left: 24px;
  font-size: 1.1rem;
  color: #1f1f1f;
  padding: 10px 0 10px 34px;
  transition: all 0.3s ease;
  border-bottom: 1px solid #e9ecef;
  cursor: default;
  align-items: center;
}

.tech-info li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--primary-color); /* calm blue */
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}

.tech-info li:hover {
  color: var(--primary-dark); /* deeper blue text on hover */
}

.tech-info li:hover::before {
  opacity: 1;
  transform: translateX(15px);
}

.tech-info li:last-child {
  border-bottom: none;
}

.tech-visual {
  flex: 1;
  max-width: 600px;
  min-width: 280px;
}

.tech-visual.fujitsu {
  flex: 1;
  min-width: 280px;
  max-width: 700px;
  background: #f2f3f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 2px solid var(--gray-200);
}

.tech-visual img.virtualization-diagram {
  max-height: 420px;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.tech-visual img.fujitsu-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ------------서버 인프라-------------- */
.introduction {
  justify-self: center;
  padding: 100px 20px;
  max-width: 1400px;
  display: flex;
  align-items: center;
  gap: 40px;
  border-bottom: 1px solid #dfdfdf;
  margin: auto;
}

.applications {
  flex-direction: column;
  align-items: flex-start;
}

.applications .content {
  width: 100%;
}

.applications .card-container {
  display: flex;
  gap: 20px;
  width: 100%;
  margin-top: 20px;
}

.applications .card {
  flex: 1;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.3s ease;
}

.applications .card .image-placeholder2 {
  font-size: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: none;
  width: 100%;
  height: 120px;
  margin-bottom: 15px;
}

.applications .card h3 {
  font-size: 1.3em;
  font-weight: 500;
  color: #1e3a8a;
  margin-bottom: 10px;
}

.applications .card p {
  font-size: 1em;
  color: #374151;
}

.hpc-solutions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 60px 40px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  flex-wrap: wrap;
}

.hpc-solutions ul {
  list-style: none;
  padding: 0;
  padding-right: 5px;
}

.hpc-solutions li {
  padding: 12px 0 12px 30px;
  width: 100%;
  font-size: 1.1rem;
  border-bottom: 1px solid #e9ecef;
  position: relative;
  color: #1f1f1f;
  transition: all 0.3s ease;
  cursor: auto;
}

.hpc-solutions li:hover {
  padding-left: 33px;
  background-color: var(--gray-50);
}

.hpc-solutions li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: black;
  font-weight: bold;
}

.hpc-solutions li:hover::before {
  color: var(--primary-color);
}

.hpc-solutions li:last-child {
  border-bottom: none;
}

.hpc-solutions li.list-button {
  padding: 12px 0 12px 30px;
  width: 100%;
  font-size: 1.1rem;
  position: relative;
  color: #1f1f1f;
  transition: all 0.3s ease;
  cursor: auto;
}

.hpc-solutions li.list-button a {
  display: block;
  width: 100%;
  text-decoration: none;
  color: #000000;
  transition: all 0.3s ease;
}

.hpc-solutions li.list-button:hover a {
  padding-left: 5px;
  background-color: var(--gray-50);
  color: var(--primary-color);
}

.hpc-solutions li.list-button::before {
  content: none;
}

.hpc-image-wrapper {
  flex: 1;
  max-width: 600px;
  min-width: 250px;
  display: flex;
  justify-content: center;
}

.hpc-image-wrapper img {
  width: 100%;
  height: auto;
}

.content {
  flex: 1;
}

.content p {
  font-size: 1.1em;
  font-weight: 400;
  color: #374151;
  margin-bottom: 15px;
}

.cta-section {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  color: white;
  padding: 60px;
  border-radius: 20px;
  text-align: center;
  width: 80%;
  justify-self: center;
  margin: 60px auto 100px auto;
  box-shadow: 0 2px 80px rgba(255, 68, 68, 0.25),
    0 2px 40px rgba(255, 68, 68, 0.15);
}

.cta-section h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
  color: white;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #2c3e50;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: padding 0.25s ease, box-shadow 0.25s ease;
}

.cta-button:hover {
  padding: 18px 45px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-filler {
  display: flex;
  height: 4rem;
  justify-content: center;
  align-items: center;
}

/* ------------------Spoid------------- */
.Spoid {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  width: 100%;
  padding: 100px 0 0 0;
  z-index: 2;
  justify-content: center;
  align-items: center;
  opacity: 1;
  overflow-x: hidden;
}

.SpoidLogo {
  position: absolute;
  top: -400px;
  right: -100px;
  bottom: 0;
  animation: fadeInRight 2s ease-in-out forwards;
  opacity: 1;
  z-index: 2;
}

.section-tabs {
  position: relative;
  display: flex;
  justify-content: center;
  background: #cedfeb;
  border-radius: 16px;
  padding: 8px;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
  z-index: 100;
}

.tab-button {
  background: transparent;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #718096;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab-button.active {
  background: white;
  color: #667eea;
}

.tab-button:hover {
  color: #667eea;
}

.tab-content {
  display: none;
  animation: fadeInUp 0.6s ease-out;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.content-layout {
  display: flex;
  gap: 60px;
  align-items: start;
  margin-top: 120px;
  animation: fadeInRight 1.2s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.content-layout img.Spoid-Text {
  display: block;
  align-items: flex-start;
  object-fit: contain;
  overflow: visible;
  width: auto;
  height: auto;
  border-radius: 10px;
  align-self: flex-start;
}

.content-layout img.Computer-image {
  position: relative;
  object-fit: contain;
  width: 100%;
  max-width: 100%;
  height: auto;
  animation: fadeInRight 1.2s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
  transform: translateX(40px);
  align-self: flex-start;
}

.section-title {
  margin-top: 36px;
  font-size: 2.8rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 36px;
  line-height: 1.2;
}

.section-subtitle {
  margin-top: 20px;
  font-size: 1.3rem;
  color: #667eea;
  font-weight: 400;
  margin-bottom: 32px;
}

.content-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 24px;
}

.Spoid-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 40px;
  background: transparent;
}

.Spoid-wrapper ul {
  flex: 0 0 30%;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 5%;
  animation: fadeInUp 0.5s ease 0.5s forwards;
  transform: translateY(25px);
  opacity: 0;
}

.Spoid-wrapper ul::before {
  display: flex;
  content: "";
  position: absolute;
  left: 2%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #dee2e6, #adb5bd, #dee2e6);
}

.Spoid-diagram {
  flex: 1 1 70%;
  object-fit: contain;
  max-width: 1300px;
  min-width: 10px;
  width: 100%;
  padding: 20px;
  background-color: white;
  border-radius: 15px;
  animation: fadeInUp 0.5s ease 0.6s forwards;
  transform: translateY(15px);
  opacity: 0;
}

.Spoid-wrapper li {
  padding: 2rem 0 2rem 8%;
  position: relative;
  color: #495057;
  font-size: 1rem;
  line-height: 1.8;
  border-left: 1px solid transparent;
}

.Spoid-wrapper li::before {
  content: "";
  position: absolute;
  left: -18%;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  width: 12px;
  height: 12px;
  background: #6c757d;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #dee2e6;
}

.Spoid1200 {
  display: flex;
  flex-direction: row;
  max-width: 1400px;
  width: 100%;
  padding: 30px 10px;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.Spoid-title-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 30px;
}

.ComponentSection {
  width: 100%;
  padding: 60px 0 60px 0;
}

.Spoid-container {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  display: flex;
}

.header.row-reverse {
  flex-direction: row-reverse;
}

.number {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, #48acf0, #1e40af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 20px;
  border: 2px solid;
  border-image: linear-gradient(135deg, #48acf0, #1e40af) 1;
  border-radius: 8px;
  padding: 10px 20px;
  min-width: 100px;
  text-align: center;
  background-color: white;
}

.title-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 10px;
  justify-content: center;
}

.main-title {
  font-size: 3.5rem;
  font-weight: bold;
  color: #2c3e50;
  line-height: 1.2;
}

.description {
  font-size: 1.125rem;
  color: #3a3a3a;
  margin-bottom: 1rem;
  margin-left: 4px;
  line-height: 1.8;
}

.content-area {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
}

.image-placeholder {
  width: 40%;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.image-placeholder2 {
  width: 40%;
  display: flex;
  align-items: center;
}

.image-placeholder3 {
  width: 43%;
  display: flex;
  align-items: center;
}

.bullet-points {
  flex: 1;
  font-size: 1rem;
  color: #555;
}

.bullet-points ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullet-points li {
  margin-bottom: 20px;
  padding-left: 20px;
  position: relative;
  line-height: 1.7;
}

.bullet-points li:before {
  content: "•";
  color: #4caf50;
  font-size: 1.25rem;
  position: absolute;
  left: 0;
  top: -2px;
}

.bullet-points p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  margin-left: 4px;
  line-height: 1.8;
}

.Wrapper-white-transparent {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;

  background: linear-gradient(
    to bottom,
    transparent 0%,
    white 100px,
    white calc(100% - 100px),
    transparent 100%
  );

  padding: 100px 0;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Header */
  .header-section h1 {
    font-size: 2.2rem;
  }

  /* Section Titles */
  .section-title {
    font-size: 2rem;
  }

  /* Card Container */
  .cards-container {
    grid-template-columns: 1fr;
  }

  /* Card and Other Sections */
  .card,
  .hpc-features,
  .cta-section {
    padding: 30px;
  }

  /* Applications Card Layout */
  .applications .card-container {
    flex-direction: column;
  }

  .applications .card {
    width: 100%;
  }

  /* Tech Grid */
  .tech-grid {
    grid-template-columns: 1fr;
    direction: ltr !important;
  }

  .tech-info {
    text-align: left !important;
    transform: none !important;
  }

  /* Wrapper Padding */
  .wrapper {
    padding: 1rem 0.5rem;
  }

  .services {
    padding-bottom: 3rem;
  }

  .service-article {
    padding: 3rem 2rem;
    margin-bottom: 6rem;
  }

  .service-article .main {
    flex-direction: column;
    gap: 3rem;
  }

  .service-article .main .textbox,
  .service-article .main .imgbox {
    width: 100%;
    max-width: 100%;
  }

  .service-article .main .textbox h3 {
    font-size: 1.5rem;
  }

  .service-article .main .textbox h6 {
    font-size: 1.25rem;
  }

  .article-title h2 {
    font-size: 1.5rem;
  }

  /* Specific Service */
  #service02 .main {
    flex-direction: column;
  }

  /* -----------서버 가상화 솔루션------------ */

  .problems-solutions {
    padding: 3rem 1rem 2rem 1rem;
  }

  .problems-solutions-grid {
    gap: 2rem;
  }

  /* -------------Spoid-------------- */
  .content-layout {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  /* -----------서버 가상화 솔루션------------ */
  .Service-container {
    padding: 20px;
  }

  .service-summary-container .blockColumn {
    padding: 5px;
  }

  .problems-solutions {
    padding: 20px 1rem 2rem 1rem;
  }

  .Service-container .Service-content {
    flex-direction: column;
  }

  .S1-content {
    width: 100%;
  }

  .Service-container-Text {
    order: 2;
  }

  .Service-container-Image {
    padding: 10px;
    order: 1;
  }

  .problem-card {
    border-left: 3px solid #e53e3e;
  }

  .problem-solution-card {
    padding: 30px;
  }

  .solution-card {
    border-left: 3px solid #38a169;
  }

  .problems-solutions-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .tech-content-left,
  .tech-content-right {
    padding: 30px;
    gap: 20px;
  }

  .service-summary-container .blockColumn p {
    font-size: 0.8rem;
  }

  /* ------------Spoid------------- */
  .content-layout {
    flex-direction: column;
  }

  .Spoid-Text {
    order: 1;
  }

  .fittedImage {
    order: 2;
  }

  .section-subtitle {
    order: 3;
  }

  .SpoidLogo {
    top: -500px;
    right: -100px;
  }

  .content-area {
    flex-direction: column;
    gap: 20px;
  }
  .image-placeholder,
  .image-placeholder2,
  .image-placeholder3 {
    width: 80%;
  }

  #Spoid2 .content-area,
  #Spoid4 .content-area {
    flex-direction: column-reverse;
  }

  .title-section {
    margin-top: 0;
  }

  .main-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.2;
  }

  .Spoid1200 {
    flex-direction: column;
  }

  .Spoid-wrapper li::before {
    left: -3.6%;
  }

  .Spoid-diagram {
    border-radius: 5px;
    padding: 5px;
  }
}
