/* portfolio.css — ULTRA PREMIUM theme for Portfolio (replace file) */
:root{
  --bg:#05050a;
  --card:#07101a;
  --muted:#9aa6b8;
  --glass: rgba(255,255,255,0.04);
  --glass-2: rgba(255,255,255,0.02);
  --radius:18px;
  --g1:#ff2bd6;
  --g2:#7c2cff;
  --g3:#00a6ff;
  --accent: linear-gradient(90deg,var(--g1),var(--g2),var(--g3));
  --glass-border: rgba(255,255,255,0.06);
  --card-elev: 0 18px 60px rgba(2,6,23,0.6);
  --text:#eaf2ff;
  --transition: 280ms cubic-bezier(.2,.9,.3,1);
}

/* base page spacing & smooth */
html { scroll-behavior: smooth; }
body { background: linear-gradient(180deg,#04050a 0%, #071019 60%); color:var(--text); font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; line-height:1.5; }

/* container */
.container{max-width:1120px;margin:0 auto;padding:0 20px;}

/* hero */
.page-hero{padding:64px 0 32px;}
.hero-inner-compact{display:flex;gap:28px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.hero-left h1{font-size:28px;margin:0 0 8px;font-weight:700;letter-spacing:-0.2px}
.hero-left .lead{color:var(--muted);margin:0 0 12px;font-size:15px}
.portfolio-visual{width:200px;border-radius:12px;box-shadow:0 30px 90px rgba(124,44,255,0.06);}

/* section titles */
.section-title{font-size:20px;margin:0 0 6px;display:inline-block;position:relative;padding-bottom:6px}
.section-title::after{content:"";position:absolute;left:0;bottom:0;height:4px;width:48%;border-radius:6px;background:var(--accent);filter:blur(6px);opacity:0.95}

/* tiny accents */
.section-sub{color:var(--muted);margin-top:6px;font-size:15px;}

/* STORY CARD (premium) */
.story-section{padding:40px 0 10px}
.story-inner{display:grid;grid-template-columns:1fr 420px;gap:28px;align-items:center}
@media(max-width:980px){ .story-inner{grid-template-columns:1fr} }

.story-card{
  position:relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: var(--radius);
  padding:20px;
  overflow:hidden;
  box-shadow: var(--card-elev);
  border: 1px solid var(--glass-border);
  display:flex;flex-direction:column;align-items:center;gap:14px;
  transform-origin:center; transition: transform var(--transition), box-shadow var(--transition);
}
.story-card:hover{ transform: translateY(-8px) scale(1.01); box-shadow: 0 36px 120px rgba(2,6,23,0.72); }
.story-card .story-visual{width:160px;border-radius:12px;}

/* soft orbit accent */
.story-card::before{
  content:"";
  position:absolute;right:-40px;top:-40px;width:220px;height:220px;border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(124,44,255,0.12), transparent 30%), linear-gradient(135deg, rgba(255,43,214,0.06), rgba(0,166,255,0.03));
  transform:rotate(18deg);filter:blur(10px);pointer-events:none;
}

/* ULTRA PREMIUM — OUR STORY section */
.story-hero{display:grid;grid-template-columns:1fr 420px;gap:28px;align-items:start;padding:40px 0;}
@media(max-width:980px){ .story-hero{grid-template-columns:1fr} }

.eyebrow{font-weight:700;color:rgba(255,255,255,0.75);letter-spacing:0.6px;font-size:13px;margin-bottom:10px}
.hero-title{font-size:28px;margin:0 0 10px;line-height:1.05}
.story-hero .lead{color:var(--muted);margin-bottom:16px;font-size:15px}

/* KPI badges */
.story-kpis{display:flex;gap:14px;margin:12px 0 18px;align-items:center;flex-wrap:wrap}
.kpi{background:linear-gradient(180deg, rgba(255,255,255,0.02), transparent);padding:12px 14px;border-radius:10px;border:1px solid rgba(255,255,255,0.03);min-width:110px;text-align:center}
.kpi strong{display:block;font-size:20px;background:var(--accent);-webkit-background-clip:text;-webkit-text-fill-color:transparent}

/* story actions */
.story-actions{display:flex;gap:10px;margin-bottom:18px}
.story-actions .btn-primary{padding:10px 14px;border-radius:12px}
.story-actions .btn-outline{padding:10px 14px;border-radius:12px}

/* timeline */
.story-timeline{list-style:none;padding:0;margin:16px 0 0;display:flex;flex-direction:column;gap:12px}
.story-timeline li{display:flex;gap:12px;align-items:flex-start;background:linear-gradient(180deg, rgba(255,255,255,0.01), transparent);padding:10px;border-radius:10px;border:1px solid rgba(255,255,255,0.02)}
.step-year{min-width:56px;font-weight:700;color:var(--muted);font-size:14px}
.step-body strong{display:block;font-weight:700;margin-bottom:4px}
.story-timeline .step-body{color:var(--muted);font-size:14px}

/* client logos */
.client-strip{display:flex;gap:14px;align-items:center;margin-top:18px;flex-wrap:wrap}
.client-strip img{opacity:0.95;filter:grayscale(0.2);border-radius:6px;border:1px solid rgba(255,255,255,0.03);background:rgba(255,255,255,0.01);padding:6px}

/* right card */
.story-hero-right{display:flex;justify-content:center}
.story-card.premium{position:relative;background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));padding:20px;border-radius:16px;border:1px solid rgba(255,255,255,0.03);box-shadow:0 30px 100px rgba(2,6,23,0.6);width:100%;max-width:380px;overflow:hidden;display:flex;flex-direction:column;gap:12px;align-items:center}
.story-card .card-accent{position:absolute;right:-40px;top:-40px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle at 30% 30%, rgba(124,44,255,0.12), transparent 30%);filter:blur(12px);pointer-events:none;transform:rotate(14deg)}
.story-visual{width:140px;border-radius:12px;box-shadow:0 20px 60px rgba(2,6,23,0.6)}
.founder{margin:6px 0 0;font-size:15px}
.quote{font-style:italic;color:var(--muted);text-align:center;margin:4px 0 8px;padding:0 8px}

