/* Reset & Base Styles */
:root {
  --bg-color: #050505;
  --card-bg: rgba(20, 20, 20, 0.6);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  /* Slate 400 */
  --accent-color: #8ea9d4;
  /* Blue 500 */
  --accent-glow: rgba(59, 130, 246, 0.5);
  --border-color: rgba(255, 255, 255, 0.1);
  --highlight-bg: rgba(59, 130, 246, 0.15);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  background-color: var(--bg-color);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  /* Tech grid effect */
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

/* Container */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  /* Sharper corners */
  padding: 60px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Subtle top gradient line */
.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  opacity: 0.7;
}

/* Header Section */
.header {
  display: flex;
  gap: 50px;
  margin-bottom: 70px;
  align-items: flex-start;
}

.profile-photo {
  width: 180px;
  height: 220px;
  background-color: #1a1a1a;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Photo Correction - Adjustable if image is still crooked */
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* transform: rotate(-1deg) scale(1.05);  <-- Uncomment and adjust if source image is tilted */
  transition: transform 0.5s ease;
}

.profile-photo:hover img {
  transform: scale(1.03);
}

.profile-info {
  flex: 1;
}

.name {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.contact {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 16px;
  font-family: var(--font-main);
  /* Keeping consistent font */
  opacity: 0.8;
}

.contact a {
  color: var(--accent-color);
}

.bio {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.bio p {
  font-size: 15px;
  line-height: 1.7;
  color: #d1d5db;
  /* Gray 300 */
}

.highlight {
  background-color: var(--highlight-bg);
  color: var(--accent-color);
  padding: 2px 6px;
  font-weight: 500;
  border-radius: 4px;
}

/* Section Styles */
.section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.section-content {
  padding-left: 0;
}

/* Publications */
.publication {
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.publication:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.pub-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.pub-authors {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pub-authors .author-me {
  color: var(--accent-color);
  font-weight: 500;
  border-bottom: 1px dashed var(--accent-color);
}

.pub-venue {
  font-size: 13px;
  color: #7dd3fc;
  /* Light Blue */
  font-weight: 500;
}

.pub-venue .pub-link {
  color: var(--text-secondary);
  font-weight: 400;
  margin-left: 12px;
  font-size: 12px;
  transition: color 0.2s ease;
}

.pub-venue .pub-link:hover {
  color: var(--accent-color);
}

/* Experiences & Education */
/* Experiences & Education - Reverted Layout */
.experience,
.education {
  margin-bottom: 24px;
  display: block;
  border-bottom: none;
  padding: 0;
}

.exp-title,
.edu-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.exp-role,
.edu-role {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 5px;
  margin-top: -4px;
}

.exp-date,
.snu-date,
.skku-date {
  font-size: 13px;
  color: var(--text-secondary);
  margin-left: 0;
  opacity: 0.7;
}

/* Education Toggle & Details */
.edu-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 18px;
  height: 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.toggle-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.edu-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.4s ease;
  width: 100%;
}

.edu-details.open {
  max-height: 300px;
  margin-top: 12px;
}

.edu-details ul {
  list-style: none;
  background: rgba(0, 0, 0, 0.3);
  padding: 16px;
  border-radius: 6px;
}

.edu-details li {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding-left: 14px;
  position: relative;
}

.edu-details li:last-child {
  margin-bottom: 0;
}

.edu-details li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-size: 10px;
  top: 4px;
}

/* Easter Egg - Reverted */
.easter-egg {
  text-align: center;
  padding: 30px 0 10px 0;
  margin-top: 20px;
  margin-bottom: -60px;
  border-top: none;
}

.easter-egg p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.easter-egg p:hover {
  color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 20px 10px;
  }

  .container {
    padding: 30px 20px;
  }

  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    /* Circle on mobile looks better usually, or keep square */
  }

  .experience,
  .education {
    flex-direction: column;
    align-items: flex-start;
  }

  .exp-date,
  .snu-date,
  .skku-date {
    margin-left: 0;
    margin-top: 4px;
  }
}