:root {
  --primary: #4f46e5;
  --secondary: #2563eb;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #f7f8fb;
  --card: rgba(255,255,255,0.85);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== BACKGROUND ANIMÉ ===== */

.background-shapes {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.background-shapes span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.25;
  animation: float 18s infinite ease-in-out;
}

.background-shapes span:nth-child(1) {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  left: -100px;
}

.background-shapes span:nth-child(2) {
  width: 350px;
  height: 350px;
  background: var(--secondary);
  bottom: 0;
  right: -80px;
}

.background-shapes span:nth-child(3) {
  width: 250px;
  height: 250px;
  background: #9333ea;
  top: 50%;
  left: 50%;
}

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

/* ===== NAVBAR ===== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(15px);
  background: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo {
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  font-size: 1.1rem;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* ===== CONTAINER ===== */

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

/* ===== HERO ===== */

.hero {
  text-align: center;
  padding: 5rem 0 3rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  animation: fadeUp 0.8s ease;
}

.subtitle {
  margin-top: 1rem;
  color: var(--muted);
  animation: fadeUp 1.1s ease;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */

.btn {
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

/* ===== CARDS ===== */

.card {
  background: var(--card);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
}

/* ===== GRIDS ===== */

.skills-overview,
.project-list,
.projects-overview,
.experience-list,
.exam-list {
  display: grid;
  gap: 1rem;
}

.skills-overview {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ===== SUB CARDS ===== */

.skills-overview article,
.project-card,
.projects-overview article,
.experience-list article,
.exam-list article {
  background: white;
  border-radius: 18px;
  padding: 1.2rem;
  transition: 0.3s;
}

.skills-overview article:hover,
.project-card:hover,
.projects-overview article:hover,
.experience-list article:hover,
.exam-list article:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* ===== TAGS ===== */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background: #e0e7ff;
  color: var(--primary);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  transition: 0.3s;
}

.tag:hover {
  background: var(--primary);
  color: white;
}

/* ===== LINKS ===== */

.project-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}

/* ===== STATS ===== */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.stat h3 {
  color: var(--primary);
  font-size: 2rem;
}

/* ===== FOOTER ===== */

.footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  margin-top: 3rem;
}

/* ===== ANIMATIONS ===== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 3.5rem 0 2rem;
  }
}