.navbar-nav {
  margin-left: auto;
}

/* Base background */

body {
  margin: 0;
}

.noise-bg {
  position: fixed;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='6' numOctaves='1'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='discrete' tableValues='0.35 0.65'/%3E%3CfeFuncG type='discrete' tableValues='0 1'/%3E%3CfeFuncB type='discrete' tableValues='0 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: luminosity;
  z-index: -1;
  pointer-events: none;
  animation: noise-animation 0.6s steps(2) infinite;
}

@keyframes noise-animation {
  0% {
    transform: translate(0,0);
  }
  10% {
    transform: translate(-5%,-5%);
  }
  20% {
    transform: translate(-10%,5%);
  }
  30% {
    transform: translate(5%,-10%);
  }
  40% {
    transform: translate(-5%,15%);
  }
  50% {
    transform: translate(-10%,5%);
  }
  60% {
    transform: translate(15%,0);
  }
  70% {
    transform: translate(0,10%);
  }
  80% {
    transform: translate(-15%,0);
  }
  90% {
    transform: translate(10%,5%);
  }
  100% {
    transform: translate(5%,0);
  }
}

:root {
  --bs-font-sans-serif: "Azeret Mono", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Navbar link hover color */

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link:hover span {
  color: #ff4400 !important;
}

/* Navbar brand hover color */

.navbar-brand:hover, 
.navbar-brand:hover span {
  color: #ff4400 !important;
}

.profile-pic {
  width: clamp(120px, 18vw, 220px);
  height: clamp(120px, 18vw, 220px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.about-title {
  position: relative;
  display: inline-block;
}

.about-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  background-color: #ff4400;
}

.projects-title {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.projects-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: #ff4400;
}

/* Project card buttons hover / focus / active */

#projects .btn {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#projects .btn:hover,
#projects .btn:focus,
#projects .btn:active {
  background-color: #ff4400 !important;
  border-color: #ff4400 !important;
}

#projects .btn:hover {
  transform: translateY(-1px);
}

.connect-icons i {
    font-size: 3rem;
    color: #ffffff;
    transition: color 0.2s ease, transform 0.2s ease;
}

.connect-icon:hover i {
    color: #ff4400;
    transform: translateY(-3px);
}

/* Filter tabs */
.project-filters .filter-btn{
  background: transparent;
  border: 0;
  color: #ffffff;
  font-family: "Azeret Mono", monospace;
  padding: 6px 10px;
  position: relative;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.project-filters .filter-btn:hover{
  opacity: 1;
  color: #ff4400;
}

.project-filters .filter-btn.active{
  opacity: 1;
  color: #ff4400;
}

/* Give space for the underline INSIDE the button */
.project-filters .filter-btn{
  padding: 6px 10px 10px; /* extra bottom padding */
}

/* Underline sits inside the button so it never gets clipped */
.project-filters .filter-btn.active::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;           /* inside the button now */
  height: 2px;
  background: #ff4400;
}

/* ---- Project filter animations (FLIP + fade) ---- */
.projects-grid{
  position: relative; /* host leaving clones */
}

.project-item{
  will-change: transform, opacity;
  transition: opacity 300ms ease, transform 300ms ease;
}

.project-item.entering{
  opacity: 0;
  transform: scale(0.96);
}

.leaving-clone{
  will-change: transform, opacity;
  transition: opacity 300ms ease, transform 300ms ease;
}

.leaving-clone.leaving{
  opacity: 0;
  transform: scale(0.96);
}

/* Footer container */
.footer-basic {
  padding: 24px 0;
  color: #ffffff;
  text-align: center;
}

/* Center the nav items */
.footer-basic ul {
  padding: 0;
  margin: 0 0 16px 0;
  list-style: none;
}

/* Inline list spacing */
.footer-basic ul li {
  margin: 0 12px;
}

/* Footer links */
.footer-basic ul li a {
  color: #ffffff;
  text-decoration: none;          /* removes underline */
  font-size: 16px;
  transition: color 0.2s ease;
}

/* Hover / focus state */
.footer-basic ul li a:hover,
.footer-basic ul li a:focus {
  color: #ff4400;                 /* your accent color */
  text-decoration: none;
}

/* Copyright text */
.footer-basic .copyright {
  font-size: 14px;
  color: #262626;
  margin: 0;
  opacity: 0.7;
}

/* ==============================
   Collapsible project filters
   ============================== */

.project-filters {
  /* This ensures extra buttons are actually hidden when the height shrinks */
  overflow: hidden; 
  /* Smooth animation */
  transition: max-height 0.4s ease-out;
}

/* Optional: Ensures the toggle button looks clickable */
#projectFiltersToggle {
  background: transparent;
  border: none;               /* Remove border */
  padding: 0;                 /* Remove button padding */
  color: #808080;
  font-family: 'Azeret Mono', monospace;
  font-size: 14px;
  cursor: pointer;
  
  /* Flexbox to stack text and icon */
  display: flex;
  flex-direction: column;     /* Stacks text on top, icon on bottom */
  align-items: center;        /* Centers them */
  gap: 0;                   /* Space between word and symbol */
  line-height: 1;
  margin-top: 0;            
  transition: color 0.2s ease;
}


