body {

 /* background-color: #f6f6f6; */
}

.hero {
  background: url("../images/portfolio_header.png") right/cover no-repeat;
}

.hero-strip-inner {
    /* padding-top: 122px; */
    /* padding-top: 5rem; */
    /* height: 100px; */
}


/* ===================== Portfolio Showcase ===================== */

.portfolio-showcase {
  /* padding: 80px 0; */
  padding: 50px 0;
  background-color: #17181A;
}

/* ---------- Stats Bar ---------- */
.portfolio-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  /* padding: 40px 60px; */
  padding: 14px 40px;
  /* border-radius: 80px; */
  border-radius: 1.25rem;
  border: 2px solid grey;
  /* background: #f8f8f8; */
  /* background: #444444; */
  background-image: linear-gradient(360deg, #222, #555);
  margin: 0 4rem;
  /* margin-bottom: 100px; */
}

.portfolio-stats .stat {
  text-align: center;
  flex: 1;
}

.portfolio-stats h3 {
  /* font-size: 48px; */
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 10px;
}

.portfolio-stats p {
  font-size: 16px;
  /* font-size: 12px; */
  /* color: #666; */
  color: #fff;
}

.portfolio-stats .divider {
  width: 1px;
  height: 60px;
  background: #ddd;
}

/* ---------- Portfolio Head ---------- */
.portfolio-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  /* margin-bottom: 80px; */
  /* padding: 0 48px; */
}

.portfolio-head h3 {
  /* font-size: 42px; */
  font-size: 36px;;
  line-height: 1.2;
  /* font-weight: 700; */
  font-weight: 600;
}

.portfolio-head .tags {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.portfolio-head .tags span {
  /* padding: 10px 18px; */
    padding: 5px 16px;
  /* border-radius: 30px; */
  border-radius: 18px;
  /* font-size: 14px; */
  font-size: 16px;
  /* background: #f2f2f2; */
  background: hsla(0 10% 20% / .12);
  border: 1px solid #fff;
  /* color: #333; */
  color: #fff;
  cursor: default;
}

/* ---------- Portfolio Banner ---------- */
.portfolio-banner {
    /* display: flex; */
    overflow: hidden;
    /* padding: 0 48px; */
    padding-top: 70px;
}

.portfolio-banner img {
    border-radius: 24px;
    /* height: 437px; */
    height: 450px;
    width: 1200px;
    /* width: 100%; */
}


/* ---------- Portfolio Grid ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  /* gap: 50px; */
  /* padding-top: 2rem; */
  /* padding: 0 48px; */
  padding-top: 30px;
}

/* ---------- Portfolio Card ---------- */
.portfolio-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}

/* Image Cards */
.portfolio-card.large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

/* Arrow Button */
.portfolio-card .arrow {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.portfolio-card .arrow:hover {
  transform: translateY(-4px);
}

/* Text Cards */
.portfolio-card.text {
  /* padding: 40px; */
  padding: 40px 20px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-card.text p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

/* Card Footer */
.card-footer {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-footer a {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
}

.card-footer a:hover {
  text-decoration: underline;
}

.card-footer .badge {
  padding: 8px 14px;
  /* border-radius: 20px; */
  border-radius: 12px;
  font-size: 13px;
  /* background: #f1f1f1; */
  background: #17181A;
  /* color: #333; */
  color: #fff;
}


/* ===============================
   Portfolio CTA Section
================================ */

.portfolio-cta {
  background: #ffffff;
  border-radius: 12px;
  /* margin: 80px auto; */
  margin: 20px auto;
}

.portfolio-cta-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  /* padding: 60px 40px; */
  padding: 20px 40px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.portfolio-cta-content h4 {
  /* font-size: 16px; */
  font-size: 22px;
  font-weight: 500;
  color: #111;
  margin-bottom: 12px;
}

.portfolio-cta-content h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  /* color: #0b5ed7;  */
  background-image: linear-gradient(120deg, #0D47A1, #00B5D2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portfolio-cta-btn {
  flex-shrink: 0;
}

.cta-btn-outline {
  display: inline-block;
  /* padding: 14px 36px; */
  padding: 14px 100px;
  border: 2px solid #f4a261;
  color: #f4a261;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* .cta-btn-outline:hover {
  background: #f4a261;
  color: #fff;
} */


/* ===================== Testimonials Section ===================== */

.testimonials {
  /* padding: 100px 0; */
  padding: 40px 0 150px;
  /* background: #ffffff; */
  background-image: url("../images/testimonial.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  text-align: center;
  /* height: 100vh; */
}

/* ---------- Headings ---------- */
.testimonials h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #111;
}

.testimonials .subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 70px;
}

/* ---------- Cards Wrapper ---------- */
.testimonial-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 60px;
}

/* ---------- Testimonial Card ---------- */
.testimonial-card {
  /* width: 420px; */
  width: 460px;
  background: #fff;
  /* border: 2px solid #e5e5e5; */
  border: 2.5px solid grey;
  border-radius: 12px;
  /* padding: 35px; */
  padding: 20px;
  position: relative;
  text-align: left;
}

/* Speech bubble arrow */
.testimonial-card::after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 60px;
  border-width: 18px 18px 0 18px;
  border-style: solid;
  /* border-color: #e5e5e5 transparent transparent transparent; */
  border-color: grey transparent transparent transparent;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 61px;
  border-width: 16px 16px 0 16px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
  z-index: 1;
}

