html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-family: "Montserrat-Regular";
  line-height: 1.6;
  background-color: #fafeff;
  color: #0a001b;
}

/* Default: bottom fixed for small screens */
.navbar {
  position: fixed !important;
  bottom: 0;
  width: 100%;
  z-index: 1030;
}

.logo-img {
  height: 40px;
  width: auto; /* maintains aspect ratio */
}

body {
  margin: 0;
  padding-bottom: 56px; /* Reserve space for bottom navbar */
}

@media (min-width: 768px) {
  .navbar {
    top: 0;
    bottom: auto;
  }

  body {
    padding-top: 56px;
    padding-bottom: 0;
  }

  .navbar .container-fluid {
    justify-content: space-between;
  }

  .navbar-nav {
    margin-left: auto;
  }
}

@media (max-width: 767.98px) {
  .navbar .container-fluid {
    justify-content: center; /* Center content horizontally */
  }

  .navbar-nav {
    flex-direction: row;
    gap: 1rem; /* Optional: space between nav links */
  }
  .navbar-brand {
    display: none; /* optional */
  }
}

.hero {
  position: relative;
  background-image: url("/assets/images/back.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  color: white;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.411); /* dark overlay */
  z-index: 1;
}
.hero > section {
  position: relative;
  z-index: 2;
}

.credit {
  position: relative;
  z-index: 11; /* Ensure it's above overlays or backgrounds */
  font-size: 10px;
  padding-bottom: 0;
}
.credit a {
  color: inherit;
  text-decoration: none;
}

.card-titl {
  color: black;
}
.card-text {
  color: #535151de; /* Example: dark blue-gray */
}

/*
.hero::after {
  content: "";
  position: absolute;
  bottom: -40px; 
  left: 0;
  width: 100%;
  height: 100px;
  background-color: 
  border-radius: 100% 100% 0 0 / 100% 100% 0 0;
}
*/
.hero section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* Full viewport height */
  position: relative;
}

.welcome-heading {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 0;
}

.intro-paragraph {
  font-size: 1.1rem;
  line-height: 1.6;
}

.myimg {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 90%; /* Makes it circular */
  border: 2px solid #f5f5f5; /* Circle line (border) */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Optional shadow */
  background-color: transparent;
}

/**   About page  **/

.terminal-style {
  background-color: #1e1e1e;
  color: #c5c8c6;
  font-family: "Courier New", Courier, monospace;
  padding: 10px;
  border-radius: 8px;
  max-width: 600px;
  margin: auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.terminal-style a {
  color: #8abeb7;
  text-decoration: none;
}

.terminal-style a:hover {
  text-decoration: underline;
}

.about-me-section {
  padding: 2rem 0.5rem;
  margin: 0 auto;
  max-width: 800px;
}

.code-block {
  background-color: #0d1117; /* Dark code-style bg */
  color: #c9d1d9; /* Light text */
  padding: 1rem;
  border-radius: 8px;
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
  overflow-x: auto; /* Enables horizontal scroll if needed */
  white-space: pre-wrap; /* Allows wrapping */
  word-break: break-word;
  margin: 0 auto;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .code-block {
    font-size: 0.8rem;
    padding: 0.75rem;
  }
}

.code-block {
  white-space: pre-wrap;
}

.keyword {
  color: #569cd6;
}

.classname {
  color: #4ec9b0;
}

.method {
  color: #dcdcaa;
}

.type {
  color: #4ec9b0;
}

.value {
  color: #ce9178;
}

.prompt {
  color: #6a9955;
}

.arrow {
  color: #dcdcaa;
}

a.value {
  color: #9cdcfe;
  text-decoration: none;
}

a.value:hover {
  text-decoration: underline;
}

/* My work */
.my-works-section {
  background-color: #f8f9fa; /* light gray background */
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

/* work section */
.card-img-top {
  height: 200px;
  object-fit: cover;
}

/*contact section*/
#contact {
  background-image: url("/assets/images/contact.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.contact-form {
  background-color: rgba(109, 108, 108, 0.26); /* semi-transparent black */
  padding: 40px;
  border-radius: 10px;
}

.form-label {
  background-color: transparent;
}
.btn-primary {
  background-color: #176555;
  border-color: #176555;
}

.btn-primary:hover {
  background-color: #124c43;
  border-color: #124c43;
}

/* footer */

a.text-gold {
  color: #e0b730;
  text-decoration: none;
}

a.text-gold:hover {
  text-decoration: underline;
}

.social a {
  text-decoration: none;
}

.footers {
  background-color: rgb(29, 34, 29);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}
