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

:root {
  --bg:        #0d0f14;
  --surface:   #13161e;
  --surface2:  #1a1e29;
  --border:    #252a38;
  --accent:    #7c3aed;
  --accent2:   #a855f7;
  --green:     #22c55e;
  --blue:      #38bdf8;
  --text:      #e2e8f0;
  --muted:     #64748b;
  --tag-bg:    #1e1b2e;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── GLOW ORBS ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}
.orb-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; left: -200px; }
.orb-2 { width: 500px; height: 500px; background: var(--blue);   bottom: -150px; right: -150px; }

/* ── SITE NAV ── */
.site-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 24px 0;
}

.site-nav a {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.site-nav a.active {
  color: var(--accent2);
  background: var(--surface);
  border-color: rgba(124,58,237,.4);
}

.site-nav .nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent2);
  margin-right: auto;
  text-decoration: none;
  border: none;
  padding: 0;
  background: none;
}
.site-nav .nav-logo:hover {
  color: #fff;
  background: none;
  border-color: transparent;
}

/* ── LAYOUT ── */
.container {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 24px 100px;
}

/* ── HEADER ── */
header {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,.12) 0%, transparent 60%);
  pointer-events: none;
}

.avatar {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(124,58,237,.3);
}

.header-text h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #fff 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-text .title {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent2);
  font-size: 0.85rem;
  margin: 4px 0 12px;
}

.header-text .title span { color: var(--muted); }

.header-text .bio {
  color: #94a3b8;
  font-size: 0.93rem;
  max-width: 500px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.contact-chip:hover { border-color: var(--accent2); color: var(--accent2); }
.contact-chip svg { width: 13px; height: 13px; }

/* ── STATUS BADGE ── */
.status {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: var(--green);
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
  padding: 4px 12px;
  border-radius: 999px;
}

.status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* ── GRID ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  header { flex-direction: column; gap: 20px; }
  .grid-2 { grid-template-columns: 1fr; }
  .site-nav { gap: 2px; }
  .site-nav a { padding: 6px 10px; font-size: 0.8rem; }
}

/* ── CARD ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color .25s;
}
.card:hover { border-color: rgba(124,58,237,.5); }
.card.full { grid-column: 1 / -1; }

.card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── SKILLS ── */
.skill-group { margin-bottom: 18px; }
.skill-group:last-child { margin-bottom: 0; }

.skill-group h4 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

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

.tag {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  background: var(--tag-bg);
  border: 1px solid rgba(124,58,237,.3);
  color: var(--accent2);
  transition: background .2s, border-color .2s;
}
.tag:hover { background: rgba(124,58,237,.15); border-color: var(--accent2); }

.tag.blue  { background: rgba(56,189,248,.08); border-color: rgba(56,189,248,.3); color: var(--blue); }
.tag.blue:hover { background: rgba(56,189,248,.15); border-color: var(--blue); }

.tag.green { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.3); color: var(--green); }
.tag.green:hover { background: rgba(34,197,94,.15); border-color: var(--green); }

/* ── EXPERIENCE ── */
.exp-item {
  position: relative;
  padding-left: 22px;
  padding-bottom: 28px;
  border-left: 2px solid var(--border);
}
.exp-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.exp-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,.25);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.exp-role { font-weight: 600; font-size: 0.97rem; color: var(--text); }
.exp-company { color: var(--accent2); font-size: 0.88rem; margin-top: 2px; }
.exp-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  padding: 2px 8px;
  background: var(--surface2);
  border-radius: 4px;
}

.exp-desc {
  margin-top: 10px;
  color: #94a3b8;
  font-size: 0.88rem;
}

.exp-desc li {
  list-style: none;
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
}
.exp-desc li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent2);
}

/* ── EDUCATION ── */
.edu-item {
  display: flex;
  gap: 16px;
  padding: 14px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  transition: border-color .2s;
}
.edu-item:last-child { margin-bottom: 0; }
.edu-item:hover { border-color: rgba(124,58,237,.4); }

.edu-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.edu-degree { font-weight: 600; font-size: 0.92rem; }
.edu-school { color: var(--accent2); font-size: 0.82rem; margin-top: 2px; }
.edu-year   { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

/* ── CERTS ── */
.cert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  transition: border-color .2s;
}
.cert-item:last-child { margin-bottom: 0; }
.cert-item:hover { border-color: rgba(56,189,248,.4); }

.cert-badge {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(56,189,248,.12);
  border: 1px solid rgba(56,189,248,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.cert-name { font-weight: 600; font-size: 0.88rem; }
.cert-meta { font-size: 0.78rem; color: var(--muted); margin-top: 1px; }

/* ── PROJECTS ── */
.project-item {
  padding: 18px;
  border-radius: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  transition: border-color .25s, transform .2s;
}
.project-item:last-child { margin-bottom: 0; }
.project-item:hover { border-color: rgba(124,58,237,.5); transform: translateY(-2px); }

.project-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.project-name { font-weight: 600; font-size: 0.95rem; }
.project-tech { display: flex; gap: 6px; flex-wrap: wrap; }

.project-desc { color: #94a3b8; font-size: 0.86rem; margin-top: 8px; }

/* ── PROFICIENCY BARS ── */
.bar-item { margin-bottom: 14px; }
.bar-item:last-child { margin-bottom: 0; }
.bar-label { display: flex; justify-content: space-between; font-size: 0.82rem; margin-bottom: 6px; }
.bar-label span:first-child { font-weight: 500; }
.bar-label span:last-child { font-family: 'JetBrains Mono', monospace; color: var(--accent2); font-size: 0.75rem; }

.bar-track {
  height: 5px;
  background: var(--surface2);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  animation: grow .9s ease forwards;
  transform-origin: left;
}

@keyframes grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── CONTACT FORM ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group.full { grid-column: 1 / -1; margin-bottom: 0; }

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-input,
.form-textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--muted); }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 11px 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.btn-submit:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 10px;
  color: var(--green);
  font-size: 0.9rem;
  margin-top: 16px;
}
.form-success.show { display: flex; }

/* ── CONTACT INFO ── */
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  transition: border-color .2s;
  text-decoration: none;
  color: var(--text);
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item:hover { border-color: rgba(124,58,237,.4); }

.contact-info-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent2);
}
.contact-info-icon svg { width: 17px; height: 17px; }

.contact-info-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }
.contact-info-value { font-size: 0.9rem; margin-top: 1px; }

/* ── FOOTER ── */
footer {
  text-align: center;
  margin-top: 48px;
  color: var(--muted);
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
}
