/* Vanilla Portfolio page styles converted from React Portfolio.css */
.portfolio-hero { height: 70vh; min-height: 500px; display: flex; align-items: center; justify-content: center; margin-top: -80px; padding-top: 80px; }
.hero-overlay { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.hero-content { text-align: center; color: var(--white); max-width: 900px; }
.portfolio-hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--primary-yellow); text-shadow: 0 8px 28px rgba(0,0,0,.35); letter-spacing: .3px; }
.hero-subtitle { font-size: 1.3rem; opacity: .95; margin-bottom: 3rem; line-height: 1.6; }
.hero-stats { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.hero-stat { text-align: center; background: rgba(0,0,0,0.28); padding: 1.5rem; border-radius: 1rem; backdrop-filter: blur(10px); min-width: 150px; border:1px solid rgba(255,215,0,0.35); }
/* High specificity to override the global style.css which sets .stat-number to dark green. */
.portfolio-hero .hero-stat .stat-number { font-size: 2.5rem; font-weight: 800; line-height: 1; margin: 0 0 .5rem; color: #FFD700; }
.portfolio-hero .hero-stat .stat-label  { font-size: .95rem; color: rgba(255,255,255,0.95); opacity: 1; }

.portfolio-section { padding: 5rem 0; background: #f9fafb; }
.portfolio-filters { margin-bottom: 3rem; }
.filters-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.filters-header h2 { color: var(--primary-green); margin: 0; font-size: 2.5rem; letter-spacing:.2px; }
.filter-buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.filter-btn { background: #fff; border: 2px solid var(--gray-200); color: var(--gray-700); padding: .75rem 1.5rem; border-radius: 999px; font-weight: 700; cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: .5rem; }
.filter-btn:hover { border-color: var(--primary-green); color: var(--primary-green); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,42,0.08); }
.filter-btn-active { background: var(--primary-green); border-color: var(--primary-green); color: var(--primary-yellow); box-shadow: 0 12px 30px rgba(15,23,42,0.12); }
.filter-count { background: rgba(255,215,0,0.16); padding: .25rem .5rem; border-radius: 1rem; font-size: .8rem; color: var(--primary-yellow); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 2rem; }
.project-card { background: #fff; border-radius: 1.25rem; overflow: hidden; box-shadow: 0 8px 24px rgba(15,23,42,0.06); transition: all .22s; border:1px solid rgba(43,93,49,0.08); }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(15,23,42,0.12); border-color: rgba(43,93,49,0.28); }
.project-image { position: relative; height: 250px; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.project-card:hover .project-image img { transform: scale(1.1); }
.project-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.06) 0%, rgba(0,0,0,.28) 100%); display: flex; justify-content: space-between; align-items: flex-start; padding: 1.5rem; }
.project-category { display: flex; align-items: center; gap: .5rem; background: rgba(255,215,0,0.92); color:#1a2b1e; padding: .5rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 800; text-transform: capitalize; border:1px solid rgba(18,53,23,0.08); }
.project-link { background: rgba(255,255,255,0.96); color: var(--primary-green); border: 1px solid rgba(255,215,0,0.55); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: all .2s; box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.project-link:hover { background: #fff; transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 22px rgba(0,0,0,0.12); }
.project-link[aria-label] { text-decoration: none; color: inherit; display: inline-flex; align-items: center; justify-content: center; }
.project-content { padding: 2rem; }
.project-header { margin-bottom: 1.5rem; }
.project-content h3 { color: var(--primary-green); margin-bottom: 1rem; font-size: 1.5rem; letter-spacing:.2px; }
.project-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: .5rem; color: var(--gray-600); font-size: .9rem; }
.project-description { color: var(--gray-600); line-height: 1.6; margin-bottom: 1.5rem; }
.project-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; padding: 1rem; background: #f9fafb; border-radius: .75rem; border:1px solid rgba(43,93,49,0.08); }
.stat-item { text-align: center; }
.stat-value { font-weight: 800; color: var(--primary-green); font-size: .95rem; margin-bottom: .25rem; }
.stat-key { font-size: .8rem; color: var(--gray-500); text-transform: capitalize; }
.project-highlights h4 { color: var(--primary-green); margin-bottom: 1rem; font-size: 1.1rem; }
.highlights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.highlight-item { display: flex; align-items: center; gap: .5rem; color: var(--gray-600); font-size: .9rem; }
.no-projects { text-align: center; padding: 3rem; color: var(--gray-500); font-size: 1.1rem; }

.impact-section { padding: 5rem 0; background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%); color: var(--white); }
/* Scoped section-header inside the dark-green impact-section: light subtitle. */
.impact-section .section-header { text-align: center; margin-bottom: 3rem; }
.impact-section .section-header h2 { color: var(--primary-yellow); margin-bottom: 1rem; font-size: 2.5rem; text-shadow: 0 4px 18px rgba(0,0,0,.15); }
.impact-section .section-header p  { font-size: 1.1rem; color: rgba(255,255,255,0.92); opacity: 1; max-width: 600px; margin: 0 auto; }

.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.impact-card { background: rgba(255,255,255,0.1); padding: 2.5rem; border-radius: 1.5rem; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.25); text-align: center; transition: transform .3s; color: #fff; }
.impact-card:hover { transform: translateY(-5px); }
.impact-icon { font-size: 3rem; margin-bottom: 1.5rem; display: block; }
/* Card content : titles + lists must stay light on the green/glass background. */
.impact-card h3 { color: #fff; font-weight: 700; margin: 0 0 1rem; font-size: 1.5rem; }
.impact-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.impact-card li { color: rgba(255,255,255,0.92); font-size: 1rem; line-height: 1.5; }

@media (max-width: 768px) { .portfolio-hero h1 { font-size: 2.5rem; } .hero-subtitle { font-size: 1.1rem; } .projects-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .portfolio-hero { min-height: 400px; } .portfolio-hero h1 { font-size: 2rem; } }

@media (max-width: 640px) { .project-card { margin: 0 auto; } .project-image { height: 200px; } }
