:root {
  --primary: #2c3e50;
  --accent: #3498db;
  --light: #f9f9f9;
  --dark: #222;
  font-family: system-ui, sans-serif;
}

body {
  margin: 0;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}
.navbar {
  background: #333;
  display: flex;
  justify-content: space-between; /* spreads items */
  align-items: center;
  padding: 0.5rem 1rem;
}

.navbar .brand {
  color: #fff;
  font-weight: bold;
  font-size: 1.3rem;
  margin: 0 auto; /* ensures center */
  position: absolute; /* optional for true centering */
  left: 50%;
  transform: translateX(-50%);
}

.nav {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.nav a:hover {
  background: #444;
}
/* Hero section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(to bottom right, var(--primary), var(--accent));
  color: white;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero.fade-in {
  opacity: 1;
}

.hero h1 {
  font-size: 3rem;
  margin: 0.5rem 0;
}

.hero p {
  max-width: 600px;
  margin: 0.5rem auto 1.5rem;
  font-size: 1.2rem;
}

.hero button {
  background: white;
  color: var(--primary);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.hero button:hover {
  background: #eee;
}

/* About section */
.about {
  padding: 4rem 1.5rem;
  max-width: 800px;
  margin: auto;
}

.about h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

