/* ===================================
   ENHANCED PORTFOLIO CSS WITH ANIMATIONS
   Updated with new color palette
   =================================== */

/* Container (scoped) */
.container-portfolio {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
  }
  
  /* Hero Section (scoped) */
  .hero-section-portfolio {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    text-align: center;
  }
  
  /* Animated Background with Parallax */
  .hero-background-portfolio {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    z-index: 1;
    transform: scale(1.1);
    animation: hero-parallax 20s ease-in-out infinite alternate;
  }
  
  @keyframes hero-parallax {
    0% { transform: scale(1.1) translateY(0); }
    100% { transform: scale(1.15) translateY(-20px); }
  }
  
  .hero-overlay-portfolio {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, hsla(220, 13%, 18%, 0.6) 0%, hsla(220, 13%, 18%, 0.8) 100%);
    z-index: 2;
    animation: overlay-pulse 4s ease-in-out infinite;
  }
  
  @keyframes overlay-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
  }
  
  .hero-content-portfolio {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 4rem 0;
    margin: 0 auto;
    animation: hero-fade-in 1s ease-out;
  }
  
  @keyframes hero-fade-in {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Badge with Glow Effect */
  .hero-badge-portfolio {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: hsla(0, 0%, 100%, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(0, 0%, 100%, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    animation: badge-slide-down 0.8s ease-out 0.2s both;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .hero-badge-portfolio::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--premium-gradient);
    border-radius: 50px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
  }
  
  .hero-badge-portfolio:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(239, 168, 16, 0.3);
    border-color: rgba(239, 168, 16, 0.5);
  }
  
  .hero-badge-portfolio:hover::before {
    opacity: 1;
    animation: glow-rotate 2s linear infinite;
  }
  
  @keyframes glow-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  @keyframes badge-slide-down {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .hero-badge-portfolio i {
    animation: icon-spin 3s ease-in-out infinite;
    color: var(--primary-red);
  }
  
  @keyframes icon-spin {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(360deg); }
  }
  
  /* Title with Split Animation */
  .hero-title-portfolio {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: title-reveal 1s ease-out 0.4s both;
    position: relative;
  }
  
  @keyframes title-reveal {
    from {
      opacity: 0;
      transform: translateY(40px) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  .hero-title-portfolio span {
    display: block;
    color: hsla(0, 0%, 100%, 0.9);
    animation: span-slide 0.8s ease-out 0.8s both;
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  @keyframes span-slide {
    from {
      opacity: 0;
      transform: translateX(-30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* Subtitle with Typewriter Effect */
  .hero-subtitle-portfolio {
    font-size: 1.25rem;
    color: hsla(0, 0%, 100%, 0.9);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: subtitle-fade 1.2s ease-out 1s both;
    position: relative;
  }
  
  @keyframes subtitle-fade {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Stats with Counter Animation */
  .hero-stats-portfolio {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 1rem 2rem;
    align-items: center;
    justify-content: center;
    margin: 0 auto 3rem;
    max-width: 600px;   /* <-- was 50px */
  }
  
  /* keep things perfectly centered inside the icon box */
  .stat-icon-portfolio {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;      /* important for vertical centering */
  }
  
  .stat-icon-portfolio i {
    font-size: 1.25rem;
    line-height: 1;
  }
  /* Override the old 50px constraint */
.hero-section-portfolio .hero-stats-portfolio {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 640px !important; /* ensures we beat the earlier rule */
  margin: 0 auto 3rem;
}

/* Keep the contents in a single line inside each stat */
.stat-item-portfolio {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Icon box centering */
.stat-icon-portfolio {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.stat-icon-portfolio i {
  font-size: 1.25rem;
  line-height: 1;
}

/* Optional: stack on mobile */
@media (max-width: 768px) {
  .hero-section-portfolio .hero-stats-portfolio {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}
.stat-item-portfolio:nth-child(1) { --i: 0; }
.stat-item-portfolio:nth-child(2) { --i: 1; }
  
  .stat-item-portfolio:hover {
    transform: translateY(-5px);
  }
  
  @keyframes stat-bounce {
    0% {
      opacity: 0;
      transform: translateY(30px) scale(0.8);
    }
    70% {
      transform: translateY(-5px) scale(1.05);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  .stat-icon-portfolio {
    width: 3rem;
    height: 3rem;
    background: hsla(0, 0%, 100%, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .stat-icon-portfolio::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--premium-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .stat-item-portfolio:hover .stat-icon-portfolio {
    background: hsla(0, 0%, 100%, 0.2);
    transform: rotate(360deg);
  }
  
  .stat-item-portfolio:hover .stat-icon-portfolio::before {
    opacity: 0.3;
  }
  
  .stat-icon-portfolio i {
    z-index: 1;
    transition: transform 0.3s ease;
    color: var(--primary-red);
  }
  
  .stat-item-portfolio:hover .stat-icon-portfolio i {
    transform: scale(1.2);
  }
  
  /* Animated Counter Numbers */
  .stat-number-portfolio {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    position: relative;
    overflow: hidden;
  }
  
  .stat-label-portfolio {
    color: hsla(0, 0%, 100%, 0.8);
    font-size: 0.875rem;
    line-height: 1.2;
  }
  
  /* CTA with Ripple Effect */
  .hero-cta-portfolio {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: cta-fade 0.8s ease-out 1.8s both;
  }
  
  @keyframes cta-fade {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Enhanced Buttons */
  .btn-portfolio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
  }
  
  .btn-portfolio::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: hsla(0, 0%, 100%, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }
  
  .btn-portfolio:hover::before {
    width: 300px;
    height: 300px;
  }
  
  .btn-professional-white-portfolio {
    background: white;
    color: var(--primary-red);
    border-color: white;
    box-shadow: 0 8px 30px hsla(0, 0%, 0%, 0.15);
  }
  
  .btn-professional-white-portfolio:hover {
    background: var(--off-white-bg);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px hsla(0, 0%, 0%, 0.25);
  }
  
  .btn-professional-white-portfolio i {
    transition: transform 0.3s ease;
  }
  
  .btn-professional-white-portfolio:hover i {
    transform: translateX(5px);
  }
  
  .btn-professional-outline-portfolio {
    background: transparent;
    color: white!important;
    border-color: white;
    position: relative;
  }
  
  .btn-professional-outline-portfolio::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--premium-gradient);
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
  }
  
  .btn-professional-outline-portfolio:hover {
    background: white;
    color: #000000;
    transform: translateY(-3px) scale(1.05);
  }
  
  .btn-professional-outline-portfolio:hover::after {
    opacity: 1;
    animation: gradient-shift 3s ease infinite;
  }
  
  @keyframes gradient-shift {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
  }
  
  /* Scroll Indicator Enhanced */
  .scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: scroll-bounce 2s ease-in-out infinite;
  }
  
  @keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
  }
  
  .scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid hsla(0, 0%, 100%, 0.3);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    transition: border-color 0.3s ease;
  }
  
  .scroll-indicator:hover .scroll-mouse {
    border-color: var(--primary-red);
  }
  
  .scroll-wheel {
    width: 4px;
    height: 12px;
    background: hsla(0, 0%, 100%, 0.5);
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
  }
  
  @keyframes scroll-wheel {
    0%, 20% {
      opacity: 1;
      transform: translateY(0);
    }
    100% {
      opacity: 0;
      transform: translateY(12px);
    }
  }
  
  /* ===================================
     PORTFOLIO SECTION ANIMATIONS
     =================================== */
  
  .portfolio-section-portfolio {
    padding: 5rem 0;
    background: var(--off-white-bg);
    position: relative;
    overflow: hidden;
  }
  
  /* Animated Background Pattern */
  .portfolio-section-portfolio::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(239, 168, 16, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: pattern-drift 20s linear infinite;
    z-index: 0;
  }
  
  @keyframes pattern-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
  }
  
  /* Section Header with Reveal Animation */
  .section-header-portfolio {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
  }
  
  .section-title-portfolio {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-text);
    position: relative;
    display: inline-block;
    animation: title-slide-up 0.8s ease-out both;
  }
  
  @keyframes title-slide-up {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Animated Underline */
  .section-title-portfolio::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--premium-gradient);
    animation: underline-expand 0.8s ease-out 0.4s both;
  }
  
  @keyframes underline-expand {
    to {
      width: 100px;
    }
  }
  
  .section-subtitle-portfolio {
    font-size: 1.125rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: subtitle-fade-in 0.8s ease-out 0.6s both;
    position: relative;
  }
  
  @keyframes subtitle-fade-in {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Projects Grid with Stagger Animation */
  .projects-grid-portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
  }
  
  /* Enhanced Project Cards */
  .project-card-portfolio {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(29, 33, 39, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    animation: card-fade-up 0.8s ease-out both;
    animation-delay: calc(0.8s + var(--card-index) * 0.15s);
  }
  
  .project-card-portfolio:nth-child(1) { --card-index: 0; }
  .project-card-portfolio:nth-child(2) { --card-index: 1; }
  .project-card-portfolio:nth-child(3) { --card-index: 2; }
  .project-card-portfolio:nth-child(4) { --card-index: 3; }
  .project-card-portfolio:nth-child(5) { --card-index: 4; }
  .project-card-portfolio:nth-child(6) { --card-index: 5; }
  
  @keyframes card-fade-up {
    from {
      opacity: 0;
      transform: translateY(50px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  /* Card Hover Effects */
  .project-card-portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--premium-gradient);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
  }
  
  .project-card-portfolio:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(239, 168, 16, 0.15);
  }
  
  .project-card-portfolio:hover::before {
    opacity: 0.05;
  }

  /* Image Container with Zoom Effect */
.project-image-portfolio {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;             /* keep overlay + styling neat */
  height: auto !important;      
  border-radius: 12px;
  background: linear-gradient(180deg, #f5f5f5, #ddd)!important; /* 🎨 subtle gradient */
  background-size: cover!important;       /* blurred bg fills space */
  background-position: center!important;

}


.project-image-portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;          /* use same bg as set on parent */
  filter: blur(20px) brightness(0.9);
  transform: scale(1.2);        /* enlarge so blur covers edges */
  z-index: 0;
}

  
  .project-image-portfolio::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 80%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-20deg);
  transition: left 0.8s ease;
}
  
  .project-card-portfolio:hover .project-image-portfolio::after {
  left: 120%;
}

.project-image-portfolio img {
  position: relative!important;
  z-index: 1;
  margin: auto!important;                 /* ✅ centers horizontally + vertically */

  max-width: 100% !important;   /* ✅ shrink to fit card width */
  max-height: 100% !important;  /* ✅ shrink to fit card height */
  height: auto !important;

  width: auto !important;       /* ✅ no forced stretching */
  object-fit: contain !important;
  display: block;
}
  
  .project-card-portfolio:hover .project-image-portfolio img {
  transform: scale(1.08) rotate(1deg);
  filter: brightness(1.15) contrast(1.05);
}

  
  /* Enhanced Overlay with Multiple Layers */
  .project-overlay-portfolio {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29,33,39,0.95), rgba(29,33,39,0.6), transparent);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.4s ease;
  z-index: 2; /* <-- THE FIX: Ensures overlay is on top of the image */
}
  
  /* Overlay Background Animation */
  .project-overlay-portfolio::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(239, 168, 16, 0.8) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: overlay-pulse-rotate 3s linear infinite;
  }
  
  @keyframes overlay-pulse-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .project-card-portfolio:hover .project-overlay-portfolio {
    opacity: 1;
  }
  
  .project-card-portfolio:hover .project-overlay-portfolio::before {
    opacity: 0.3;
  }
  
  /* Project Info with Slide Animation */
.project-info-portfolio {
  background: rgba(255, 255, 255, 0.6); /* Lighter "glass" effect */
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 1rem 1.25rem; /* Adjusted padding */
  color: #fff;
  text-align: left; /* Changed to left-aligned */
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  width: auto; /* Allow box to shrink to content */
  min-width: 200px; /* Set a minimum width */
  margin: 1rem; /* Margin from the edges of the card */

  /* Use flexbox to visually reorder elements */
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align children to the left */
}
  
 .project-card-portfolio:hover .project-info-portfolio {
  transform: translateY(0);
  opacity: 1;
}
  
  /* Project Title with Glow */
.project-title-portfolio {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  justify-content: center!important;
  gap: .5rem;
  color: var(--primary-red);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  position: relative;
}
/* Force remove underline line under project title */
.project-title-portfolio::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: none !important;
}

  
  .project-card-portfolio:hover .project-title-portfolio::before {
    width: 100%;
  }
  
  /* Category with Badge Style */
  .project-category-portfolio {
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  background: rgba(239,168,16,0.15);
  padding: .4rem .9rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}
  .project-card-portfolio:hover .project-category-portfolio {
  background: var(--primary-red);
  color: #fff;
  box-shadow: 0 0 12px rgba(239,168,16,0.6);
}

  /* Loading Animation for Images */
  @keyframes image-skeleton {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
  }
  
  .project-image-portfolio.loading {
    background: linear-gradient(
      90deg,
      #e8eaed 25%,
      #f7f8fa 50%,
      #e8eaed 75%
    );
    background-size: 200% 100%;
    animation: image-skeleton 1.5s ease-in-out infinite;
  }
  
  /* Intersection Observer Animations */
  .project-card-portfolio.animate-in {
    animation: card-slide-in 0.6s ease-out both;
  }
  
  @keyframes card-slide-in {
    from {
      opacity: 0;
      transform: translateX(-30px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateX(0) scale(1);
    }
  }
  
  /* Mobile Optimizations */
  @media (max-width: 768px) {
    .container-portfolio {
      padding: 0 1rem;
    }
  
    .hero-content-portfolio {
      padding: 2rem 0;
    }
  
    .hero-stats-portfolio {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
  
    .stat-item-portfolio {
      justify-content: center;
      text-align: center;
    }
  
    .hero-cta-portfolio {
      flex-direction: column;
      align-items: center;
    }
  
    .hero-cta-portfolio .btn-portfolio {
      width: 100%;
      max-width: 300px;
    }
  
    .projects-grid-portfolio {
      gap: 1.5rem;
    }
  
    /* Reduce animations on mobile for performance */
    .hero-background-portfolio {
      animation: none;
    }
  
    .project-card-portfolio:hover {
      transform: translateY(-4px) scale(1.01);
    }
  
    .project-image-portfolio img {
      transition-duration: 0.3s;
    }
  }
  
  @media (max-width: 480px) {
    .portfolio-section-portfolio {
      padding: 3rem 0;
    }
  
    .projects-grid-portfolio {
      grid-template-columns: 1fr;
    }
  
    .section-title-portfolio {
      font-size: 2rem;
    }
  
    .hero-title-portfolio {
      font-size: 2rem;
    }
  
    .hero-subtitle-portfolio {
      font-size: 1rem;
    }
  }
  
  /* Accessibility - Reduced Motion */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  
    .scroll-indicator {
      display: none;
    }
  }
  
  /* High Contrast Mode Support */
  @media (prefers-contrast: high) {
    .project-card-portfolio {
      border: 2px solid var(--dark-text);
    }
  
    .btn-portfolio {
      border-width: 3px;
    }
  
    .hero-badge-portfolio {
      background: var(--dark-text);
      color: white;
    }
  }
  
  /* Dark Mode Support (if needed) */
  @media (prefers-color-scheme: dark) {
    .portfolio-section-portfolio {
      background: var(--dark-bg);
    }
  
    .project-card-portfolio {
      background: var(--accent-orange);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
  
    .section-title-portfolio,
    .section-subtitle-portfolio {
      color: white;
    }
  
    .project-card-portfolio:hover {
      box-shadow: 0 20px 40px rgba(239, 168, 16, 0.25);
    }
  }
  
  /* Print Styles */
  @media print {
    .hero-section-portfolio {
      min-height: auto;
      padding: 2rem 0;
    }
  
    .portfolio-section-portfolio {
      padding: 2rem 0;
    }
  
    .project-card-portfolio {
      break-inside: avoid;
      box-shadow: none;
      border: 1px solid #ddd;
    }
  
    .project-overlay-portfolio {
      display: none;
    }
  
    @page {
      margin: 1in;
    }
  }
  
  
  
  /* View Details button */
.project-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  background: var(--primary-red);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}
.project-btn:hover {
  background: transparent;
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239,168,16,0.4);
}