/* styles.css */
html {
  scroll-behavior: smooth;
}

.sticky-navbar {
  position: fixed;       /* Changed from sticky to fixed */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;         /* Slightly higher to be above all content */
  background-color: #333;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* Optional subtle shadow */
}

.sticky-navbar .nav-left,
.sticky-navbar .nav-center,
.sticky-navbar .nav-right {
  display: flex;
  align-items: center;
}

.sticky-navbar a {
  color: white;
  padding: 10px;
  text-decoration: none;
}

.sticky-navbar a:hover,
.sticky-navbar i:hover {
  background-color: #555;
  color: #ffc107;
}

/* Add padding to body so content isn't hidden under fixed navbar */
body {
  padding-top: 60px; /* Adjust if your navbar is taller/shorter */
}

.profile-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
}

.bg-home {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/home-bg.jpg') no-repeat center center, #343a40;
  background-size: cover;
}

.bounce {
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid #dee2e6;
}

.timeline-item {
  position: relative;
}

.timeline-marker {
  position: absolute;
  left: -11px;
  top: 10px;
  background-color: #0d6efd;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
}

/* Tighter spacing for all content */
.timeline-content h5,
.timeline-content h6,
.timeline-content p {
  margin-bottom: 0.5rem;
}

.timeline-content p,
.timeline-content li {
  text-align: justify;
}

.timeline-content ul {
  margin-top: 0.25rem;
}

.tight-list li {
  margin-bottom: 0.35rem;
}

.text-justify {
  text-align: justify;
}

#contact a {
  transition: color 0.3s, text-decoration 0.3s;
}

#contact a:hover {
  color: #ffc107;
  text-decoration: underline;
}

#contact i {
  font-size: 1.2rem;
  vertical-align: middle;
}

/* Footer */
footer {
  background-color: #222;
  color: #eee;
  padding: 1rem 0;
  text-align: center;
}

/* Reduce space between headings/paragraphs and lists globally */
h1 + ul,
h2 + ul,
h3 + ul,
h4 + ul,
h5 + ul,
h6 + ul,
p + ul {
  margin-top: 0.25rem; /* tighter gap */
}

.company-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.card-body p {
  text-align: justify;
}
