.port-hero {
  background: var(--ink);
  padding: 90px 0 72px;
  position: relative; overflow: hidden;
}
.port-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(37,99,235,0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 80%, rgba(37,99,235,0.09) 0%, transparent 45%);
}
.port-hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 36px 36px;
}
.port-hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.breadcrumb a:hover { color: #93c5fd; }
.breadcrumb span { color: rgba(255,255,255,0.2); }
.port-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 900; line-height: 1.1; color: white;
  letter-spacing: -0.025em; margin-bottom: 18px;
}
.port-hero h1 em { font-style: normal; color: #93c5fd; }
.port-hero p {
  font-size: 1.05rem; color: rgba(255,255,255,0.6);
  line-height: 1.75; max-width: 560px; margin-bottom: 0;
}
.hero-stats-row {
  display: flex; gap: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); overflow: hidden;
  flex-shrink: 0;
}
.hero-stat {
  padding: 20px 28px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: var(--font-head); font-size: 1.8rem;
  font-weight: 900; color: white; line-height: 1;
}
.hero-stat-num span { color: #93c5fd; }
.hero-stat-lbl { font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-top: 4px; }
 
/* ══ FILTER BAR ══ */
.filter-bar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 18px; border-radius: 100px;
  font-size: 0.84rem; font-weight: 700;
  font-family: var(--font-head);
  border: 1.5px solid var(--border);
  background: var(--white); color: var(--ink-soft);
  transition: all 0.2s; cursor: pointer;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: var(--accent); color: white;
  border-color: var(--accent);
  box-shadow: 0 3px 12px rgba(37,99,235,0.28);
}
.filter-count {
  font-size: 0.78rem; color: var(--ink-soft); margin-left: auto;
  font-style: italic;
}
 
