html {
  overflow-y: scroll;
}

* {
  margin: 0;
}

body {
  background: #dae2e9;
  font-family: Roboto, Sans-Serif;
  font-size: 14px;
  text-align: justify;
}

h2 {
  font-size: 18px;
  font-weight: bold;
  margin-top: 5px;
  margin-bottom: 5px;
  text-align: left;
}

h3 {
  font-size: 14px;
  font-weight: bold;
  font-style: italic;
  margin-top: 5px;
  margin-bottom: 5px;
  text-align: left;
}

h4 {
  font-size: 14px;
}

h5 {
  font-size: 12px;
}

h4,
h5 {
  font-weight: normal;
  margin-top: 5px;
  margin-bottom: 5px;
}

p {
  margin-bottom: 0.3rem;
}

small {
  font-size: 13.5px;
  font-weight: normal;
}

/* Container */
.container {
  background: #ffffff;
  padding-top: 12px;
  padding-bottom: 12px;
}

.card {
  margin: 12px auto;
  border-radius: 5px;
  transition: 0.3s;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

/* Header */
.name {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 1px;
}

.contact-info li {
  text-align: left;
  transition: transform 0.3s ease;
}

.contact-info li:hover {
  transform: translateY(-2px);
}

.contact-info li:hover i {
  transform: scale(1.1);
}

.contact-info li:hover a {
  color: #0a58ca !important;
}

.list-inline li {
  display: inline-block;
  margin-right: 0.5rem;
}

/* Nav Tabs */
.nav {
  margin-bottom: 10px;
}

.nav-link {
  color: black;
  margin: 1px;
}

.nav-tabs .nav-link:hover {
  background: #eee;
  transition: 0.25s;
  transform: translateY(-2px);
}

.tab-pane {
  padding: 12px;
}

.ulnomargin {
  margin: 0;
}

/* Links */
.links a {
  display: inline-block;
  text-decoration: none;
}

.links a::after {
  content: "";
  background: #052a5f;
  display: block;
  width: 0%;
  height: 2px;
  margin: auto;
  transition: 0.5s;
}

.links a:hover::after {
  width: 100%;
}

/* Achievements */
.noliststyle {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.achievements {
  text-align: right;
}

.achievements a {
  display: inline-block;
  text-decoration: none;
  margin-top: 8px;
}

.achievements a::after {
  content: "";
  background: #052a5f;
  display: block;
  width: 0%;
  height: 2px;
  margin: auto;
  transition: 0.5s;
}

.achievements a:hover::after {
  width: 100%;
}

/* Scroll to Top Button */
.scroll-to-top-btn {
  background: #052a5f;
  color: white;
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  font-size: 18px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-to-top-btn:hover {
  background: #031a3f;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.scroll-to-top-btn.show {
  display: flex;
}

/* Media Compatibility */
@media (max-width: 768px) {
  .rounded-circle {
    display: block;
    width: 128px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5px;
  }

  .name {
    font-size: 24px;
    text-align: center;
  }
}