:root {
  --bg: #1f1f24;
  --bg-soft: #2b2b31;
  --panel: rgba(255, 255, 255, 0.06);
  --text: #f2f2f7;
  --muted: #d6d6dd;
  --pink: #ff4fa3;
  --pink-soft: #ff93c8;
  --border: rgba(255, 79, 163, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top right, #2e2330 0%, var(--bg) 40%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--pink-soft);
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(31, 31, 36, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}

.brand {
  font-weight: 800;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
  padding: 4rem 0 2rem;
}

.tag {
  color: var(--pink-soft);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero h1 {
  line-height: 1.2;
  margin: 0.3rem 0 0.8rem;
}

.cta-group {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}

.btn {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--pink);
  color: #150711;
}

.btn-secondary {
  background: transparent;
  border-color: var(--pink-soft);
  color: var(--text);
}

.section {
  padding: 2rem 0;
}

.section h2 {
  margin-bottom: 1rem;
}

.floating-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: float 6s ease-in-out infinite;
}

.hero-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-summary li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
  padding: 0.5rem 0;
}

.hero-summary li span {
  color: var(--muted);
}

.skills-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.timeline {
  display: grid;
  gap: 0.9rem;
}

.period {
  color: var(--pink-soft);
  font-weight: 600;
  margin: 0;
}

.chat-toggle {
  position: fixed;
  bottom: 1.1rem;
  right: 1.1rem;
  border: none;
  border-radius: 999px;
  background: var(--pink);
  color: #150711;
  font-weight: 800;
  padding: 0.7rem 1rem;
  cursor: pointer;
  z-index: 30;
}

.chatbot {
  position: fixed;
  right: 1.1rem;
  bottom: 4.4rem;
  width: min(360px, 94vw);
  background: #222229;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  z-index: 30;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2f2f38;
  padding: 0.7rem 0.9rem;
}

.chat-header h3 {
  margin: 0;
}

.chat-header button {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}

.chat-messages {
  max-height: 280px;
  overflow-y: auto;
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.msg {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  max-width: 88%;
}

.msg.user {
  align-self: flex-end;
  background: #4b2139;
}

.msg.bot {
  align-self: flex-start;
  background: #343440;
}

.chat-form {
  display: flex;
  border-top: 1px solid var(--border);
}

.chat-form input {
  flex: 1;
  background: transparent;
  color: var(--text);
  border: none;
  padding: 0.75rem;
  outline: none;
}

.chat-form button {
  border: none;
  background: var(--pink);
  color: #150711;
  font-weight: 700;
  padding: 0 1rem;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.22;
}

.bg-glow-1 {
  width: 240px;
  height: 240px;
  left: 6%;
  top: 18%;
  background: var(--pink);
}

.bg-glow-2 {
  width: 300px;
  height: 300px;
  right: 8%;
  top: 55%;
  background: #ff83bf;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

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

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 0.7rem;
    font-size: 0.92rem;
  }
}
