/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: 70px;
  background: #f8f9fa;
  font-family: 'Roboto', Arial, sans-serif;
  color: #212529;
}

/* ===== Typography ===== */
h1 {
  font-size: 2.5rem;
  color: #000;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

h2 {
  font-size: 2rem;
  color: #000;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.4rem;
  color: #000;
  font-weight: 600;
}

h4 {
  font-size: 1.2rem;
  color: #000;
  font-weight: 600;
}

p {
  font-size: 18px;
  line-height: 1.75;
  color: #444;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== Layout ===== */
.container {
  max-width: 1100px;
}

section {
  margin-bottom: 80px;
}

/* ===== Cards ===== */
.card {
  background: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  padding: 20px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.card p {
  font-size: 17px;
}

/* ===== Buttons ===== */
.btn {
  border-radius: 8px;
  transition: all 0.25s ease;
}

.btn-dark {
  background: #212529;
  border: none;
}

.btn-dark:hover {
  background: #000;
}

.btn-outline-dark:hover {
  background: #212529;
  color: #fff;
}

/* ===== Navbar Fix ===== */
.navbar {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ===== Footer ===== */
footer {
  margin-top: 40px;
  font-size: 14px;
  color: #777;
}

/* ===== Badges ===== */
.badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
}

/* ===== Gallery (keep your assignment working) ===== */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.gallery img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

/* ===== Dark Mode ===== */
body.dark-mode {
  background: #121212;
  color: #f1f1f1;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode p {
  color: #f1f1f1;
}

body.dark-mode .card {
  background: #1e1e1e;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

body.dark-mode .navbar {
  background-color: #000 !important;
}

body.dark-mode .btn-outline-dark {
  color: #f1f1f1;
  border-color: #f1f1f1;
}

body.dark-mode .btn-outline-dark:hover {
  background-color: #f1f1f1;
  color: #121212;
}

body.dark-mode a {
  color: #7db8ff;
}