/* 
  (c) 2025 UIS Corporation.  
  This project is licensed under the MIT License.
  See https://opensource.org/license/MIT for details.
*/

/* ========================================
   전역 스타일
   ======================================== */

/* 한글 줄바꿈 최적화 */
* {
  box-sizing: border-box;
  word-break: keep-all;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

*:before,
*:after {
  box-sizing: border-box;
}

/* 스무스 스크롤 */
html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  width: 100vw;
  max-width: 100%;
  height: 100%;
  overflow-x: hidden;
  border: 0;
  outline: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* 페이지 페이드인 애니메이션 */
body {
  margin: 0;
  padding: 0;
  width: 100vw;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 30%, #dbeafe 70%, #f0f9ff 100%);
  border: 0;
  outline: 0;
  position: relative;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body.dark {
  background: linear-gradient(135deg, #0a1628 0%, #1e3a8a 50%, #111827 100%);
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* 섹션 기본 스타일 */
section {
  position: relative;
  background: transparent;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* ========================================
   UI 컴포넌트
   ======================================== */

/* 언어/테마 버튼 */
.lang-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}

@media (min-width: 768px) {
  .lang-toggle {
    top: 1.25rem;
    right: 1.25rem;
  }
}

@supports (padding: max(0px)) {
  .lang-toggle {
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
  }
}

.typewriter {
  overflow: hidden;
  border-right: .15em solid currentColor;
  white-space: nowrap;
  margin: 0 auto;
  animation: typing 2.5s steps(40, end), blink-caret .75s step-end infinite;
  max-width: 100%;
}

/* 모바일에서만 0.8배 축소 */
@media (max-width: 600px) {
  .typewriter {
    transform: scale(0.8);
    transform-origin: center;
  }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: currentColor; }
}


/* 강조 효과 (UIS glow) */
.highlight-u, .highlight-i, .highlight-s {
  font-weight: bold;
  animation: sparkle-fade 1s ease-out forwards;
}

.highlight-u {
  color: #7CFC00;
  text-shadow: 0 0 8px #7CFC00;
}

.highlight-i {
  color: #3B82F6;
  text-shadow: 0 0 8px #3B82F6;
}

.highlight-s {
  color: #FFA500;
  text-shadow: 0 0 8px #FFA500;
}

@keyframes sparkle-fade {
  0%   { text-shadow: 0 0 30px currentColor, 0 0 10px currentColor; }
  100% { text-shadow: 0 0 8px currentColor; }
}

/* 모핑 배경 */
.morphing-bg {
  position: absolute;
  width: 300px;
  height: 300px;
  opacity: 0.1;
  filter: blur(40px);
  animation: morph 8s ease-in-out infinite;
}

@media (min-width: 768px) {
  .morphing-bg {
    width: 600px;
    height: 600px;
  }
}

@keyframes morph {
  0%, 100% {
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  }
  50% {
    border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%;
  }
}

/* 글래스 효과 */
.glass-effect {
  backdrop-filter: blur(22px);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.dark .glass-effect {
  background: rgba(17, 25, 40, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.55);
}

.dark .glass-effect .shadow-lg {
  box-shadow: 0 10px 28px rgba(8, 47, 73, 0.45) !important;
}

/* 네온 효과 로고용 */
.neon-glow {
  text-shadow: 0 0 5px currentColor;
}

/* 호버 효과 - 카드 들어올리기 (CSS 변수 기반, transform 충돌 방지) */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  /* transform은 .fade-in-up에서 translateY(var(--elevate))로 일원화 */
  --elevate: -6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.dark .hover-lift:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* fade-in이 없는 요소를 위한 안전한 폴백 */
.hover-lift:not(.fade-in-up) {
  --elevate: 0px;
  transform: translateY(var(--elevate));
}

.hover-lift:not(.fade-in-up):hover {
  --elevate: -6px;
}

/* 패럴럭스 */
.parallax {
  transform: translateZ(0);
  will-change: transform;
}

/* 카운터 */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ========================================
   반응형 스타일
   ======================================== */

/* 텍스트 크기 */
.responsive-text-lg {
  font-size: 1rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .responsive-text-lg {
    font-size: 1.125rem;
    line-height: 1.75;
  }
}

@media (min-width: 768px) {
  .responsive-text-lg {
    font-size: 1.25rem;
    line-height: 1.75;
  }
}

/* 버튼 크기 반응형 */
.responsive-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .responsive-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

/* 카드 패딩 반응형 */
.responsive-card-padding {
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .responsive-card-padding {
    padding: 2rem;
  }
}

/* 헤더 높이 */
.header-responsive {
  min-height: 100vh;
  min-height: 100svh;
  height: calc(var(--vh, 1vh) * 100);
}

/* ========================================
   다크모드 스타일
   ======================================== */

/* 라이트모드 카드 */
.bg-white {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* 다크모드 카드 */
.dark .bg-white {
  background-color: rgba(30, 41, 59, 0.4) !important;
  border: 1px solid rgba(71, 85, 105, 0.3);
  backdrop-filter: blur(10px);
}

.dark .bg-gradient-to-br {
  border: 1px solid rgba(71, 85, 105, 0.3);
  backdrop-filter: blur(5px);
}

/* 텍스트 색상 */
.dark .text-gray-700 {
  color: #cbd5e1 !important;
}

.dark .text-gray-600 {
  color: #94a3b8 !important;
}

.dark .text-primary-dark {
  color: #e0e7ff !important;
}

/* 타임라인 */
.dark .bg-gradient-to-b {
  background: linear-gradient(180deg, #60a5fa, #a78bfa) !important;
}

/* 그림자 */
.dark .shadow-lg {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5) !important;
}

.dark .shadow-xl {
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.6), 0 10px 15px -8px rgba(0, 0, 0, 0.6) !important;
}

.dark .shadow-md {
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.4) !important;
}

/* 카드 모양별 통일 */
.dark .rounded-full.bg-white,
.dark .rounded-xl.bg-white,
.dark .rounded-2xl.bg-white {
  background-color: rgba(30, 41, 59, 0.5) !important;
  backdrop-filter: blur(10px);
}

/* 서비스 카드 */
.bg-gradient-to-br.from-blue-50,
.bg-gradient-to-br.from-green-50,
.bg-gradient-to-br.from-purple-50,
.bg-gradient-to-br.from-orange-50,
.bg-gradient-to-br.from-cyan-50,
.bg-gradient-to-br.from-pink-50 {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.dark .bg-gradient-to-br.from-blue-50,
.dark .bg-gradient-to-br.from-green-50,
.dark .bg-gradient-to-br.from-purple-50,
.dark .bg-gradient-to-br.from-orange-50,
.dark .bg-gradient-to-br.from-cyan-50,
.dark .bg-gradient-to-br.from-pink-50 {
  background: rgba(30, 41, 59, 0.4) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(71, 85, 105, 0.3) !important;
}

/* 아이콘 배경 다크모드 */
.dark .bg-blue-100 {
  background-color: rgba(59, 130, 246, 0.2) !important;
}

.dark .bg-green-100 {
  background-color: rgba(34, 197, 94, 0.2) !important;
}

.dark .bg-purple-100 {
  background-color: rgba(168, 85, 247, 0.2) !important;
}

.dark .bg-orange-100 {
  background-color: rgba(251, 146, 60, 0.2) !important;
}

.dark .bg-cyan-100 {
  background-color: rgba(6, 182, 212, 0.2) !important;
}

.dark .bg-pink-100 {
  background-color: rgba(236, 72, 153, 0.2) !important;
}

.dark .bg-red-100 {
  background-color: rgba(239, 68, 68, 0.2) !important;
}

/* 타이틀 구분선 */
.bg-gradient-to-r.from-blue-500.to-purple-500 {
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.dark .bg-gradient-to-r.from-blue-500.to-purple-500 {
  box-shadow: 0 2px 12px rgba(96, 165, 250, 0.4);
}

/* 타임라인 카드 */
.bg-gradient-to-br.from-blue-50.to-indigo-50,
.bg-gradient-to-br.from-green-50.to-emerald-50,
.bg-gradient-to-br.from-purple-50.to-violet-50,
.bg-gradient-to-br.from-orange-50.to-amber-50 {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.dark .from-blue-50.to-indigo-50,
.dark .from-green-50.to-emerald-50,
.dark .from-purple-50.to-violet-50,
.dark .from-orange-50.to-amber-50 {
  background: rgba(30, 41, 59, 0.5) !important;
  border-color: rgba(71, 85, 105, 0.3) !important;
  backdrop-filter: blur(10px);
}

/* 푸터 */
footer {
  background: rgba(17, 24, 39, 0.95) !important;
  border-top: 1px solid rgba(71, 85, 105, 0.3);
  backdrop-filter: blur(10px);
}

.dark footer {
  background: rgba(15, 23, 42, 0.9) !important;
  border-top: 1px solid rgba(71, 85, 105, 0.4);
}

/* ========================================
   접근성 & 최적화
   ======================================== */

/* 키보드 내비게이션 */
.keyboard-nav *:focus {
  outline: 2px solid #3b82f6 !important;
  outline-offset: 2px !important;
}

/* 모바일 터치 최적화 */
@media (max-width: 767px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  body {
    -webkit-overflow-scrolling: touch;
  }
}

/* 고해상도 디스플레이 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .neon-glow {
    text-shadow: 0 0 3px currentColor, 0 0 6px currentColor, 0 0 9px currentColor;
  }
}

/* 프린트 스타일 */
@media print {
  .particles,
  #three-canvas,
  .lang-toggle {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* ========================================
   고급 인터랙션 효과
   ======================================== */

/* 스플래시 스크린 */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #1e40af 0%, #7c3aed 50%, #ec4899 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-logo {
  font-size: 5rem;
  font-weight: 900;
  color: white;
  letter-spacing: 0.5rem;
  text-shadow: 0 0 20px rgba(255,255,255,0.5), 0 0 40px rgba(255,255,255,0.3);
  animation: splashPulse 1.5s ease-in-out infinite;
}

.splash-subtitle {
  margin-top: 1rem;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  letter-spacing: 0.2rem;
}

.splash-loader {
  margin-top: 3rem;
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.splash-loader-bar {
  height: 100%;
  background: linear-gradient(90deg, #fff, rgba(255,255,255,0.5), #fff);
  background-size: 200% 100%;
  animation: loaderMove 1.5s linear infinite;
  border-radius: 2px;
}

@keyframes loaderMove {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes splashPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.5));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 40px rgba(255,255,255,0.8));
  }
}

/* 리플 효과 */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220%;
  height: 220%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.45s ease-out;
  pointer-events: none;
}

.ripple:active::after,
.ripple:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 3D Tilt 효과 */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.tilt-card:hover {
  transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) scale3d(1.02, 1.02, 1.02);
}

/* 네온 글로우 강화 */
.neon-glow-strong {
  animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% {
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
  }
  50% {
    text-shadow: 0 0 20px currentColor, 0 0 30px currentColor, 0 0 40px currentColor, 0 0 50px currentColor;
  }
}

/* 카드 글로우 효과 */
.card-glow {
  position: relative;
  overflow: hidden;
}

.card-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transform: rotate(45deg);
  animation: cardShine 3s linear infinite;
}

@keyframes cardShine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* 텍스트 그래디언트 애니메이션 */
.gradient-text-animated {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* 숫자 카운터 강화 */
.counter-enhanced {
  display: inline-block;
  animation: counterBounce 0.6s ease-out;
}

@keyframes counterBounce {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 스크롤 스냅 */
@media (min-width: 768px) {
  html {
    scroll-snap-type: y proximity;
  }
  
  section {
    scroll-snap-align: start;
  }
}

/* 순차적 등장 애니메이션 (fade-in-up 조합으로만 사용) */
/* 개별 .fade-in-up-stagger 블록은 제거해 충돌을 방지 */

@keyframes fadeInUpStagger {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* fade-in-up 애니메이션 - 기본 상태 */
.fade-in-up {
  opacity: 0;
  --elevate: 30px;
  transform: translateY(var(--elevate));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* fade-in-up-stagger 클래스 추가되면 애니메이션 시작 */
.fade-in-up.fade-in-up-stagger {
  animation: fadeInUpStagger 0.4s ease-out forwards;
  animation-delay: var(--fade-in-delay, 0s);
}

/* 애니메이션 완료 후 상태 – 명시적 완료 클래스 */
.fade-in-up.fade-in-up-done {
  opacity: 1;
  --elevate: 0;
}

/* 버튼 호버 강화 */
.btn-enhanced {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-enhanced::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-enhanced:hover::before {
  width: 300px;
  height: 300px;
}

.btn-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* 로딩 바 애니메이션 */
.loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  z-index: 10000;
  animation: loadingProgress 2s ease-in-out forwards;
}

@keyframes loadingProgress {
  0% { width: 0; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* Glassmorphism 강화 */
.glass-enhanced {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dark .glass-enhanced {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 텍스트 stroke 효과 */
.text-stroke {
  -webkit-text-stroke: 2px rgba(59, 130, 246, 0.5);
  paint-order: stroke fill;
}

/* 페이지 전환 효과 */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.page-transition.active {
  transform: translateY(0);
}

/* 파티클 인터랙티브 */
.particle-interactive {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.particle-interactive:hover {
  transform: scale(1.5);
  opacity: 1 !important;
}

/* 스크롤 기반 색상 변화 - 은은하게 */
@keyframes scrollColorChange {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-gradient-bg {
  background: linear-gradient(270deg, #ffffff, #fafbfc, #f9fafb, #fafbfc, #ffffff);
  background-size: 200% 200%;
  animation: scrollColorChange 30s ease infinite;
}

.dark .animated-gradient-bg {
  background: linear-gradient(270deg, #0f172a, #121826, #141b2e, #121826, #0f172a);
  background-size: 200% 200%;
  animation: scrollColorChange 30s ease infinite;
}

/* ========================================
   회사연혁 카드 배경색
   ======================================== */

/* 2019~2024 보라-파랑 */
.history-card-blue {
  background: linear-gradient(135deg, #f3f0ff 0%, #f0f7ff 100%);
}

.dark .history-card-blue {
  background: linear-gradient(135deg, #6a9dd7 0%, #8a7ba5 100%);
}

/* 2016~2018 초록-노랑 */
.history-card-green {
  background: linear-gradient(135deg, #f1fff0 0%, #fffef0 100%);
}

.dark .history-card-green {
  background: linear-gradient(135deg, #60b070 0%, #b3b05e 100%);
}

/* 2013~2015 보라-파랑 */
.history-card-purple {
  background: linear-gradient(135deg, #f3f0ff 0%, #f0f7ff 100%);
}

.dark .history-card-purple {
  background: linear-gradient(135deg, #a373cc 0%, #7777dd 100%);
}

/* 2004~2012 노랑-주황 */
.history-card-orange {
  background: linear-gradient(135deg, #fffef3 0%, #fffbf0 100%);
}

.dark .history-card-orange {
  background: linear-gradient(135deg, #e88a50 0%, #b6b845 100%);
}

/* ========================================
   업무분야 카드 배경색 (매우 연하게)
   ======================================== */

/* 연구기관 - 보라-파랑 */
.portfolio-card-research {
  background: linear-gradient(135deg, #f3f0ff 0%, #f0f7ff 100%);
}

.dark .portfolio-card-research {
  background: linear-gradient(135deg, #6a9dd7 0%, #8a7ba5 100%);
}

/* 공공기관 - 초록-노랑 */
.portfolio-card-public {
  background: linear-gradient(135deg, #f1fff0 0%, #fffef0 100%);
}

.dark .portfolio-card-public {
  background: linear-gradient(135deg, #60b070 0%, #d4d070 100%);
}

/* 교육기관 - 보라-파랑 */
.portfolio-card-education {
  background: linear-gradient(135deg, #f3f0ff 0%, #f0f7ff 100%);
}

.dark .portfolio-card-education {
  background: linear-gradient(135deg, #9c63ce 0%, #6868db 100%);
}

/* 일반기업 - 노랑-주황 */
.portfolio-card-corporate {
  background: linear-gradient(135deg, #fffef3 0%, #fffbf0 100%);
}

.dark .portfolio-card-corporate {
  background: linear-gradient(135deg, #bad45e 0%, #d4a050 100%);
}

/* 군관련기관 - 파랑-청녹색 */
.portfolio-card-military {
  background: linear-gradient(135deg, #fff3f8 0%, #fffaf8 100%);
}

.dark .portfolio-card-military {
  background: linear-gradient(135deg, #b33d60 0%, #aa56b5 100%);
}

/* ========================================
   사업소개 카드 배경색
   ======================================== */

/* 전산 인프라 구축 - 보라-파랑 */
.service-card-infrastructure {
  background: linear-gradient(135deg, #f3f0ff 0%, #f0f7ff 100%);
}

.dark .service-card-infrastructure {
  background: linear-gradient(135deg, #6a9dd7 0%, #8a7ba5 100%);
}

/* 전산 시스템 구축 - 초록-노랑 */
.service-card-system {
  background: linear-gradient(135deg, #ecfcec 0%, #fffef0 100%);
}

.dark .service-card-system {
  background: linear-gradient(135deg, #85b894 0%, #c4b048 100%);
}

/* 통합 유지보수 - 보라-파랑 */
.service-card-maintenance {
  background: linear-gradient(135deg, #f3f0ff 0%, #f0f7ff 100%);
}

.dark .service-card-maintenance {
  background: linear-gradient(135deg, #a373cc 0%, #6666dd 100%);
}

/* 클라우드 시스템 구축 - 노랑-주황 */
.service-card-cloud {
  background: linear-gradient(135deg, #fffef3 0%, #fffbf0 100%);
}

.dark .service-card-cloud {
  background: linear-gradient(135deg, #d4b860 0%, #d68050 100%);
}

/* 화상회의 솔루션 - 파랑-청녹색 */
.service-card-video {
  background: linear-gradient(135deg, #f0f7ff 0%, #f0fffe 100%);
}

.dark .service-card-video {
  background: linear-gradient(135deg, #3d8fb3 0%, #569db5 100%);
}

/* IT 컨설팅 - 빨강-자홍-핑크 */
.service-card-consulting {
  background: linear-gradient(135deg, #fff3f8 0%, #fffaf8 100%);
}

.dark .service-card-consulting {
  background: linear-gradient(135deg, #c97daa 0%, #d44444 100%);
}

