.header {
  background: #151515 url("../images/intro-bg.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

.header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.header .text-container {
  z-index: 10;
}

.header .roles {
  font-family: "lora-regular", serif;
}

.header .social {
  bottom: 50px;
}

.about-img {
  width: 270px;
}

.project:hover {
  transform: scale(1.05);
  transition: all 0.5s ease-in-out;
  opacity: 0.8;
}

.services {
  background: url("../images/bg.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

.services ul {
  text-align: left;
  /* Keeps bullets aligned to text */
  display: inline-block;
  /* Centers the whole UL under heading/paragraph */
  margin: 0 auto;
  /* Centers it in the parent */
  padding-left: 1rem;
  /* Slight space before bullets */
}

.services::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.services .container {
  z-index: 10;
}

@media (max-width: 767px) {
  .header .social i {
    font-size: 30px;
  }
  .header .roles {
    font-size: 18px !important;
  }
  .about-content {
    flex-direction: column;
  }
  .stats .stat {
    border-right: 0 !important;
    margin-bottom: 40px;
    border-bottom: var(--bs-dark) solid 1px;
    padding-bottom: 20px;
  }
}
.neon-pop {
  color: #0d6efd;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(13, 110, 253, 0.7), 0 0 10px rgba(13, 110, 253, 0.7), 0 0 20px rgba(13, 110, 253, 0.7);
  animation: neon-pop 2s ease-in-out infinite;
  display: inline-block;
}

@keyframes neon-pop {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
    text-shadow: 0 0 5px rgba(13, 110, 253, 0.7), 0 0 10px rgba(13, 110, 253, 0.7), 0 0 20px rgba(13, 110, 253, 0.7);
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
    text-shadow: 0 0 10px rgba(13, 110, 253, 0.9), 0 0 20px rgba(13, 110, 253, 0.9), 0 0 40px rgba(13, 110, 253, 0.9);
  }
}
#karelVideo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.project {
  position: relative;
  overflow: hidden;
}
.project .preview-image {
  display: block;
  width: 100%;
  height: auto;
}
.project .preview-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.85rem;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}
.project:hover .preview-overlay {
  opacity: 1;
}

.preview-image {
  width: 100%;
  max-height: 200px;
  /* makes it look smaller in the grid */
  object-fit: cover;
  /* crop visually without distorting */
}

.navbar {
  z-index: 1030;
  padding: 0.5rem 1rem;
}
.navbar .container {
  display: flex;
  align-items: center;
}
.navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar .navbar-brand img {
  height: 40px;
  width: auto;
}
.navbar .navbar-toggler {
  margin-left: auto;
  position: static !important;
}

body {
  padding-top: 70px;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}
@media (min-width: 768px) {
  .navbar-brand img {
    height: 55px;
  }
}
@media (min-width: 1200px) {
  .navbar-brand img {
    height: 65px;
  }
}

.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background-color: #212529 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
