/* HERO SECTION */
.portfolio-hero {
    min-height: 70vh; /* Half of viewport height */
  background-image: url("/static/media/portfolio-bg.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  }
  .portfolio-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75); /* soft white overlay */
  }
  /* Overlay */
  .portfolio-hero-overlay {
    position: relative;
  text-align: center;
  max-width: 100%;
  padding: 20px;
  }
  
  /* Content */
  .portfolio-hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
  }
  
  /* Badge */
  .portfolio-hero-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 14px;
    font-size: 16px;
    font-weight: bold;
    color: rgb(255, 67, 5);
    background: rgba(245, 160, 90, 0.12);
    border-radius: 999px;
  }
  
  /* Heading */
  .portfolio-hero-heading {
    font-size: 3rem;
  color: white;
  text-align: center;
  margin-bottom: 1rem;
  }
  
  /* Subheading */
  .portfolio-hero-subheading {
    width: 80%;
    margin: auto;
    font-size: 18px;
    line-height: 1.7;
    color: #ffffff;
    margin-bottom: 32px;
    text-align: center;
  }
  
  /* CTA Wrapper */
  .portfolio-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;justify-content: center;
    align-items: center;

  }
  
  /* Primary Button */
  .portfolio-btn-primary {
    background-color: #ff4305 !important;
    color: white !important;
    padding: 14px 26px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease;
  }
  
  .portfolio-btn-primary:hover {
    background-color: rgb(247, 106, 6);
    transform: translateY(-2px);
  }
  
  /* Secondary Button */
  .portfolio-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 14px 26px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease;
  }
  
  .portfolio-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .portfolio-hero {
      padding: 0 6%;
    }
  
    .portfolio-hero-heading {
      font-size: 2.2rem;
    }
  
    .portfolio-hero-subheading {
      font-size: 16px;
    }
  }
  


  /* ===============================
     PROJECTS SECTION
  ================================ */
  .portfolio-projects-section {
    padding: 50px 1rem;
    background: #ffffff;
    
  }
  
  .portfolio-projects-container {
    width: 95%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;

    gap: 36px;
    align-items: center;
    justify-content: center;
  }
  
  /* ===============================
     PROJECT CARD
  ================================ */
  .portfolio-project-card {
    width: 30%;
    background: #ffffff;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
  }
  
  .portfolio-project-card:hover {
    transform: translateY(-6px);
  }
  
  /* ===============================
     IMAGE WRAPPER
  ================================ */
  .portfolio-project-image-wrapper {
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  }
  
  .portfolio-project-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.45s ease;
  }
  
  .portfolio-project-card:hover .portfolio-project-image {
    transform: scale(1.08);
  }
  
  /* ===============================
     OVERLAY
  ================================ */
  .portfolio-project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.817);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.35s ease;
  }
  
  .portfolio-project-card:hover .portfolio-project-overlay {
    opacity: 1;
    visibility: visible;
  }
  
  .portfolio-project-overlay h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
  }
  
  .portfolio-project-overlay p {
    font-size: 15px;
    line-height: 1.65;
    color: white;
    margin-bottom: 22px;
  }
  
  /* ===============================
     BUTTON
  ================================ */
  .portfolio-project-btn {
    background: #ff4305;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    margin: 0 auto;
  }
  
  /* ===============================
     NAME BADGE BELOW CARD
  ================================ */
  .portfolio-project-name-badge {
    margin: 18px auto 0;
    width: fit-content;
    background: #ff4305;
    color: white;
    z-index: 100;
    position: relative;  
    padding: 10px 20px;
    top: -2rem;
    font-size: 1.3rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(251, 146, 60, 0.35);
  }

  /* Hide name badge on card hover */
