:root {
  --bg: #0f1724;
  --card: #0b1220;
  --muted: #9aa4b2;
  --accent: #7c3aed;
  --glass: rgba(255, 255, 255, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(124,58,237,0.08), transparent),
              radial-gradient(900px 400px at 90% 90%, rgba(59,130,246,0.04), transparent),
              var(--bg);
  color: #e6eef6;
  padding: 40px;
  display: flex;
  justify-content: center;
}

.container {
  width: 1200px;
  max-width: 100%;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  box-shadow: 0 6px 18px rgba(12,12,20,0.6);
}

.intro h1 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.intro p {
  color: var(--muted);
  font-size: .95rem;
}

.btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  color: #e6eef6;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(12,12,20,0.5);
}

/* Main Layout */
.main {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
}

.card-side {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(2,6,23,0.6);
}

.section-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.about {
  color: var(--muted);
  margin-bottom: 12px;
}

.skills {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--glass);
}

.skill .meta {
  color: var(--muted);
  font-size: .85rem;
}

/* Projects */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 14px;
  padding: 16px;
  min-height: 160px;
  position: relative;
  transition: transform .25s cubic-bezier(.2,.9,.2,1), box-shadow .25s;
  box-shadow: 0 6px 26px rgba(2,6,23,0.5);
  border: 1px solid rgba(255,255,255,0.03);
  overflow: hidden;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(2,6,23,0.6);
}

.project-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.project-card .meta {
  color: var(--muted);
  font-size: .85rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  font-size: .75rem;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}

.accent {
  position: absolute;
  right: -40px;
  top: -40px;
  transform: rotate(25deg);
  opacity: .06;
  font-weight: 900;
  font-size: 86px;
  pointer-events: none;
}

/* CV Section */
.cv-section {
  text-align: center;
  margin-top: 60px;
}

.cv-btn {
  margin-top: 20px;
}

/* Footer */
footer {
  margin-top: 28px;
  color: var(--muted);
  font-size: .9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Animation */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: enter .6s forwards;
}

@keyframes enter {
  to { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .main { grid-template-columns: 1fr; }
  .projects { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .projects { grid-template-columns: 1fr; }
  body { padding: 20px; }
}
