/**
* Template Name: iPortfolio
* Updated: Jan 09 2024 with Bootstrap v5.3.2
* Template URL: https://bootstrapmade.com/iportfolio-bootstrap-portfolio-websites-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: "Crimson Pro", sans-serif;
  color: #272829;
}

a {
  color: #149ddd;
  text-decoration: none;
}

a:hover {
  color: #37b3ed;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5{
  font-family: "Crimson Pro", sans-serif;
}
h6 {
  font-family: "Crimson Pro", sans-serif;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #149ddd;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #2eafec;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  transition: all ease-in-out 0.5s;
  z-index: 9997;
  transition: all 0.5s;
  padding: 0 15px;
  background: #040b14;
  overflow-y: auto;
}

#header .profile img {
  margin: 55px auto;
  display: block;
  width: 120px;
}

#header .profile h1 {
  font-size: 24px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  -moz-text-align-last: center;
  text-align-last: center;
  font-family: "Nunito", sans-serif;
}

#header .profile h1 a,
#header .profile h1 a:hover {
  color: #fff;
  text-decoration: none;
}

#header .profile h5 {
  margin: 0;
  padding-top: 10px;
  font-weight: 600;
  text-align: center;
  font-family: "Nunito", sans-serif;
}

#header .profile h5 a,
#header .profile h5 a:hover {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
}

#main {
  margin-left: 350px;
}

.container,
.container-fluid {
  padding-left: 30px;
  padding-right: 30px;
}

@media (max-width: 768px) {
  #header {
    left: -400px;
  }

  #main {
    margin-left: 0;
  }

  .container,
  .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
.nav-menu {
  padding: 30px 0 0 0;
  font-family: "Nunito", sans-serif;
}

.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu>ul>li {
  position: relative;
  white-space: nowrap;
}

.nav-menu a,
.nav-menu a:focus {
  display: flex;
  align-items: center;
  color: #a8a9b4;
  padding: 12px 15px;
  margin-bottom: 8px;
  transition: 0.3s;
  font-size: 15px;
}

.nav-menu a i,
.nav-menu a:focus i {
  font-size: 24px;
  padding-right: 8px;
  color: #6f7180;
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover>a {
  text-decoration: none;
  color: #fff;
}

.nav-menu a:hover i,
.nav-menu .active i,
.nav-menu .active:focus i,
.nav-menu li:hover>a i {
  color: #149ddd;
}

/* =========================================================
   Nav: mobile menu
   Paste AFTER your existing .nav / .nav__link CSS so these
   rules win. Set the --nav-* variables to your theme tokens
   (the fallbacks are just defaults).

     --nav-bg         panel background
     --nav-fg         link text on hover/active
     --nav-fg-muted   link text, resting
     --nav-accent     active-link marker
     --nav-rule       divider lines
   ========================================================= */

/* Desktop: the new wrapper is invisible to layout, so your
   existing desktop CSS keeps working exactly as before. */
.nav__toggle { display: none; }
.nav__panel  { display: contents; }

/* 900px, not 768px: six links + logo + status text already
   run out of room on small tablets. Tune to taste. */
