/* 1. 기본 설정 */
*, *::before, *::after {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body {
  margin: 0;
  padding: 0;
  background: #0a0a0a;
  color: #e0e0e0;
  font-family: 'Inter', 'Noto Sans KR', 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a {
  display: inline-block;
  color: #ff00ff;
  text-decoration: none;
  font-weight: bold;
  text-shadow: 0 0 5px #ff00ff;
  transition: text-shadow 0.3s;
}

a:hover {
  text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
}

/* 2. 타이핑 애니메이션 */
.neon-on {
  color: #39ff14;
  text-shadow:
    0 0 5px #39ff14,
    0 0 10px #39ff14,
    0 0 20px #39ff14,
    0 0 40px #39ff14;
  transition: all 0.15s ease-in-out;
}

.neon-off {
  color: #0a0a0a;
  text-shadow: none;
  transition: all 0.15s ease-in-out;
}

@keyframes flicker-on {
  0%, 100% { opacity: 1; }
  20%, 60% { opacity: 0.2; }
  40%, 80% { opacity: 0.6; }
}

.flicker {
  animation: flicker-on 0.6s ease-in-out;
}

/* 3. 섹션 스타일 */
section {
  width: 100%;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  text-align: left;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  font-size: 2rem;
  color: #00ffff;
  text-shadow: 0 0 8px #00ffff;
  margin-bottom: 1rem;
  border-left: 4px solid #00ffff;
  padding-left: 0.75rem;
}

section p,
section li {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #f0f0f0;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* 4. 네비게이션 */
header {
  background: #0f0f0f;
  padding: 2rem 1rem;
  text-align: center;
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

nav li {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

nav li.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 5. 리스트 */
ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 1rem;
}

/* 6. footer */
footer {
  text-align: center;
  padding: 2rem;
  background: #111;
  color: #00ffff;
  font-size: 1rem;
  text-shadow: 0 0 6px #00ffff;
}

/* 7. fact 출력창 */
#fact-output {
  display: block;
  width: max-content;
  margin: 2rem auto;
  padding: 1rem 3rem;
  font-style: italic;
  background-color: #000;
  color: #ffcc00;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 10px #ffcc00;
  text-shadow: 0 0 6px #ffcc00;
  font-size: 1.1rem;
  cursor: pointer;
  animation: flicker 2s infinite;

}

@keyframes flicker {
  0%, 19%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.4; }
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.project-card h3 {
  margin-top: 0;
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff;
}

.project-card p {
  margin: 0.5rem 0;
  color: #f0f0f0;
}

.project-card .stack {
  font-size: 0.95rem;
  color: #ccc;
  font-style: italic;
}