/* ==========================================================
   projects page styles (moved from inline <style>)
   ========================================================== */
     /* ======================================================
        GLOBAL VARIABLES & RESET
     ====================================================== */
     :root {
         --primary: #2cab73;
         --dark: #243142;
         --white: #fff;
         --jev-emerald: #10b981;
         --jev-navy: #0f172a;
         --jev-slate: #64748b;
         --jev-obsidian: #060b13;
         --jev-navy-light: #0f172a;
         --jev-glass-dark: rgba(15, 23, 42, 0.85);
         --jev-bg-light: #f8fafc;
         --jev-font: 'Outfit', sans-serif;
     }

     *,
     *::before,
     *::after {
         margin: 0;
         padding: 0;
         box-sizing: border-box;
     }

     html {
         scroll-behavior: smooth;
     }

     body {
         font-family: var(--jev-font);
         overflow-x: hidden;
         background: #fff;
     }

     /* ======================================================
        TOPBAR
     ====================================================== */
     .topbar {
         width: 100%;
         height: 52px;
         background: #f6f6f6;
         border-bottom: 1px solid #ececec;
         position: relative;
         z-index: 200;
     }

     .topbar-container {
         max-width: 1320px;
         height: 100%;
         margin: auto;
         padding: 0 22px;
         display: flex;
         align-items: center;
         justify-content: space-between;
     }

     .top-left {
         display: flex;
         align-items: center;
         gap: 28px;
         position: relative;
         left: -90px;
     }

     .top-item {
         display: flex;
         align-items: center;
         gap: 10px;
     }

     .top-icon {
         width: 34px;
         height: 34px;
         border-radius: 6px;
         background: #e8f6ef;
         display: flex;
         align-items: center;
         justify-content: center;
         color: var(--primary);
         flex-shrink: 0;
     }

     .top-icon svg {
         width: 17px;
         height: 17px;
         display: block;
     }

     .top-text small {
         display: block;
         font-size: 11px;
         color: #7e8792;
         margin-bottom: 2px;
     }

     .top-text strong {
         font-size: 14px;
         color: #4f5b69;
         font-weight: 700;
         line-height: 1;
     }

     .top-right {
         display: flex;
         align-items: center;
         gap: 18px;
         position: relative;
         right: -60px;
     }

     .top-right a {
         text-decoration: none;
         color: #6f7783;
         font-size: 14px;
         font-weight: 500;
         display: flex;
         align-items: center;
         gap: 7px;
         transition: .3s;
     }

     .top-right a:hover {
         color: var(--primary);
     }

     .top-right svg {
         width: 16px;
         height: 16px;
     }

     /* ======================================================
HEADER
====================================================== */
     .header {
         position: absolute;
         top: 52px;
         left: 0;
         width: 100%;
         z-index: 999;
         transition: top 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
     }

     /* Sticky state added by JavaScript */
     .header.sticky {
         position: fixed;
         top: 0;

     }

     .header-inner {
         position: relative;
         max-width: 1320px;
         height: 88px;
         margin: auto;
         padding: 0 22px;
         overflow: visible;
     }

     .logo-shape {
         position: absolute;
         left: -160px;
         top: -1px;
         width: 420px;
         height: 104px;
         background: url("../header-logo-bg.png") no-repeat;
         background-size: contain;
         z-index: 20;
         display: flex;
         align-items: center;
         padding-left: 130px;
     }

     .logo {
         height: 88px;
         width: auto;
         object-fit: contain;
         display: block;
     }

     .nav-shape {
         position: relative;
         margin-left: 220px;
         top: 10px;
         width: calc(100% - 150px);
         height: 66px;
         background: #fff;
         border-radius: 0 45px 45px 0;
         display: flex;
         align-items: center;
         justify-content: space-between;
         padding-right: 10px;
         box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
         z-index: 10;
     }

     .nav-shape::before {
         content: "";
         position: absolute;
         left: -84px;
         top: 0;
         width: 96px;
         height: 66px;
         background: url("../nav-shap.png") no-repeat;
         background-size: 100% 100%;
     }

     .nav-links {
         display: flex;
         align-items: center;
         gap: 70px;
         margin-left: 2px;
     }

     .nav-links a {
         text-decoration: none;
         color: var(--dark);
         font-size: 15px;
         font-weight: 600;
         padding: 8px 10px;
         position: relative;
         transition: .3s;
     }


     .quote-btn {
         height: 48px;
         padding: 0 28px;
         border: none;
         border-radius: 40px;
         background: var(--primary);
         color: #fff;
         font-size: 15px;
         font-weight: 600;
         cursor: pointer;
         transition: .3s;
     }

     .quote-btn:hover {
         transform: translateY(-2px);
         box-shadow: 0 10px 25px rgba(44, 172, 115, .25);
     }

     .mobile-toggle {
         display: none;
         width: 42px;
         height: 42px;
         border: none;
         border-radius: 10px;
         background: #f3f4f6;
         color: var(--primary);
         cursor: pointer;
     }

     .overlay {
         position: fixed;
         inset: 0;
         background: rgba(0, 0, 0, .45);
         opacity: 0;
         visibility: hidden;
         transition: .3s;
         z-index: 998;
     }

     .overlay.active {
         opacity: 1;
         visibility: visible;
     }

     /* ======================================================
        SHARED UTILITIES
     ====================================================== */
     .container {
         max-width: 1320px;
         margin: auto;
         padding: 0 20px;
     }

     .section-tag {
         display: inline-flex;
         align-items: center;
         gap: 8px;
         color: var(--jev-emerald);
         font-size: 12px;
         font-weight: 800;
         text-transform: uppercase;
         letter-spacing: 2px;
         margin-bottom: 18px;
     }

     .section-tag::before {
         content: "";
         width: 20px;
         height: 3px;
         background: var(--jev-emerald);
         border-radius: 2px;
     }

     /* ======================================================
        SECTION 1 — HERO BANNER
     ====================================================== */
     .portfolio-hero {
         min-height: 540px;
         background: linear-gradient(rgba(6, 15, 30, 0.78), rgba(6, 15, 30, 0.55)),
             url("../epc-solutions.webp") center center/cover no-repeat;
         display: flex;
         align-items: flex-end;
         padding-top: 140px;
         position: relative;
         overflow: hidden;
     }

     .portfolio-hero::before {
         content: "";
         position: absolute;
         inset: 0;
         background-image: linear-gradient(rgba(16, 185, 129, 0.04) 1px, transparent 1px),
             linear-gradient(90deg, rgba(16, 185, 129, 0.04) 1px, transparent 1px);
         background-size: 55px 55px;
     }

     .portfolio-hero::after {
         content: "";
         position: absolute;
         top: 0;
         left: -100%;
         width: 60%;
         height: 100%;
         background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.03), transparent);
         animation: heroSweep 6s ease-in-out infinite;
     }

     @keyframes heroSweep {
         0% {
             left: -100%
         }

         100% {
             left: 200%
         }
     }

     .hero-banner-inner {
         max-width: 1320px;
         margin: auto;
         padding: 0 22px 90px;
         width: 100%;
         position: relative;
         z-index: 5;
     }

     .hero-breadcrumb {
         display: flex;
         align-items: center;
         gap: 10px;
         margin-bottom: 22px;
     }

     .hero-breadcrumb a {
         color: rgba(255, 255, 255, 0.5);
         text-decoration: none;
         font-size: 14px;
         font-weight: 500;
         transition: .3s;
     }

     .hero-breadcrumb a:hover {
         color: var(--jev-emerald);
     }

     .hero-breadcrumb .sep {
         color: rgba(255, 255, 255, 0.25);
     }

     .hero-breadcrumb .current {
         color: var(--jev-emerald);
         font-size: 14px;
         font-weight: 600;
     }

     .hero-pill {
         display: inline-flex;
         align-items: center;
         gap: 8px;
         background: rgba(16, 185, 129, 0.15);
         border: 1px solid rgba(16, 185, 129, 0.3);
         color: var(--jev-emerald);
         padding: 7px 20px;
         border-radius: 50px;
         font-size: 12px;
         font-weight: 700;
         letter-spacing: 2px;
         text-transform: uppercase;
         margin-bottom: 26px;
     }

     .portfolio-hero h1 {
         font-size: 78px;
         font-weight: 800;
         color: #fff;
         line-height: 1.02;
         margin-bottom: 22px;
         max-width: 860px;
     }

     .portfolio-hero h1 span {
         color: var(--jev-emerald);
     }

     .portfolio-hero p {
         font-size: 17px;
         color: rgba(255, 255, 255, 0.6);
         max-width: 580px;
         line-height: 1.75;
         margin-bottom: 46px;
     }

     .hero-stats-row {
         display: flex;
         align-items: center;
         gap: 0;
         flex-wrap: wrap;
     }

     .h-stat {
         padding: 20px 40px 20px 0;
         margin-right: 40px;
         border-right: 1px solid rgba(255, 255, 255, 0.1);
     }

     .h-stat:last-child {
         border-right: none;
     }

     .h-stat strong {
         display: block;
         font-size: 42px;
         font-weight: 800;
         color: #fff;
         line-height: 1;
     }

     .h-stat strong span {
         color: var(--jev-emerald);
     }

     .h-stat small {
         font-size: 12px;
         color: rgba(255, 255, 255, 0.45);
         text-transform: uppercase;
         letter-spacing: 1.5px;
         margin-top: 6px;
         display: block;
     }

     .hero-wave {
         position: absolute;
         bottom: -2px;
         left: 0;
         width: 100%;
         line-height: 0;
     }

     .hero-wave svg {
         display: block;
         width: 100%;
     }

     /* ======================================================
        SECTION 2 — FILTERABLE GRID
     ====================================================== */
     .portfolio-grid-section {
         padding: 90px 0;
         background: #fff;
     }

     .filter-bar {
         display: flex;
         align-items: center;
         justify-content: space-between;
         margin-bottom: 56px;
         flex-wrap: wrap;
         gap: 20px;
     }

     .filter-left h2 {
         font-size: 38px;
         font-weight: 800;
         color: var(--jev-navy);
         margin-bottom: 6px;
     }

     .filter-left h2 span {
         color: var(--jev-emerald);
     }

     .filter-left p {
         font-size: 15px;
         color: var(--jev-slate);
     }

     .filter-pills {
         display: flex;
         align-items: center;
         gap: 10px;
         flex-wrap: wrap;
     }

     .f-pill {
         padding: 10px 26px;
         border-radius: 50px;
         border: 1.5px solid #e2e8f0;
         background: #fff;
         color: var(--jev-slate);
         font-size: 13.5px;
         font-weight: 700;
         cursor: pointer;
         transition: .35s cubic-bezier(0.175, .885, .32, 1.275);
         user-select: none;
     }

     .f-pill:hover {
         border-color: var(--jev-emerald);
         color: var(--jev-emerald);
     }

     .f-pill.active {
         background: var(--jev-navy);
         border-color: var(--jev-navy);
         color: #fff;
     }

     .f-pill .f-dot {
         display: inline-block;
         width: 8px;
         height: 8px;
         border-radius: 50%;
         margin-right: 7px;
         vertical-align: middle;
     }

     .f-pill[data-filter="all"] .f-dot {
         background: var(--jev-emerald);
     }

     .f-pill[data-filter="ongrid"] .f-dot {
         background: #10b981;
     }

     .f-pill[data-filter="offgrid"] .f-dot {
         background: #3b82f6;
     }

     .f-pill[data-filter="hybrid"] .f-dot {
         background: #f59e0b;
     }

     .results-count {
         font-size: 14px;
         color: var(--jev-slate);
         font-weight: 500;
         margin-bottom: 32px;
     }

     .results-count strong {
         color: var(--jev-navy);
     }

     .projects-grid {
         display: grid;
         grid-template-columns: repeat(3, 1fr);
         gap: 28px;
     }

     .project-card {
         border-radius: 28px;
         overflow: hidden;
         background: #fff;
         border: 1px solid #f1f5f9;
         transition: .5s cubic-bezier(0.25, .46, .45, .94);
         cursor: pointer;
         position: relative;
     }

     .project-card:hover {
         transform: translateY(-10px);
         box-shadow: 0 24px 56px rgba(15, 23, 42, 0.1);
         border-color: transparent;
     }

     .project-card.hidden {
         display: none;
     }

     .project-card.fade-in {
         animation: cardFadeIn .4s ease forwards;
     }

     @keyframes cardFadeIn {
         from {
             opacity: 0;
             transform: translateY(20px)
         }

         to {
             opacity: 1;
             transform: translateY(0)
         }
     }

     .pc-media {
         position: relative;
         height: 240px;
         overflow: hidden;
     }

     .pc-media img {
         width: 100%;
         height: 100%;
         object-fit: cover;
         transition: 1.2s ease;
     }

     .project-card:hover .pc-media img {
         transform: scale(1.1);
     }

     .pc-type-tag {
         position: absolute;
         top: 18px;
         left: 18px;
         padding: 5px 16px;
         border-radius: 50px;
         font-size: 11px;
         font-weight: 800;
         text-transform: uppercase;
         letter-spacing: 1.5px;
         z-index: 5;
     }

     .tag-ongrid {
         background: rgba(16, 185, 129, 0.9);
         color: #fff;
     }

     .tag-offgrid {
         background: rgba(59, 130, 246, 0.9);
         color: #fff;
     }

     .tag-hybrid {
         background: rgba(245, 158, 11, 0.9);
         color: #fff;
     }

     .pc-status {
         position: absolute;
         top: 18px;
         right: 18px;
         background: rgba(255, 255, 255, 0.15);
         backdrop-filter: blur(6px);
         border: 1px solid rgba(255, 255, 255, 0.3);
         color: #fff;
         padding: 5px 14px;
         border-radius: 50px;
         font-size: 11px;
         font-weight: 700;
         text-transform: uppercase;
         letter-spacing: 1px;
         z-index: 5;
     }

     .pc-status.completed {
         background: rgba(16, 185, 129, 0.85);
         border-color: transparent;
     }

     .pc-status.operational {
         background: rgba(99, 102, 241, 0.85);
         border-color: transparent;
     }

     .pc-status.ongoing {
         background: rgba(245, 158, 11, 0.85);
         border-color: transparent;
     }

     .pc-cap-badge {
         position: absolute;
         bottom: -1px;
         right: 0;
         background: var(--jev-navy);
         color: #fff;
         padding: 12px 22px;
         border-radius: 16px 0 0 0;
         text-align: center;
     }

     .pc-cap-badge strong {
         display: block;
         font-size: 20px;
         font-weight: 800;
         color: var(--jev-emerald);
         line-height: 1;
     }

     .pc-cap-badge span {
         font-size: 10px;
         color: rgba(255, 255, 255, 0.5);
         text-transform: uppercase;
         letter-spacing: 1px;
     }

     .pc-body {
         padding: 28px 28px 24px;
     }

     .pc-meta {
         display: flex;
         align-items: center;
         gap: 16px;
         margin-bottom: 14px;
     }

     .pc-meta-item {
         display: flex;
         align-items: center;
         gap: 6px;
         font-size: 12px;
         color: var(--jev-slate);
         font-weight: 600;
     }

     .pc-meta-item i {
         color: var(--jev-emerald);
         font-size: 11px;
     }

     .pc-title {
         font-size: 20px;
         font-weight: 800;
         color: var(--jev-navy);
         margin-bottom: 10px;
         line-height: 1.3;
     }

     .pc-desc {
         font-size: 13.5px;
         color: var(--jev-slate);
         line-height: 1.65;
         margin-bottom: 20px;
     }

     .pc-specs-row {
         display: flex;
         flex-wrap: wrap;
         gap: 8px;
         margin-bottom: 22px;
     }

     .pc-spec-chip {
         background: #f8fafc;
         border: 1px solid #f1f5f9;
         border-radius: 8px;
         padding: 6px 14px;
         font-size: 12px;
         font-weight: 700;
         color: var(--jev-navy);
     }

     .pc-cta {
         display: flex;
         align-items: center;
         justify-content: space-between;
         padding-top: 18px;
         border-top: 1px solid #f1f5f9;
     }

     .pc-view-btn {
         display: inline-flex;
         align-items: center;
         gap: 9px;
         color: var(--jev-navy);
         font-size: 13px;
         font-weight: 800;
         text-decoration: none;
         cursor: pointer;
         transition: .3s;
     }

     .pc-view-btn i {
         width: 30px;
         height: 30px;
         background: #f1f5f9;
         border-radius: 50%;
         display: flex;
         align-items: center;
         justify-content: center;
         font-size: 10px;
         transition: .3s;
     }

     .pc-view-btn:hover {
         color: var(--jev-emerald);
     }

     .pc-view-btn:hover i {
         background: var(--jev-emerald);
         color: #fff;
         transform: translateX(4px);
     }

     .pc-client-logo {
         font-size: 11px;
         color: var(--jev-slate);
         font-weight: 700;
         text-transform: uppercase;
         letter-spacing: 1px;
     }

     /* ======================================================
        SECTION 3 — PROJECT MODAL
     ====================================================== */
     .modal-overlay {
         position: fixed;
         inset: 0;
         background: rgba(6, 11, 19, 0.82);
         backdrop-filter: blur(8px);
         z-index: 10000;
         display: flex;
         align-items: center;
         justify-content: center;
         padding: 20px;
         opacity: 0;
         visibility: hidden;
         transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
     }

     .modal-overlay.open {
         opacity: 1;
         visibility: visible;
     }

     .modal-box {
         background: #fff;
         border-radius: 32px;
         max-width: 1000px;
         width: 100%;
         max-height: 92vh;
         overflow-y: auto;
         position: relative;
         transform: scale(0.92) translateY(30px);
         transition: .4s cubic-bezier(0.175, .885, .32, 1.275);
     }

     .modal-overlay.open .modal-box {
         transform: scale(1) translateY(0);
     }

     .modal-close {
         position: sticky;
         top: 18px;
         left: calc(100% - 60px);
         width: 46px;
         height: 46px;
         border-radius: 50%;
         background: var(--jev-navy);
         color: #fff;
         border: none;
         cursor: pointer;
         font-size: 18px;
         display: flex;
         align-items: center;
         justify-content: center;
         transition: .3s;
         z-index: 10;
         float: right;
         margin: 18px 18px -64px 0;
     }

     .modal-close:hover {
         background: var(--jev-emerald);
         transform: rotate(90deg);
     }

     .modal-gallery {
         display: grid;
         grid-template-columns: 1fr 1fr;
         gap: 0;
         border-radius: 28px 28px 0 0;
         overflow: hidden;
         height: 320px;
     }

     .mg-main {
         position: relative;
     }

     .mg-main img {
         width: 100%;
         height: 100%;
         object-fit: cover;
     }

     .mg-side {
         display: grid;
         grid-template-rows: 1fr 1fr;
         gap: 0;
     }

     .mg-side img {
         width: 100%;
         height: 100%;
         object-fit: cover;
         display: block;
         transition: .4s;
     }

     .mg-side img:hover {
         opacity: 0.85;
     }

     .modal-type-bar {
         display: flex;
         align-items: center;
         justify-content: space-between;
         padding: 22px 36px 0;
     }

     .modal-type-pill {
         display: inline-flex;
         align-items: center;
         gap: 8px;
         padding: 7px 20px;
         border-radius: 50px;
         font-size: 12px;
         font-weight: 800;
         text-transform: uppercase;
         letter-spacing: 1.5px;
     }

     .modal-type-pill.ongrid {
         background: #ecfdf5;
         color: var(--jev-emerald);
     }

     .modal-type-pill.offgrid {
         background: #eff6ff;
         color: #3b82f6;
     }

     .modal-type-pill.hybrid {
         background: #fffbeb;
         color: #d97706;
     }

     .modal-status-pill {
         font-size: 12px;
         font-weight: 700;
         color: var(--jev-slate);
         text-transform: uppercase;
         letter-spacing: 1px;
         display: flex;
         align-items: center;
         gap: 7px;
     }

     .modal-status-dot {
         width: 8px;
         height: 8px;
         border-radius: 50%;
         background: var(--jev-emerald);
         display: inline-block;
     }

     .modal-status-dot.amber {
         background: #f59e0b;
     }

     .modal-status-dot.indigo {
         background: #6366f1;
     }

     .modal-body {
         padding: 28px 36px 40px;
     }

     .modal-title {
         font-size: 32px;
         font-weight: 800;
         color: var(--jev-navy);
         margin-bottom: 22px;
         line-height: 1.2;
     }

     .modal-specs {
         display: grid;
         grid-template-columns: repeat(4, 1fr);
         gap: 14px;
         margin-bottom: 30px;
     }

     .ms-card {
         background: #f8fafc;
         border-radius: 16px;
         padding: 18px 16px;
         text-align: center;
         border: 1px solid #f1f5f9;
     }

     .ms-icon {
         width: 42px;
         height: 42px;
         border-radius: 12px;
         display: flex;
         align-items: center;
         justify-content: center;
         margin: 0 auto 10px;
         font-size: 18px;
     }

     .ms-icon.gr {
         background: #ecfdf5;
         color: var(--jev-emerald);
     }

     .ms-icon.bl {
         background: #eff6ff;
         color: #3b82f6;
     }

     .ms-icon.or {
         background: #fffbeb;
         color: #d97706;
     }

     .ms-icon.pu {
         background: #f5f3ff;
         color: #7c3aed;
     }

     .ms-card strong {
         display: block;
         font-size: 18px;
         font-weight: 800;
         color: var(--jev-navy);
     }

     .ms-card span {
         font-size: 11px;
         color: var(--jev-slate);
         text-transform: uppercase;
         letter-spacing: 1px;
         margin-top: 3px;
         display: block;
     }

     .modal-two-col {
         display: grid;
         grid-template-columns: 1.3fr 0.7fr;
         gap: 30px;
         margin-bottom: 28px;
     }

     .modal-section-label {
         font-size: 11px;
         font-weight: 800;
         color: var(--jev-slate);
         text-transform: uppercase;
         letter-spacing: 2px;
         margin-bottom: 12px;
         display: flex;
         align-items: center;
         gap: 8px;
     }

     .modal-section-label::before {
         content: "";
         width: 16px;
         height: 2px;
         background: var(--jev-emerald);
     }

     .modal-scope-text {
         font-size: 14.5px;
         color: var(--jev-slate);
         line-height: 1.8;
     }

     .modal-detail-list {
         list-style: none;
         display: flex;
         flex-direction: column;
         gap: 10px;
     }

     .modal-detail-list li {
         display: flex;
         align-items: flex-start;
         gap: 10px;
         font-size: 13.5px;
         color: var(--jev-navy);
         font-weight: 600;
     }

     .modal-detail-list li i {
         color: var(--jev-emerald);
         font-size: 11px;
         margin-top: 3px;
         flex-shrink: 0;
     }

     .modal-tags {
         display: flex;
         flex-wrap: wrap;
         gap: 8px;
         margin-bottom: 28px;
     }

     .m-tag {
         background: #f1f5f9;
         border-radius: 8px;
         padding: 6px 14px;
         font-size: 12px;
         font-weight: 700;
         color: var(--jev-navy);
     }

     .modal-cta-row {
         display: flex;
         align-items: center;
         gap: 16px;
         padding-top: 24px;
         border-top: 1px solid #f1f5f9;
     }

     .modal-cta-btn {
         flex: 1;
         padding: 14px;
         border-radius: 14px;
         border: none;
         font-size: 14px;
         font-weight: 700;
         cursor: pointer;
         transition: .3s;
         display: flex;
         align-items: center;
         justify-content: center;
         gap: 10px;
     }

     .modal-cta-btn.primary {
         background: var(--jev-emerald);
         color: #fff;
     }

     .modal-cta-btn.secondary {
         background: #f8fafc;
         color: var(--jev-navy);
         border: 1px solid #e2e8f0;
     }

     .modal-cta-btn:hover {
         transform: translateY(-2px);
     }

     .modal-cta-btn.primary:hover {
         box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
     }

     .modal-cta-btn.secondary:hover {
         background: var(--jev-navy);
         color: #fff;
         border-color: var(--jev-navy);
     }

     /* ======================================================
        SECTION 4 — CTA
     ====================================================== */
     .portfolio-cta {
         padding: 60px 0 100px;
         background: #f8fafc;
     }

     .cta-banner {
         background: var(--jev-navy);
         border-radius: 40px;
         position: relative;
         overflow: hidden;
         box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
     }

     .cta-grid-bg {
         position: absolute;
         inset: 0;
         background-image: linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
         background-size: 40px 40px;
         mask-image: radial-gradient(circle at center, black, transparent 80%);
     }

     .cta-glow {
         position: absolute;
         top: -200px;
         left: -100px;
         width: 500px;
         height: 500px;
         background: radial-gradient(circle, rgba(16, 185, 129, 0.08), transparent 70%);
         pointer-events: none;
     }

     .cta-inner {
         position: relative;
         z-index: 5;
         display: grid;
         grid-template-columns: 1.15fr 0.85fr;
     }

     .cta-left {
         padding: 70px 60px;
     }

     .cta-tag {
         color: var(--jev-emerald);
         font-weight: 800;
         text-transform: uppercase;
         letter-spacing: 3px;
         font-size: 12px;
         display: block;
         margin-bottom: 14px;
     }

     .cta-title {
         font-size: 50px;
         font-weight: 800;
         color: #fff;
         line-height: 1.1;
         margin-bottom: 20px;
     }

     .cta-title span {
         color: var(--jev-emerald);
     }

     .cta-desc {
         color: #94a3b8;
         font-size: 16px;
         line-height: 1.7;
         margin-bottom: 36px;
         max-width: 460px;
     }

     .cta-form {
         display: flex;
         flex-direction: column;
         gap: 14px;
     }

     .cta-form-row {
         display: grid;
         grid-template-columns: 1fr 1fr;
         gap: 14px;
     }

     .cta-input {
         width: 100%;
         padding: 14px 20px;
         border-radius: 14px;
         border: 1px solid rgba(255, 255, 255, 0.1);
         background: rgba(255, 255, 255, 0.06);
         color: #fff;
         font-size: 14px;
         font-family: var(--jev-font);
         font-weight: 500;
         outline: none;
         transition: .3s;
     }

     .cta-input::placeholder {
         color: rgba(255, 255, 255, 0.35);
     }

     .cta-input:focus {
         border-color: var(--jev-emerald);
         background: rgba(255, 255, 255, 0.09);
     }

     .cta-select {
         appearance: none;
         cursor: pointer;
     }

     .cta-submit {
         width: 100%;
         padding: 16px;
         border-radius: 14px;
         border: none;
         background: var(--jev-emerald);
         color: #fff;
         font-size: 15px;
         font-weight: 700;
         cursor: pointer;
         transition: .4s cubic-bezier(0.175, .885, .32, 1.275);
         display: flex;
         align-items: center;
         justify-content: center;
         gap: 12px;
     }

     .cta-submit:hover {
         background: #fff;
         color: var(--jev-navy);
         transform: scale(1.02);
     }

     .cta-right {
         background: rgba(255, 255, 255, 0.02);
         border-left: 1px solid rgba(255, 255, 255, 0.07);
         padding: 70px 50px;
         display: flex;
         flex-direction: column;
         justify-content: center;
     }

     .cta-trust-title {
         font-size: 20px;
         font-weight: 700;
         color: #fff;
         margin-bottom: 28px;
     }

     .trust-items {
         display: flex;
         flex-direction: column;
         gap: 20px;
         margin-bottom: 28px;
     }

     .trust-item {
         display: flex;
         align-items: center;
         gap: 16px;
     }

     .trust-icon {
         width: 46px;
         height: 46px;
         border-radius: 14px;
         background: rgba(16, 185, 129, 0.12);
         color: var(--jev-emerald);
         display: flex;
         align-items: center;
         justify-content: center;
         font-size: 18px;
         flex-shrink: 0;
     }

     .trust-txt strong {
         display: block;
         font-size: 15px;
         color: #fff;
     }

     .trust-txt span {
         font-size: 13px;
         color: rgba(255, 255, 255, 0.45);
     }

     .cta-divider {
         height: 1px;
         background: rgba(255, 255, 255, 0.06);
         margin-bottom: 28px;
     }

     .cta-nums {
         display: grid;
         grid-template-columns: 1fr 1fr;
         gap: 16px;
     }

     .cn {
         background: rgba(255, 255, 255, 0.03);
         border: 1px solid rgba(255, 255, 255, 0.07);
         border-radius: 14px;
         padding: 18px;
         text-align: center;
     }

     .cn strong {
         display: block;
         font-size: 28px;
         font-weight: 800;
         color: var(--jev-emerald);
     }

     .cn span {
         font-size: 11px;
         color: rgba(255, 255, 255, 0.4);
         text-transform: uppercase;
         letter-spacing: 1px;
         margin-top: 4px;
         display: block;
     }

     .jev-whatsapp-fab {
         position: fixed;
         bottom: 40px;
         right: 40px;
         background: #25d366;
         color: #fff;
         width: 65px;
         height: 65px;
         border-radius: 50%;
         display: flex;
         align-items: center;
         justify-content: center;
         font-size: 32px;
         text-decoration: none;
         box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
         z-index: 9999;
         transition: .4s;
     }

     .whatsapp-ping {
         position: absolute;
         inset: 0;
         border-radius: 50%;
         background: #25d366;
         animation: waPing 2s infinite;
         z-index: -1;
     }

     .fab-label {
         position: absolute;
         right: 80px;
         background: var(--jev-navy);
         padding: 8px 20px;
         border-radius: 10px;
         font-size: 14px;
         font-weight: 700;
         white-space: nowrap;
         opacity: 0;
         transform: translateX(20px);
         transition: .3s;
         pointer-events: none;
     }

     .jev-whatsapp-fab:hover {
         transform: scale(1.1);
     }

     .jev-whatsapp-fab:hover .fab-label {
         opacity: 1;
         transform: translateX(0);
     }

     @keyframes waPing {
         0% {
             transform: scale(1);
             opacity: .5
         }

         100% {
             transform: scale(1.6);
             opacity: 0
         }
     }

     /* ======================================================
        FOOTER
     ====================================================== */
     .jev-footer-awesome {
         background-color: var(--jev-obsidian);
         padding: 80px 0 0;
         font-family: var(--jev-font);
         color: #fff;
         position: relative;
         overflow: hidden;
     }

     .footer-top-line {
         position: absolute;
         top: 0;
         left: 0;
         width: 100%;
         height: 4px;
         background: linear-gradient(90deg, transparent, var(--jev-emerald), transparent);
     }

     .f-main-grid {
         display: grid;
         grid-template-columns: 1.4fr 0.8fr 1fr 1.2fr;
         gap: 50px;
         padding-bottom: 60px;
     }

     .f-logo-img {
         max-height: 60px;
         width: auto;
         margin-bottom: 25px;
     }

     .f-bio-text {
         color: var(--jev-slate);
         font-size: 15px;
         line-height: 1.7;
         margin-bottom: 30px;
         max-width: 320px;
     }

     .f-social-grid {
         display: flex;
         gap: 12px;
     }

     .s-link {
         width: 42px;
         height: 42px;
         background: rgba(255, 255, 255, 0.03);
         border: 1px solid rgba(255, 255, 255, 0.08);
         border-radius: 12px;
         display: flex;
         align-items: center;
         justify-content: center;
         color: #fff;
         text-decoration: none;
         transition: .4s cubic-bezier(0.175, .885, .32, 1.275);
     }

     .s-link:hover {
         background: var(--jev-emerald);
         border-color: var(--jev-emerald);
         transform: translateY(-5px) rotate(8deg);
     }

     .f-heading {
         font-size: 19px;
         font-weight: 700;
         margin-bottom: 35px;
         color: #fff;
         display: flex;
         align-items: center;
         gap: 10px;
     }

     .f-heading::before {
         content: '';
         width: 12px;
         height: 12px;
         background: var(--jev-emerald);
         border-radius: 3px;
     }

     .f-nav-list {
         list-style: none;
         padding: 0;
     }

     .f-nav-list li {
         margin-bottom: 14px;
     }

     .f-nav-list a {
         color: var(--jev-slate);
         text-decoration: none;
         font-size: 15px;
         font-weight: 500;
         transition: .3s;
         display: flex;
         align-items: center;
         gap: 0;
     }

     .f-nav-list a::before {
         content: '→';
         font-size: 18px;
         color: var(--jev-emerald);
         opacity: 0;
         margin-left: -15px;
         transition: .3s;
     }

     .f-nav-list a:hover {
         color: #fff;
         padding-left: 20px;
     }

     .f-nav-list a:hover::before {
         opacity: 1;
         margin-left: -20px;
         padding-right: 8px;
     }

     .f-contact-info {
         display: flex;
         flex-direction: column;
         gap: 22px;
     }

     .fc-item {
         display: flex;
         gap: 15px;
         align-items: flex-start;
     }

     .fc-icon {
         width: 38px;
         height: 38px;
         background: var(--jev-navy-light);
         color: var(--jev-emerald);
         border-radius: 10px;
         display: flex;
         align-items: center;
         justify-content: center;
         flex-shrink: 0;
         font-size: 16px;
     }

     .fc-txt {
         font-size: 14.5px;
         color: var(--jev-slate);
         line-height: 1.5;
     }

     .fc-txt strong {
         display: block;
         color: #fff;
         font-size: 16px;
         margin-top: 3px;
     }

     .working-hours-badge {
         display: inline-flex;
         align-items: center;
         gap: 8px;
         background: rgba(16, 185, 129, 0.1);
         color: var(--jev-emerald);
         padding: 8px 15px;
         border-radius: 8px;
         font-size: 12px;
         font-weight: 700;
         margin-top: 10px;
     }

     .f-bottom-bar {
         border-top: 1px solid rgba(255, 255, 255, 0.05);
         padding: 30px 0;
         display: flex;
         justify-content: space-between;
         align-items: center;
     }

     .f-copy {
         color: var(--jev-slate);
         font-size: 14px;
     }

     .f-copy span {
         color: #fff;
         font-weight: 600;
     }

     .f-legal {
         display: flex;
         align-items: center;
         gap: 20px;
     }

     .f-legal a {
         color: var(--jev-slate);
         text-decoration: none;
         font-size: 14px;
         transition: .3s;
     }

     .f-legal a:hover {
         color: var(--jev-emerald);
     }

     .f-sep {
         width: 4px;
         height: 4px;
         background: var(--jev-slate);
         border-radius: 50%;
         opacity: .3;
     }

     .back-to-top {
         width: 50px;
         height: 50px;
         background: var(--jev-emerald);
         color: white;
         border: none;
         border-radius: 50%;
         cursor: pointer;
         display: flex;
         align-items: center;
         justify-content: center;
         transition: .4s;
         box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
     }

     .back-to-top:hover {
         background: #fff;
         color: var(--jev-emerald);
         transform: translateY(-5px);
     }

     @media(max-width:991px) {
         .topbar {
             display: none;
         }

         .header {
             top: 0;
         }

         .header-inner {
             height: 78px;
             padding: 0;
         }

         .logo-shape {
             left: 0;
             top: 0;
             width: 100%;
             height: 78px;
             background: #fff;
             padding: 0 18px;
             justify-content: space-between;
             box-shadow: 0 5px 25px rgba(0, 0, 0, .08);
         }

         .logo {
             height: 72px;
         }

         .mobile-toggle {
             display: flex;
             align-items: center;
             justify-content: center;
         }

         .nav-shape {
             position: fixed;
             top: 78px;
             right: -100%;
             width: 300px;
             height: 100vh;
             margin-left: 0;
             border-radius: 0;
             background: #fff;
             padding: 35px 24px;
             flex-direction: column;
             align-items: flex-start;
             justify-content: flex-start;
             transition: .4s ease;
             z-index: 9999;
         }

         .nav-shape.active {
             right: 0;
         }

         .nav-shape::before {
             display: none;
         }

         .nav-links {
             margin-left: 0;
             width: 100%;
             flex-direction: column;
             align-items: flex-start;
             gap: 10px;
         }

         .nav-links a {
             width: 100%;
             padding: 14px 0;
             border-bottom: 1px solid #ececec;
         }

         .quote-btn {
             width: 100%;
             margin-top: 20px;
         }

         .portfolio-hero h1 {
             font-size: 44px;
         }

         .projects-grid {
             grid-template-columns: 1fr 1fr;
         }

         .filter-bar {
             flex-direction: column;
             align-items: flex-start;
         }

         .modal-gallery {
             grid-template-columns: 1fr;
             height: 260px;
         }

         .mg-side {
             display: none;
         }

         .modal-specs {
             grid-template-columns: 1fr 1fr;
         }

         .modal-two-col {
             grid-template-columns: 1fr;
         }

         .cta-inner {
             grid-template-columns: 1fr;
         }

         .cta-right {
             border-left: none;
             border-top: 1px solid rgba(255, 255, 255, 0.07);
         }

         .f-main-grid {
             grid-template-columns: 1fr 1fr;
             gap: 40px;
         }
     }

     @media(max-width:650px) {
         .portfolio-hero h1 {
             font-size: 34px;
         }

         .projects-grid {
             grid-template-columns: 1fr;
         }

         .filter-pills {
             gap: 8px;
         }

         .cta-form-row {
             grid-template-columns: 1fr;
         }

         .cta-title {
             font-size: 34px;
         }

         .f-main-grid {
             grid-template-columns: 1fr;
         }

         .f-bottom-bar {
             flex-direction: column;
             text-align: center;
             gap: 25px;
         }
     }
 

