html { font-size: 20px; }
* { font-family: 'Noto Sans KR', sans-serif; }
code, .mono { font-family: 'JetBrains Mono', monospace; }

/* ── Scroll animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(.16,1,.3,1), transform 0.65s cubic-bezier(.16,1,.3,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

#main-project .fade-up,
#other .fade-up {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ── Gradient text ── */
.grad-blue {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-orange {
  background: linear-gradient(135deg, #fb923c 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Grid background ── */
.grid-bg {
  background-image:
    linear-gradient(rgba(56,189,248,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,.07) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Glassmorphism card ── */
.glass {
  background: rgb(25,35,50);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
}

/* ── Main Project section glass cards ── */
#main-project .glass {
  background: #271c0e;
}

/* ── Main Project card background ── */
#main-project .fade-up.rounded-3xl {
  background-color: #291b0b !important;
  background-image: none !important;
  backdrop-filter: none !important;
}

/* ── Domain, Type, Focus label equal width ── */
#main-project .mb-10.space-y-3 > div > span:first-child {
  min-width: 60px;
  width: 60px;
  text-align: center;
}

.glass-hover {
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.glass-hover:hover {
  border-color: rgba(56,189,248,.35);
  box-shadow: 0 20px 48px rgba(56,189,248,.1);
  transform: translateY(-6px);
}

/* ── Tech badge ── */
.badge-blue {
  background: rgba(56,189,248,.1);
  border: 1px solid rgba(56,189,248,.28);
  color: #7dd3fc;
}
.badge-orange {
  background: rgba(251,146,60,.1);
  border: 1px solid rgba(251,146,60,.28);
  color: #fdba74;
}
.badge-indigo {
  background: rgba(129,140,248,.1);
  border: 1px solid rgba(129,140,248,.28);
  color: #a5b4fc;
}
.badge-slate {
  background: rgba(100,116,139,.15);
  border: 1px solid rgba(100,116,139,.25);
  color: #94a3b8;
}

/* ── Timeline ── */
.timeline-dot {
  position: absolute;
  left: -37px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #0f172a;
}

/* ── Achievement strip ── */
.ach {
  border-left: 2px solid rgba(56,189,248,.4);
  padding-left: 12px;
}
.ach-emerald { border-left-color: rgba(52,211,153,.4); }
.ach-rose    { border-left-color: rgba(251,113,133,.4); }
.ach-violet  { border-left-color: rgba(167,139,250,.4); }

/* ── Extra badge colors ── */
.badge-emerald {
  background: rgba(52,211,153,.1);
  border: 1px solid rgba(52,211,153,.28);
  color: #6ee7b7;
}
.badge-rose {
  background: rgba(251,113,133,.1);
  border: 1px solid rgba(251,113,133,.28);
  color: #fda4af;
}
.badge-violet {
  background: rgba(167,139,250,.1);
  border: 1px solid rgba(167,139,250,.28);
  color: #c4b5fd;
}

/* ── Hero entrance ── */
@keyframes slideDown { from{opacity:0;transform:translateY(-24px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideUp   { from{opacity:0;transform:translateY(24px)}  to{opacity:1;transform:translateY(0)} }
.anim-down { animation: slideDown .8s cubic-bezier(.16,1,.3,1) both; }
.anim-up   { animation: slideUp  .8s cubic-bezier(.16,1,.3,1) .25s both; }
.anim-up2  { animation: slideUp  .8s cubic-bezier(.16,1,.3,1) .45s both; }

/* ── Experience section (no delay) ── */
#experience.fade-up { transition-delay: 0 !important; }
#experience .fade-up { transition-delay: 0 !important; }


/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #38bdf8; }

/* ── Glow orb ── */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

#hero .orb {
  background-color: rgba(56, 189, 248, 0.65) !important;
  filter: blur(300px);
}

#hero > .orb:nth-child(3) {
  visibility: hidden !important;
}

/* ── Pulse dot ── */
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fb923c;
  animation: pulse-anim 1.8s ease-in-out infinite;
}
@keyframes pulse-anim { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }

/* ── Animated Gradient ── */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animated-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* ── Orange accent strip (for 득근대란 detail) ── */
.ach-orange  { border-left-color: rgba(251,146,60,.45); }

/* ── Code / pre block ── */
.code-block {
  background: rgba(15,23,42,.75);
  border: 1px solid rgba(251,146,60,.18);
  border-radius: 12px;
  padding: 18px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.65;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre;
}
.code-block .cmt { color: #64748b; }
.code-block .kw  { color: #7dd3fc; }
.code-block .str { color: #fdba74; }
.code-block .fn  { color: #c4b5fd; }
.code-block .num { color: #6ee7b7; }

/* ── Inline code ── */
.ic {
  font-family: 'JetBrains Mono', monospace;
  font-size: .78em;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(251,146,60,.12);
  border: 1px solid rgba(251,146,60,.22);
  color: #fdba74;
}

/* ── Problem block header ── */
.prob-num {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(251,146,60,.14);
  border: 1px solid rgba(251,146,60,.3);
  color: #fdba74;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

/* ── Section backgrounds ── */
#hero { background-color: #070d18; }
#main-project { background-color: #0d0800; }
#other { background-color: #070d18; }

/* ── Grid background (Main Project - Orange) ── */
#main-project {
  background-image:
    linear-gradient(rgba(251,146,60,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251,146,60,.15) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Grid background (Other - Sky) ── */
#other {
  background-image:
    linear-gradient(rgba(56,189,248,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,.07) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* 2️⃣ Animated Gradient (비활성화)
#main-project {
  background: linear-gradient(-45deg, #0d0800, #1a0f00, #0d0800, #1a0f00);
  background-size: 400% 400%;
  animation: gradient-shift 8s ease infinite;
}
#other {
  background: linear-gradient(-45deg, #070d18, #0d1218, #070d18, #0d1218);
  background-size: 400% 400%;
  animation: gradient-shift 8s ease infinite;
}
*/

/* 3️⃣ Noise/Grain Texture (비활성화)
#main-project {
  background-color: #0d0800;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='4' result='turbulence' /%3E%3C/filter%3E%3Crect width='200' height='200' fill='%230d0800' /%3E%3Crect width='200' height='200' fill='%23ffffff' opacity='0.02' filter='url(%23noise)' /%3E%3C/svg%3E");
  background-size: 200px 200px;
}
#other {
  background-color: #070d18;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise2'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='4' result='turbulence' /%3E%3C/filter%3E%3Crect width='200' height='200' fill='%23070d18' /%3E%3Crect width='200' height='200' fill='%23ffffff' opacity='0.02' filter='url(%23noise2)' /%3E%3C/svg%3E");
  background-size: 200px 200px;
}
*/

/* ── Remove gradients in #other ── */
#other [class*="bg-gradient"],
#other [class*="from-"],
#other [class*="via-"],
#other [class*="to-"] {
  background-image: none !important;
}

/* ── Sub-section divider ── */
.sub-head {
  font-family: 'JetBrains Mono', monospace;
  color: #fb923c;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
}

/* ── Problem card ── */
.problem-card {
  transition: border-color .3s, box-shadow .3s, transform .25s, background-color .3s;
  cursor: pointer;
}
.problem-card:hover {
  border-color: rgba(251,146,60,.8);
  border-width: 2px;
  box-shadow:
    0 0 30px rgba(251,146,60,.3),
    0 15px 40px rgba(251,146,60,.2),
    inset 0 0 1px rgba(251,146,60,.1);
  transform: translateY(-6px);
  background-color: rgba(251,146,60,.08);
}

/* ── Problem card detail button ── */
.problem-card .group-hover\:opacity-100 {
  padding: 14px 32px !important;
  gap: 10px !important;
}

.problem-card .group-hover\:opacity-100 span {
  font-size: 18px !important;
  font-weight: 600 !important;
}

.problem-card .group-hover\:opacity-100 i {
  font-size: 16px !important;
}

/* ── Problem modal ── */
#prob-modal { backdrop-filter: blur(6px); }
#prob-modal-inner { scrollbar-width: thin; scrollbar-color: rgba(251,146,60,.3) transparent; }
#prob-modal-inner::-webkit-scrollbar { width: 4px; }
#prob-modal-inner::-webkit-scrollbar-thumb { background: rgba(251,146,60,.3); border-radius: 4px; }

/* ── Side Navigation ── */
.side-nav-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(100, 120, 140, 0.4);
  background-color: rgba(51, 65, 85, 0.5);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.side-nav-link:hover {
  background-color: rgba(51, 65, 85, 0.6);
  border-color: rgba(100, 120, 140, 0.6);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.side-nav-link.active {
  border: 2px solid currentColor;
  background-color: rgba(51, 65, 85, 0.8);
  box-shadow: 0 0 16px currentColor, 0 8px 16px rgba(255, 255, 255, 0.12), inset 0 0 8px currentColor;
}

.side-nav-link[data-section="hero"] {
  color: rgb(56, 189, 248);
}

.side-nav-link[data-section="main-project"] {
  color: rgb(251, 146, 60);
}

.side-nav-link[data-section="other"] {
  color: rgb(167, 139, 250);
}

/* ── Project Card Hover (Button on Corner) ── */
#other .group .absolute.inset-0 {
  inset: auto 16px 16px auto !important;
  width: auto !important;
  height: auto !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  opacity: 0 !important;
  transition: opacity 0.3s;
}

#other .group:hover .absolute.inset-0 {
  opacity: 100 !important;
}

/* ── Project Card Border Hover (Theme Colors) ── */
#other .grid > div:nth-child(1):hover {
  border-color: rgba(56, 189, 248, 0.8) !important;
  border-width: 2px !important;
}

#other .grid > div:nth-child(2):hover {
  border-color: rgba(52, 211, 153, 0.8) !important;
  border-width: 2px !important;
}

#other .grid > div:nth-child(3):hover {
  border-color: rgba(251, 113, 133, 0.8) !important;
  border-width: 2px !important;
}

#other .grid > div:nth-child(4):hover {
  border-color: rgba(167, 139, 250, 0.8) !important;
  border-width: 2px !important;
}
