/* 
  =========================================
  Eric Ryu - Typography-First Portfolio Theme
  =========================================
*/

:root {
  /* Premium Zinc + Blue Color Palette */
  --bg-color: #fafafa;
  --text-color: #18181b;
  --text-muted: #71717a;
  --border-color: #e4e4e7;
  --accent-color: #2563eb;
  --accent-bg: #eff6ff;
  --tech-tag-bg: #f4f4f5;
  --tech-tag-color: #3f3f46;
  --card-bg: #ffffff;
  --card-hover-border: #cbd5e1;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* NATIVE SYSTEM DARK THEME */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #09090b;
    --text-color: #fafafa;
    --text-muted: #a1a1aa;
    --border-color: #27272a;
    --accent-color: #3b82f6;
    --accent-bg: #172554;
    --tech-tag-bg: #18181b;
    --tech-tag-color: #d4d4d8;
    --card-bg: #09090b;
    --card-hover-border: #3f3f46;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Geist', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout Page Container */
.page-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

@media (max-width: 640px) {
  .page-container {
    padding: 3rem 1.25rem;
  }
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-color);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-top: 4.5rem;
  margin-bottom: 2rem;
  position: relative;
}

h3 {
  font-size: 1.15rem;
}

h4 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-color);
}

p strong {
  font-weight: 600;
}

/* Header Section */
.header {
  margin-bottom: 4rem;
}

.header .name {
  margin-bottom: 0.25rem;
}

.header .english-name {
  font-weight: 300;
  color: var(--text-muted);
  font-size: 0.9em;
  margin-left: 0.25rem;
}

.header .role {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.header .tagline {
  font-family: 'Geist Mono', Courier, monospace;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-left: 2px solid var(--border-color);
  padding-left: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Section Common */
.section {
  animation: fadeIn 0.6s ease-out both;
}

.section:nth-of-type(1) { animation-delay: 0.1s; }
.section:nth-of-type(2) { animation-delay: 0.2s; }
.section:nth-of-type(3) { animation-delay: 0.3s; }
.section:nth-of-type(4) { animation-delay: 0.4s; }
.section:nth-of-type(5) { animation-delay: 0.5s; }
.section:nth-of-type(6) { animation-delay: 0.6s; }

/* Tech/Keyword Badges */
.tech-tag {
  font-family: 'Geist Mono', Courier, monospace;
  font-size: 0.85em;
  background-color: var(--tech-tag-bg);
  color: var(--tech-tag-color);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

/* Lists and Bullets */
.bullets {
  list-style: none;
  margin-bottom: 1.5rem;
}

.bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-color);
}

.bullets li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
}

.bullets.no-margin {
  margin-bottom: 0;
}

.bullets.no-margin li:last-child {
  margin-bottom: 0;
}

/* Experience Items (Timeline representation) */
.experience-item {
  border-left: 1px solid var(--border-color);
  padding-left: 1.5rem;
  margin-bottom: 3.5rem;
  position: relative;
  transition: border-left-color var(--transition-normal);
}

.experience-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--border-color);
  transition: background-color var(--transition-normal), transform var(--transition-normal);
}

.experience-item:hover {
  border-left-color: var(--accent-color);
}

.experience-item:hover::before {
  background-color: var(--accent-color);
  transform: scale(1.4);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.company-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.exp-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: 'Geist Mono', Courier, monospace;
}

.exp-role {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.exp-project {
  margin-top: 1.5rem;
}

.exp-project:not(:last-child) {
  margin-bottom: 2.5rem;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.project-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  background-color: var(--card-bg);
  border-left: 3px solid var(--border-color);
  padding: 0.5rem 0 0.5rem 0.85rem;
  margin-bottom: 1.25rem;
}

.font-small {
  opacity: 0.9;
}

/* Core Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

.skill-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  background-color: var(--card-bg);
  box-shadow: var(--card-shadow);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.skill-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.skill-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Education & Languages */
.edu-lang-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

@media (max-width: 640px) {
  .edu-lang-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.sub-h {
  font-size: 1.15rem;
  border: none;
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 0;
}

.edu-item {
  margin-bottom: 1rem;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.univ {
  font-weight: 600;
  font-size: 0.95rem;
}

.edu-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'Geist Mono', Courier, monospace;
}

.degree {
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.minor {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Links & Buttons Grid */
.links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.link-button-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  background-color: var(--card-bg);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-fast);
}

.link-button-card:hover {
  border-color: var(--accent-color);
  background-color: var(--accent-bg);
  transform: translateY(-2px);
}

.link-label {
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.link-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.link-button-card:hover .arrow {
  transform: translate(3px, -3px);
}

.link-button-card:hover .arrow[download] {
  transform: translateY(2px);
}

/* Contact Links */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.contact-link-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  background-color: var(--card-bg);
  transition: all var(--transition-fast);
}

.contact-link-item:hover {
  border-color: var(--accent-color);
  background-color: var(--accent-bg);
  transform: translateY(-2px);
}

.contact-key {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-val {
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Footer styling */
.footer {
  margin-top: 6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'Geist Mono', Courier, monospace;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
