html {
  scroll-behavior: smooth;
}

* {
  font-family: "Poppins", sans-serif;
  color: #c4c4c4;
  /* Secondary light-gray text for body readability */
  box-sizing: border-box;
}

body {
  background-color: #000115;
  /* Dark background restored */
  font-size: 16px;
  line-height: 1.6;
}

/* Accent element */
.different {
  color: #b73b4f !important;
  font-weight: 700;
}

/* Navbar */
nav.navbar {
  background-color: #000115;
  border-bottom: 1px solid #1f2035;
}

nav a.navbar-brand {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 20px;
}

nav .nav-link {
  color: #c4c4c4 !important;
  font-size: 15px;
  transition: color 0.15s ease;
}

nav .nav-link:hover,
nav .nav-link.active {
  color: #b73b4f !important;
  font-weight: 500;
}

.nav-item {
  margin-left: 24px;
}

/* Jumbotron */
.jumbotron {
  margin-top: 80px;
  padding: 60px 0;
}

.jumbotron h1 {
  font-size: 52px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -1px;
  line-height: 1.25;
  animation: text-bounce 1s ease-out;
}

.jumbotron p {
  color: #c4c4c4;
  font-family: "Assistant", sans-serif;
  font-size: 22px;
  margin: 20px 0 0 0;
  line-height: 1.5;
  animation: text-bounce 1.2s ease-out;
}

.jumbotron img {
  width: 100%;
}

.jumbotron .laptop {
  position: relative;
  animation: phone-bounce 6s infinite ease-in-out;
}

.jumbotron .arrow-top {
  height: 100px;
  position: relative;
  animation: arrow-bounce 2.5s infinite ease-in-out;
}

.jumbotron .arrow-top img {
  width: 30px;
}

.jumbotron .phone {
  position: relative;
  animation: phone-bounce 8s infinite ease-in-out;
}

.jumbotron .phone img {
  width: 60%;
}

@keyframes text-bounce {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes arrow-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes phone-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

/* About me */
.about-me {
  margin: 100px auto 200px auto;
  max-width: 930px;
  position: relative;
  animation: phone-bounce 10s infinite ease-in-out;
}

.about-me p {
  max-width: 852px;
  background-color: #212239;
  padding: 68px 48px;
  color: #c4c4c4;
  font-size: 16px;
  margin: auto;
  border-radius: 20px;
}

.about-me img {
  width: 110px;
  margin-bottom: -25px;
  text-align: right;
}

.about-me .bag {
  position: relative;
  animation: phone-bounce 5s infinite ease-in-out;
  display: block;
}

/* Generic Section Layout */
section {
  padding: 60px 0;
}

h2.fw-bold {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.75px;
  color: #ffffff;
}

h2 span {
  color: #b73b4f;
}

h3.border-bottom {
  border-bottom: 1px solid #1f2035 !important;
}

/* Specializations & Skills Header contrast */
.specialization h5,
.skills h5 {
  color: #ffffff !important;
}

/* Custom Minimal Cards for Projects in Dark Theme */
.card {
  background-color: #111225 !important;
  /* Flat dark card background */
  border: 1px solid #1f2035 !important;
  /* Subtle dark border */
  border-radius: 12px !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: #b73b4f !important;
  /* Hover border indicator */
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(183, 59, 79, 0.05) !important;
}

.card-body h4 {
  color: #ffffff !important;
  font-weight: 700;
}

.card-body p,
.card-body li {
  color: #c4c4c4 !important;
}

/* Timeline Layout */
.timeline-container {
  padding-left: 24px;
}

.timeline-line {
  background-color: #1f2035 !important;
  /* Thin grey line in dark bg */
  width: 1px !important;
  opacity: 1 !important;
}

.timeline-item {
  position: relative;
}

.timeline-item h4 {
  color: #ffffff !important;
}

.timeline-item h6 {
  color: #a1a1aa !important;
}

.timeline-item .rounded-circle {
  background-color: #000115 !important;
  border: 2px solid #b73b4f !important;
}

/* Tech Badges / Chips */
.badge {
  font-weight: 500 !important;
  font-size: 12px !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  letter-spacing: 0px !important;
  box-shadow: none !important;
}

.badge.bg-danger {
  background-color: #3b1b22 !important;
  /* Dark warm red badge container */
  color: #ff8a9a !important;
  /* High contrast pinkish red text */
}

.badge.bg-secondary {
  background-color: #111225 !important;
  /* Dark chip style */
  color: #c4c4c4 !important;
  border: 1px solid #1f2035 !important;
}

/* Buttons */
.btn-danger {
  background-color: #b73b4f !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  transition: background-color 0.15s ease !important;
  padding: 10px 20px !important;
}

.btn-danger:hover {
  background-color: #9e2f41 !important;
}

.btn-outline-light {
  border: 1px solid #1f2035 !important;
  color: #c4c4c4 !important;
  background-color: #111225 !important;
  border-radius: 8px !important;
  transition: all 0.15s ease !important;
}

.btn-outline-light:hover {
  background-color: #1f2035 !important;
  color: #ffffff !important;
  border-color: #b73b4f !important;
}

/* Footer */
footer {
  background-color: #000115;
  border-top: 1px solid #1f2035;
  padding: 60px 0;
}

footer p {
  color: #c4c4c4 !important;
}

footer a {
  color: #b73b4f !important;
  text-decoration: none;
}

footer li a img {
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: all 0.25s ease;
}

footer li a:hover img {
  filter: brightness(0) invert(1);
  opacity: 1;
}

footer .credit {
  color: #71717a !important;
}

/* Responsive breakdowns */
@media (max-width: 768px) {
  .jumbotron {
    margin-top: 40px;
    padding: 30px 0;
  }

  .jumbotron h1 {
    font-size: 38px;
  }

  .jumbotron p {
    font-size: 18px;
  }

  .jumbotron .phone {
    display: none;
  }

  h2.fw-bold {
    font-size: 28px;
  }

  .timeline-container {
    padding-left: 15px;
  }
}