:root {
  /* === Base Page Colors === */
  --bg-main: #f3e8fc;                     /* Main background – soft lavender with a bit more saturation */
  --text-main: #2e1a47;                   /* Primary text color – deep violet for good contrast on lavender */

  /* === Hero Section Gradient === */
  --hero-gradient-start: #bc9be2;        /* Left side of hero gradient – soft, balanced purple tone */
  --hero-gradient-end: #e8def8;          /* Right side of hero gradient – pale lilac to blend with bg */
  --hero-text: #2e1a47;                  /* Hero text color – matches main text for visual harmony */

  /* === Primary Accent Colors (Headings, Buttons, Highlights) === */
  --primary: #7b1fa2;                    /* Main accent – bold purple for h2s and major UI elements */
  --primary-light: #ab47bc;              /* Light accent – used for links and interactive elements */
  --primary-dark: #4a0072;               /* Dark accent – used for link hover and strong emphasis */

  /* === Secondary Accents (Borders, Backgrounds, Footer) === */
  --accent-light: #dcc0ef;              /* Footer and card backgrounds – warm and less gray than before */
  --accent-border: #d8bfe9;             /* Border color – subtly contrasts with background and cards */

  /* === Interactive Focus and Link States === */
  --link: var(--primary-light);         /* Default link color */
  --link-hover: var(--primary-dark);    /* Link hover color */
  --focus-outline: #ba68c8;             /* Focus ring for accessibility – semi-saturated violet */
}

body {
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg-main);
  color: var(--text-main);
}

.hero {
  background: linear-gradient(135deg, var(--hero-gradient-start), var(--hero-gradient-end));
  color: var(--hero-text);
  text-align: center;
  padding: 3rem 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.hero h1 {
  margin: 0;
  font-size: 4.5rem;
  line-height: 1.2;
}

.hero h2 {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  font-weight: 400;        /* Optional: softens the subheader */
  max-width: 750px;        /* Optional: prevent overly long lines */
  margin-left: auto;
  margin-right: auto;
}

.projects {
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.project-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.project-card h2 {
  margin-top: 0;
  color: var(--primary);
  border-bottom: 2px solid var(--accent-border);
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.links {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.links li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.links a {
  text-decoration: none;
  color: var(--link);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.links a:focus {
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
  background: var(--accent-light);
  font-size: 1rem;
  color: #555;
}
