@charset "UTF-8";

/* ==========================================================================
   §4. TECHNOLOGY 섹션 전용 스타일 (technology.css)
   - 라이트 배경 (다크 톤 ideology 다음 자연스러운 톤 전환)
   - 50/50 풀 분할, alternating (.reverse 클래스로 좌우 뒤집힘)
   - 좌측: 정보(라벨/제목/설명/메타/통계) / 우측: 그라데이션 비주얼 박스 또는 이미지
   - 통계 숫자: 그라데이션 텍스트 효과
   ========================================================================== */

#technology {
	padding: 120px 0;
	background: var(--light);
}

/* --------------------------------------------------------------------------
   프로젝트 카드 (50/50 풀 분할)
   -------------------------------------------------------------------------- */
.tech-project {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
	padding: 80px 0;
	border-bottom: 1px solid var(--line);
}

.tech-project:last-child {
	border-bottom: none;
}

/* 두번째 카드: 좌우 뒤집기 (RTL 트릭 + 자식만 LTR 복원) */
.tech-project.reverse {
	direction: rtl;
}

.tech-project.reverse > * {
	direction: ltr;
}

/* --------------------------------------------------------------------------
   좌측: 정보 영역
   -------------------------------------------------------------------------- */
.tech-info-side .tech-label {
	font-size: 12px;
	color: var(--primary);
	font-weight: 700;
	letter-spacing: 3px;
	margin-bottom: 24px;
}

.tech-info-side h3 {
	font-size: 42px;
	font-weight: 800;
	color: #1a1a1a;
	line-height: 1.3;
	letter-spacing: -1px;
	margin-bottom: 32px;
}

.tech-info-side .tech-desc {
	color: var(--gray-text);
	font-size: 16px;
	line-height: 1.8;
	margin-bottom: 40px;
}

/* 메타 정보 (발주처/수행기간/기술스택) */
.tech-meta {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
	margin-bottom: 32px;
}

.tech-meta-row {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 24px;
	font-size: 14px;
}

.tech-meta-label {
	color: var(--gray-light);
	font-weight: 500;
}

.tech-meta-value {
	color: #1a1a1a;
	font-weight: 600;
}

/* 통계 3개 (큰 숫자 + 라벨) */
.tech-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

.tech-stat {
	text-align: left;
}

.tech-stat-num {
	font-size: 36px;
	font-weight: 800;
	letter-spacing: -1px;
	line-height: 1;
	margin-bottom: 8px;

	/* 시안 매칭: 그라데이션 텍스트 (primary → accent-dark) */
	background: linear-gradient(135deg, var(--primary), var(--accent-dark));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.tech-stat-label {
	font-size: 12px;
	color: var(--gray-light);
}

/* --------------------------------------------------------------------------
   우측: 비주얼 박스 (기본 - 이미지 없을 때 그라데이션 placeholder)
   -------------------------------------------------------------------------- */
.tech-visual-side {
	aspect-ratio: 4/3;
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 14px;
	letter-spacing: 2px;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	border-radius: 4px;
}

/* placeholder 상태 글로우 (이미지 없을 때만 적용) */
.tech-visual-side:not(.has-image)::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 30% 30%, rgba(0, 217, 255, 0.3), transparent 60%);
	pointer-events: none;
}

.tech-visual-side .visual-label {
	position: relative;
	z-index: 1;
	border: 1px solid rgba(255, 255, 255, 0.3);
	padding: 12px 24px;
	font-size: 12px;
	transition: transform 0.3s;
}

.tech-visual-side:hover .visual-label {
	transform: scale(1.1);
}

/* reverse 카드의 비주얼: 시안색 그라데이션으로 차별화 (이미지 없을 때) */
.tech-project.reverse .tech-visual-side:not(.has-image) {
	background: linear-gradient(135deg, #00d9ff, #0066cc);
}

/* --------------------------------------------------------------------------
   우측: 비주얼 박스 (실제 이미지 적용 시)
   - .has-image 클래스 → 이미지 원본 그대로 노출, 오버레이 없음
   - 호버 시 살짝 줌 인 효과만 유지
   -------------------------------------------------------------------------- */
.tech-visual-side.has-image {
	background: var(--light);
	cursor: default;
}

.tech-visual-side.has-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

/* 호버 시 이미지 살짝 줌 인 (5%) */
.tech-visual-side.has-image:hover img {
	transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   반응형 - 태블릿 (768px ~ 1023px: 1단 레이아웃)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
	#technology {
		padding: 80px 0;
	}

	.tech-project {
		grid-template-columns: 1fr;
		gap: 40px;
		padding: 60px 0;
	}

	/* 1단으로 떨어지면 reverse 효과는 의미 없음 (자연스러운 순서로) */
	.tech-project.reverse {
		direction: ltr;
	}

	.tech-info-side h3 {
		font-size: 32px;
	}
}

/* --------------------------------------------------------------------------
   반응형 - 모바일 (~767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	#technology {
		padding: 60px 0;
	}

	.tech-project {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 40px 0;
	}

	.tech-project.reverse {
		direction: ltr;
	}

	.tech-info-side h3 {
		font-size: 26px;
		margin-bottom: 20px;
	}

	.tech-info-side .tech-desc {
		font-size: 14px;
		margin-bottom: 28px;
	}

	.tech-meta-row {
		grid-template-columns: 80px 1fr;
		gap: 16px;
		font-size: 13px;
	}

	.tech-stats {
		gap: 16px;
	}

	.tech-stat-num {
		font-size: 28px;
	}

	.tech-stat-label {
		font-size: 11px;
	}
}