:root {
	--bs-body-bg: #000000;
	--bs-body-color: #e0e0e0;
}

body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: 'Segoe UI', sans-serif;
}

.navbar, footer {
	background-color: #000000 !important;
}

.nav-link {
    color: #fff !important;
}

.navbar-brand, #about h2, #projects h2, #projects h5, #past-projects h5, .navbar-nav, .display-4, footer {
	font-family: 'Kalam', cursive;
	font-weight: 400;
	font-style: normal;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical center */
  align-items: center;     /* horizontal center */
  height: 350px;           /* or your fixed height */
  text-align: center;
  color: white;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  padding: 0;              /* remove vertical padding to avoid offset */
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

.hero.fade {
  opacity: 0;
}

.hero.loaded {
  opacity: 1;
}

.hero:hover {
  cursor: pointer;
}

.hero-caption {
  position: absolute;
  bottom: 10px;
  right: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  text-align: right;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.hero h1, .hero p {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}

.hero-link {
  display: block;        /* makes the anchor fill the section */
  text-decoration: none; /* removes underline */
  color: inherit;        /* keeps text color */
  cursor: pointer;
}

/* Optional: add hover/focus styles */
.hero-link:hover,
.hero-link:focus {
  text-decoration: none;
}

.avatar-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 3px solid #fff;
}
.project-card {
    background: #2a2a2a;
    color: #fff;
    transition: 0.3s ease;
}

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

.retired-card {
	background-color: #1f1f1f;
	border-left: 4px solid #6c757d; /* muted left border */
	opacity: 0.95;
}

.retired-card .badge {
	font-size: 0.75rem;
	font-weight: 500;
}

.active-card {
	background-color: #2a2a2a;
	border-left: 4px solid #0d6efd; /* Bootstrap primary blue */
	opacity: 1;
}

.active-card .badge {
	font-size: 0.75rem;
	font-weight: 500;
}

a {
	color: #a0c4ff;
	text-decoration: none;
	transition: color 0.3s;
}

a:hover {
	color: #ffffff; /* a lighter hover color */
}

footer p {
    color: #aaa;
    margin-bottom: 0;
}

.social-icons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.social-icons a {
	color: #ccc;
	font-size: 1.25rem;
	transition: color 0.3s;
	text-decoration: none;
	display: flex;
	align-items: center; /* ensures icons and images are vertically aligned */
}

.social-icons a:hover {
	color: #0d6efd;
	text-decoration: none;
}

.social-icons img {
    height: 22px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin-top: -1px;
}

#back-to-top {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(155, 209, 255, 0.4);
    color: #000;
    padding: 12px 16px;
    border-radius: 50%;
    font-weight: bold;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-tap-highlight-color: transparent;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Hover, Focus, Active styles ONLY for devices with mouse */
@media (hover: hover) and (pointer: fine) {
    #back-to-top:hover,
    #back-to-top:focus,
    #back-to-top:active {
        background-color: rgba(0, 123, 255, 0.5);
        color: #fff;
    }
}

@media (max-width: 991.98px) {
	.navbar-collapse {
		text-align: center;
	}

	.navbar-nav {
		flex-direction: column;
		align-items: center;
	}

	.navbar-nav .nav-link {
		padding: 0.5rem 0;
	}
	.hero {
    height: 200px;          /* or 300px or whatever fits */
    padding: 20px 0;        /* reduce vertical padding */
  }
}