/* Reset & Smooth Scroll */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Header Title & Navigation */
.site-title {
  font-size: 1.25rem;
  line-height: 2.5rem;
}

.nav-link {
  padding: 0;
  font-size: 1.25rem;
  line-height: 2.5rem;
  color: rgba(0, 0, 0, 0.5);
}

.nav-link:hover,
.nav-link:focus,
.active .nav-link {
  color: rgba(0, 0, 0, 0.8);
}

.nav-item + .nav-item {
  margin-left: 1rem;
}

/* Cover Section */
.cover {
  border-radius: 10px;
  overflow: hidden;
}

.cover-bg {
  background-image: url('../images/back.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  padding: 3rem;
  color: white;
}

/* Avatar */
.avatar {
  max-width: 216px;
  max-height: 216px;
  margin: 20px auto 0;
  text-align: center;
}

.avatar img {
  width: 100%;

  filter: grayscale(100%);
}



/* Small screens */
@media (max-width: 600px) {
  .cover-bg {
    min-height: 200px;
    padding: 1rem;
  }

  .cover-bg h2,
  .cover-bg p {
    font-size: 1.2rem;
  }

  .d-flex.justify-content-center.flex-wrap.gap-2 .btn {
    flex: 1 1 45%;
  }
}

/* Timeline Custom Component */
.timeline {
  border-left: 2px solid #E6E9ED;
  padding: 1rem 0;
}

.timeline-card {
  position: relative;
  margin-left: 31px;
  border-left: 2px solid;
  margin-bottom: 2rem;
}

.timeline-card:last-child {
  margin-bottom: 1rem;
}

.timeline-card:before {
  content: '';
  display: inline-block;
  position: absolute;
  background-color: #fff;
  border-radius: 10px;
  width: 12px;
  height: 12px;
  top: 20px;
  left: -41px;
  border: 2px solid;
  z-index: 2;
}

.timeline-card:after {
  content: '';
  display: inline-block;
  position: absolute;
  background-color: currentColor;
  width: 29px;
  height: 2px;
  top: 25px;
  left: -29px;
  z-index: 1;
}

.timeline-card-primary {
  border-left-color: #4A89DC;
}

.timeline-card-primary:before {
  border-color: #4A89DC;
}

.timeline-card-primary:after {
  background-color: #4A89DC;
}

.timeline-card-success {
  border-left-color: #37BC9B;
}

.timeline-card-success:before {
  border-color: #37BC9B;
}

.timeline-card-success:after {
  background-color: #37BC9B;
}

/* Footer Links */
footer a:not(.nav-link) {
  color: inherit;
  border-bottom: 1px dashed;
  text-decoration: none;
  cursor: pointer;
}

/* Layout for Medium+ Screens */
@media (min-width: 48em) {
  .site-title {
    float: left;
  }

  .site-nav {
    float: right;
  }

  .avatar {
    margin-bottom: -80px;
    margin-left: 0;
  }
}

/* Print Styles */
@media print {
  body {
    background-color: #fff;
  }

  .container {
    width: auto;
    max-width: 100%;
    padding: 0;
  }

  .cover,
  .cover-bg {
    border-radius: 0;
  }

  .cover.shadow-lg {
    box-shadow: none !important;
  }

  .cover-bg {
    padding: 5rem !important;
    padding-bottom: 10px !important;
  }

  .avatar {
    margin-top: -10px;
  }

  .about-section {
    padding: 6.5rem 5rem 2rem !important;
  }

  .skills-section,
  .work-experience-section,
  .education-section,
  .contant-section {
    padding: 1.5rem 5rem 2rem !important;
  }

  .page-break {
    padding-top: 5rem;
    page-break-before: always;
  }
}
/* Mobile: Two-column button layout with smaller buttons */
@media (max-width: 768px) {
  .d-flex.justify-content-center.flex-wrap.gap-2.d-print-none {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    justify-items: center;
    margin-top: 1rem;
  }

  .d-flex.justify-content-center.flex-wrap.gap-2.d-print-none a {
    width: 100%;
    max-width: 100%;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem !important;
    margin: 0 !important;
    line-height: 1.2;
    border-radius: 0.4rem;
  }

  .d-flex.justify-content-center.flex-wrap.gap-2.d-print-none a i {
    margin-right: 0.3rem;
  }

  .d-flex.justify-content-center.flex-wrap.gap-2.d-print-none a:last-child {
    grid-column: span 2;
    justify-self: center;
    max-width: 70%;
  }
}

/* Desktop tweaks if needed */
@media (min-width: 769px) {
  .d-flex.justify-content-center.flex-wrap.gap-2.d-print-none a {
    margin-right: 0.5rem;
  }
}
