:root {
  --bg-primary: #141018;
  --bg-card: #2b2433;
  --bg-secondary: #372b3d;
  --text-light: #f4f1f6;
  --text-muted: #d6cfdc;
  --accent: #b39ddb;
}

[data-bs-theme="light"] {
  --bg-primary: #f7f4f9;
  --bg-card: #ffffff;
  --bg-secondary: #efe9f3;
  --text-light: #2b2330;
  --text-muted: #6e6478;
  --accent: #6f42c1;
}

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-light);
}

.jumbotron {
  padding: 25px;
  margin-bottom: 0;
  background-color: var(--bg-primary);
  color: white;
  background: url('../images/mangalore.jpg') no-repeat scroll center center transparent;
  background-size: cover;
  text-shadow: 1px 1px 1px #888a85;
}

[data-bs-theme="light"] .jumbotron {
  color: #2b2330;
}

.jumbotron p:last-child {
  margin-bottom: 0;
}

.jumbotron-heading {
  font-weight: 300;
  font-variant: small-caps;
}

.jumbotron .container {
  max-width: 40rem;
}

.jumbotron img {
  margin-bottom: 20px;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.30);
  padding: 25px;
}

[data-bs-theme="light"] .hero-overlay {
  background-color: rgba(255, 255, 255, 0.80);
}

.album {
  padding-top: 50px;
  padding-bottom: 50px;
}

h3 {
  font-variant: small-caps;
  color: var(--text-light);
}

.card {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border: 0;
  background-color: var(--bg-card);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

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

[data-bs-theme="dark"] .card:hover {
  background-color: var(--bg-secondary);
}

[data-bs-theme="light"] .card:hover {
  background-color: #e4dbe8;
  color: var(--text-light);
}

.card-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  font-weight: bold;
  font-variant: small-caps;
  color: var(--text-muted);
}

[data-bs-theme="light"] .card-header {
  color: var(--accent);
}

.card-header a {
  color: inherit;
  text-decoration: underline;
}

.card .imglink {
  display: block;
  margin-bottom: 20px;
}

.card .imglink img {
  width: 100%;
  height: auto;
  border: 1px solid var(--bg-secondary);
  border-radius: 6px;
}

.card-text {
  font-size: 85%;
}

[data-bs-theme="light"] .card-text {
  color: #3a3340;
}

.tech {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 0;
}

.tech .badge {
  background-color: var(--bg-secondary);
  color: var(--text-light);
  font-size: 15px;
  padding: 6px 10px;
  cursor: default;
}

footer {
  background: url('../images/mangalore_sky.jpg') no-repeat scroll bottom center transparent;
  background-size: cover;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: 50px;
  padding-bottom: 50px;
  text-shadow: 1px 1px 1px black;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

footer a {
  font-weight: bold;
  color: white;
}

footer a .bi {
  margin-right: 6px;
}

footer p {
  margin-bottom: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .theme-toggle,
  .lightbox button {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}
