/* D&PGRAM 랜딩페이지 기본 스타일 */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #222;
}

/* 헤더 로고 스타일 */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 40px;
}

.brand-text {
  font-size: 1.2em;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .brand-text {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .brand-text {
    display: none;
  }
}

/* 모바일 템플릿 섹션 강제 높이 조정 - 최고 우선순위 */
@media (max-width: 768px) {

  .templates-section,
  section.templates-section,
  section#templates {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    padding: 20px 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }
}

@media (max-width: 480px) {

  .templates-section,
  section.templates-section,
  section#templates {
    height: 800px !important;
    min-height: 800px !important;
    max-height: 100vh !important;
    padding: 15px 0 !important;
    overflow-y: hidden !important;
    display: block !important;
    position: relative !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }
}

/* 모바일 템플릿 카드 크기 강제 조정 - 최고 우선순위 */
@media (max-width: 768px) {
  .templates-carousel .template-card {
    flex: 0 0 100vw !important;
    max-width: 100vw !important;
    width: 100vw !important;
    min-width: 100vw !important;
    height: 100% !important;
    margin: 0 !important;
    scroll-snap-align: start !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    padding: 0 20px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .templates-carousel {
    gap: 0 !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    align-items: stretch !important;
  }

  .templates-carousel-wrapper {
    padding: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    max-height: 70vh !important;
    height: 70vh !important;
    position: relative !important;
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
  }

  .templates-section h2 {
    margin-bottom: 20px !important;
    font-size: 1.8em !important;
  }
}

@media (max-width: 480px) {
  .templates-carousel .template-card {
    flex: 0 0 100vw !important;
    max-width: 100vw !important;
    width: 100vw !important;
    min-width: 100vw !important;
    margin: 0 !important;
    padding: 0 15px !important;
    flex-shrink: 0 !important;
  }

  .templates-carousel {
    gap: 0 !important;
    padding: 0 !important;
  }

  .template-card .template-image {
    height: 250px !important;
  }

  .template-card .template-info {
    padding: 15px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  .template-card .template-info h3 {
    font-size: 1.1em !important;
    margin-bottom: 8px !important;
  }

  .template-card .template-info p {
    font-size: 0.9em !important;
    line-height: 1.4 !important;
  }
}

/* 풋터 스타일 오버라이드 */
.main-footer .footer-info {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  flex-wrap: nowrap !important;
}

.footer-left {
  display: flex;
  align-items: flex-start;
  flex: 1;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 200px;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.menu-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.menu-separator {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 0 4px;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  padding: 8px 12px;
  border-radius: 6px;
  text-align: right;
}

.footer-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-5px);
}

.footer-menu a.kakao {
  background: #fee500;
  color: #3a1d1d;
  font-weight: 600;
}

.footer-menu a.kakao:hover {
  background: #ffd43b;
  transform: translateX(-5px) translateY(-2px);
  box-shadow: 0 5px 15px rgba(254, 229, 0, 0.3);
}

@media (max-width: 768px) {
  .main-footer .footer-info {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .footer-left {
    flex-direction: column;
    width: 100%;
  }

  .footer-right {
    align-items: flex-start;
    width: 100%;
    min-width: auto;
  }

  .footer-menu {
    gap: 15px;
  }

  .menu-row {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .footer-menu a {
    font-size: 13px;
    padding: 6px 10px;
    text-align: center;
  }

  .menu-separator {
    font-size: 13px;
    margin: 0 2px;
  }
}

/* 모바일 문의 폼 최적화 */
@media (max-width: 768px) {
  .contact-section {
    padding: 20px 0 !important;
    overflow-y: visible !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .contact-container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .contact-form-container {
    padding: 25px 15px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .contact-form {
    max-width: 100% !important;
    padding: 25px !important;
    margin: 0 !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }

  .contact-section h2 {
    font-size: 1.8em !important;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    text-align: center !important;
    color: #fff !important;
  }

  .form-row {
    margin-bottom: 12px !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .form-group {
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px !important;
    /* iOS 확대 방지 */
    padding: 15px !important;
    border-radius: 8px !important;
    height: auto !important;
    margin-bottom: 15px !important;
  }

  .form-group textarea {
    min-height: 80px !important;
    max-height: 120px !important;
  }

  .form-group label {
    display: none !important;
  }

  .submit-btn {
    width: 100% !important;
    padding: 10px !important;
    font-size: 16px !important;
    margin-top: 12px !important;
  }

  .checkbox-label {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  .checkbox-text {
    margin-left: 6px !important;
  }

  /* 모바일에서 서비스 유형과 예산 범위를 한 줄로 배치 */
  .form-row:nth-child(3) {
    flex-direction: row !important;
    gap: 10px !important;
  }

  .form-row:nth-child(3) .form-group {
    width: 48% !important;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 15px 0 !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
  }

  .contact-container {
    padding: 0 10px !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .contact-form-container {
    padding: 20px 10px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .contact-form {
    padding: 22px !important;
    margin: 0 !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }

  .contact-section h2 {
    font-size: 1.7em !important;
    margin-bottom: 15px !important;
    margin-top: 0 !important;
    text-align: center !important;
    color: #fff !important;
  }

  .form-row {
    margin-bottom: 12px !important;
    gap: 8px !important;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px !important;
    font-size: 16px !important;
    margin-bottom: 12px !important;
  }

  .form-group textarea {
    min-height: 70px !important;
  }

  .form-group label {
    display: none !important;
  }

  .submit-btn {
    padding: 10px !important;
    margin-top: 10px !important;
  }

  .checkbox-label {
    font-size: 12px !important;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 헤더/네비 */
.main-header {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}

.main-header.scrolled {
  background: rgba(34, 34, 34, 0.95);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  position: fixed;
}

.main-header .container {
  display: flex;
  align-items: center;
  /* 세로 중앙 정렬 */
  justify-content: space-between;
  /* 로고-왼쪽, 메뉴-오른쪽 */
  height: 70px;
  /* 네비게이션 높이, 필요시 조정 */
}

.logo {
  display: flex;
  align-items: center;
  margin-right: 40px;
  /* 로고와 메뉴 간격 */
}

.logo img {
  height: 48px;
  filter: drop-shadow(0 2px 8px #ff5a36aa);
  transition: filter 0.3s;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}

.main-nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.1em;
  position: relative;
  padding: 8px 0;
  transition: color 0.2s;
}

.main-nav a:after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  background: #ff5a36;
  border-radius: 2px;
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: 0;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #ff5a36;
}

.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 100%;
}

/* 히어로/슬라이더 */
.hero-section {
  background: linear-gradient(120deg, #222 60%, #ff5a36 100%);
  color: #fff;
  padding: 0;
  text-align: center;
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.4;
}

.slider {
  position: relative;
  height: 100%;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section .slide {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0;
  pointer-events: none;
  transform: translateX(0);
}

.hero-section .slide.active {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 2;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.slide.to-left {
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.slide.to-right {
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.slide.from-left {
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.slide.from-right {
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hero-section h1 {
  font-size: 3.5em;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 5px 25px #0008, 0 0 12px #ff5a36aa, 0 0 20px rgba(0, 255, 0, 0.6), 0 0 30px rgba(0, 255, 0, 0.4);
  letter-spacing: -1px;
  line-height: 1.3;
  position: relative;
  z-index: 5;
  animation: textGlow 3s infinite alternate;
}

.hero-desc {
  margin: 18px 0 28px 0;
  font-size: 1.4em;
  color: #fff;
  text-shadow: 0 3px 10px #0005, 0 0 15px rgba(0, 255, 0, 0.5), 0 0 25px rgba(0, 255, 0, 0.3);
  position: relative;
  z-index: 5;
}

@keyframes textGlow {
  0% {
    text-shadow: 0 5px 25px #0008, 0 0 12px #ff5a36aa, 0 0 20px rgba(0, 255, 0, 0.6), 0 0 30px rgba(0, 255, 0, 0.4);
  }
  100% {
    text-shadow: 0 5px 25px #0008, 0 0 15px #ff5a36cc, 0 0 25px rgba(0, 255, 0, 0.8), 0 0 40px rgba(0, 255, 0, 0.6);
  }
}

.hero-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  width: 100%;
}

.hero-btn .cta-btn {
  margin: 0 auto;
}

.cta-btn {
  background: linear-gradient(90deg, #ff5a36 60%, #ff8c36 100%);
  color: #fff;
  padding: 14px 38px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.15em;
  box-shadow: 0 4px 16px #ff5a3622;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  background: linear-gradient(90deg, #e04a2b 60%, #ffb36b 100%);
  transform: scale(1.08);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.8em;
  color: #fff;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 12px #0003;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  border: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  -khtml-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.slider-arrow.prev {
  left: 24px;
}

.slider-arrow.next {
  right: 24px;
}

/* 모든 상태에서 아웃라인과 포커스 링 완전 제거 */
.slider-arrow:hover,
.slider-arrow:focus,
.slider-arrow:focus-visible,
.slider-arrow:focus-within,
.slider-arrow:active,
.slider-arrow:visited,
.slider-arrow:link,
.slider-arrow:target,
.slider-arrow:enabled,
.slider-arrow:disabled,
.slider-arrow:checked,
.slider-arrow:indeterminate,
.slider-arrow::before,
.slider-arrow::after {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
  text-decoration: none !important;
}

.slider-arrow:hover {
  background: #ff5a36;
  color: #fffbe7;
  transform: translateY(-50%) scale(1.05);
}

.slider-arrow:active {
  background: #ff5a36 !important;
  color: #fffbe7 !important;
  transform: translateY(-50%) scale(0.95) !important;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.slider-arrow:focus {
  background: rgba(0, 0, 0, 0.12) !important;
  color: #fff !important;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.slider-arrow:focus-visible {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* 추가적인 브라우저별 포커스 링 제거 */
.slider-arrow::-moz-focus-inner {
  border: 0 !important;
  outline: none !important;
}

.slider-arrow:focus:not(:focus-visible) {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .hero-section {
    height: 100vh;
    padding: 0;
  }

  .slider {
    min-height: 340px;
  }

  .hero-section h1 {
    font-size: 1.8em;
    margin-top: 20px;
  }

  .hero-desc {
    font-size: 1em;
  }

  .slider-arrow {
    font-size: 2em;
    width: 40px;
    height: 40px;
  }

  .slider-arrow.prev {
    left: 8px;
  }

  .slider-arrow.next {
    right: 8px;
  }
}

/* 사업분야/개발순서/제품/포트폴리오 */
.services-section,
.process-section,
.portfolio-section,
.templates-section {
  padding: 60px 0;
  text-align: center;
}

.contact-section {
  padding: 0 !important;
  margin: 0 !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: linear-gradient(120deg, #111 60%, #222 100%);
  /* position: relative; */
  overflow-x: hidden;/* 수평 */
  overflow-y: visible !important;/* 수직 */
  min-height: auto !important;
  height: auto !important;
}

.products-section {
  background: linear-gradient(120deg, #111 60%, #222 100%);
  padding: 30px 0;
  text-align: center;
  color: #fff;
  /* position: relative; */
  overflow-x: hidden;/* 수평 */
  overflow-y: visible;/* 수직 */
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.products-section::before {
  content: '';
  /* position: absolute; */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 30, 0, 0.1);
  z-index: 0;
  pointer-events: none;
}

.products-section h2 {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 255, 0, 0.3);
  margin: 0 0 30px 0;
  font-size: 2em;
  font-weight: 800;
  letter-spacing: -1px;
}

.services-section h2,
.process-section h2,
.portfolio-section h2,
.templates-section h2,
.contact-section h2 {
  font-size: 2em;
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: -1px;
}

/* 사업분야 섹션 - 매트릭스 테마 적용 */
.services-section {
  background: linear-gradient(120deg, #111 60%, #222 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 40px 0 0 0;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 30, 0, 0.1);
  z-index: 1;
}

.services-section h2 {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 255, 0, 0.3);
  margin: 20px 0 40px 0;
  font-size: 2.2em;
}

.service-list {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 2%;
  flex-wrap: nowrap;
  padding: 20px;
  max-width: 95%;
  margin: 0 auto;
}

.service-item {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 10px;
  padding: 25px 15px;
  font-size: 1.1em;
  font-weight: 500;
  min-width: 160px;
  width: 22%;
  max-width: 280px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 255, 0, 0.1);
  position: relative;
  color: #fff;
  backdrop-filter: blur(5px);
}

.service-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 0, 0.2);
  transform: translateY(-10px);
  border-color: rgba(0, 255, 0, 0.5);
}

.service-item strong {
  color: #0f0;
  font-size: 1.2em;
  display: block;
  margin: 15px 0;
}

.service-item span {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.95em !important;
}

/* 서비스 아이콘 */
.service-icon {
  width: 100%;
  /* width: 240px;
  height: 240px; */
  margin-bottom: 24px;
  transition: transform 0.3s ease;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(0, 255, 0, 0.1);
}

.service-item:hover .service-icon {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 255, 0, 0.2);
}

/* 서비스 항목 리스트 스타일 */
.service-list-points {
  text-align: left;
  margin-top: 15px;
  margin-bottom: 10px;
  list-style-type: none;
  padding-left: 5px;
}

.service-list-points li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95em;
  line-height: 1.4;
}

.service-list-points li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #0F0;
  font-size: 1.2em;
  line-height: 1;
}

.process-list {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  padding: 0;
}

.process-list li {
  background: linear-gradient(120deg, #ff5a36 80%, #ffb36b 100%);
  color: #fff;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  font-weight: 700;
  box-shadow: 0 2px 8px #ff5a3622;
  transition: box-shadow 0.2s, transform 0.2s;
}

.process-list li:hover {
  box-shadow: 0 8px 32px #ff5a3633;
  transform: scale(1.08) rotate(2deg);
}

.portfolio-list {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 120px;
}

.portfolio-item {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 255, 0, 0.1);
  padding: 20px;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(5px);
  color: #fff;
  height: 380px;
  display: flex;
  /* 기본적으로 모두 표시 */
  flex-direction: column;
  box-sizing: border-box;
  margin: 0;
}

/* 항목 호버 효과 강화 */
.portfolio-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 0, 0.3);
  transform: translateY(-10px);
  border-color: rgba(0, 255, 0, 0.6);
  z-index: 4;
}

.portfolio-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 0, 0.2);
  transform: translateY(-10px);
  border-color: rgba(0, 255, 0, 0.5);
  z-index: 3;
}

.portfolio-item strong {
  color: #0f0;
  font-size: 1.1em;
  margin: 15px 0 5px;
  display: block;
}

.portfolio-item span {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.9em !important;
}

.portfolio-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
  display: block;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 0, 0.3);
  border-color: rgba(0, 255, 0, 0.5);
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

/* 문의 및 견적 섹션 */
.contact-section {
  /* padding: 80px 0; */
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-section h2 {
  color: #ffffff;
  margin: 0 !important;
  padding: 5px 0 !important;
}

.contact-container {
  display: flex;
  max-width: 1400px;
  width: 80%;
  margin: 0 auto !important;
  justify-content: center;
  padding: 0 !important;
}

.contact-form-container {
  width: 100%;
  padding: 35px 50px 25px 50px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  overflow-y: visible !important;
  margin: 0 !important;
}

.form-success,
.form-error {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.form-success.show,
.form-error.show {
  opacity: 1;
}

/* 강화된 폼 메시지 스타일 */
.form-success.enhanced,
.form-error.enhanced {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  animation: slideInDown 0.8s ease-out;
}

.form-success.enhanced {
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.15) 0%, rgba(25, 135, 84, 0.05) 100%);
  border: 2px solid #198754;
  border-left: 6px solid #198754;
}

.form-error.enhanced {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.05) 100%);
  border: 2px solid #dc3545;
  border-left: 6px solid #dc3545;
}

.success-icon,
.error-icon {
  background: #198754;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(25, 135, 84, 0.3);
}

.error-icon {
  background: #dc3545;
  box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.success-content,
.error-content {
  flex: 1;
  line-height: 1.6;
}

.success-content strong,
.error-content strong {
  font-size: 1.1em;
  display: block;
  margin-bottom: 5px;
}

.success-content small,
.error-content small {
  font-size: 0.9em;
  opacity: 0.8;
  font-style: italic;
}

/* 슬라이드 다운 애니메이션 */
@keyframes slideInDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 메시지 강조 효과 */
.form-success.enhanced {
  position: relative;
  overflow: hidden;
}

.form-success.enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.form-row {
  display: flex;
  gap: 30px;
  width: 100%;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.form-group.full-width {
  flex: 0 0 100%;
  width: 100%;
}

.form-group label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  min-width: 120px;
  text-align: right;
}

.required {
  color: #ff5a36;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  transition: all 0.2s ease;
  background-color: #f8f9fa;
  width: 100%;
  flex: 1;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: #ff5a36;
  box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.2);
  outline: none;
  background-color: white;
}

.privacy-group {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  margin-left: 120px; /* 레이블 너비에 맞춤 */
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
}

.checkbox-text {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
}

.privacy-notice {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
  padding-left: 146px; /* 체크박스 + 라벨 위치에 맞춤 */
  line-height: 1.5;
}

.submit-row {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.submit-btn {
  background: linear-gradient(90deg, #ff5a36 60%, #ff8c36 100%);
  color: white;
  border: none;
  padding: 18px 50px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto;
  min-width: 240px;
}

.submit-btn:hover {
  background: linear-gradient(90deg, #e04a2b 60%, #ff8c36 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 90, 54, 0.3);
}

.submit-btn:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 폼 필드 에러 상태 */
.contact-form input.field-error,
.contact-form textarea.field-error,
.contact-form select.field-error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
  background-color: rgba(220, 53, 69, 0.05);
}

/* 체크박스 에러 상태 */
.checkbox-label.checkbox-error {
  color: #dc3545;
}

.checkbox-label.checkbox-error .checkbox-text {
  color: #dc3545;
  font-weight: 700;
}

/* 로딩 상태 버튼 애니메이션 */
.submit-btn:disabled::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid transparent;
  border-top: 2px solid #666;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 풋터 */
.main-footer {
  background: #222;
  color: #fff;
  padding: 30px 0;
  text-align: left;
  font-size: 0.95em;
  position: relative;
}

.footer-info {
  line-height: 1.5;
  letter-spacing: -0.5px;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-logo {
  margin-bottom: 15px;
  text-align: left;
  padding-right: 20px;
  margin-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  height: 100%;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 0;
}

.footer-contact {
  margin-bottom: 15px;
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-contact p {
  margin: 5px 0;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact p small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9em;
}

.footer-copyright {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  width: 100%;
}

@media (max-width: 768px) {
  .main-footer {
    padding: 20px 0;
    font-size: 0.9em;
  }
  
  .footer-info {
    flex-direction: column;
  }
  
  .footer-logo {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 15px;
    justify-content: flex-start;
    width: 100%;
  }
  
  .footer-logo img {
    height: 40px;
  }
}

/* 가격표 카드 스타일 */
.pricing-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.pricing-card {
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 255, 0, 0.3);
  border-radius: 12px;
  padding: 30px;
  width: 300px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 0, 0.1);
  position: relative;
  z-index: 15;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 0, 0.2);
  border-color: rgba(0, 255, 0, 0.5);
}

.pricing-card.featured {
  border-color: rgba(0, 255, 0, 0.6);
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(0, 0, 0, 0.9) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 255, 0, 0.2);
}

.plan-name {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 10px;
}

.plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 15px 0;
}

.price-period {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: normal;
}

.feature-title {
  font-size: 1rem;
  color: #fff;
  margin: 20px 0 20px;
  opacity: 0.9;
  line-height: 1.5;
  padding: 0 10px;
  font-weight: 500;
}

.plan-features ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.plan-features li {
  margin: 10px 0;
  padding-left: 30px;
  position: relative;
  color: rgba(255, 255, 255, 0.8);
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0F0;
  font-weight: bold;
}

.pricing-button {
  background-color: rgba(0, 255, 0, 0.15);
  color: #0F0;
  border: 1px solid rgba(0, 255, 0, 0.4);
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  margin-top: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: block;
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

.pricing-button:hover {
  background-color: rgba(0, 255, 0, 0.25);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.apple-btn {
  background-color: white;
  color: black;
  margin-bottom: 10px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  border: none;
}

.others-btn {
  background-color: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* 반응형 */
@media (max-width: 1024px) {
  .container {
    padding: 0 8px;
  }

  .main-nav ul {
    gap: 16px;
    font-size: 0.98em;
  }

  .portfolio-list {
    gap: 12px;
  }

  .service-icon {
    width: 200px;
  }
  
  .contact-container {
    padding: 0 20px;
    gap: 30px;
    height: 200px !important;
  }

  .service-list {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 4px;
  }
  
  .services-section,
  .templates-section,
  .products-section,
  .contact-section {
    height: 100vh;
    padding: 0;
    overflow-y: visible;
  }

  .main-nav ul {
    gap: 8px;
    font-size: 0.93em;
  }

  .service-list {
    flex-direction: column;
    gap: 15px;
    flex-wrap: wrap;
    padding: 10px;
    overflow-y: auto;
    max-height: 75vh;
  }
  
  .product-list {
    flex-direction: column;
    gap: 20px;
    flex-wrap: wrap;
  }

  .process-list {
    gap: 8px;
  }

  .portfolio-list {
    gap: 8px;
  }

  .main-header {
    padding: 0 0 0 0;
  }

  .logo img {
    height: 36px;
  }

  .main-footer {
    font-size: 0.95em;
  }

  .service-icon {
    width: 200px;
    height: 200px;
  }

  .service-item {
    width: 85%;
    max-width: 350px;
    margin: 0 auto;
    padding: 15px;
  }
}

/* 템플릿 섹션 스타일 */
.templates-section {
  background: linear-gradient(120deg, #111 60%, #222 100%);
  color: #fff;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* 데스크탑에서만 100vh 유지, 모바일에서는 auto */
@media (min-width: 769px) {
  .templates-section {
    height: auto;
  }
}

/* 모바일에서 템플릿 섹션 높이 완전 제거 - 우선순위 최대 */
@media (max-width: 768px) {
  section.templates-section,
  section#templates,
  #templates.templates-section {
    height: 100vh !important;
    min-height: auto !important;
    max-height: 100vh !important;
    padding: 40px 0 !important;
    justify-content: flex-start !important;
    /* overflow: visible !important; */
  }
}

@media (max-width: 480px) {
  section.templates-section,
  section#templates,
  #templates.templates-section {
    height: auto !important;
    min-height: auto !important;
    max-height: 100vh !important;
    padding: 30px 0 !important;
    justify-content: flex-start !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }
}

.templates-section h2 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 255, 0, 0.3);
}

/* 포트폴리오 슬라이더 */
.portfolio-section {
  background: linear-gradient(120deg, #111 60%, #222 100%);
  color: #fff;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 80px 0;
}

.portfolio-section h2 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 255, 0, 0.3);
  margin-bottom: 50px;
}

.portfolio-slide.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.portfolio-slide {
  scroll-behavior: smooth;
  cursor: grab;
}

.portfolio-item strong {
  display: block;
  text-align: center;
  color: #0F0;
  font-size: 1.1em;
  margin: 0 15px 15px;
  white-space: normal;
  position: relative;
  padding-bottom: 10px;
}

.portfolio-item strong:after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: rgba(0, 255, 0, 0.5);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.portfolio-item span {
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95em;
  margin: 5px 15px 10px;
  white-space: normal;
  line-height: 1.5;
  min-height: 60px;
}

.portfolio-slide.active {
  display: block !important;
  opacity: 1;
  z-index: 2;
  white-space: nowrap;
}

.portfolio-slider {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
  padding: 0;
}

.portfolio-slider-container {
  position: relative;
  width: 100%;
  min-height: 450px;
  overflow-x: hidden;
  overflow-y: visible;
  margin-bottom: 30px;
  padding: 0;
  box-sizing: border-box;
}

.portfolio-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  padding: 10px 0;
}

/* 포트폴리오 슬라이더 애니메이션 효과 */
.portfolio-item.slide-in-right {
  animation: slideInRight 0.5s forwards;
}

.portfolio-item.slide-in-left {
  animation: slideInLeft 0.5s forwards;
}

.portfolio-item.slide-out-left {
  animation: slideOutLeft 0.5s forwards;
}

.portfolio-item.slide-out-right {
  animation: slideOutRight 0.5s forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.portfolio-slide.active {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 1;
  z-index: 2;
  padding: 20px 30px;
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
  max-width: 1400px;
  position: relative;
  gap: 0px;
  white-space: normal;
}

/* 포트폴리오 항목 스타일 변경 - 사업분야와 유사한 스타일 */
.portfolio-item {
  width: 31%;
  /* 3개가 가로로 배치되도록 - 여백 고려 */
  margin: 0 1%;
  text-align: left;
  box-sizing: border-box;
  position: relative;
  transition: all 0.5s ease-in-out;
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 255, 0, 0.1);
  padding-bottom: 15px;
  /* 기본적으로 숨김, JS에서 표시 제어 */
  float: left;
  /* 가로 배치를 위해 */
  min-height: 500px;
  /* 최소 높이 설정 */
  opacity: 1;
}

.slider-controls {
  position: absolute;
  width: 120%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  /* 더 높은 z-index */
  display: flex;
  justify-content: space-between;
  padding: 0;
  left: -10%;
  pointer-events: none;
  /* 버튼만 클릭 가능하도록 */
}

.slider-btn {
  background: rgba(0, 0, 0, 0.95);
  color: #0F0;
  border: 3px solid rgba(0, 255, 0, 0.9);
  width: 65px;
  height: 65px;
  border-radius: 50%;
  font-size: 2.2em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  z-index: 150;
  /* 훨씬 더 높은 z-index */
  box-shadow: 0 0 25px rgba(0, 255, 0, 0.7), 0 0 35px rgba(0, 0, 0, 0.8);
  position: relative;
  pointer-events: auto;
  /* 버튼 클릭 가능 */
  opacity: 1;
  /* 완전 불투명 */
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 1);
  color: #fff;
  border-color: rgba(0, 255, 0, 1);
  box-shadow: 0 0 25px rgba(0, 255, 0, 0.8), 0 0 35px rgba(0, 255, 0, 0.4);
  transform: scale(1.2);
  opacity: 1;
}

/* 버튼은 항상 보이게 설정 - 수동 조작하는 슬라이더이므로 */
.portfolio-slider .slider-btn {
  opacity: 0.95;
}

/* 버튼 활성화 효과 */
.slider-btn.active-btn {
  background: rgba(0, 40, 0, 0.95) !important;
  color: #fff !important;
  border-color: rgba(0, 255, 0, 1) !important;
  box-shadow: 0 0 25px rgba(0, 255, 0, 0.8), 0 0 40px rgba(0, 255, 0, 0.4) !important;
  transform: scale(1.2) !important;
  opacity: 1 !important;
  transition: all 0.2s ease !important;
}

.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 0, 0.3);
  border-radius: 50%;
  margin: 0 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.1);
}