/* ---------- Stars ---------- */
.stars {
  color: #f9a825;
  font-size: 18px;
  margin-bottom: 15px;
}

/* ---------- Content ---------- */
.testimonial-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 25px;
}

/* ---------- User Info ---------- */
.user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.user h4 {
  /* font-size: 15px; */
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #111;
}

.user span {
  font-size: 13px;
  color: #666;
}

/* ---------- Floating Avatars ---------- */
.floating-avatar {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
}

.floating-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Positioning based on Figma */
.avatar-left-top {
  left: -80px;
  top: -40px;
}

.avatar-left-bottom {
  left: -80px;
  bottom: -20px;
}

.avatar-right-top {
  right: -80px;
  top: -40px;
}

.avatar-right-bottom {
  right: -80px;
  bottom: -20px;
}

/* ---------- Pagination Dots ---------- */
.testimonial-dots {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.testimonial-dots span {
  width: 10px;
  height: 4px;
  background: #ccc;
  border-radius: 10px;
}

.testimonial-dots span.active {
  width: 25px;
  background: #000;
}




/* =========================================================
   RESPONSIVE STYLES
========================================================= */

/* ---------- Large screens (≤ 1390px) ---------- */
@media (max-width: 1390px) {
  .portfolio-stats {
    margin: 0 2rem;
    gap: 24px;
  }

  .portfolio-banner img {
    width: 100%;
    height: auto;
  }
}

/* ---------- Tablets (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  /* Stats */
  .portfolio-stats {
    flex-wrap: wrap;
    padding: 20px;
  }

  .portfolio-stats .divider {
    display: none;
  }

  .portfolio-stats h3 {
    font-size: 32px;
  }

  /* Head */
  .portfolio-head {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .portfolio-head h3 {
    font-size: 30px;
  }

  /* Grid */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .portfolio-cta-wrapper {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .cta-btn-outline {
    padding: 14px 60px;
  }

  /* Testimonials */
  .testimonial-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .testimonial-card {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  /* Hide floating avatars */
  .floating-avatar {
    display: none;
  }
}

/* ---------- Mobile (≤ 768px) ---------- */
@media (max-width: 768px) {
  /* Stats */
  .portfolio-stats {
    flex-direction: column;
    gap: 20px;
    margin: 0 1rem;
  }

  .portfolio-stats h3 {
    font-size: 28px;
  }

  /* Tags */
  .portfolio-head .tags {
    flex-wrap: wrap;
  }

  .portfolio-head .tags span {
    font-size: 14px;
    padding: 6px 14px;
  }

  /* Banner */
  .portfolio-banner {
    padding-top: 40px;
  }

  .portfolio-banner img {
    border-radius: 16px;
  }

  /* Cards */
  .portfolio-card.text {
    padding: 25px 18px;
  }

  .portfolio-card .arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  /* CTA */
  .portfolio-cta-content h2 {
    font-size: 26px;
  }

  /* Testimonials */
  .testimonials h2 {
    font-size: 32px;
  }

  .testimonials .subtitle {
    margin-bottom: 40px;
  }
}

/* ---------- Small Mobile (≤ 480px) ---------- */
@media (max-width: 480px) {
  /* Stats */
  .portfolio-stats h3 {
    font-size: 24px;
  }

  .portfolio-stats p {
    font-size: 14px;
  }

  /* Head */
  .portfolio-head h3 {
    font-size: 24px;
  }

  /* CTA */
  .cta-btn-outline {
    width: 100%;
    padding: 14px 40px;
  }

  .portfolio-cta {
    background: url("../images/portfolio-cta-bg2.jpg") left/cover no-repeat;
    position: relative;
    border-radius: 0;
  }

  .portfolio-cta-overlay{
    /* position: absolute; */
    /* inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1; */
    position: absolute;
    inset: 0;
    /* background: linear-gradient(
      rgba(0, 0, 0, 0.75),
      rgba(0, 0, 0, 0.6)
    ); */
    background: rgba(0,0,0,0.5);
    z-index: 1;
  }

    .portfolio-cta-content {
      z-index: 10;
    }

  .portfolio-cta-content h4 {
    color: #fff;
  }

  .portfolio-cta-btn {
    z-index: 10;
  }


  .testimonials {
    padding-bottom: 20px;
  }

  .testimonial-wrapper {
    padding: 0 40px;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 18px;
  }

  .testimonial-card p {
    font-size: 14px;
  }

  .user h4 {
    font-size: 15px;
  }
}