/* trust row */
.trust-row{display:flex;gap:12px;width:100%;flex-direction:column}
.trust-item{display:flex;gap:12px;align-items:center}
.trust-item .dot{width:10px;height:10px;border-radius:50%;background:linear-gradient(90deg,var(--g1),var(--g3));box-shadow:0 6px 18px rgba(124,44,255,0.08)}

/* small responsive tweaks */
@media(max-width:640px){
  .hero-title{font-size:20px}
  .story-card.premium{max-width:100%}
  .kpi{min-width:90px}
}

/* subtle entrance animation for story */
.story-hero .reveal, .story-card.premium{transform-origin:center;transition:transform 700ms cubic-bezier(.2,.9,.3,1), opacity 640ms;opacity:0;transform:translateY(18px) scale(.995)}
.reveal.active ~ .story-hero .reveal, .reveal.active + .story-hero, .reveal.active .story-card.premium { opacity:1; transform:none; }


/* goal cards */
.goal-section{padding:38px 0}
.goal-grid{display:flex;gap:18px;margin-top:18px;flex-wrap:wrap}
.goal-card{
  flex:1;min-width:240px;background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding:20px;border-radius:14px;border:1px solid var(--glass-border);box-shadow:0 18px 60px rgba(2,6,23,0.55);
  transition: transform var(--transition), box-shadow var(--transition);cursor:default;
}
.goal-card:hover{ transform: translateY(-6px); box-shadow:0 30px 90px rgba(2,6,23,0.7); }
.goal-icon{font-size:26px;margin-bottom:8px;background:var(--accent);-webkit-background-clip:text;-webkit-text-fill-color:transparent}

/* stats */
.goal-stats{display:flex;gap:14px;margin-top:18px;flex-wrap:wrap}
.goal-stats .stat{background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); padding:14px;border-radius:12px; min-width:140px; text-align:center; border:1px solid rgba(255,255,255,0.03);}
.goal-stats .stat strong{font-size:26px;display:block;background:var(--accent);-webkit-background-clip:text;-webkit-text-fill-color:transparent}