@media (max-width: 900px) {

  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* ---------- Toggle button (44x44 touch target) ---------- */
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--nav-fg, #fff);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav__toggle:focus-visible {
    outline: 2px solid var(--nav-accent, #fff);
    outline-offset: 2px;
  }

  .nav__toggle-bars {
    position: relative;
    display: block;
    width: 22px;
    height: 10px;
  }
  .nav__toggle-bars::before,
  .nav__toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: top .3s ease, transform .3s ease;
  }
  .nav__toggle-bars::before { top: 0; }
  .nav__toggle-bars::after  { top: 8px; }

  .nav.is-open .nav__toggle-bars::before { top: 4px; transform: rotate(45deg); }
  .nav.is-open .nav__toggle-bars::after  { top: 4px; transform: rotate(-45deg); }

  /* ---------- Panel ----------
     absolute (not fixed) on purpose: if .nav uses backdrop-filter or
     transform, position:fixed children get trapped inside it. */
  .nav__panel {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 4.5rem);
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
    background: var(--nav-bg, rgba(14, 15, 19, .98));
    border-bottom: 1px solid var(--nav-rule, rgba(255, 255, 255, .1));
    box-shadow: 0 24px 48px rgba(0, 0, 0, .35);

    opacity: 0;
    visibility: hidden;   /* also removes closed links from the tab order */
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .nav.is-open .nav__panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s ease, transform .25s ease, visibility 0s;
  }

  /* ---------- Links ---------- */
  .nav .nav__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: .5rem 1.25rem 0;
  }
  .nav .nav__link {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 0 0 .75rem;
    font-size: 1.125rem;
    color: var(--nav-fg-muted, #a8a9b4);
    border-bottom: 1px solid var(--nav-rule, rgba(255, 255, 255, .1));
    /* the magnetic effect sets an inline transform; it makes no sense on touch */
    transform: none !important;
  }
  .nav .nav__link:last-child { border-bottom: 0; }

  .nav .nav__link:hover,
  .nav .nav__link:focus-visible,
  .nav .nav__link.active,
  .nav .nav__link.is-active,
  .nav .nav__link[aria-current] {
    color: var(--nav-fg, #fff);
  }
  .nav .nav__link.active,
  .nav .nav__link.is-active,
  .nav .nav__link[aria-current] {
    box-shadow: inset 2px 0 0 var(--nav-accent, currentColor);
  }

  /* ---------- Status ---------- */
  .nav .nav__status {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    padding: 1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    font-size: .9rem;
    color: var(--nav-fg-muted, #a8a9b4);
    border-top: 1px solid var(--nav-rule, rgba(255, 255, 255, .1));
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav__toggle-bars::before,
  .nav__toggle-bars::after,
  .nav__panel,
  .nav.is-open .nav__panel {
    transition: none;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 30px 0;
  overflow: hidden;
}

.section-bg {
  background: #f5f8fd;
}

.section-title {
  padding-bottom: 30px;
}

.section-title h2 {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: #000000;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 3px;
  background: #000000;
  bottom: 0;
  left: 0;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about-content {
  overflow: hidden; /* Ensures content doesn't break layout */
}

.about-image {
  float: left;
  width: 150px; /* Adjust size as needed */
  margin-right: 15px; /* Space between image and text */
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .about-image {
    float: none; /* Removes float on small screens */
    display: block;
    margin: 0 auto 15px auto; /* Centers the image */
  }

  .about-content {
    text-align: center; /* Centers text */
  }
}

.about .content h3 {
  font-weight: 700;
  font-size: 26px;
  color: #173b6c;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.about .content ul strong {
  margin-right: 10px;
}

.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: #149ddd;
  line-height: 0;
}

.about .content p:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Resume
--------------------------------------------------------------*/
.resume .resume-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #050d18;
}

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid #000000;
  position: relative;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  color: #050d18;
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 16px;
  background: #ececec8a;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
  border-radius: 50px;
  margin-top: 5px;
}

.resume .resume-item p {
  padding-bottom: 10px;
}

.resume .resume-item ul {
  padding-left: 20px;
}

.resume .resume-item ul li {
  padding-bottom: 10px;
}

.resume .resume-item:last-child {
  padding-bottom: 0;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 57px;
  border-radius: 6px;
  left: -9px;
  top: 50px;
  background: #fff;
  border: 2px solid #000000;
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px; /* Increased gap between portfolio items */
  justify-content: center; /* Center the items */
  margin: 0 auto !important;
}

.portfolio .portfolio-item {
  width: calc(33.33% - 100px); /* Adjusted width calculation */
  margin-bottom: 25px; /* Add bottom margin */
  min-width: 280px; /* Minimum width */
}

.portfolio .portfolio-flters {
  padding: 0 0 20px 0;
  margin: 0 auto;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  font-size: 18px;
  font-weight: 500;
  margin: 0 10px;
  line-height: 1;
  transition: all 0.3s ease-in-out;
}

.portfolio .portfolio-flters li:hover,
.portfolio .portfolio-flters li.filter-active {
  color: #c5c5c5;
}

.portfolio .portfolio-flters li:first-child {
  margin-left: 0;
}

.portfolio .portfolio-flters li:last-child {
  margin-right: 0;
}

.portfolio .portfolio-wrap {
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1);
  border-radius: 22px;
  height: 450px; /* Fixed height for all portfolio items */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  width: 250px !important;
}

.portfolio .thumbnail {
  width: 100%;
  height: 250px; /* Fixed height for image container */
  overflow: hidden;
}

.portfolio .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Maintain aspect ratio and cover container */
  display: block;
  border-radius: 8px 8px 0 0;
  transition: 0.3s;
}

