:root {
  --bg: #070a12;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.14);
  --text: rgba(240, 248, 255, 0.92);
  --muted: rgba(240, 248, 255, 0.72);

  --accent: #7c5cff;
  --accent2: #2ef2ff;
  --accent3: #f9f871;

  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);

  --mx: 50%;
  --my: 50%;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;

  background: radial-gradient(1200px 700px at 15% 10%, rgba(124, 92, 255, 0.20), transparent 60%),
              radial-gradient(900px 600px at 85% 20%, rgba(46, 242, 255, 0.16), transparent 55%),
              radial-gradient(900px 700px at 50% 85%, rgba(249, 248, 113, 0.10), transparent 55%),
              var(--bg);

  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  padding: 2.5%;
}

.fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.mouse-light {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(320px 320px at var(--mx) var(--my),
      rgba(46, 242, 255, 0.18),
      transparent 60%);

  filter: blur(0px);
  mix-blend-mode: screen;
  transition: opacity 200ms ease;
  opacity: 1;
}

.sparkles {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06), transparent 35%),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,0.05), transparent 40%),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.05), transparent 45%);
  animation: drift 10s linear infinite;
  opacity: 0.6;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  100% { transform: translate3d(4%, -3%, 0) rotate(8deg); }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: space-between;

  backdrop-filter: blur(10px);
  background: rgba(10, 14, 24, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 18px rgba(46, 242, 255, 0.35);
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px; 
  padding: 8px 10px;
  border-radius: 12px;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.hero {
  margin-top: 22px;
  padding: 28px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(124, 92, 255, 0.16), transparent 45%),
              radial-gradient(circle at 70% 30%, rgba(46, 242, 255, 0.12), transparent 45%),
              radial-gradient(circle at 55% 75%, rgba(249, 248, 113, 0.10), transparent 55%);
  animation: floaty 9s ease-in-out infinite;
  z-index: 0;
}

@keyframes floaty {
  0%, 100% { transform: translate3d(0,0,0) rotate(0deg); }
  50%      { transform: translate3d(3%, -2%, 0) rotate(6deg); }
}

.hero > * { position: relative; z-index: 1; }

.hero h1 {
  margin: 0 0 10px 0;
  font-size: 2.2em; 
  font-family: "Space Grotesk", "Poppins", sans-serif;
  letter-spacing: 0.02em;
  text-shadow: 0 0 20px rgba(249, 248, 113, 0.12);
}

.hero p {
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;

  text-decoration: none;
  color: var(--text);
  font-weight: 600;

  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.btn.primary {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(46, 242, 255, 0.70));
  border-color: rgba(46, 242, 255, 0.35);
  box-shadow: 0 14px 30px rgba(46, 242, 255, 0.16);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
}

.btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.50);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.35);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.card:hover {
  transform: translateY(-6px);
  background: var(--panel-strong);
  border-color: rgba(46, 242, 255, 0.28);
}

.bio p {
  color: rgba(240, 248, 255, 0.80);
  font-size: 0.98em; 
}

.section {
  margin-top: 26px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.skills {
  list-style: none;
  padding: 0;
  margin: 14px 0 0 0;
  display: grid;
  gap: 12px;
}

.skill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);

  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.skill:hover {
  transform: translateX(6px);
  border-color: rgba(249, 248, 113, 0.28);
  box-shadow: 0 16px 40px rgba(249, 248, 113, 0.10);
}

.badge {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
}

.skill--html .badge {
  box-shadow: 0 0 18px rgba(249, 248, 113, 0.18);
}
.skill--css .badge {
  box-shadow: 0 0 18px rgba(46, 242, 255, 0.18);
}
.skill--js .badge {
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.22);
}

.projects {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.project {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
  min-height: 140px;
}

.project:hover {
  transform: translateY(-6px) rotate(-0.2deg);
  background: rgba(255,255,255,0.06);
  border-color: rgba(46, 242, 255, 0.28);
}

.project h3 {
  margin: 0 0 8px 0;
  font-family: "Space Grotesk", sans-serif;
}

.project p {
  margin: 0 0 12px 0;
  color: rgba(240, 248, 255, 0.78);
  font-size: 0.95em;
}

.link {
  color: var(--accent2);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.link:hover {
  text-decoration: underline;
}

.contact {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  color: rgba(240, 248, 255, 0.85);
  font-size: 0.95em;
}

input, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.18);
  color: var(--text);
  outline: none;
  transition: border-color 200ms ease, transform 200ms ease;
}

input:focus, textarea:focus {
  border-color: rgba(46, 242, 255, 0.45);
  transform: translateY(-1px);
}

.hint {
  color: rgba(240, 248, 255, 0.65);
}

.footer {
  margin-top: 22px;
  text-align: center;
  color: rgba(240, 248, 255, 0.70);
  padding: 18px 10px;
}

.footer .mini {
  font-size: 0.9em;
  opacity: 0.85;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;

  background: rgba(10, 14, 24, 0.82);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 12px 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);

  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0px);
}

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}