/* filters */
.filters{display:flex;gap:10px}
.filter-btn{
  background:transparent;border:1px solid rgba(255,255,255,0.04);padding:10px 14px;border-radius:12px;color:var(--text);cursor:pointer;font-weight:600;font-size:14px;
  transition:all var(--transition);
}
.filter-btn:hover{ transform: translateY(-4px); box-shadow: 0 12px 36px rgba(124,44,255,0.04); }
.filter-btn.active{background: linear-gradient(90deg, rgba(255,43,214,0.12), rgba(124,44,255,0.12)); border: 1px solid rgba(124,44,255,0.22); color:#fff;}

/* portfolio grid */
.portfolio-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:20px;
  margin-top:22px;
}

/* card */
.case-card{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-elev);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display:flex;flex-direction:column;
}
.case-card:focus-within, .case-card:hover{
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 40px 140px rgba(2,6,23,0.8);
  border-color: rgba(124,44,255,0.18);
}
.case-thumb{display:block;cursor:pointer;border-bottom:1px solid rgba(255,255,255,0.02)}
.case-thumb img{width:100%;height:220px;object-fit:cover;display:block;transition: transform 600ms cubic-bezier(.2,.9,.3,1);}
.case-card:hover .case-thumb img{ transform: scale(1.04) translateY(-4px); }

/* info */
.case-info{padding:16px;display:flex;flex-direction:column;gap:10px;flex:1}
.case-info h3{margin:0;font-size:17px;letter-spacing:-0.2px}
.case-info p.muted{margin:0;color:var(--muted);font-size:14px}

