/* ── Universal ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { border-radius: 3px; }

::selection { background: rgba(212,163,115,0.25); color: #D4A373; }

#navbar { background: transparent; }
#navbar.scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.skill-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  border-radius: 9999px;
  border: 1px solid;
  transition: all 0.15s ease;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(6px); opacity: 0.4; }
}
.scroll-dot { animation: scrollBounce 1.8s ease-in-out infinite; }
.scroll-indicator { position: absolute; }

.project-thumb-placeholder {
  width: 100%; height: 12rem;
  background: linear-gradient(135deg, #1B3022 0%, #2D5016 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}

#mobile-menu { animation: slideDown 0.2s ease-out; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-hidden  { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.section-visible { opacity: 1; transform: translateY(0); }

body, #navbar, section, footer { transition: background-color 0.3s ease, color 0.3s ease; }

/* ── CTA 버튼 ─────────────────────────────────────────────────────────────── */
.btn-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: translateX(-110%);
  transition: transform 0.55s ease;
  border-radius: 9999px;
  pointer-events: none;
}
.btn-cta:hover::before { transform: translateX(110%); }

/* ════════════════════════════════════════════════════════════════════════════
   DARK MODE — Deep Forest
   ════════════════════════════════════════════════════════════════════════════ */
html.dark body { background-color: #0F1E14 !important; color: #FEFAE0 !important; }

html.dark #navbar.scrolled {
  background: rgba(15,30,20,0.9);
  border-bottom: 1px solid rgba(212,163,115,0.15);
}