.dot:hover {
  background: rgba(0, 255, 0, 0.2);
}

.dot.active {
  background: #0F0;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* 템플릿 캐러셀 - 개선된 스타일 */
.templates-carousel-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  overflow-x: hidden;
  overflow-y: visible;
}

.templates-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 30px;
  padding: 30px 0 0 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.templates-carousel::-webkit-scrollbar {
  display: none;
}

.template-card {
  flex: 0 0 380px;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 20, 0, 0.6) 100%);
  border: 2px solid rgba(0, 255, 0, 0.3);
  border-radius: 16px;
  overflow-x: hidden;
  overflow-y: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  scroll-snap-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 255, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.template-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, transparent 0%, rgba(0, 255, 0, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.template-card:hover::before {
  opacity: 1;
}

.template-card:hover {
  /* transform: translateY(-15px) scale(1.02); */
  border-color: rgba(0, 255, 0, 0.6);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 255, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.template-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
  position: relative;
  z-index: 2;
}

.template-card:hover .template-image {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.1);
}

/* No Image 플레이스홀더 개선 */
.template-image[alt="No Image"] {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 255, 0, 0.7);
  font-size: 1.1em;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
  position: relative;
}

.template-image[alt="No Image"]::before {
  content: "🚀";
  font-size: 3em;
  margin-bottom: 10px;
  display: block;
  opacity: 0.7;
}