/* ══ FEATURED PROJECT — full-width card ══ */
.featured-project {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 0; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  margin-bottom: 48px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.featured-project:hover { transform: translateY(-4px); box-shadow: 0 32px 80px rgba(13,15,20,0.18); }
.featured-thumb {
  position: relative; overflow: hidden;
  background: #e8edf5; min-height: 380px;
  display: flex; align-items: center; justify-content: center;
}
.featured-thumb img {
  width: 98%; height: 98%; 
  transition: transform 0.4s ease;
}
.featured-project:hover .featured-thumb img { transform: scale(1.03); }
.featured-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--accent); color: white;
  font-family: var(--font-head); font-size: 0.7rem;
  font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
  box-shadow: 0 3px 12px rgba(37,99,235,0.4);
}
.zoom-hint {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.55); color: white;
  font-size: 0.72rem; font-weight: 600; padding: 5px 10px;
  border-radius: 8px; display: flex; align-items: center; gap: 5px;
  opacity: 0; transition: opacity 0.2s;
  pointer-events: none;
}
.featured-thumb:hover .zoom-hint { opacity: 1; }
.featured-info {
  padding: 40px 40px 36px;
  display: flex; flex-direction: column;
}
.project-industry {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.project-industry::before {
  content: ''; width: 16px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.featured-info h2 {
  font-family: var(--font-head); font-weight: 900;
  font-size: 1.5rem; color: var(--ink);
  letter-spacing: -0.02em; margin-bottom: 6px;
  line-height: 1.2;
}
.featured-info .store-url {
  font-size: 0.82rem; color: var(--accent); margin-bottom: 16px;
  display: flex; align-items: center; gap: 4px;
}
.featured-info .project-summary {
  font-size: 0.92rem; color: var(--ink-soft);
  line-height: 1.75; margin-bottom: 20px;
}
 
/* Work done sections */
.work-sections { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.work-section { }
.work-section-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--ink);
  margin-bottom: 7px;
  display: flex; align-items: center; gap: 6px;
}
.work-section-title::before {
  content: ''; width: 3px; height: 12px;
  background: var(--accent); border-radius: 2px;
}
.work-list {
  display: flex; flex-direction: column; gap: 4px; padding-left: 9px;
}
.work-list li {
  font-size: 0.83rem; color: var(--ink-soft);
  line-height: 1.55; display: flex; gap: 8px; align-items: flex-start;
}
.work-list li::before {
  content: '✓'; color: var(--accent);
  font-weight: 900; font-size: 0.75rem;
  flex-shrink: 0; margin-top: 2px;
}
 
/* Tags */
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.tag {
  padding: 4px 11px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700;
  font-family: var(--font-head); letter-spacing: 0.03em;
}
.tag-blue { background: rgba(37,99,235,0.09); color: var(--accent); }
.tag-green { background: rgba(22,163,74,0.09); color: #15803d; }
.tag-orange { background: rgba(234,88,12,0.09); color: #c2410c; }
.tag-purple { background: rgba(124,58,237,0.09); color: #6d28d9; }
.tag-gold { background: rgba(245,166,35,0.12); color: #b45309; }
 
.project-cta { display: flex; gap: 10px; align-items: center; margin-top: auto; }
.btn-visit {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 9px;
  background: var(--accent); color: white;
  font-weight: 700; font-size: 0.85rem;
  font-family: var(--font-head);
  transition: all 0.2s;
}
.btn-visit:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-zoom {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 9px;
  background: var(--surface); color: var(--ink-soft);
  font-weight: 700; font-size: 0.85rem;
  font-family: var(--font-head);
  border: 1px solid var(--border);
  transition: all 0.2s; cursor: pointer;
}
.btn-zoom:hover { border-color: var(--accent); color: var(--accent); background: white; }
 
/* ══ PROJECT GRID ══ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.3s; display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.project-card[data-filter="maintenance"]:hover { border-color: transparent; }
 
/* Thumbnail */
.card-thumb {
  position: relative; overflow: hidden;
  height: 210px; background: #e8edf5;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-thumb img {
  width: 100%; height: 100%;
  transition: transform 0.4s ease;
}
.project-card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb-placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--surface) 0%, #e8edf5 100%);
}
.placeholder-icon { font-size: 2.8rem; opacity: 0.5; }
.placeholder-text {
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.8rem; color: var(--ink-soft); opacity: 0.6;
}
.card-type-badge {
  position: absolute; bottom: 12px; right: 12px;
  font-family: var(--font-head); font-size: 0.67rem;
  font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
}
.badge-redesign { background:var(--accent-2); color: white; }
.badge-newbuild { background: var(--ink); color: white; }
.badge-maintenance { background: var(--gold); color: white; }
.card-zoom-overlay {
  position: absolute; inset: 0;
  background: rgba(13,15,20,0); display: flex;
  align-items: center; justify-content: center;
  transition: background 0.25s;
}
.card-zoom-overlay span {
  background: rgba(255,255,255,0.95); color: var(--ink);
  font-size: 0.8rem; font-weight: 700; font-family: var(--font-head);
  padding: 8px 16px; border-radius: 8px;
  opacity: 0; transform: scale(0.9);
  transition: all 0.25s;
  display: flex; align-items: center; gap: 6px;
}
.card-thumb:hover .card-zoom-overlay { background: rgba(13,15,20,0.28); }
.card-thumb:hover .card-zoom-overlay span { opacity: 1; transform: scale(1); }
 
/* Card body */
.card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.card-industry {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
.card-country {
  font-size: 0.72rem; color: var(--ink-soft); opacity: 0.7;
}
.card-body h3 {
  font-family: var(--font-head); font-weight: 900;
  font-size: 1.02rem; color: var(--ink);
  letter-spacing: -0.015em; margin-bottom: 5px;
  line-height: 1.25;
}
.card-url {
  font-size: 0.78rem; color: var(--accent); margin-bottom: 12px;
  opacity: 0.8;
}
.card-desc {
  font-size: 0.85rem; color: var(--ink-soft);
  line-height: 1.7; margin-bottom: 14px;
}
 
/* Collapsible work details */
.card-details-toggle {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-size: 0.78rem;
  font-weight: 700; color: var(--accent);
  cursor: pointer; margin-bottom: 10px;
  background: none; border: none; padding: 0;
  transition: color 0.2s;
}
.card-details-toggle:hover { color: var(--accent-hover); }
.toggle-chevron { transition: transform 0.3s; font-size: 0.7rem; }
.card-details-toggle.open .toggle-chevron { transform: rotate(180deg); }
.card-details {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
  margin-bottom: 0;
}
.card-details.open { max-height: 600px; margin-bottom: 12px; }
.card-detail-section { margin-bottom: 10px; }
.card-detail-section:last-child { margin-bottom: 0; }
.card-detail-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink);
  margin-bottom: 5px;
  display: flex; align-items: center; gap: 5px;
}
.card-detail-title::before {
  content: ''; width: 3px; height: 10px;
  background: var(--accent); border-radius: 2px;
}
.card-detail-list { display: flex; flex-direction: column; gap: 3px; padding-left: 8px; }
.card-detail-list li {
  font-size: 0.8rem; color: var(--ink-soft);
  line-height: 1.5; display: flex; gap: 7px; align-items: flex-start;
}
.card-detail-list li::before {
  content: '✓'; color: var(--accent);
  font-size: 0.68rem; font-weight: 900;
  flex-shrink: 0; margin-top: 3px;
}
 
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.card-footer {
  display: flex; gap: 8px; align-items: center; margin-top: auto;
}
.card-btn-visit {
  flex: 1; padding: 9px 14px; border-radius: 8px;
  background: var(--ink); color: white;
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.82rem; text-align: center;
  transition: all 0.2s; display: flex;
  align-items: center; justify-content: center; gap: 5px;
}
.card-btn-visit:hover { background: var(--accent); transform: translateY(-1px); }
.card-btn-enlarge {
  padding: 9px 13px; border-radius: 8px;
  background: var(--surface); color: var(--ink-soft);
  border: 1px solid var(--border); font-size: 1rem;
  transition: all 0.2s; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.card-btn-enlarge:hover { border-color: var(--accent); color: var(--accent); background: white; }
 
/* Maintenance card variant */
.maintenance-card .card-thumb {
  cursor: default;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}
.maintenance-card .card-thumb .placeholder-icon { opacity: 0.8; }
.maintenance-card .card-thumb .placeholder-text { color: rgba(255,255,255,0.5); }
.maintenance-card .card-btn-enlarge { display: none; }
 
/* ══ STATS STRIP ══ */
.stats-strip {
  background: var(--ink);
  padding: 40px 0;
}
.stats-strip-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.strip-stat {
  padding: 8px 40px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.strip-stat:last-child { border-right: none; }
.strip-stat-num {
  font-family: var(--font-head); font-size: 2rem;
  font-weight: 900; color: white; line-height: 1;
}
.strip-stat-num span { color: #93c5fd; }
.strip-stat-lbl { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 5px; }
 
/* ══ NICHE SECTION ══ */
.niche-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.niche-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 16px;
  display: flex; align-items: center; gap: 12px;
  transition: all 0.25s;
}
.niche-item:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.niche-icon { font-size: 1.3rem; flex-shrink: 0; }
.niche-name {
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.85rem; color: var(--ink);
}
 
/* ══ CTA BAND ══ */
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, #1d3a8a 100%);
  border-radius: var(--radius-lg); padding: 60px 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: -50px; right: -50px;
  width: 220px; height: 220px; border-radius: 100px;
  background: rgba(255,255,255,0.06);
}
.cta-band-text { position: relative; z-index: 1; }
.cta-band h2 {
  font-family: var(--font-head); font-size: 2rem; font-weight: 900;
  color: white; margin-bottom: 8px; letter-spacing: -0.02em;
}
.cta-band p { color: rgba(255,255,255,0.75); font-size: 1rem; }
.btn-white {
  flex-shrink: 0; position: relative; z-index: 1;
  padding: 14px 32px; border-radius: 10px;
  background: white; color: var(--accent);
  font-weight: 700; font-size: 1rem;
  font-family: var(--font-head);
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.25); }
 
/* ══ LIGHTBOX ══ */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(13,15,20,0.92); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  position: relative; max-width: 1100px; width: 100%;
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  display: grid; grid-template-columns: 1.4fr 1fr;
  max-height: 88vh;
}
.lightbox-img-wrap {
  overflow: hidden; background: #1a1f2e;
  display: flex; align-items: flex-start;
  max-height: 88vh; overflow-y: auto;
}
.lightbox-img-wrap img {
  width: 100%; height: auto; display: block;
}
.lightbox-content {
  padding: 32px 28px; overflow-y: auto;
  max-height: 88vh; display: flex; flex-direction: column;
}
.lightbox-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(13,15,20,0.7); color: white;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s; z-index: 10;
  border: none;
}
.lightbox-close:hover { background: var(--accent); }
.lb-industry {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.lightbox-content h2 {
  font-family: var(--font-head); font-weight: 900;
  font-size: 1.3rem; color: var(--ink); margin-bottom: 5px;
  letter-spacing: -0.02em; line-height: 1.2;
}
.lb-url {
  font-size: 0.82rem; color: var(--accent); margin-bottom: 16px;
}
.lb-desc {
  font-size: 0.88rem; color: var(--ink-soft);
  line-height: 1.75; margin-bottom: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.lb-work-sections { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.lb-section-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--ink);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 5px;
}
.lb-section-title::before {
  content: ''; width: 3px; height: 11px;
  background: var(--accent); border-radius: 2px;
}
.lb-list { display: flex; flex-direction: column; gap: 4px; padding-left: 8px; }
.lb-list li {
  font-size: 0.82rem; color: var(--ink-soft); line-height: 1.55;
  display: flex; gap: 8px; align-items: flex-start;
}
.lb-list li::before {
  content: '✓'; color: var(--accent);
  font-size: 0.72rem; font-weight: 900;
  flex-shrink: 0; margin-top: 2px;
}
.lb-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 20px; }
.lb-actions { display: flex; gap: 10px; margin-top: auto; }
 
