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

/* Root Variables */
:root {
  --primary-color: #000000;
  --secondary-color: #333333;
  --accent-color: white;
  --text-dark: #000000;
  --text-light: #444444;
  --text-white: #ffffff;
  --background-light: #f9f9f9;
  --background-white: #ffffff;
  --border-light: #e5e5e5;
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.2);
  --border-radius: 8px;
  --border-radius-large: 12px;
}

/* Base Styles */
body {
  font-family:
    "IBM Plex Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-white);
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  margin: 1rem auto;
  border-radius: 2px;
}

/* Header */
.header {
  background: var(--primary-color);
  box-shadow: 0 2px 10px var(--shadow-light);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav a:hover {
  color: var(--text-white);
}

.nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--text-white);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: var(--background-white);
  color: var(--text-dark);
  padding: 8rem 0 6rem;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-text h1 {
  font-size: 4.2rem;
  margin-bottom: 1.25rem;
  font-weight: 200;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.hero-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.highlight {
  color: var(--text-dark);
  font-weight: 700;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  opacity: 1;
}

.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-white);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.profile-placeholder {
  background: rgba(255, 255, 255, 0.1);
  border: 3px dashed rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-large);
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}

.profile-placeholder span {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* About Section */
.about {
  padding: 6rem 0;
  background: var(--background-light);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  line-height: 1.8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  background: var(--background-white);
  padding: 2rem;
  border-radius: var(--border-radius-large);
  box-shadow: 0 4px 15px var(--shadow-light);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item h4 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-item p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Projects Section */
.projects {
  padding: 6rem 0;
  background: var(--background-white);
}

.projects-title {
  text-align: center;
  margin-bottom: 2rem;
}

.projects-title::after {
  margin: 1rem auto 0;
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--background-white);
  padding: 1.75rem;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

.project-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  height: 100%;
}

.project-date {
  font-size: 0.95rem;
  font-weight: 500;
  color: #8a8a8a;
  margin-bottom: 0.85rem;
}

.project-card h3 {
  font-size: 1.9rem;
  line-height: 1.05;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.project-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #f6f6f6;
  border: 1px solid #ececec;
  font-size: 0.76rem;
  font-weight: 600;
  color: #2b2b2b;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  background: #f6f6f6;
  color: #111111;
  border: 1px solid #ececec;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.project-link:hover {
  transform: translateY(-2px);
}

/* Skills Section */
.skills {
  padding: 6rem 0;
  background: var(--background-light);
}

.skills-title {
  margin-bottom: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.skill-card {
  background: var(--background-white);
  padding: 1.7rem;
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.skill-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skills-bullets {
  margin-top: 0.2rem;
  margin-left: 1.5rem;
  color: #555555;
  line-height: 1.8;
}

.skills-bullets li + li {
  margin-top: 0.35rem;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #f6f6f6;
  border: 1px solid #ececec;
  font-size: 0.82rem;
  font-weight: 600;
  color: #222222;
  white-space: nowrap;
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background: var(--background-white);
  color: var(--text-dark);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  opacity: 1;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-dark);
  text-decoration: none;
  padding: 1rem;
  border-radius: var(--border-radius);
  background: var(--background-light);
  border: 1px solid var(--border-light);
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.contact-link:hover {
  background: #f0f0f0;
  transform: translateX(10px);
}

.contact-icon {
  font-size: 1.2rem;
}

/* Contact Form */
.contact-form {
  background: var(--background-light);
  padding: 2rem;
  border-radius: var(--border-radius-large);
  border: 1px solid var(--border-light);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  background: var(--background-white);
  color: var(--text-dark);
  font-size: 1rem;
  transition: background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: var(--background-white);
}

.contact-form button {
  padding: 1rem;
  border: none;
  border-radius: var(--border-radius);
  background: var(--primary-color);
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--text-white);
  text-align: center;
  padding: 2rem 0;
}

.footer p {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1100px) {
  .projects-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .projects-title {
    text-align: center;
  }

  .projects-title::after {
    margin: 1rem auto 0;
  }

  .projects-list {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 1.75rem;
  }

  .project-card h3 {
    font-size: 2rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 6rem 0 4rem;
  }

  .container {
    padding: 0 15px;
  }

  .skills-bullets {
    margin-left: 1.5rem;
  }

  .skill-card {
    padding: 1.75rem;
  }

  .skill-card h3 {
    font-size: 1.35rem;
  }
}

@media (max-width: 480px) {
  .projects-list {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  .hero-text h2 {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .skill-card {
    padding: 1.4rem;
  }

  .project-card {
    padding: 1.3rem;
  }

  .project-card h3 {
    font-size: 1.7rem;
  }

  .project-link {
    width: 100%;
    justify-content: center;
  }
}
.profile-img {
  width: 300px; /* 원하는 너비 */
  height: auto; /* 비율 유지 */
  object-fit: cover; /* 이미지 꽉 채우기 */
  display: block;
  margin: 0 auto; /* 가운데 정렬 */
  border-radius: var(--border-radius-large);
}

.section-title2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
  position: relative;
}

.section-title2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  margin: 1rem auto;
  border-radius: 2px;
}
