/* //dark mode */
:root {
  --bg-main: #000000;
  --bg-section: #0f0f0f;
  --bg-card: #000000;
  --text-main: #e6edf3;
  --text-muted: rgb(161, 161, 170);
  --accent: #3b82f6;
}

/* Global */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-main);
  color: var(--text-main);
}

/* Navbar */
.navbar {
  /* background: rgba(13, 17, 23, 0.85) !important; */
  backdrop-filter: blur(10px);
}

.nav-link {
  color: var(--text-muted) !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent) !important;
}

/* Buttons */
.btn-primary {
  background-color: var(--accent);
  border: none;
}

.btn-outline-dark {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.btn-outline-dark:hover {
  background: var(--accent);
  color: #fff;
}

/* Cards */
.contact-card {
  background-color: var(--bg-card);
  border: 1px solid #222;
  color: var(--text-main);
}

/* Forms */
.form-control,
textarea {
  background-color: var(--bg-section);
  color: var(--text-main);
  border: 1px solid #2a2f36;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  background-color: var(--bg-section);
  color: var(--text-main);
  border-color: var(--accent);
  box-shadow: none;
}
/* Skills marquee */
.skill-box img {
  filter: grayscale(100%);
  transition: 0.3s;
}

.skill-box:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}
#about-contact {
  border-top: 1px solid #1f2933;
}

#about-contact h2,
#about-contact h4 {
  color: var(--text-main);
}

#about-contact .card {
  background: linear-gradient(145deg, #1f2933, #161b22);
}

/* Navbar */
nav{
  display: flex;
  justify-content: start;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 18px;
  
}


.nav-pill {
  background: rgba(42, 41, 41, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(12px);
  border: #414344 2px solid;

  border-radius: 15px;
  padding: 8px 10px;

}

.name {
  font-size: 1.2rem;
}

.nav-link {
  color: #9aa4b2;
}
.nav-link:hover {
  color: #ffffff;
}

/* Home */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.projects-wrapper1 {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 18px;
}

/* ULTRA SMOOTH MARQUEE */

.marquee-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  width: max-content;
  will-change: transform;
  position: relative;
  animation: marquee-smooth 25s linear infinite;
  transform: translate3d(0, 0, 0); /* GPU */
}

/* Skill item */
.skill-item {
  display: flex;
  align-items: center;
  min-width: 90px;
  white-space: nowrap;
}

.skill-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  /* image-rendering: auto; */
  backface-visibility: hidden;
}
.skill-item span {
  font-size: 1.5rem;
  color: var(--text-muted);
  white-space: nowrap;
}
@keyframes marquee-smooth {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
}
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}
.card {
  display: flex;
  background: transparent;
  border: none;
  box-shadow: none;
  justify-content: start;
  align-items: flex-start;
  /* margin-bottom: 50px; */
}
.card-body {
  border: #414344 2px solid;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 15px;
  width: max-content;
  max-width: calc(100vw - 34px);
  
}
/* Tabs */
#projects {
  margin-top: 80px;
}
.projects-wrapper {
  max-width: 1100px; /* SAME as skills */
  margin: 0 auto; /* centers section */
  padding: 0 18px; /* left & right margin */
}
#projects h2 {
  margin-bottom: 32px;
}
.project-tabs .nav-link {
  color: #9aa4b2;
  border: none;
  font-weight: 500;
}
.project-tabs .nav-link.active {
  color: #1f6feb;
  border-bottom: 2px solid #1f6feb;
  background: transparent;
}

.project-slider {
  max-width: 350px;
  /* margin-left: auto; */
}

/* Aspect ratio box */
.project-img {
  width: 100%;
  height: 600px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
}

/* Image fills box without stretch */
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================= FOOTER ================= */

.footer {
  background-color: #0d1117;
  border-top: 1px solid #1f2933;
}

.footer-icon {
  color: var(--text-muted);
  font-size: 1.3rem;
  margin-left: 15px;
  transition: 0.3s;
}

.footer-icon:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

/* Dark hamburger icon */
.navbar-toggler {
  filter: invert(1);
}

/* Offcanvas links hover */
.offcanvas .nav-link {
  color: #9da7b3;
  transition: 0.3s;
}

.offcanvas .nav-link:hover {
  color: #3b82f6;
  transform: translateX(5px);
}
/* ===== TESTIMONIALS ===== */

/* Wrapper */


.testimonial-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  /* position: relative; */

}

/* Slider */
.testimonial-slider {
  width: 100%;
  max-width: 600px;
}

/* Track */
.testimonial-track {
  display: flex;
  transition: transform 0.6s ease;
}

/* Card */
.testimonial-card {
  min-width: 100%;
  background: #0b0f14;
  border: 1px solid #1f6feb;
  border-radius: 18px;
  padding: 30px 25px;
  text-align: center;
  color: #9aa4b2;
  /* flex-shrink: 0; */
}

/* Avatar (chat/message style) */
.testimonial-avatar img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 2px solid #1f6feb;
}

/* Text */
.testimonial-text {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

/* Name */
.testimonial-name {
  margin-bottom: 2px;
  color: #ffffff;
}

/* Role */
.testimonial-role {
  font-size: 0.8rem;
  color: #9aa4b2;
}

/* Arrows */
.testimonial-arrow {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #9aa4b2;
  cursor: pointer;
}

.testimonial-arrow:hover {
  color: #ffffff;
}

.left-arrow {
  margin-right: 15px;
}

.right-arrow {
  margin-left: 15px;
}

/* fotter */

.footer {
  min-height: 10vh;
  display: flex;
  align-items: center;
}
.footer a:hover {
  color: #ffffff !important;
}

.para {
  color: rgb(161, 161, 170);
}
.express {
  filter: invert(1);
}
@media (max-width: 576px) {
  .nav-pill {
    height: 52px;
    font-size: 14px;
  }
}
