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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a2e;
  background: #fafafa;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 100;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #1a1a2e;
}

/* hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.hero-content {
  max-width: 640px;
}

.hero-greeting {
  font-size: 18px;
  color: #666;
  margin-bottom: 8px;
}

.hero-name {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: 22px;
  font-weight: 500;
  color: #444;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 16px;
  color: #666;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: #1a1a2e;
  color: #fff;
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid #1a1a2e;
  color: #1a1a2e;
}

.btn-outline:hover {
  background: #1a1a2e;
  color: #fff;
  transform: translateY(-1px);
}

/* sections */
section {
  padding: 100px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 56px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* about */
.about {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  font-size: 16px;
  color: #555;
  margin-bottom: 16px;
}

.about-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 13px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-value {
  font-size: 16px;
  color: #333;
}

/* skills */
.skills {
  background: #f5f7fa;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.skill-card {
  background: #fff;
  padding: 32px 24px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.skill-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.skill-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 14px;
  color: #777;
}

/* projects */
.projects {
  background: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.project-image {
  height: 160px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 16px;
}

.project-tag {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.project-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tech span {
  background: #f0f0f5;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #555;
  font-weight: 500;
}

/* contact */
.contact {
  background: #f5f7fa;
  text-align: center;
}

.contact-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
  margin-top: -32px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
  padding: 20px 28px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.contact-icon {
  font-size: 28px;
}

/* footer */
.footer {
  background: #1a1a2e;
  color: #888;
  text-align: center;
  padding: 24px 0;
  font-size: 14px;
}

/* responsive */
@media (max-width: 768px) {
  .hero-name {
    font-size: 40px;
  }

  .hero-title {
    font-size: 18px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    gap: 20px;
  }

  section {
    padding: 64px 0;
  }
}

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-name {
    font-size: 32px;
  }
}
