html {
    scroll-behavior: smooth
  }
  
  #description {
    text-align: justify;
  }
  
  canvas {
    pointer-events: none !important;
    position: absolute;
    z-index: 2;
  }
  .header-content {
    position: relative;
    z-index: 3;  /* Higher than the snow */
  }
  .about .social-links {
    margin-left: auto;
  }
  
  .about .social-links a {
    display: inline-block;
    padding: 0;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
    border: 2px solid #6c757d;
    color: #6c757d;
  }
  
  .about .social-links a:hover {
    background: #695aa6;
    border-color: #695aa6;
    color: #fff;
    text-decoration: none;
  }
  .about .social-links {
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
    -webkit-flex-basis: 0;
        -ms-flex-preferred-size: 0;
            flex-basis: 0;
  }

  /* Portfolio */
  .portfolio-card-horizontal {
    background: #fff;
    border-radius: .25rem;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05), 0 4px 5px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.portfolio-card-horizontal:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1), 0 8px 10px rgba(0,0,0,0.12);
}

.portfolio-horizontal-img {
    width: 100%;
    height: auto; /* Or set a fixed height and use object-fit: cover; */
    display: block;
}

.portfolio-horizontal-content {
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-horizontal-content .portfolio-title {
    font-size: 1.5rem; /* Meyawo uses h4 for card titles */
    font-weight: 600; /* from Meyawo's .section-title */
    margin-bottom: 0.5rem;
    color: #444; /* from Meyawo's .section-title */
}

.portfolio-horizontal-content .category-text {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}

.portfolio-horizontal-content .project-description-short {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #555; /* from Meyawo's p */
}

.tech-tags .badge {
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.8rem;
}

.portfolio-buttons .btn {
    /* Adjust button styling if needed */
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 0.25rem !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .portfolio-horizontal-content {
        text-align: justify; /* Center text on smaller screens */
    }
    .portfolio-buttons .btn {
        display: block;
        width: 100%;
        margin-left: 0 !important;
    }
    .portfolio-buttons .btn:last-child {
        margin-bottom: 0px;
    }
    
}

@media (min-width: 768px){
  .portfolio-card-horizontal img{
    margin: 20px;
  }


.nav .item .link {
  position: relative;
  text-decoration: none;
}

.nav .item .link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: rgba(255, 255, 255, 0.5); /* Default underline color */
  transform: scaleX(0); /* Start with no width */
  transform-origin: bottom right;
  transition: transform 0.3s ease-out, background-color 0.3s ease;
}

.nav .item .link:hover::after {
  transform: scaleX(1); /* Expand to full width on hover */
  transform-origin: bottom left;
  background-color: #695aa6 /* Hover underline color (matches your primary color) */
}

/* Make the underline visible for active links */
.nav .item .link.active::after {
  transform: scaleX(1);
  background-color: #695aa6
}

/* Keep white text color when navbar is at the top */
body:not(.affix-active) .custom-navbar:not(.affix) .nav .item .link:hover {
  color: white !important;
}

/* Active link styles */
.nav .item .link.active {
  color: #695aa6 !important;
}

/* White color for active link when navbar is at top */
.custom-navbar:not(.affix) .nav .item .link.active {
  color: white !important;
}

.custom-navbar:not(.affix) .nav .item .link.active::after {
  background-color: white;
}
/* Default state - White underline when navbar is not affixed */
.custom-navbar:not(.affix) .nav .item .link:hover::after {
  background-color: white !important;
}

/* Default state - White underline for active link when navbar is not affixed */
.custom-navbar:not(.affix) .nav .item .link.active::after {
  background-color: white !important;
}

/* Affixed state - Purple underline */
.custom-navbar.affix .nav .item .link:hover::after,
.custom-navbar.affix .nav .item .link.active::after {
  background-color: #695aa6 !important;
}
}

#contact {
  padding: 90px 10px !important; 
}