:root {
  --bg: #f8f6fc;
  --surface: rgba(255,255,255,.75);
  --primary: #8b5cf6;
  --secondary: #6d28d9;
  --text: #1f1f2e;
  --muted: #666;
  --border: #e4ddf8;
  --shadow: 0 20px 50px rgba(100,70,170,.15);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, #d8ccff 0%, transparent 35%),
    radial-gradient(circle at bottom right, #f4d6ff 0%, transparent 35%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* HERO */

.hero {
  text-align: center;
  padding: 6rem 1.5rem;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.hero p {
  color: var(--muted);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.intro {
  max-width: 600px;
  margin: 0.75rem auto 2rem;
}

/* NAV */

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.nav a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--primary);
}

/* MAIN COLUMN (cards + footer stay aligned) */

main {
  width: min(900px, 92%);
  margin: 0 auto;
  padding-bottom: 3rem;
}

/* CARDS */

.card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 22px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  transition: 0.35s;
}

.card:hover {
  transform: translateY(-6px);
}

.card h2 {
  margin-bottom: 1.25rem;
  color: var(--secondary);
  font-size: 1.6rem;
  position: relative;
}

.card h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  border-radius: 99px;
  background: var(--primary);
  margin-top: 0.4rem;
}

/* PROJECT GRID */

.project-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project {
  padding: 1.4rem;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--border);
  transition: 0.3s;
}

.project:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(90,60,170,.12);
}

.project h3 {
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

/* Skills lists */

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

.skills-list li {
  background: linear-gradient(135deg,#ede8ff,#f7f3ff);
  color: var(--secondary);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.35s;
  box-shadow: 0 12px 25px rgba(139,92,246,.3);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(139,92,246,.35);
}

/* LINKS */

a {
  color: var(--primary);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: var(--secondary);
}

/* FOOTER – centered under cards, same on all pages */

footer {
  width: min(900px, 92%);
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* MOBILE */

@media (max-width: 768px) {
  .hero {
    padding: 4rem 1rem;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .card {
    padding: 1.5rem;
  }

  main, footer {
    width: 95%;
  }
}

/* Magic cursor (unchanged from your design) */

html, body {
  cursor: none;
}

#magic-cursor {
  position: fixed;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: radial-gradient(circle,
              rgba(139,92,246,0.25) 0%,
              rgba(139,92,246,0.05) 45%,
              transparent 70%);
  box-shadow: 0 0 18px rgba(139,92,246,0.35);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.14s ease-out,
              box-shadow 0.25s ease-out,
              border-color 0.25s ease-out;
  animation: cursor-pulse 1.4s ease-in-out infinite;
}

@keyframes cursor-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
}
