:root {
  --bg: #0a0e0f;
  --surface: #141a1c;
  --card: #1c2528;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --accent: #34d399;
  --accent-dark: #059669;
  --radius: 16px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background: radial-gradient(ellipse at 50% 0%, rgba(52,211,153,0.08) 0%, transparent 60%),
              linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}

.hero-inner { max-width: 500px; }

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--accent), #059669, #0ea5e9);
  padding: 4px;
  position: relative;
}

.avatar::after {
  content: '👨‍💻';
  font-size: 48px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.name {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tagline {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero-link {
  color: var(--accent);
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid rgba(52,211,153,0.25);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.hero-link:hover {
  background: rgba(52,211,153,0.1);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(52,211,153,0.1);
}

/* Sections */
.section {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.skill-item { }

.skill-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}

.skill-pct { color: var(--accent); font-weight: 600; }

.skill-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: 10px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.project-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: rgba(52,211,153,0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.project-img {
  height: 140px;
}

.project-body {
  padding: 18px;
}

.project-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.project-body p {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.5;
}

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

.project-tags span {
  background: rgba(52,211,153,0.1);
  color: var(--accent);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Contact */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
}

.contact-form input,
.contact-form textarea {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52,211,153,0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-dim);
}

.submit-btn {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(52,211,153,0.3);
}

.form-msg {
  margin-top: 12px;
  font-size: 14px;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-dim);
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