.template-image[alt="No Image"]::after {
  content: "샘플 이미지 준비중";
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.6);
}

.template-info {
  padding: 20px;
  text-align: left;
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

.template-info h3 {
  color: #0F0;
  margin-bottom: 12px;
  font-size: 1.3em;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  line-height: 1.3;
}

.template-info p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
  font-size: 0.95em;
  line-height: 1.5;
  height: 3em;
  overflow-x: visible;
  overflow-y: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.template-btn {
  display: inline-block;
  background: linear-gradient(135deg, rgba(0, 255, 0, 0.2) 0%, rgba(0, 255, 0, 0.3) 100%);
  color: #0F0;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 255, 0, 0.4);
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
}

.template-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.template-btn:hover::before {
  left: 100%;
}

.template-btn:hover {
  background: linear-gradient(135deg, rgba(0, 255, 0, 0.4) 0%, rgba(0, 255, 0, 0.6) 100%);
  color: #fff;
  border-color: rgba(0, 255, 0, 0.8);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
  transform: translateY(-2px);
}

/* 캐러셀 화살표 개선 */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 20, 0, 0.6) 100%);
  color: #0F0;
  border: 2px solid rgba(0, 255, 0, 0.4);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.6em;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-arrow:hover {
  background: linear-gradient(135deg, rgba(0, 40, 0, 0.9) 0%, rgba(0, 60, 0, 0.7) 100%);
  border-color: rgba(0, 255, 0, 0.8);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 25px rgba(0, 255, 0, 0.4);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* 프로그레스 바 개선 */
.carousel-progress {
  height: 6px;
  background: rgba(0, 0, 0, 0.3);
  margin-top: 25px;
  border-radius: 3px;
  overflow-x: hidden;
  overflow-y: hidden;
  border: 1px solid rgba(0, 255, 0, 0.2);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0F0 0%, #0A0 50%, #0F0 100%);
  width: 0;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (max-width: 1200px) {
  .portfolio-item {
    flex: 0 0 300px;
    /* 고정 너비 유지 */
  }

  .slider-controls {
    width: 114%;
    left: -7%;
  }
}

@media (max-width: 992px) {
  .portfolio-item {
    flex: 0 0 300px;
    /* 고정 너비 유지 */
  }

  .slider-controls {
    width: 118%;
    left: -9%;
  }

  .portfolio-slide.active {
    justify-content: flex-start;
    padding-left: 50px;
  }
}

@media (max-width: 768px) {
  .portfolio-item {
    flex: 0 0 280px;
    /* 모바일에서 약간 작게 */
    max-width: 280px;
  }

  .portfolio-slide.active {
    padding-left: 30px;
  }
  
  .pricing-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 0 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

    .products-section {
    padding: 30px 0 !important;
  }

  .products-section .pricing-container {
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 100% !important;
  }

  .pricing-card {
    width: calc(100% - 30px) !important;
    max-width: calc(100% - 30px) !important;
    margin: 0 15px 20px 15px !important;
    box-sizing: border-box !important;
  }
  
  .pricing-card.featured {
    order: -1;
  }
  
  .templates-carousel-wrapper {
    padding: 0 15px;
  }
  
  /* 모바일에서 템플릿 카드 한 개씩만 보이도록 */
  .template-card {
    flex: 0 0 calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    margin: 0 5px;
    scroll-snap-align: center;
  }
  
  .template-image {
    height: 250px;
  }
  
  .templates-carousel {
    scroll-snap-type: x mandatory;
  }
}

.template-card {
  flex: 0 0 312px;
}

.templates-carousel-wrapper {
  padding: 0 40px;
}

.slider-controls {
  width: 120%;
  left: -10%;
}

.slider-btn {
  width: 50px;
  height: 50px;
  font-size: 1.5em;
}

/* 문의 섹션 반응형 */
@media (max-width: 768px) {
  .contact-container {
    width: 100% !important;
    padding: 0 15px !important;
    margin: 0 auto !important;
  }
  
  .contact-form-container {
    padding: 25px 15px !important;
    border-radius: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .form-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .submit-btn {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 576px) {
  .contact-section h2 {
    margin-bottom: 30px;
  }
  
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    padding: 12px;
  }
  
  .privacy-notice {
    padding-left: 0;
  }
  
  .checkbox-label {
    align-items: flex-start;
    margin-left: 0;
  }
  
  .checkbox-text {
    font-size: 13px;
  }
  
  .form-group {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .form-group label {
    text-align: left;
    margin-bottom: 5px;
    min-width: 100%; /* 전체 너비 사용 */
  }
  
  /* 작은 모바일 화면에서 템플릿 섹션 완전 최적화 */
  .templates-section {
    height: auto !important;
    min-height: auto !important;
    padding: 30px 0 !important;
    justify-content: flex-start !important;
  }
  
  .templates-carousel-wrapper {
    padding: 0 10px;
  }
  
  /* 작은 모바일에서 카드 완전히 한 개씩 */
  .template-card {
    flex: 0 0 calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    margin: 0 auto;
  }
  
  .template-image {
    height: 220px;
  }
  
  .template-info {
    padding: 15px;
  }
  
  .template-info h3 {
    font-size: 1.2em;
    margin-bottom: 8px;
  }
  
  .template-info p {
    font-size: 0.9em;
    line-height: 1.4;
  }
  
  /* 캐러셀 버튼 크기 조정 */
  .carousel-arrow {
    width: 35px;
    height: 35px;
    font-size: 1.2em;
  }

  /* 초소형 모바일에서 제품 카드 최적화 */
  .products-section {
    padding: 30px 0 !important;
  }

  .products-section .pricing-container {
    padding: 0 !important;
    margin: 0 auto !important;
  }
  
  .pricing-card {
    max-width: calc(100% - 20px) !important;
    padding: 25px 20px !important;
    margin: 0 10px 20px 10px !important;
    width: calc(100% - 20px) !important;
    box-sizing: border-box !important;
  }
}

/* 프로세스 섹션 스타일 */
.process-section {
  background: linear-gradient(120deg, #111 30%, #222 100%);
  padding: 30px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.process-section h2 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 255, 0, 0.3);
  margin-bottom: 40px;
  font-size: 2em;
  font-weight: 800;
  text-align: center;
}

.process-section .section-desc {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1em;
  line-height: 1.6;
}

.process-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.process-container::before {
  content: '';
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: rgba(0, 255, 0, 0.3);
  z-index: 1;
}

.process-item {
  width: 30%;
  max-width: 300px;
  margin: 0 15px 60px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 10px;
  padding: 20px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.process-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 255, 0, 0.2);
  border-color: rgba(0, 255, 0, 0.5);
}

.process-number {
  width: 60px;
  height: 60px;
  background: #0f0;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6em;
  font-weight: 700;
  /* margin: -50px auto 20px; */
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
  position: relative;
  z-index: 3;
}

.process-item h3 {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: #0f0;
}

.process-item p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  font-size: 0.95em;
  line-height: 1.5;
}

.process-key {
  font-style: italic;
  color: rgba(0, 255, 0, 0.9);
  font-size: 0.9em;
  padding: 10px;
  border-top: 1px dashed rgba(0, 255, 0, 0.3);
  margin-top: 10px;
}

.process-icon {
  width: 120px;
  height: 120px;
  margin: 15px auto;
  display: block;
}

@media (max-width: 992px) {
  .process-container::before {
    width: 90%;
  }
  
  .process-item {
    width: 45%;
    margin: 0 10px 60px;
  }
}

@media (max-width: 768px) {
  .process-container::before {
    display: none;
  }
  
  .process-item {
    width: 90%;
    max-width: 400px;
    margin: 40px auto;
  }
  
  .process-number {
    margin-top: -30px;
  }
}

/* 기본 폼 메시지 스타일 (하위 호환성) */
.form-success:not(.enhanced) {
  background-color: rgba(25, 135, 84, 0.1);
  color: #198754;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 20px;
  border-left: 4px solid #198754;
}

.form-error:not(.enhanced) {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 20px;
  border-left: 4px solid #dc3545;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ========================================
   SweetAlert2 커스터마이징 스타일 (최적화됨)
======================================== */

/* 기본 팝업 스타일 최적화 */
.swal2-popup {
  border-radius: 12px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
  font-family: 'Noto Sans KR', sans-serif !important;
}

/* 성공 알림 간소화 */
.swal2-popup.swal2-icon-success {
  border: 2px solid #28a745 !important;
}

.swal2-title {
  font-weight: 700 !important;
  font-size: 1.6em !important;
  margin-bottom: 15px !important;
}

/* 확인 버튼 스타일 */
.swal2-confirm {
  border-radius: 20px !important;
  padding: 10px 25px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  transition: all 0.2s ease !important;
  border: none !important;
}

.swal2-confirm:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* 성공 버튼 */
.swal2-confirm[style*="rgb(255, 90, 54)"] {
  background: linear-gradient(45deg, #ff5a36 0%, #ff8c36 100%) !important;
}

.swal2-confirm[style*="rgb(255, 90, 54)"]:hover {
  background: linear-gradient(45deg, #e04a2b 0%, #ff8c36 100%) !important;
}

/* 에러 버튼 */
.swal2-confirm[style*="rgb(220, 53, 69)"] {
  background: linear-gradient(45deg, #dc3545 0%, #e85d6f 100%) !important;
}

/* 경고 버튼 */
.swal2-confirm[style*="rgb(255, 193, 7)"] {
  background: linear-gradient(45deg, #ffc107 0%, #ffca28 100%) !important;
  color: #212529 !important;
}

/* 아이콘 색상 최적화 */
.swal2-icon.swal2-success {
  border-color: #28a745 !important;
  color: #28a745 !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
  background-color: #28a745 !important;
}

.swal2-icon.swal2-error {
  border-color: #dc3545 !important;
  color: #dc3545 !important;
}

.swal2-icon.swal2-warning {
  border-color: #ffc107 !important;
  color: #ffc107 !important;
}

/* 타이머 프로그레스 바 */
.swal2-timer-progress-bar {
  background: rgba(255, 90, 54, 0.8) !important;
}

/* 빠른 애니메이션 */
.swal2-show {
  animation: swal2-show 0.3s !important;
}

.swal2-hide {
  animation: swal2-hide 0.2s !important;
}

/* 반응형 최적화 */
@media (max-width: 768px) {
  .swal2-popup {
    margin: 15px !important;
    max-width: 85% !important;
    font-size: 14px !important;
  }
  
  .swal2-title {
    font-size: 1.4em !important;
  }
  
  .swal2-confirm {
    padding: 8px 20px !important;
    font-size: 14px !important;
  }
}

/* 문의 섹션 여백 적절히 조정 - 최고 우선순위 */
#contact,
section#contact,
.contact-section,
section.contact-section {
  padding: 60px 0 !important;
  margin: 0 !important;
  min-height: auto !important;
  height: auto !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

#contact h2,
section#contact h2,
.contact-section h2,
section.contact-section h2 {
  margin: 0 !important;
  padding: 10px 0 !important;
}

#contact .contact-container,
section#contact .contact-container,
.contact-section .contact-container,
section.contact-section .contact-container {
  margin: 0 auto !important;
  padding: 0 !important;
}

#contact .contact-form-container,
section#contact .contact-form-container,
.contact-section .contact-form-container,
section.contact-section .contact-form-container {
  margin: 0 !important;
}

/* 제품 섹션 여백 완전 제거 - 최고 우선순위 */
#products,
section#products,
.products-section,
section.products-section {
  padding: 30px 0 !important;
  margin: 0 !important;
  min-height: auto !important;
  height: auto !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

#products h2,
section#products h2,
.products-section h2,
section.products-section h2 {
  margin: 0 0 20px 0 !important;
  padding: 10px 0 !important;
}

/* 템플릿 섹션 여백 완전 제거 - 최고 우선순위 */
#templates,
section#templates,
.templates-section,
section.templates-section {
  padding: 30px 0 !important;
  margin: 0 !important;
  min-height: auto !important;
  height: auto !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

#templates h2,
section#templates h2,
.templates-section h2,
section.templates-section h2 {
  margin: 0 0 20px 0 !important;
  padding: 10px 0 !important;
}

/* 사업분야 섹션 아래쪽 여백만 줄이기 - 최고 우선순위 */
#services,
section#services,
.services-section,
section.services-section {
  padding-bottom: 60px !important;
  height: auto !important;
  min-height: auto !important;
}

#services .service-list,
section#services .service-list,
.services-section .service-list,
section.services-section .service-list {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* 프로세스 섹션 여백 완전 제거 - 최고 우선순위 */
#process,
section#process,
.process-section,
section.process-section {
  padding: 30px 0 !important;
  margin: 0 !important;
  min-height: auto !important;
  height: auto !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

/* 모바일 제품안내 섹션 강제 여백 설정 - 최고 우선순위 */
@media (max-width: 768px) {
  #products,
  section#products,
  .products-section,
  section.products-section {
    padding: 30px 0 !important;
  }

  #products .pricing-container,
  section#products .pricing-container,
  .products-section .pricing-container,
  section.products-section .pricing-container {
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #products .pricing-card,
  section#products .pricing-card,
  .products-section .pricing-card,
  section.products-section .pricing-card {
    width: calc(100% - 30px) !important;
    max-width: calc(100% - 30px) !important;
    margin: 0 15px 20px 15px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  #products,
  section#products,
  .products-section,
  section.products-section {
    padding: 30px 0 !important;
  }

  #products .pricing-card,
  section#products .pricing-card,
  .products-section .pricing-card,
  section.products-section .pricing-card {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    margin: 0 10px 20px 10px !important;
  }
}