/* ======================================================
   DYNAMIC PROJECTS — card alignment + popup redesign
====================================================== */

/* Cards: equal height, footer always at the bottom */
.project-card { display: flex; flex-direction: column; }
.pc-media { flex-shrink: 0; }
.pc-media img { display: block; }
.pc-body { flex: 1; display: flex; flex-direction: column; }
.pc-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-spec-chip { white-space: nowrap; }
.pc-cta { margin-top: auto; gap: 12px; }
.pc-client-logo { text-align: right; }
.pc-status.upcoming { background: rgba(100, 116, 139, 0.85); border-color: transparent; }
.project-card:focus-within { box-shadow: 0 0 0 3px rgba(16, 185, 129, .35); }
.projects-empty { padding: 40px; text-align: center; background: #f8fafc; border-radius: 20px; color: var(--jev-slate); }
.projects-empty a { color: var(--jev-emerald); font-weight: 700; }

/* Popup box: content scrolls inside, close button stays fixed in the corner */
.modal-box {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    border-radius: 28px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .35);
}
.modal-scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.modal-scroll::-webkit-scrollbar { width: 8px; }
.modal-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; border: 2px solid #fff; }
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    left: auto;
    float: none;
    margin: 0;
    z-index: 20;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .85), 0 8px 20px rgba(0, 0, 0, .25);
}

