@font-face {
  font-family: 'Pretendard';
  src: url('PretendardVariable.woff2') format('woff2-variations');
  font-weight: 100 900; /* 100(Thin)부터 900(Black)까지 모두 대응 */
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

body {
  background-color: #111318; /* 깊고 세련된 다크 블루 블랙 */
  
  /* 애플 특유의 오로라 액체 빛 내림 효과 */
  background-image: 
    radial-gradient(at 0% 0%, rgba(42, 63, 131, 0.4) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(98, 54, 130, 0.35) 0px, transparent 50%),
    radial-gradient(at 80% 20%, rgba(32, 85, 145, 0.25) 0px, transparent 40%);
  background-attachment: fixed; /* 스크롤 시 배경 조명 고정 */
  color: #ffffff;
  overflow-x: hidden;
}

/* ==========================================================================
   2. 상단 헤더 및 반응형 캐릭터 영역 (Hero Section)
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(to bottom, #0b111e, #162238);
  height: 45vh;
  min-height: 320px;
  max-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 4%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.instagram-link {
  color: #ffffff; /* 기본 아이콘 색상 흰색 지정 */
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.instagram-icon {
  width: 24px;
  height: 24px;
  opacity: 0.9;
  cursor: pointer;
}

/* 💡 사용자 커스텀 크기 및 위치 반영 구역 */
.character-container {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 48.5%);
  width: 500px; 
  z-index: 10;
  pointer-events: none;
}

.character-container img {
  width: 100%;
  display: block;
}

/* ==========================================================================
   3. 메인 레이아웃 및 인트로 구역
   ========================================================================== */
.main-content {
  background-color: transparent; 
  padding: 0 6% 80px 6%;
  position: relative;
  z-index: 1;
}

.intro-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 100px; /* 캐릭터 공간 확보 */
  margin-bottom: 60px;
  gap: 30px;
}

.intro-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.intro-text p {
  font-size: 1.05rem;
  color: #b0b0b0;
  line-height: 1.5;
  max-width: 550px;
}

.profiles {
  display: flex;
  gap: 20px;
  align-self: flex-end;
}

.profile-item {
  text-align: center;
}

.profile-item span {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 8px;
  line-height: 1.2;
  color: #e0e0e0;
}

.profile-box {
  width: 60px;
  height: 60px;
  border: 1px solid #777;
  background: linear-gradient(to top right, transparent 49.5%, #777 49.5%, #777 50.5%, transparent 50.5%),
              linear-gradient(to top left, transparent 49.5%, #777 49.5%, #777 50.5%, transparent 50.5%);
  background-color: #3a3a3a;
}

/* ==========================================================================
   4. Features 섹션 (리퀴드 글래스 카드 & 실제 이미지 매핑)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 80px;
}

.card {
  background: rgba(255, 255, 255, 0.04); 
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); /* Safari 지원 */
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25),
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 24px; 
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: all 0.3s ease;
}

.card:hover {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

/* 🛠️ 구 placeholder 교체: 실제 이미지 수용 컨테이너 */
.image-container {
  width: 100%;
  height: 140px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden; /* 이미지가 라운드 배젤 밖으로 터져 나가는 것 방지 */
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 어떤 가로세로 비율의 사진이 와도 찌그러짐 없이 꽉 채움 */
  display: block;
}

.card p {
  font-size: 0.95rem;
  color: #b0b0b0;
  line-height: 1.4;
}

/* ==========================================================================
   5. Work 섹션 (실제 포트폴리오 이미지 구역)
   ========================================================================== */
.work-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: lowercase;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

/* 🛠️ 구 placeholder 교체: 포트폴리오 이미지 글래스 프레임 */
.work-container {
  width: 100%;
  height: 240px;
  background-color: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.work-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* 애플 스타일 줌 인 인터랙션 효과 */
.work-container:hover img {
  transform: scale(1.04);
}

/* ==========================================================================
   6. 푸터 및 기타
   ========================================================================== */
.footer {
  background-color: #1e1e1e;
  padding: 30px 20px;
  text-align: center;
  font-size: 0.75rem;
  color: #888888;
  border-top: 1px solid #252525;
}

/* ==========================================================================
   7. 반응형 미디어 쿼리 (Tablet & Desktop 디바이스 최적화)
   ========================================================================== */

/* 📱 태블릿 화면 기준 (가로 640px 이상) */
@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .character-container {
    width: 600px;
    transform: translate(-50%, 48.5%);
  }
  .intro-container {
    padding-top: 120px;
  }
}

/* 🖥️ 데스크톱 화면 기준 (가로 1024px 이상) */
@media (min-width: 1024px) {
  .main-content {
    padding: 0 12% 100px 12%;
  }
  
  .intro-container {
    flex-direction: row;
    align-items: flex-end;
    padding-top: 140px;
  }

  .profiles {
    align-self: flex-end;
  }

  .character-container {
    width: 700px;
    transform: translate(-50%, 48.5%);
  }

  .intro-text h1 {
    font-size: 2.8rem;
  }

  .features-grid {
    gap: 35px;
  }
  
  .card {
    padding: 30px;
  }

  /* 🛠️ 데스크톱 환경 카드 내 이미지 슬롯 높이 확장 버그 수정 완료 */
  .image-container {
    height: 180px;
  }
}