/* actions */
.case-actions{display:flex;gap:10px;margin-top:auto;align-items:center}
.btn-outline{background:transparent;border:1px solid rgba(255,255,255,0.06);padding:9px 12px;border-radius:10px;color:var(--text);text-decoration:none;cursor:pointer;transition:all var(--transition)}
.btn-outline:hover{transform:translateY(-4px);box-shadow:0 12px 40px rgba(0,0,0,0.45)}
.btn-ghost{background:transparent;border:0;padding:9px 12px;border-radius:10px;color:var(--muted);cursor:pointer;border:1px solid transparent}
.btn-ghost:hover{color:#fff}

/* modal */
.modal{
  position:fixed;inset:0;display:none;align-items:center;justify-content:center;
  background: linear-gradient(180deg, rgba(2,6,23,0.6), rgba(2,6,23,0.75));
  z-index:9999;padding:28px;
}
.modal[aria-hidden="false"]{display:flex}
.modal-inner{
  width:min(980px, 96%);background: linear-gradient(180deg,#071018,#081018);border-radius:16px;padding:22px;border:1px solid rgba(255,255,255,0.03);box-shadow:0 40px 150px rgba(2,6,23,0.85);
}
.modal-close{position:absolute;right:34px;top:28px;background:transparent;border:0;color:var(--text);font-size:20px;cursor:pointer}
.modal-body h3{margin-top:0;font-size:20px}
.modal-body .muted{color:var(--muted)}

/* gallery thumbnails */
.gallery{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.gallery img{width:160px;height:100px;object-fit:cover;border-radius:10px;border:1px solid rgba(255,255,255,0.03);cursor:pointer;transition:transform 220ms}
.gallery img:hover{transform:translateY(-6px) scale(1.02)}

/* Lightbox */
.lightbox{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,0.94);z-index:10000;padding:20px}
.lightbox[aria-hidden="false"]{display:flex}
.lightbox img{max-width:calc(100% - 120px);max-height:82vh;border-radius:12px;box-shadow:0 40px 120px rgba(0,0,0,0.8)}
.lightbox-close{position:absolute;right:22px;top:22px;background:transparent;border:0;color:var(--text);font-size:22px;cursor:pointer}
.lightbox-controls{position:absolute;left:50%;transform:translateX(-50%);bottom:30px;display:flex;gap:18px}
.lightbox-controls button{background:transparent;border:1px solid rgba(255,255,255,0.06);padding:10px 14px;border-radius:12px;color:var(--text);cursor:pointer}

/* small helpers and reveals */
.reveal{opacity:0;transform:translateY(18px);transition:all 640ms cubic-bezier(.2,.9,.3,1)}
.reveal.active{opacity:1;transform:none}

/* responsive */
@media(max-width:980px){
  .portfolio-visual{display:none}
  .case-thumb img{height:160px}
  .story-inner{grid-template-columns:1fr}
  .goal-grid{flex-direction:column}
  .goal-stats{flex-direction:column}
}
@media(max-width:520px){
  .case-thumb img{height:140px}
  .gallery img{width:100px;height:66px}
  .filters{flex-wrap:wrap;gap:8px}
}

/* accessibility focus */
button:focus, a:focus, .case-card:focus-within{outline: 3px solid rgba(124,44,255,0.16); outline-offset:4px;}

/* subtle animated gradient border for featured cards (add .featured to article) */
.case-card.featured{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid transparent;
  box-shadow: 0 30px 120px rgba(12,8,30,0.7);
}
.case-card.featured::after{
  content:"";position:absolute;inset:1px;border-radius:14px;padding:1px;background:linear-gradient(90deg, rgba(255,43,214,0.12), rgba(124,44,255,0.12), rgba(0,166,255,0.08)); -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000); mask-composite: exclude; pointer-events:none;
  filter: blur(8px);opacity:1;
}

/* PROJECT STATS BAR */
.project-stats{
  display:flex;
  gap:20px;
  margin:20px 0 26px;
  flex-wrap:wrap;
  padding:18px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border:1px solid rgba(255,255,255,0.06);
  box-shadow:0 22px 70px rgba(0,0,0,0.4);
}

.pstat{
  flex:1;
  min-width:160px;
  text-align:center;
}

.pstat strong{
  display:block;
  font-size:26px;
  font-weight:800;
  background:var(--accent);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.pstat span{
  color:var(--muted);
  font-size:14px;
}

/* === ULTRA: appended micro-animations & polish (append only) === */

/* floating gradient accent behind hero */
.hero-accent{
  position:absolute;right:8%;top:8%;
  width:360px;height:360px;border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(124,44,255,0.12), rgba(0,166,255,0.04) 30%);
  filter:blur(36px) saturate(1.05);
  pointer-events:none; transform:translateZ(0);
  animation: ultraFloat 9s ease-in-out infinite;
  opacity:0.95;
}
@keyframes ultraFloat{ 0%{ transform:translateY(0) } 50%{ transform:translateY(-18px) } 100%{ transform:translateY(0) } }

/* 3D tilt "safety" transform origin + smoother hover on cards */
.case-card{ transform-style:preserve-3d; will-change: transform; transition: transform 280ms cubic-bezier(.2,.9,.3,1), box-shadow 280ms; }
.case-card:hover{ transform: translateY(-12px) scale(1.02); }

/* subtle animated gradient border on hover (non-destructive) */
.case-card::after{
  content:""; position:absolute; inset:0; border-radius:14px; padding:1px;
  background: linear-gradient(90deg, rgba(255,43,214,0.12), rgba(124,44,255,0.12), rgba(0,166,255,0.08));
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  mask-composite: exclude; pointer-events:none; filter: blur(10px); opacity:0; transition: opacity 320ms;
}
.case-card:hover::after, .case-card.featured::after{ opacity:1; }

/* thumbnail micro-zoom */
.case-thumb img{ transition: transform 420ms cubic-bezier(.2,.9,.3,1); will-change:transform; }
.case-card:hover .case-thumb img{ transform: scale(1.04) translateY(-6px); }

/* modal & lightbox smoother entry (keeps current structure) */
.modal-inner{ transform: translateY(18px) scale(.98); opacity:0; transition: transform 420ms cubic-bezier(.2,.9,.3,1), opacity 320ms; }
.modal[aria-hidden="false"] .modal-inner{ transform:none; opacity:1; }

/* lightbox image fade/scale */
.lightbox img{ transform: scale(.96); opacity:0; transition: transform 420ms, opacity 360ms; }
.lightbox[aria-hidden="false"] img{ transform:none; opacity:1; }

/* reveal: use class .reveal.active (non-intrusive) */
.reveal{ opacity:0; transform: translateY(18px); transition: all 640ms cubic-bezier(.2,.9,.3,1); }
.reveal.active{ opacity:1; transform:none; }

/* counters visual tweak — ensure numbers look punchy */
[kpi] strong[data-count], [data-count]{ font-weight:800; letter-spacing:-0.4px; }

/* prefers-reduced-motion: reduce animations */
@media (prefers-reduced-motion: reduce) {
  .hero-accent, .case-card, .modal-inner, .lightbox img, .reveal { animation: none !important; transition: none !important; transform: none !important; }
}

/* === ULTRA-PREMIUM: Our Journey styling (append only) === */

/* container for svg line behind items */
.story-timeline.ultra-premium{ position:relative; padding-left:0; margin:18px 0 0; display:flex; flex-direction:column; gap:18px; }

/* svg vertical path */
.story-timeline.ultra-premium .timeline-svg{ position:absolute; left:50px; top:18px; bottom:18px; width:120px; height:calc(100% - 36px); pointer-events:none; overflow:visible; z-index:0; }
.story-timeline.ultra-premium .timeline-svg .timeline-path{
  stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1200ms cubic-bezier(.2,.9,.3,1);
  filter: url(#gblur);
}

/* timeline item layout */
.story-timeline.ultra-premium .timeline-item{ position:relative; display:flex; gap:18px; align-items:flex-start; z-index:2; padding:12px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-radius:14px; border:1px solid rgba(255,255,255,0.03); box-shadow: 0 18px 60px rgba(2,6,23,0.18); transform: translateY(16px) scale(.996); opacity:0; transition: transform 640ms cubic-bezier(.2,.9,.3,1), opacity 640ms; }

/* left column */
.story-timeline.ultra-premium .ti-left{ width:100px; min-width:100px; display:flex; flex-direction:column; align-items:flex-end; gap:6px; padding-top:6px; position:relative; }
.story-timeline.ultra-premium .ti-year{ font-weight:800; color:var(--muted); letter-spacing:0.6px; font-size:13px; }
.story-timeline.ultra-premium .ti-bullet{ width:18px; height:18px; border-radius:50%; display:flex; align-items:center; justify-content:center; background: linear-gradient(90deg, rgba(255,43,214,0.12), rgba(124,44,255,0.12)); box-shadow: 0 12px 38px rgba(124,44,255,0.06); transition: transform 360ms, box-shadow 360ms; border: 2px solid rgba(255,255,255,0.04); }
.story-timeline.ultra-premium .ti-bullet svg{ width:12px; height:12px; fill:url(#tg); opacity:0.95; }

/* featured bullet */
.story-timeline.ultra-premium .timeline-item.featured .ti-bullet,
.story-timeline.ultra-premium .ti-bullet.featured{ width:24px; height:24px; box-shadow: 0 30px 120px rgba(124,44,255,0.16); transform: translateY(-2px) scale(1.02); }

/* body card */
.story-timeline.ultra-premium .ti-body{ flex:1; }
.story-timeline.ultra-premium .ti-card{ padding:12px 14px; border-radius:12px; background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.01)); border:1px solid rgba(255,255,255,0.03); box-shadow: 0 8px 30px rgba(2,6,23,0.12); }
.story-timeline.ultra-premium .ti-card h4{ margin:0 0 8px; color:var(--text); font-size:16px; font-weight:800; letter-spacing:-0.2px; }
.story-timeline.ultra-premium .ti-card p{ margin:0; color:var(--muted); font-size:14px; line-height:1.5; }

/* tags */
.story-timeline.ultra-premium .ti-tags{ display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.story-timeline.ultra-premium .ti-tags span{ font-size:12px; padding:6px 8px; border-radius:8px; background: rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.02); color:var(--muted); }

/* stats in highlight */
.story-timeline.ultra-premium .ti-stats{ display:flex; gap:12px; margin-top:10px; align-items:center; }
.story-timeline.ultra-premium .ti-stat{ min-width:110px; text-align:left; }
.story-timeline.ultra-premium .ti-stat strong{ display:block; font-size:20px; font-weight:900; background:var(--accent); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }

/* CTA card */
.story-timeline.ultra-premium .cta-card{ display:flex; flex-direction:column; gap:10px; align-items:flex-start; }
.story-timeline.ultra-premium .cta-actions{ display:flex; gap:10px; margin-top:6px; }

/* hover interactions */
.story-timeline.ultra-premium .timeline-item:hover{ transform: translateY(-8px); box-shadow: 0 40px 150px rgba(2,6,23,0.28); }
.story-timeline.ultra-premium .timeline-item:hover .ti-bullet{ transform: translateY(-2px) scale(1.06); box-shadow: 0 30px 100px rgba(124,44,255,0.12); }

/* reveal */
.story-timeline.ultra-premium .timeline-item.active{ opacity:1; transform:none; }

/* animated micro-glow behind featured card */
.story-timeline.ultra-premium .timeline-item.featured .ti-card.highlight{
  position:relative; overflow:visible;
}
.story-timeline.ultra-premium .timeline-item.featured .ti-card.highlight::before{
  content:""; position:absolute; inset:-8px; border-radius:12px; background:linear-gradient(90deg, rgba(255,43,214,0.06), rgba(124,44,255,0.06), rgba(0,166,255,0.04)); filter: blur(22px); opacity:0.9; z-index:-1;
}

/* responsive */
@media(max-width:980px){
  .story-timeline.ultra-premium .timeline-svg{ left:36px; width:72px; }
  .story-timeline.ultra-premium .ti-left{ width:72px; min-width:72px; align-items:flex-end; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce){
  .story-timeline.ultra-premium .timeline-path{ transition:none !important; stroke-dashoffset:0 !important; }
  .story-timeline.ultra-premium .timeline-item{ transition:none !important; transform:none !important; opacity:1 !important; }
  .story-timeline.ultra-premium .ti-bullet{ transition:none !important; }
}

/* === ULTRA GOALS (append only) === */

.goal-top{ margin-bottom:12px; }
.ultra-goals{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:18px; margin-top:18px; align-items:start; }

.goal-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:14px; padding:18px; border:1px solid rgba(255,255,255,0.03); box-shadow:0 18px 60px rgba(2,6,23,0.18);
  transition: transform 360ms cubic-bezier(.2,.9,.3,1), box-shadow 360ms, border-color 360ms; position:relative; overflow:visible;
}
.goal-card:hover{ transform:translateY(-10px) scale(1.02); box-shadow:0 40px 140px rgba(2,6,23,0.28); border-color: rgba(124,44,255,0.12); }

.goal-card .goal-icon, .goal-card .goal-badge{ font-size:28px; display:inline-flex; align-items:center; justify-content:center; width:54px; height:54px; border-radius:12px; background: linear-gradient(90deg, rgba(255,43,214,0.06), rgba(124,44,255,0.06)); box-shadow:0 12px 40px rgba(124,44,255,0.04); margin-bottom:8px; }

.goal-card h3{ margin:0 0 8px; font-size:18px; color:var(--text); font-weight:800; }
.goal-card p.muted{ margin:0 0 10px; color:var(--muted); font-size:14px; }

.goal-card-foot{ display:flex; gap:10px; align-items:center; margin-top:auto; }
.pill{ font-size:12px; padding:6px 10px; border-radius:999px; background: rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.03); color:var(--muted); }

/* featured center card visual emphasis */
.goal-card.featured{ transform: translateY(-4px) scale(1.01); border: 1px solid rgba(124,44,255,0.14); box-shadow: 0 40px 150px rgba(12,8,30,0.6); }
.goal-card.featured::after{
  content:""; position:absolute; inset:-8px; border-radius:12px; background: linear-gradient(90deg, rgba(255,43,214,0.06), rgba(124,44,255,0.06), rgba(0,166,255,0.04)); filter: blur(18px); opacity:0.9; z-index:-1;
}

/* stats */
.ultra-stats{ display:flex; gap:14px; margin-top:18px; flex-wrap:wrap; padding:14px; border-radius:12px; background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.01)); border:1px solid rgba(255,255,255,0.03); box-shadow:0 16px 60px rgba(0,0,0,0.28); }
.ultra-stats .pstat{ min-width:120px; text-align:left; }
.ultra-stats .pstat strong{ display:block; font-size:20px; font-weight:900; background:var(--accent); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }

