/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Layout ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: #f8f9fb;
}

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

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: #4f46e5;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.07);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4f46e5;
}

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

.nav-links a {
  font-size: 0.95rem;
  color: #444;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #4f46e5;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #f0f0ff 0%, #fff 60%);
  padding-top: 60px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-image {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: #e0e0f7;
  border: 3px solid #4f46e5;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.hero-name {
  font-size: 2.8rem;
  font-weight: 800;
  color: #111;
}

.hero-tagline {
  font-size: 1.15rem;
  color: #666;
  max-width: 480px;
}

/* ===== About ===== */
.about-text {
  font-size: 1.05rem;
  color: #444;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  line-height: 2;
}

/* ===== Skills ===== */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.skill-card {
  padding: 12px 28px;
  background: #fff;
  border: 2px solid #e0e0f7;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4f46e5;
  transition: all 0.2s;
}

.skill-card:hover {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
  transform: translateY(-2px);
}

/* ===== Portfolio ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.13);
}

.project-thumbnail {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 4px;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
}

.project-desc {
  font-size: 0.9rem;
  color: #666;
  flex: 1;
}

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

.tag {
  background: #ededff;
  color: #4f46e5;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ===== Contact ===== */
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #444;
  padding: 14px 32px;
  border: 2px solid #e0e0f7;
  border-radius: 12px;
  background: #fff;
  width: 320px;
  transition: all 0.2s;
}

.contact-item:hover {
  border-color: #4f46e5;
  color: #4f46e5;
  transform: translateY(-2px);
}

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

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 28px;
  font-size: 0.85rem;
  color: #aaa;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }

  .nav-links {
    gap: 16px;
  }

  .hero-name {
    font-size: 2rem;
  }

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

  .contact-item {
    width: 100%;
  }
}