.portfolio-project-card:hover .portfolio-project-name-badge {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
  }

  /* ===============================
   PRODUCTS HEADER
================================ */
.portfolio-products-header {
    max-width: 820px;
    margin: 0 auto 70px;
    text-align: center;
  }
  
  .portfolio-products-heading {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ff4305;
    margin-bottom: 18px;
  }
  
  .portfolio-products-subheading {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #111;
  }
  
  
  /* ===============================
     RESPONSIVE
  ================================ */
  @media (max-width: 1100px) {
    .portfolio-projects-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 640px) {
    .portfolio-projects-container {
      grid-template-columns: 1fr;
    }
  
    .portfolio-project-image {
      height: 220px;
    }
  
    .portfolio-hero {
      min-height: auto;
      padding: 80px 6%;
    }
  }
  

  /* REview About Projects  */
  /* ===============================
   REVIEWS SECTION
================================ */
.portfolio-reviews-section {
    padding: 50px 0;
    background: #fff7f3;
    overflow: hidden;
  }
  
  .portfolio-reviews-header {
    text-align: center;
    
    margin: 0 auto 60px;
  }
  
  .portfolio-reviews-heading {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ff4305;
    margin-bottom: 14px;
  }
  
  .portfolio-reviews-subheading {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #111;
  }
  
  /* ===============================
     SCROLL ROWS
  ================================ */
  .portfolio-reviews-row {
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
    padding: 1rem;
  }
  
  .portfolio-reviews-track {
    display: flex;
    gap: 24px;
    width: max-content;
  }
  
  /* Left to Right */
  .portfolio-scroll-left .portfolio-reviews-track {
    animation: portfolio-scroll-left 15s linear infinite;
  }
  
  /* Right to Left */
  .portfolio-scroll-right .portfolio-reviews-track {
    animation: portfolio-scroll-right 15s linear infinite;
  }
  
  /* ===============================
     REVIEW CARD
  ================================ */
  .portfolio-review-card {
    width: 22rem;
    background: #ffffff;
    border-radius: 16px;
    padding: 0.5rem 1rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  }
  
  .portfolio-stars {
    color: #fb923c;
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .portfolio-review-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #111;
    margin-bottom: 14px;
  }
  
  .portfolio-review-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: #020617;
  }
  
  .portfolio-review-card span {
    font-size: 13px;
    color: #111;
  }
  
  /* ===============================
     ANIMATIONS
  ================================ */
  @keyframes portfolio-scroll-left {
    from {
      transform: translateX(-50%);
    }
    to {
      transform: translateX(0);
    }
  }
  
  @keyframes portfolio-scroll-right {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%);
    }
  }
  


  /* ===============================
   CTA SECTION
================================ */
.portfolio-cta-section {
    padding: 80px 6%;
    background: #ffffff;
  }
  
  .portfolio-cta-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
  }
  
  .portfolio-cta-content {
    width: 100%;
  }
  
  .portfolio-cta-heading {
    font-size: 4.5rem;
    font-weight: 700;
    color: #ff4305;
    margin-bottom: 14px;
  }
  
  .portfolio-cta-subheading {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #111;
  }
  
  /* Button */
  .portfolio-cta-btn {
    background: #ff4305;
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  
  .portfolio-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(251, 146, 60, 0.35);
  }
  
  /* ===============================
     RESPONSIVE
  ================================ */
  @media (max-width: 768px) {
    .portfolio-cta-container {
      flex-direction: column;
      align-items: flex-center;
    }
  
    .portfolio-cta-btn {
      margin-top: 20px;
    }
  }
  


 
/* =========================================
   HERO SECTION
========================================= */
@media (max-width: 1024px) {
  .portfolio-hero-heading {
    font-size: 2.6rem;
  }

  .portfolio-hero-subheading {
    width: 95%;
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .portfolio-hero {
    min-height: auto;
    padding: 90px 6%;
  }

  .portfolio-hero-heading {
    font-size: 2.1rem;
  }

  .portfolio-hero-subheading {
    font-size: 15px;
  }

  .portfolio-hero-actions {
    gap: 12px;
  }
}

/* =========================================
   PRODUCTS HEADER
========================================= */
@media (max-width: 768px) {
  .portfolio-products-heading {
    font-size: 2.2rem;
  }

  .portfolio-products-subheading {
    font-size: 15px;
  }
}

/* =========================================
   PROJECT GRID
========================================= */
@media (max-width: 1200px) {
  .portfolio-project-card {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .portfolio-projects-container {
    gap: 30px;
  }

  .portfolio-project-card {
    width: 100%;
    max-width: 420px;
  }

  .portfolio-project-image {
    height: 210px;
  }

  .portfolio-project-name-badge {
    font-size: 1.1rem;
    padding: 8px 16px;
  }
}

/* =========================================
   PROJECT OVERLAY MOBILE UX
========================================= */
@media (max-width: 768px) {
  .portfolio-project-overlay {
    padding: 20px;
  }

  .portfolio-project-overlay p {
    font-size: 14px;
  }

  .portfolio-project-btn {
    font-size: 14px;
    padding: 10px 20px;
  }
}

/* =========================================
   REVIEWS SECTION
========================================= */
@media (max-width: 1024px) {
  .portfolio-reviews-heading {
    font-size: 2.6rem;
  }
}

@media (max-width: 768px) {
  .portfolio-reviews-heading {
    font-size: 2.2rem;
  }

  .portfolio-reviews-subheading {
    font-size: 15px;
    padding: 0 16px;
  }

  .portfolio-review-card {
    width: 18rem;
  }

  .portfolio-scroll-left .portfolio-reviews-track,
  .portfolio-scroll-right .portfolio-reviews-track {
    animation-duration: 22s;
  }
}

/* =========================================
   CTA SECTION
========================================= */
@media (max-width: 1024px) {
  .portfolio-cta-heading {
    font-size: 3.2rem;
  }
}

@media (max-width: 768px) {
  .portfolio-cta-container {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .portfolio-cta-heading {
    font-size: 2.4rem;
  }

  .portfolio-cta-subheading {
    font-size: 15px;
  }

  .portfolio-cta-btn {
    font-size: 1.05rem;
    padding: 12px 26px;
  }
}

/* =========================================
   SMALL MOBILE SAFETY
========================================= */
@media (max-width: 420px) {
  .portfolio-review-card {
    width: 16rem;
  }

  .portfolio-project-name-badge {
    font-size: 1rem;
  }
}

/* =========================================
   OVERFLOW PROTECTION
========================================= */
@media (max-width: 768px) {
  body,
  .portfolio {
    overflow-x: hidden;
  }
}