/* reveal base for cards & stats (JS will add .active) */
.reveal{ opacity:0; transform: translateY(16px); transition: opacity 640ms cubic-bezier(.2,.9,.3,1), transform 640ms; }
.reveal.active{ opacity:1; transform:none; }

/* small responsive */
@media(max-width:760px){
  .ultra-stats{ gap:10px; padding:12px; }
  .goal-card{ padding:14px; }
  .goal-card .goal-icon{ width:48px; height:48px; font-size:22px; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce){
  .goal-card, .ultra-stats, .reveal { transition:none !important; transform:none !important; opacity:1 !important; animation:none !important; }
}

/* === ULTRA SITE KIT — shared across pages (append once) === */

/* body mod */
body.ultra-page { background: linear-gradient(180deg,#04050a 0%, #071019 60%); color:var(--text); }

/* universal hero accent */
.hero-accent{ position:absolute; right:6%; top:8%; width:360px; height:360px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(124,44,255,0.12), rgba(0,166,255,0.04) 30%);
  filter: blur(36px) saturate(1.02); pointer-events:none; animation: ultraFloat 9s ease-in-out infinite; z-index:0; }
@keyframes ultraFloat{ 0%{ transform:translateY(0) } 50%{ transform:translateY(-18px) } 100%{ transform:translateY(0) } }

/* container centered layer above accent */
.ultra-hero{ position:relative; padding:64px 0 40px; z-index:1; }

/* premium card */
.ultra-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:14px; padding:18px; border:1px solid rgba(255,255,255,0.03);
  box-shadow:0 26px 100px rgba(2,6,23,0.32); transition: transform 360ms cubic-bezier(.2,.9,.3,1), box-shadow 360ms; overflow:hidden;
}
.ultra-card:hover{ transform: translateY(-8px); box-shadow:0 46px 160px rgba(2,6,23,0.45); }

/* card accent border */
.ultra-card::after{ content:""; position:absolute; inset:1.2rem; border-radius:12px; pointer-events:none; }

/* button styles (consistent) */
.btn-ultra { padding:10px 16px; border-radius:12px; font-weight:700; letter-spacing:0.2px; text-decoration:none; display:inline-block; }
.btn-primary.ultra { background: linear-gradient(90deg,var(--g1),var(--g2)); color:#fff; box-shadow:0 12px 40px rgba(124,44,255,0.06); border:0; }
.btn-outline.ultra { background:transparent; color:var(--text); border:1px solid rgba(255,255,255,0.06); }

/* premium grid for projects/goals */
.ultra-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap:18px; margin-top:18px; }

/* stats bar (reusable) */
.ultra-stats{ display:flex; gap:14px; flex-wrap:wrap; padding:14px; background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.01)); border-radius:12px; border:1px solid rgba(255,255,255,0.03); box-shadow:0 18px 60px rgba(0,0,0,0.28); }
.ultra-stats .pstat{ min-width:120px; }
.ultra-stats .pstat strong{ font-size:20px; font-weight:900; background:var(--accent); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }

