/* =========================
   DESIGN SYSTEM (COLORS)
========================= */
:root {
  --bg: #0b1220;
  --surface: #111a2e;
  --card: #16213e;

  --primary: #6366f1;
  --secondary: #22c55e;
  --accent: #38bdf8;

  --text: #e5e7eb;
  --muted: #94a3b8;

  --border: rgba(255, 255, 255, 0.08);
}

/* =========================
   GLOBAL STYLES
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top, #111827, var(--bg));
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3 {
  color: white;
}

h2 {
  border-left: 4px solid var(--primary);
  padding-left: 10px;
  margin-bottom: 1rem;
}

/* =========================
   NAVBAR (GLASS EFFECT)
========================= */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

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

.logo {
  font-weight: bold;
  font-size: 1.2rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.5rem;
  transition: 0.2s;
}

nav a:hover {
  color: var(--accent);
}

/* =========================
   HERO SECTION
========================= */
.hero {
  padding: 5rem 0;
  text-align: center;
  background: radial-gradient(circle at top, #1e1b4b, transparent);
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.2rem;
}

/* =========================
   CARDS
========================= */
.card {
  background: linear-gradient(145deg, var(--surface), var(--card));
  padding: 1.5rem;
  border-radius: 14px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}

/* =========================
   PROJECT GRID
========================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  margin-right: 10px;
  transition: 0.2s ease;
}

.btn:hover {
  background: #4f46e5;
  transform: translateY(-2px);
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--text);
}

.btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =========================
   CTA SECTION
========================= */
.cta {
  margin-bottom: 2rem;
}

/* =========================
   SKILLS PILLS
========================= */
.skills span {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  margin: 0.3rem;
  font-size: 0.85rem;
}

/* =========================
   SECTIONS
========================= */
section {
  margin-bottom: 3rem;
}

/* =========================
   FOOTER
========================= */
.footer {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* =========================
   LINKS INSIDE CONTENT
========================= */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