.portfolio .portfolio-info {
  padding: 20px;
  background-color: #fff;
  position: relative;
  border-top: 1px solid #f3f3f3;
  flex-grow: 1;
  flex-direction: column;
  overflow: hidden;
}

.portfolio .portfolio-info h4 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
}

.portfolio .portfolio-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Add ellipsis for long titles */
  margin-bottom: 10px;
}

.portfolio .portfolio-info h4 a {
  color: #060606;
  transition: 0.3s;
}

.portfolio .portfolio-info h4 a:hover {
  color: #21618C;
}

.portfolio .portfolio-desc {
  color: #6c757d;
  font-size: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5; 
  -webkit-box-orient: vertical;
  text-overflow: ellipsis; /* Add ellipsis for long descriptions */
  margin-bottom: 0;
  flex-grow: 1;
}

.portfolio .portfolio-wrap:hover img {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .portfolio .portfolio-container {
    margin: 0 auto !important;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    gap: 20px; /* Adjust spacing */
    align-items: center;
    justify-content: center;
    width: 100%;
    left: 70px;
  }

  .portfolio .portfolio-item {
    width: 90% !important;
    max-width: 400px; /* Full width on small screens */
  }
  
  .portfolio .portfolio-wrap {
    height: 400px; /* Slightly shorter on mobile */
  }
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--color-primary);
}

.portfolio-details .swiper-button-prev,
.portfolio-details .swiper-button-next {
  width: 48px;
  height: 48px;
}

.portfolio-details .swiper-button-prev:after,
.portfolio-details .swiper-button-next:after {
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.2);
  font-size: 24px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.portfolio-details .swiper-button-prev:hover:after,
.portfolio-details .swiper-button-next:hover:after {
  background-color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 575px) {

  .portfolio-details .swiper-button-prev,
  .portfolio-details .swiper-button-next {
    display: none;
  }
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.portfolio-details .portfolio-info h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  left: 0;
  bottom: 0;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li {
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
  font-size: 16px;
}

.portfolio-details .portfolio-info ul strong {
  text-transform: uppercase;
  font-weight: 400;
  color: #9c9c9c;
  font-size: 12px;
}

.portfolio-details .portfolio-info .btn-visit {
  padding: 8px 40px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50px;
  transition: 0.3s;
}

.portfolio-details .portfolio-info .btn-visit:hover {
  background: #009d8b;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
}

.portfolio-details .portfolio-description .testimonial-item {
  padding: 30px 30px 0 30px;
  position: relative;
  background: white;
  height: 100%;
  margin-bottom: 50px;
}

.portfolio-details .portfolio-description .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50px;
  border: 6px solid #fff;
  float: left;
  margin: 0 10px 0 0;
}

.portfolio-details .portfolio-description .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 15px 0 5px 0;
  padding-top: 20px;
}

.portfolio-details .portfolio-description .testimonial-item h4 {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-left,
.portfolio-details .portfolio-description .testimonial-item .quote-icon-right {
  color: #009d8b;
  font-size: 26px;
  line-height: 0;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.portfolio-details .portfolio-description .testimonial-item p {
  font-style: italic;
  margin: 0 0 15px 0 0 0;
  padding: 0;
}