/* subtle reveal helper */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity 640ms cubic-bezier(.2,.9,.3,1), transform 640ms; }
.reveal.active{ opacity:1; transform:none; }

/* small responsive tweaks */
@media(max-width:760px){ .hero-accent{ width:220px; height:220px; right:2%; top:6%; filter:blur(28px);} }

/* accessibility */
@media (prefers-reduced-motion: reduce){ .hero-accent, .ultra-card, .reveal { animation:none !important; transition:none !important; transform:none !important; } }


/* === ULTRA: Case modal / gallery styling (append only) === */

/* modal overall (slightly larger, centered) */
.modal-inner{
  width:min(1020px,96%);
  max-height:90vh;
  display:grid;
  grid-template-columns: 1fr 420px;
  gap:20px;
  padding:22px;
  border-radius:16px;
  overflow:auto;
  background: linear-gradient(180deg,#071018,#081018);
  border:1px solid rgba(255,255,255,0.03);
  box-shadow:0 50px 160px rgba(2,6,23,0.9);
  transform: translateY(18px) scale(.98);
  opacity:0; transition: transform 420ms cubic-bezier(.2,.9,.3,1), opacity 320ms;
}

/* modal visible */
.modal[aria-hidden="false"] .modal-inner{ transform:none; opacity:1; }

/* left content (text + gallery) */
.modal-body{
  padding:6px 0;
  display:flex;
  flex-direction:column;
  gap:12px;
  color:var(--muted);
}

/* case title / subtitle */
#caseTitle{ font-size:20px; margin:0; color:var(--text); font-weight:800; letter-spacing:-0.2px; }
#caseSubtitle{ margin:4px 0 8px; color:var(--muted); font-size:14px; }

/* hero image area */
.modal-hero{
  width:100%;
  height:320px;
  border-radius:12px;
  overflow:hidden;
  background:#081018;
  border:1px solid rgba(255,255,255,0.04);
  box-shadow: 0 26px 90px rgba(2,6,23,0.6);
  display:flex;
  align-items:center;
  justify-content:center;
}
.modal-hero img{ width:100%; height:100%; object-fit:cover; display:block; transition: transform 420ms; }

/* content columns on left */
.case-meta{ display:flex; gap:12px; align-items:flex-start; flex-wrap:wrap; margin-top:6px; }
.kpi-badge{ background: linear-gradient(90deg,var(--g1),var(--g2)); padding:8px 12px; border-radius:10px; font-weight:800; color:#fff; box-shadow:0 14px 40px rgba(124,44,255,0.06); }
.case-tags{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.case-tags .tag{ font-size:12px; padding:6px 10px; border-radius:999px; background: rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.03); color:var(--muted); }

/* right column (side card) */
.modal-side{
  display:flex; flex-direction:column; gap:12px; align-items:stretch;
  position:relative;
}
.modal-side .side-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:12px; padding:14px; border:1px solid rgba(255,255,255,0.03);
  box-shadow:0 20px 80px rgba(2,6,23,0.6);
}
.side-card h5{ margin:0 0 6px; color:var(--text); font-weight:800; }
.side-card p{ margin:0; color:var(--muted); font-size:13px; }

/* gallery thumbnails */
.modal-gallery{ display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
.modal-gallery img{ width:120px; height:72px; object-fit:cover; border-radius:8px; border:1px solid rgba(255,255,255,0.03); cursor:pointer; transition: transform 220ms ease; }
.modal-gallery img:hover{ transform: translateY(-6px) scale(1.03); }

/* lightbox tweak: keep existing */
.lightbox img{ max-width:calc(100% - 120px); max-height:82vh; border-radius:12px; box-shadow:0 40px 120px rgba(0,0,0,0.8); }

/* actions */
.modal-actions{ display:flex; gap:10px; margin-top:8px; }
.modal-actions .btn-outline, .modal-actions .btn-primary{ padding:10px 14px; border-radius:10px; }

/* subtle floating accent behind modal */
.modal-inner::before{
  content:"";
  position:absolute; right:-60px; top:-60px; width:220px; height:220px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(124,44,255,0.12), rgba(0,166,255,0.03)); filter: blur(18px); pointer-events:none; z-index:0;
}

/* responsive: stack columns */
@media(max-width:980px){
  .modal-inner{ grid-template-columns: 1fr; padding:16px; max-height:86vh; }
  .modal-hero{ height:220px; }
  .modal-side{ order:2; }
}