/* Backgrounds */
html.dark .bg-gray-950      { background-color: #0F1E14 !important; }
html.dark .bg-gray-950\/95  { background-color: rgba(15,30,20,0.96) !important; }
html.dark .bg-gray-900      { background-color: #1B3022 !important; }
html.dark .bg-gray-900\/30  { background-color: rgba(27,48,34,0.35) !important; }
html.dark .bg-gray-900\/50  { background-color: rgba(27,48,34,0.55) !important; }
html.dark .bg-gray-800      { background-color: #263D2C !important; }
html.dark .bg-blue-950      { background-color: #0D2518 !important; }
html.dark .bg-purple-950    { background-color: #112218 !important; }

/* Borders */
html.dark .border-gray-800  { border-color: #2A4030 !important; }
html.dark .border-gray-700  { border-color: #344E38 !important; }
html.dark .border-gray-600  { border-color: #456048 !important; }
html.dark .hover\:border-blue-800:hover   { border-color: #D4A373 !important; }
html.dark .hover\:border-purple-800:hover { border-color: #C49060 !important; }
html.dark .hover\:border-green-800:hover  { border-color: #6AAF70 !important; }
html.dark .hover\:border-orange-800:hover { border-color: #D4A373 !important; }

/* Text */
html.dark .text-white    { color: #FEFAE0 !important; }
html.dark .text-gray-100 { color: #FEFAE0 !important; }
html.dark .text-gray-300 { color: #D4C9A0 !important; }
html.dark .text-gray-400 { color: #A8B5A0 !important; }
html.dark .text-gray-500 { color: #7A9080 !important; }
html.dark .text-gray-700 { color: #4A6050 !important; }

/* Accent → Sand */
html.dark .text-blue-400      { color: #D4A373 !important; }
html.dark .text-blue-400\/80  { color: rgba(212,163,115,0.8) !important; }
html.dark .text-purple-400    { color: #C49060 !important; }
html.dark .text-green-400     { color: #7CBF7A !important; }
html.dark .text-orange-400    { color: #D4A373 !important; }

/* Dots / icons */
html.dark .bg-blue-500   { background-color: #D4A373 !important; }
html.dark .bg-purple-500 { background-color: #C49060 !important; }
html.dark .bg-blue-400   { background-color: #D4A373 !important; }

/* Contact 버튼 */
html.dark .border-blue-500         { border-color: #D4A373 !important; }
html.dark .hover\:bg-blue-500:hover { background-color: #D4A373 !important; }

/* Hero 그라디언트 텍스트 */
html.dark .from-blue-400 { --tw-gradient-from: #D4A373 !important; }
html.dark .to-purple-500 { --tw-gradient-to:   #C49060 !important; }

/* Timeline dot ring */
html.dark .ring-gray-950 { --tw-ring-color: #0F1E14 !important; }

/* Skill badges */
html.dark .skill-badge {
  background: rgba(27,48,34,0.8);
  color: #A8B5A0;
  border-color: rgba(42,64,48,0.55);
}
html.dark .skill-badge:hover {
  background: rgba(212,163,115,0.15);
  border-color: rgba(212,163,115,0.4);
  color: #D4A373;
}

/* CTA 버튼 — Sand gradient */
html.dark .btn-cta {
  background-image: linear-gradient(to right, #D4A373, #C49060) !important;
  color: #1B3022 !important;
}
html.dark .btn-cta:hover {
  color: #1B3022 !important;
  box-shadow: 0 20px 40px -8px rgba(212,163,115,0.45) !important;
}

/* Scrollbar */
html.dark ::-webkit-scrollbar-track { background: #0F1E14; }
html.dark ::-webkit-scrollbar-thumb { background: #2A4030; }
html.dark ::-webkit-scrollbar-thumb:hover { background: #D4A373; }

/* ════════════════════════════════════════════════════════════════════════════
   LIGHT MODE — Warm Cream
   ════════════════════════════════════════════════════════════════════════════ */
html:not(.dark) body { background-color: #FEFAE0 !important; color: #1B3022 !important; }

html:not(.dark) #navbar.scrolled {
  background: rgba(254,250,224,0.93);
  border-bottom: 1px solid rgba(27,48,34,0.1);
}

/* Backgrounds */
html:not(.dark) .bg-gray-950      { background-color: #FEFAE0 !important; }
html:not(.dark) .bg-gray-950\/95  { background-color: rgba(254,250,224,0.96) !important; }
html:not(.dark) .bg-gray-900      { background-color: #FFFFFF !important; }
html:not(.dark) .bg-gray-900\/30  { background-color: rgba(212,163,115,0.08) !important; }
html:not(.dark) .bg-gray-900\/50  { background-color: rgba(255,255,255,0.85) !important; }
html:not(.dark) .bg-gray-800      { background-color: #E8DFC8 !important; }
html:not(.dark) .bg-black\/80     { background-color: rgba(27,48,34,0.65) !important; }
html:not(.dark) .bg-blue-950      { background-color: #F5EDD8 !important; }
html:not(.dark) .bg-purple-950    { background-color: #F5EDD8 !important; }

/* Borders */
html:not(.dark) .border-gray-800  { border-color: #DDD5BC !important; }
html:not(.dark) .border-gray-700  { border-color: #CCC4A8 !important; }
html:not(.dark) .border-gray-600  { border-color: #B8B098 !important; }
html:not(.dark) .hover\:border-blue-800:hover   { border-color: #D4A373 !important; }
html:not(.dark) .hover\:border-purple-800:hover { border-color: #C49060 !important; }
html:not(.dark) .hover\:border-green-800:hover  { border-color: #4A8050 !important; }
html:not(.dark) .hover\:border-orange-800:hover { border-color: #D4A373 !important; }

/* Text */
html:not(.dark) .text-white    { color: #1B3022 !important; }
html:not(.dark) .text-gray-100 { color: #1B3022 !important; }
html:not(.dark) .text-gray-300 { color: #2D4B35 !important; }
html:not(.dark) .text-gray-400 { color: #3D5A42 !important; }
html:not(.dark) .text-gray-500 { color: #5A7860 !important; }
html:not(.dark) .text-gray-700 { color: #8B9D88 !important; }

/* Accent → Dark Sand / Forest */
html:not(.dark) .text-blue-400      { color: #8B6420 !important; }
html:not(.dark) .text-blue-400\/80  { color: rgba(139,100,32,0.8) !important; }
html:not(.dark) .text-purple-400    { color: #7A5818 !important; }
html:not(.dark) .text-green-400     { color: #2D6B35 !important; }
html:not(.dark) .text-orange-400    { color: #8B6420 !important; }

/* Dots / icons */
html:not(.dark) .bg-blue-500   { background-color: #1B3022 !important; }
html:not(.dark) .bg-purple-500 { background-color: #2D5016 !important; }
html:not(.dark) .bg-blue-400   { background-color: #D4A373 !important; }

/* Contact 버튼 */
html:not(.dark) .border-blue-500          { border-color: #1B3022 !important; }
html:not(.dark) .hover\:bg-blue-500:hover { background-color: #1B3022 !important; }

/* Hero 그라디언트 텍스트 */
html:not(.dark) .from-blue-400 { --tw-gradient-from: #1B3022 !important; }
html:not(.dark) .to-purple-500 { --tw-gradient-to:   #4A7C50 !important; }

/* Timeline dot ring */
html:not(.dark) .ring-gray-950 { --tw-ring-color: #FEFAE0 !important; }

/* Nav links */
html:not(.dark) .nav-link       { color: #3D5A42 !important; }
html:not(.dark) .nav-link:hover { color: #1B3022 !important; }

html:not(.dark) #mobile-menu a       { color: #2D4B35 !important; }
html:not(.dark) #mobile-menu a:hover { color: #1B3022 !important; }

/* Skill badges */
html:not(.dark) .skill-badge {
  background: rgba(212,163,115,0.12);
  color: #4A6050;
  border-color: rgba(212,163,115,0.38);
}
html:not(.dark) .skill-badge:hover {
  background: rgba(212,163,115,0.25);
  border-color: rgba(212,163,115,0.6);
  color: #8B6420;
}

/* CTA 버튼 — Forest gradient */
html:not(.dark) .btn-cta {
  background-image: linear-gradient(to right, #1B3022, #2D5016) !important;
  color: #FEFAE0 !important;
}
html:not(.dark) .btn-cta:hover {
  color: #FEFAE0 !important;
  box-shadow: 0 20px 40px -8px rgba(27,48,34,0.4) !important;
}

/* Featured 배지 — 컬러 배경 위 흰 텍스트 항상 고정 */
html:not(.dark) .bg-blue-600.text-white,
html:not(.dark) .bg-purple-600.text-white,
html:not(.dark) .bg-green-600.text-white,
html:not(.dark) .bg-orange-600.text-white { color: #ffffff !important; }

/* Hover — ghost 버튼·footer 링크 */
html:not(.dark) a[href*="notion"]:hover { color: #1B3022 !important; }
html:not(.dark) footer a:hover          { color: #1B3022 !important; }

/* Scrollbar */
html:not(.dark) ::-webkit-scrollbar-track { background: #FEFAE0; }
html:not(.dark) ::-webkit-scrollbar-thumb { background: #D4A373; }
html:not(.dark) ::-webkit-scrollbar-thumb:hover { background: #C49060; }
