/* ==========================================================================
   에이치에프 테크놀로지 - 프리미엄 다크 모드 웹 디자인 테마 
   ========================================================================== */

/* 1. 디자인 코어 시스템 프리셋 */
:root {
  --bg-main: #0d1117; /* 베이스 딥 다크 배경 */
  --bg-card: #161b22; /* 슬라이드 박스 및 카드 배경 */
  --point-blue: #2f80ed; /* 핵심 포인트 하이라이트 블루 */
  --text-white: #ffffff; /* 타이틀 및 화이트 컬러 */
  --text-gray: #8b949e; /* 본문 가독성 회색 서체 */
  --border-color: #21262d; /* 세련된 얇은 보더 라인 */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans KR", "Poppins", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* 레이아웃 컨테이너 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
}

/* 2. 네비게이션 헤더 바 (GNB) */
#header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
}

.logo-img {
  height: 40px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 35px;
}

.nav-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-gray);
  letter-spacing: 0.5px;
}

.nav-menu a:hover {
  color: var(--point-blue);
}

/* 3. 메인 히어로 프리미엄 영역 */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(
    circle at 85% 30%,
    rgba(47, 128, 237, 0.12) 0%,
    rgba(13, 17, 23, 1) 65%
  );
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  padding: 0 40px;
}

.hero-sub {
  color: var(--point-blue);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

.hero-content h1 {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--point-blue);
}

.hero-desc {
  color: var(--text-gray);
  font-size: 18px;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-block;
  background: var(--point-blue);
  color: #fff;
  padding: 14px 35px;
  border-radius: 6px;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(47, 128, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 128, 237, 0.5);
}

/* 4. 공통 섹션 타이틀 컴포넌트 */
.section-title {
  margin-bottom: 60px;
}
.section-title.text-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title h2 {
  font-size: 28px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.title-bar {
  width: 45px;
  height: 4px;
  background-color: var(--point-blue);
  border-radius: 2px;
}

/* 5. 회사 소개 슬라이드 카드 */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 60px 40px;
  border-radius: 12px;
  text-align: center;
}

.about-card h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-card h3 span {
  color: var(--point-blue);
  font-weight: 700;
}

.about-card p {
  color: var(--text-gray);
  font-size: 16px;
}

/* 6. 기술 역량 섹션 그리드 배치 */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.skill-card:hover {
  border-color: rgba(47, 128, 237, 0.5);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 30px;
  color: var(--point-blue);
  margin-bottom: 20px;
}

.skill-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

.card-desc {
  color: var(--text-gray);
  font-size: 14px;
  margin-bottom: 20px;
}

.skill-list li {
  color: var(--text-gray);
  position: relative;
  padding-left: 15px;
  margin-bottom: 10px;
  font-size: 14.5px;
}

.skill-list li::before {
  content: "▪";
  color: var(--point-blue);
  position: absolute;
  left: 0;
  font-size: 12px;
}

/* 기술 서체 태그 뱃지 */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tags span {
  background: rgba(47, 128, 237, 0.08);
  border: 1px solid rgba(47, 128, 237, 0.25);
  color: var(--point-blue);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 500;
}

/* 7. 대용량 포트폴리오 전용 2열 그리드 구조 */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
}

.portfolio-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.portfolio-img-box {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: #1c2128;
}

.portfolio-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-img-box img {
  transform: scale(1.04);
}

.portfolio-info {
  padding: 30px;
  flex-grow: 1;
}

.portfolio-info h4 {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text-white);
  border-bottom: 1px solid #21262d;
  padding-bottom: 10px;
}

.portfolio-info p {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.65;
  text-align: justify;
}

/* 8. 컨택트 영역 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px 20px;
  border-radius: 12px;
}

.contact-box i {
  font-size: 34px;
  color: var(--point-blue);
  margin-bottom: 15px;
}

.contact-box h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.contact-box p,
.contact-box a {
  color: var(--text-gray);
  font-size: 14.5px;
}

/* 9. 푸터 레이어 */
footer {
  padding: 40px 0;
  text-align: center;
  background: #090d13;
  color: #586069;
  font-size: 13.5px;
}

/* 10. 우측 하단 고정 플로팅 시스템 통합 레이아웃 */
.floating-group {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none; /* 스크롤 제어 전 히든 기본값 */
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.kakao-floating-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #fee500;
  color: #191919;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.kakao-floating-btn:hover {
  transform: translateY(-2px);
  background-color: #f7e000;
}

.btn_gotop a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.btn_gotop a:hover {
  background-color: var(--point-blue);
  border-color: var(--point-blue);
  transform: translateY(-2px);
}

/* 스마트폰 및 태블릿 스크린 반응형 최적화 인터페이스 */
@media (max-width: 991px) {
  .skill-grid,
  .portfolio-grid,
  .contact-grid {
    grid-template-columns: 1fr; /* 모바일 대응 1열 자동 전환 */
  }
  .hero-content h1 {
    font-size: 34px;
  }
  .nav-menu {
    display: none; /* 모바일 반응형 시 가독성을 위해 메뉴 바 숨김 처리 */
  }
  section {
    padding: 70px 0;
  }
}