/* ══ FOOTER ══ */
.footer {
  background: #060810;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 0;
}
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.8); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  font-size: 0.8rem; color: var(--accent); transition: color 0.2s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }
 
/* ══ FLOATING CTA ══ */
.float-cta {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
}
.float-cta-main {
  padding: 12px 22px; border-radius: 100px;
  background: var(--accent); color: white;
  font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(37,99,235,0.5);
  transition: all 0.25s; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  border: none;
}
.float-cta-main:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,0.6); }
.float-pulse {
  width: 10px; height: 10px; border-radius: 100px;
  background: #4ade80; position: relative; flex-shrink: 0;
}
.float-pulse::before {
  content: ''; position: absolute; inset: -4px; border-radius: 100px;
  background: rgba(74,222,128,0.3); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.6);opacity:0.4} }
 
/* ══ HIDDEN CARDS for filter ══ */
.project-card.hidden { display: none; }
 
/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .niche-grid { grid-template-columns: repeat(3, 1fr); }
  .lightbox-inner { grid-template-columns: 1fr; max-height: 90vh; }
  .lightbox-img-wrap { max-height: 280px; }
  .featured-project { grid-template-columns: 1fr; }
  .featured-thumb { min-height: 260px; }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .niche-grid { grid-template-columns: repeat(2, 1fr); }
  .port-hero-inner { grid-template-columns: 1fr; }
  .hero-stats-row { display: none; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .stats-strip-inner { gap: 0; }
  .strip-stat { padding: 12px 24px; }
  .lightbox-inner { grid-template-columns: 1fr; }
  .lightbox-img-wrap { max-height: 240px; }
  .filter-bar { gap: 6px; }
  .filter-count { width: 100%; margin-left: 0; }
}
@media (max-width: 540px) {
  .niche-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band h2 { font-size: 1.5rem; }
  .featured-info { padding: 24px 22px; }
}
