:root {
    --primary-color: #4F46E5;
    --primary-hover-color: #352fb6;
    --comp-color: #eef2ff;
    --comp-border-color: #dbe2fa;
    --primary-light: #EEF2FF;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --card-shadow: rgba(0, 0, 0, 0.05) 0px 4px 12px;
    --text-muted: #6b7280;
    --grey-border: #f1f1f1;
    --text-dark: #111827;
    --grey-bg: #cccccc;
    --rounded: 12px;
    --font-stack: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-stack);
    background: #f9fafb;
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-hover-color);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--primary-hover-color) !important;  
}

.textEmphasis {
    color: var(--primary-color);
}

.sectionHeader {
    text-align: center;
    font-weight: bold;
}

.navbar-brand, .navbar-brand:hover, .navbar-brand:focus, .navbar-brand:active {
    color: var(--primary-color);
    font-weight: bold;
    cursor: default;
}

.bg-body-tertiary {
    background: var(--grey-bg);
    border-top: var(--grey-border) 1px solid;
    border-bottom: var(--grey-border) 1px solid;
}

h4 {
    margin-top: 2rem;
    font-size: 1.25rem;
    font-weight: bold;
}

h4:first-of-type {
    margin-top: 0.5rem;
}

.category-filter {
  display: flex;
  gap: .5rem;
  margin: 1rem 0 1.25rem;
  overflow-x: auto;            
  padding-bottom: .25rem;     
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid var(--comp-border-color);
  background: #fff;
  color: var(--text-dark);
  padding: .5rem .9rem;
  border-radius: 9999px;       
  font-size: .9rem;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.filter-btn:hover { border-color: var(--primary-color); }

.filter-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.portfolio-category-header:first-of-type {
    margin-top: 1rem;
}

.portfolio-container .row {
    margin-top: 0rem;
    margin-bottom: 2rem;
}

#projectTags {
    margin-bottom: 15px;
}

.artifact-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--rounded);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 2rem;
    justify-content: space-between;
}

.artifact-card:hover {
    transform: translateY(-6px);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 20px;
}

.artifact-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--card-border);
}

.artifact-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.artifact-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.artifact-year {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.artifact-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    flex-grow: 1;
    margin: 0.5rem 0;
}

.artifact-content .btn {
    margin-top: auto;
    align-self: flex-start;
}

.artifact-content .btn:hover {
    color: var(--card-bg);
}

.btn{
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: var(--rounded);
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    transition: background-color 0.2s ease;
}

.btn:hover {
    color: #fff !important;
    background-color: var(--primary-hover-color);
}

.btn:active,
.btn:focus {
    background-color: var(--primary-hover-color) !important;
    color: #fff !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
 
#btn-back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    opacity: 0.8;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 9999;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;
}

#btn-back-to-top:hover {
    opacity: 1;
    background-color: var(--primary-hover-color);
    transform: scale(1.05);
}

#btn-back-to-top i {
    font-size: 20px;
}

.cover {
    background: var(--comp-color);
    padding: 100px 0 80px;
    text-align: center;
    border-bottom: var(--grey-border) 1px solid;
}

.intro-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.intro-tagline {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--sub-title-color);
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    outline: none;
    box-shadow: none;
}

.navbar-expand-lg .navbar-nav {
    font-weight: bold;
    font-size: 0.95rem;
    gap: 1rem;
}

.navbar {
    border-bottom: 1px solid var(--grey-border);
    background-color: #fff;
    z-index: 1000;
    padding: 1rem 2rem;
}

.nav-item a {
    color: black;
    padding: 8px 12px;
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-item a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.card {
    background: var(--comp-color);
    color: var(--paragraph-color);
    cursor: default;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--comp-border-color);
    border-radius: 10px !important;
    transition: transform 0.3s;
    font-size: .9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-title {
    font-size: 1.1rem;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.service-ico>i {
    padding-top: .5em;
    color: var(--primary-color);
    font-size: 1.5em;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.container {
    margin: auto;
    width: 65%;
}

.progress {
    margin-bottom: 2rem;
}

.stats-block {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
}

.stats-block .number {
    font-size: 2.8rem;
    font-weight: bold;
}

.stats-block p {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: white;
}

.final-cta {
    background-color: var(--section-alt);
    padding: 100px 0;
    border-top: 1px solid var(--grey-border);
}

.final-cta .sectionHeader {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.1rem;
    color: var(--sub-title-color);
    margin-bottom: 1.5rem;
}

.final-cta .btn {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
}

.number-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.plus {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

#carouselContainer {
    margin-bottom: 1rem;
}

.special-note {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.modal-header {
    background: var(--primary-gradient, var(--primary-color));
    color: #fff;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    border-bottom: none;
    padding: 2rem 1rem 1rem;
    position: relative;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    width: 100%;
    text-align: center;
}

.modal-subtitle {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

.modal-header .btn-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    filter: invert(1);
    outline: none !important;
    box-shadow: none !important;
}

.modal-header .btn-close:focus {
    outline: none !important;
    box-shadow: none !important;
}

.hidden {
    display: none;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 10px;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.badge {
    cursor: default;
    padding: 5px;
    background-color: var(--comp-color);
    border: 1px solid var(--comp-border-color);
    color: var(--primary-color);
}

.carousel-prev,
.carousel-next {
    font-size: 1rem;
    background-color: var(--primary-color);
    opacity: 0.8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.carousel-prev:hover,
.carousel-next:hover {
    opacity: 1;
    background-color: var(--primary-hover-color);
}

.alert-primary {
    cursor: default;
    font-size: .9rem;
    color: var(--primary-color);
    background-color: var(--comp-color);
    border: 1px solid var(--comp-border-color);
}

#prevProject:disabled,
#nextProject:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.progress-bar {
    background-color: var(--primary-color);
    transition: background-color 0.4s ease, opacity 0.4s ease;
}

.progress-bar:hover {
    background-color: var(--primary-hover-color);
    opacity: 0.9;
}

footer {
  background-color: #f8f9fa;
  border-top: 1px solid #eee;
}
.footer-with-socials {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: nowrap;
}

.footer-socials img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  opacity: 0.5;
}

.footer-socials a:hover img,
.footer-socials a:focus img {
  opacity: 0.6;
}

#social-blog img {
  transform: scale(0.85);
}

.bounce-hover {
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bounce-hover:hover,
.bounce-hover:focus {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
}

.explore-icon {
  margin-left: 0.5rem;
  vertical-align: middle;
}

@media (max-width: 576px) {
  .carousel-wrapper {
    height: 300px;
  }

  .carousel-slide img {
    max-height: 300px;
  }

  #carouselContainer,
  #specialNoteContainer,
  #demoLinks {
    margin-bottom: 0.75rem;
  }

  .modal-body {
    padding: 1rem;
  }

 .category-filter {
    flex-direction: column; 
    align-items: stretch;  
    overflow-x: visible;   
  }

  .filter-btn {
    width: 100%;
    text-align: center;
  }

  .footer-with-socials {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0.5rem 1rem;
  }

  .footer-socials {
    margin-top: 0.25rem;
  }
}
