:root {
  --bg:#0f1724;
  --card:#0b1220;
  --muted:#9aa7bf;
  --accent:#7dd3fc;
  --glass: rgba(255,255,255,0.04);
  --glass-2: rgba(255,255,255,0.03);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(125,211,252,0.04), transparent),
              linear-gradient(180deg,#071226 0%, var(--bg) 100%);
  color: #e6eef8;
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 100%;
  padding: 16px;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #031025;
}

nav {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}

nav a:hover {
  color: #fff;
  background: var(--glass);
}

.cta {
  background: linear-gradient(90deg, #06b6d4, #7c3aed);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: #031025;
  text-decoration: none;
}

.burger {
  display: none;
  font-size: 24px;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
}

@media (max-width: 820px) {
  nav {
    display: none;
    flex-direction: column;
    gap: 8px;
    background: var(--bg);
    position: absolute;
    top: 70px;
    right: 16px;
    padding: 10px;
    border-radius: 12px;
    width: 200px;
    z-index: 100;
  }
  .burger {
    display: inline-flex;
  }
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.profile-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  padding: 20px;
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 30px rgba(2,6,23,0.6);
}

.avatar-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.avatar {
  width: 90px;
  height: 90px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  animation: floaty 5s ease-in-out infinite;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name {
  font-size: 18px;
  font-weight: 800;
}

.role {
  font-size: 14px;
  color: var(--muted);
}

.bio {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.stat {
  background: var(--glass-2);
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 16px;
}

.writing-box {
  margin-top: 14px;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
  font-size: 13px;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes floaty {
  0% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
  100% { transform: translateY(0) rotate(-1deg); }
}

.section {
  margin-top: 18px;
  padding: 0 4px;
}

.section h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(6,182,212,0.2);
}

.project-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

.project-link:hover {
  color: #fff;
  text-decoration: underline;
}

.posts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
  font-size: 13px;
}
.contact-item, .social {
  width: 100%;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.social {
  justify-content: flex-start;
}

footer {
  margin-top: 30px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