/* Gallery: one large photo (no more repeated, cropped copies) + thumbnails when there are more photos */
.modal-gallery,
.modal-gallery.has-thumbs {
    display: block;
    height: auto;
    border-radius: 0;
    background: #0f172a;
}
.mg-main {
    position: relative;
    aspect-ratio: 16 / 8;
    max-height: 440px;
    width: 100%;
    overflow: hidden;
}
.mg-main img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mg-thumbs {
    display: flex;
    gap: 10px;
    padding: 12px 36px;
    overflow-x: auto;
    background: #0f172a;
    scrollbar-width: thin;
}
.mg-thumb {
    flex: 0 0 auto;
    width: 88px;
    height: 60px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: .6;
    background: none;
    transition: .25s;
}
.mg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-thumb:hover, .mg-thumb.active { opacity: 1; border-color: var(--jev-emerald); }

/* Details */
.modal-type-bar { padding: 26px 90px 0 36px; gap: 12px; flex-wrap: wrap; }
.modal-title { margin-bottom: 8px; }
.modal-client { display: flex; align-items: center; gap: 8px; color: var(--jev-slate); font-size: 15px; font-weight: 600; margin-bottom: 24px; }
.modal-client i { color: var(--jev-emerald); }
.modal-status-dot.completed { background: var(--jev-emerald); }
.modal-status-dot.operational { background: #6366f1; }
.modal-status-dot.ongoing { background: #f59e0b; }
.modal-status-dot.upcoming { background: #64748b; }
.ms-card { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.ms-card strong { font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.modal-two-col.single { grid-template-columns: 1fr; }
.modal-detail-list li i { margin-top: 4px; }

@media (max-width: 991px) {
    .modal-gallery, .modal-gallery.has-thumbs { height: auto; }
    .mg-main { aspect-ratio: 16 / 10; }
    .mg-thumbs { padding: 10px 22px; }
}
@media (max-width: 650px) {
    .modal-overlay { padding: 10px; }
    .modal-box { border-radius: 22px; max-height: 94vh; }
    .mg-main { aspect-ratio: 4 / 3; }
    .mg-thumb { width: 70px; height: 50px; }
    .modal-type-bar { padding: 20px 64px 0 20px; }
    .modal-body { padding: 20px 20px 28px; }
    .modal-title { font-size: 24px; }
    .modal-cta-row { flex-direction: column; }
    .modal-cta-btn { width: 100%; }
    .modal-close { top: 12px; right: 12px; width: 40px; height: 40px; }
}

/* ======================================================
   ENQUIRY FORM (saved on the server)
====================================================== */
.cta-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cta-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cta-textarea { resize: vertical; min-height: 84px; line-height: 1.6; }
/* Select shows its placeholder in the same muted colour as the inputs */
.cta-select:invalid { color: rgba(255, 255, 255, 0.35); }
.cta-select option { color: #0f172a; background: #fff; }
.cta-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
}
.cta-input.is-invalid { border-color: #f87171; background-color: rgba(248, 113, 113, 0.08); }
.cta-err { color: #fca5a5; font-size: 12.5px; font-weight: 600; min-height: 0; }
.cta-err:empty { display: none; }
.cta-input:disabled { opacity: .55; cursor: not-allowed; }
.cta-submit:disabled { cursor: wait; transform: none; }
.cta-submit.is-done { background: #059669; color: #fff; cursor: default; }
.cta-result {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 18px; border-radius: 14px; font-size: 14px; line-height: 1.55;
}
.cta-result[hidden] { display: none; }
.cta-result i { font-size: 20px; margin-top: 1px; flex-shrink: 0; }
.cta-result strong { display: block; font-weight: 700; }
.cta-result span { display: block; opacity: .85; }
.cta-result a { color: inherit; font-weight: 700; text-decoration: underline; }
.cta-result.ok { background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.4); color: #a7f3d0; }
.cta-result.ok i { color: #34d399; }
.cta-result.err { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.4); color: #fecaca; }
.cta-result.err i { color: #f87171; }
.cta-left > .cta-result { margin-bottom: 16px; }
.cta-privacy { font-size: 12.5px; color: rgba(255, 255, 255, 0.4); display: flex; align-items: center; gap: 8px; margin: 0; }
.cta-privacy i { color: var(--jev-emerald); }
