* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  background: #9D9D9D;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  color: #222;
  font-size: 14px;
  line-height: 26px;
  padding-bottom: 50px;
}

/* Text Animation for Name */
.animate-text {
  display: inline-block;
  opacity: 0;
  animation: slideInText 0.6s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes slideInText {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Fade Up Animation */
.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Social Links */
.social-link {
  transition: color 0.3s ease;
}

img {
  width: 0px;
  height: 0px;
  border-radius: 0%;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.animate__animated.animate__slideInDown {
  --animate-duration: 1.5s;
}

.animate__animated.animate__fadeInLeft {
  --animate-duration: 2s;
}

.container {
  max-width: 700px;
  background: #fff;
  margin: 0px auto 0px;
  box-shadow: 1px 1px 2px #DAD7D7;
  border-radius: 3px;
  padding: 40px;
  margin-top: 50px;
  animation: containerSlideIn 0.8s ease-out forwards;
}

@keyframes containerSlideIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.header {
  margin-bottom: 30px;
}

.header .full-name {
  font-size: 36px;
  text-transform: uppercase;
  margin-bottom: 25px;
}

/* Mode switch button */
.mode-switch {
  position: absolute;
  right: 15px;
  top: 15px;
  z-index: 1000;
}

#theme-toggle {
  background: #eef2ff;
  color: #0b1220;
  border: 0;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: none;
}

.dark-theme #theme-toggle {
  background: #2a2a2a;
  color: #e6eef6;
}

.header .first-name {
  font-weight: 700;
}

.header .last-name {
  font-weight: 300;
}

.header .contact-info {
  margin-bottom: 20px;
}

.header .email,
.header .phone {
  color: #999;
  font-weight: 300;
}

.header .separator {
  height: 10px;
  display: inline-block;
  border-left: 2px solid #999;
  margin: 0px 10px;
}

.header .position {
  font-weight: bold;
  display: inline-block;
  text-decoration: underline;
}

.details {
  line-height: 20px;
}

.details .section {
  margin-bottom: 40px;
}

.details .section:last-of-type {
  margin-bottom: 0px;
}

.details .section__title {
  letter-spacing: 2px;
  color: #54AFE4;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.details .section__list-item {
  margin-bottom: 40px;
}

.details .section__list-item:last-of-type {
  margin-bottom: 0;
}

.details .left,
.details .right {
  vertical-align: top;
  display: inline-block;
}

.details .left {
  width: 60%;
}

.details .right {
  tex-align: right;
  width: 39%;
}

.details .name {
  font-weight: bold;
}

.details a {
  text-decoration: none;
  color: #000;
  font-style: italic;
}

.details a:hover {
  text-decoration: underline;
  color: #000;
}

.details .skills__item {
  margin-bottom: 10px;
}

.details .skills__item .right input {
  display: none;
}

.details .skills__item .right label {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #C3DEF3;
  border-radius: 20px;
  margin-right: 3px;
}

.details .skills__item .right input:checked+label {
  background: #323232;
}

.clear {
  clear: both;
  margin-bottom: 20px;
}
.h {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  color: #54AFE4;
  font-size: 14px;
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section Styling Enhancements */
.section {
  padding: 15px; /* Slightly less padding for mobile */
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.02);
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.dark-theme .section {
  background-color: rgba(255, 255, 255, 0.05);
}

/* List Item Hover Effects */
.section__list-item {
  padding: 8px;
  border-radius: 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hosted Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr; /* Stack on mobile */
  gap: 15px;
}

.section__desc {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 15px;
  font-style: italic;
}

.dark-theme .section__desc {
  color: #aaa;
}

.tool-card {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: cardFadeIn 0.5s ease-out forwards;
  animation-delay: var(--card-delay, 0s);
}

@keyframes cardFadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.dark-theme .tool-card {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  border-color: #444;
}

.tool-icon {
  font-size: 2em;
  margin-bottom: 10px;
  display: block;
}

.tool-card .name {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 1.1em;
}

.tool-card .desc {
  font-size: 0.9em;
  color: #666;
}

.dark-theme .tool-card .desc {
  color: #aaa;
}

/* Theme variables */
:root {
  --bg: #9d9d9d;
  --card-bg: #fbfbfb;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #54AFE4;
  --button-bg: #eef2ff;
  --button-text: #0b1220;
}

.dark-theme {
  --bg: #1f1f1f;
  --card-bg: #242424;
  --text: #e5e7eb;
  --muted: #9aa6b2;
  --accent: #60a5fa;
  --button-bg: #2a2a2a;
  --button-text: #e6eef6;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: background .25s ease, color .25s ease;
}

.container {
  background: var(--card-bg);
  transition: background .25s ease, color .25s ease;
}

.header .full-name {
  color: var(--text);
}

.header .position {
  background: linear-gradient(120deg, var(--accent, #54AFE4) 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.contact-info a,
.details a,
.about a {
  color: var(--accent);
}

.contact-info a:hover,
.details a:hover,
.about a:hover {
  color: var(--text);
  text-decoration: underline;
}
