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

:root {
  --blue:        #2563EB;
  --blue-light:  #60A5FA;
  --blue-dark:   #1E3A5F;
  --navy:        #0D1B2E;
  --text-dark:   #0F172A;
  --text-mid:    #475569;
  --text-muted:  #94A3B8;
  --bg-light:    #F8FAFC;
  --bg-white:    #ffffff;
  --border:      #E2E8F0;
  --font-head:   'Plus Jakarta Sans', sans-serif;
  --font-body:   'Inter', sans-serif;
  --radius:      12px;
  --radius-sm:   8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
}

/* ── NAVBAR ─────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  padding: 0 5%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-dark);
}
.logo span { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-light);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 3px;
}
.lang-btn {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.lang-btn.active {
  background: var(--bg-white);
  color: var(--text-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── SECTIONS ───────────────────────────────── */
section { padding: 96px 5%; }
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  font-family: var(--font-head);
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.7;
}

/* ── HERO ───────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding-top: 120px;
  background: var(--bg-white);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F0FDF4;
  border: 0.5px solid #86EFAC;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #166534;
  margin-bottom: 24px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.hero-name .accent { color: var(--blue); }
.hero-name .last   { display: block; }

.hero-role {
  font-family: var(--font-head);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover  { background: #1D4ED8; }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-dark);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--border);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  background: var(--bg-light);
  border: 0.5px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-body);
}

/* Hero right — avatar + stats */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.avatar-wrap {
  width: 280px;
  height: 320px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 0.5px solid var(--border);
  overflow: hidden;
  position: relative;
}
.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--blue);
}
.avatar-placeholder.hidden { display: none; }
.avatar-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(37,99,235,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-icon svg { width: 36px; height: 36px; fill: var(--blue); }
.avatar-placeholder span {
  font-size: 12px;
  color: var(--blue);
  font-weight: 500;
  opacity: 0.6;
  font-family: var(--font-body);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}
.stat-card {
  background: var(--bg-white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
}

/* ── ABOUT ──────────────────────────────────── */
#about { background: var(--navy); }
#about .section-label { color: var(--blue-light); }
#about .section-title { color: #F1F5F9; }
#about .section-sub   { color: #94A3B8; max-width: 640px; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}
.about-card {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px;
}
.about-card-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: #F1F5F9;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.about-card-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
  flex-shrink: 0;
}
.about-card p  { font-size: 14px; color: #94A3B8; line-height: 1.7; }
.about-card + .about-card { margin-top: 16px; }

.lang-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lang-pill {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 0.5px solid rgba(96,165,250,0.3);
  color: var(--blue-light);
  background: rgba(96,165,250,0.08);
}

/* ── SKILLS ─────────────────────────────────── */
#skills { background: var(--bg-light); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.skill-card {
  background: var(--bg-white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.skill-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(37,99,235,0.08);
}
.skill-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 18px;
}
.skill-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.skill-tags  { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.skill-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #EFF6FF;
  color: var(--blue);
  border: 0.5px solid #BFDBFE;
  font-weight: 500;
}
.skill-desc { font-size: 13px; color: var(--text-mid); line-height: 1.6; }

/* ── PROJECTS ───────────────────────────────── */
#projects { background: var(--bg-white); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.project-card {
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.project-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}
.project-thumb {
  height: 160px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.project-thumb--img {
  padding: 0;
  overflow: hidden;
}
.project-thumb--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.project-body    { padding: 20px; }
.project-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.status-live     { background: #F0FDF4; color: #166534; border: 0.5px solid #86EFAC; }
.status-building { background: #FFF7ED; color: #9A3412; border: 0.5px solid #FDBA74; }
.status-planned  { background: #F8FAFC; color: #64748B; border: 0.5px solid #CBD5E1; }

.project-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.project-desc { font-size: 13px; color: var(--text-mid); line-height: 1.6; margin-bottom: 14px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-light);
  color: var(--text-mid);
  border: 0.5px solid var(--border);
}

/* ── COLLABORATE ────────────────────────────── */
#collaborate { background: var(--navy); text-align: center; }
#collaborate .section-label { color: var(--blue-light); }
#collaborate .section-title { color: #F1F5F9; }
#collaborate .section-sub   { color: #94A3B8; margin: 0 auto 40px; }

.collab-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 48px;
  text-align: left;
}
.collab-card {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 20px;
}
.collab-card-icon  { font-size: 24px; margin-bottom: 10px; }
.collab-card-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: #F1F5F9;
  margin-bottom: 6px;
}
.collab-card-desc { font-size: 13px; color: #94A3B8; line-height: 1.6; }

.contact-form {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: #F1F5F9;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.form-input::placeholder { color: #475569; }
.form-input:focus { border-color: var(--blue-light); }
.form-input.error { border-color: #F87171; }
textarea.form-input { resize: vertical; min-height: 120px; }

.form-feedback {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: none;
}
.form-feedback.success { background: rgba(34,197,94,0.12); color: #86EFAC; display: block; }
.form-feedback.error   { background: rgba(248,113,113,0.12); color: #FCA5A5; display: block; }

/* ── FOOTER ─────────────────────────────────── */
footer {
  background: #060E1A;
  padding: 32px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 0.5px solid rgba(255,255,255,0.06);
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: #F1F5F9;
  text-decoration: none;
}
.footer-logo span { color: var(--blue-light); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 13px;
  color: #64748B;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue-light); }
.footer-copy { font-size: 12px; color: #334155; }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 0.5px solid var(--border);
    padding: 8px 5% 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    border-bottom: 0.5px solid var(--border);
  }
  .nav-links li:last-child a { border-bottom: none; }

  #hero { grid-template-columns: 1fr; padding-top: 100px; gap: 40px; }
  .hero-right { order: 1; }
  .avatar-wrap { width: 200px; height: 220px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row   { grid-template-columns: 1fr; }
  footer      { flex-direction: column; gap: 16px; text-align: center; }
}
