/* Portfolio page: self-contained styles */
.rf-portfolio-page{background:#fff;min-height:70vh}
.rf-portfolio-hero{padding:82px 0 64px;background:linear-gradient(180deg,#f7faff 0%,#fff 100%);position:relative;overflow:hidden}
.rf-portfolio-hero:before,.rf-portfolio-hero:after{content:"";position:absolute;border-radius:50%;pointer-events:none;filter:blur(2px)}
.rf-portfolio-hero:before{width:360px;height:360px;right:-150px;top:-170px;background:rgba(37,99,235,.10)}
.rf-portfolio-hero:after{width:280px;height:280px;left:-130px;bottom:-170px;background:rgba(124,58,237,.08)}
.rf-portfolio-head{text-align:center;max-width:820px;margin:auto;position:relative;z-index:1}
.rf-portfolio-head .section-kicker{display:inline-block;color:#2563eb;font-size:11px;font-weight:800;letter-spacing:2px}
.rf-portfolio-head h1{font-size:clamp(44px,7vw,76px);letter-spacing:-3px;line-height:1.03;margin:16px 0}
.rf-portfolio-head h1 em{font-style:normal;color:#2563eb}
.rf-portfolio-head p{max-width:680px;margin:auto;color:#64748b;font-size:15px;line-height:1.8}
.rf-portfolio-tabs{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:30px}
.rf-portfolio-tabs button{appearance:none;border:1px solid #dce6f2;background:#fff;color:#334155;padding:10px 15px;border-radius:999px;font-size:11px;font-weight:800;cursor:pointer;transition:transform .2s ease,background .2s ease,color .2s ease,border-color .2s ease}
.rf-portfolio-tabs button:hover{transform:translateY(-2px);border-color:#8db0ed}
.rf-portfolio-tabs button.active{background:#2563eb;color:#fff;border-color:#2563eb}
.rf-portfolio-section{padding:64px 0 85px}
.rf-portfolio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.rf-project-card{border:1px solid #e1e9f3;border-radius:22px;background:#fff;overflow:hidden;box-shadow:0 12px 35px rgba(15,23,42,.06);display:flex;flex-direction:column;opacity:1;transform:translateY(0);transition:opacity .22s ease,transform .3s ease,box-shadow .3s ease}
.rf-project-card:hover{transform:translateY(-7px);box-shadow:0 24px 55px rgba(15,23,42,.11)}
.rf-project-card.is-hidden{display:none!important}
.rf-project-preview{height:215px;background:linear-gradient(135deg,#eff5ff,#f8fbff);position:relative;overflow:hidden;padding:16px}
.rf-project-preview:after{content:"";position:absolute;width:150px;height:150px;border-radius:50%;right:-55px;bottom:-75px;background:rgba(37,99,235,.10)}
.rf-project-browser{height:100%;position:relative;z-index:1;border:1px solid #dbe5f2;background:#fff;border-radius:14px;box-shadow:0 12px 30px rgba(30,64,175,.10);overflow:hidden}
.rf-browser-top{height:30px;border-bottom:1px solid #e6edf6;display:flex;align-items:center;gap:5px;padding:0 10px}.rf-browser-top i{display:block;width:6px;height:6px;border-radius:50%;background:#cbd5e1}.rf-browser-top b{margin-left:auto;font-size:7px;color:#94a3b8;letter-spacing:.3px}
.rf-browser-body{padding:18px}.rf-mock-line{height:9px;width:55%;border-radius:99px;background:#172033;margin-bottom:10px}.rf-mock-line.blue{background:#2563eb;width:72%;height:18px}.rf-mock-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:18px}.rf-mock-grid span{height:48px;border-radius:8px;background:#edf4ff;border:1px solid #dce8f7}
.rf-project-badge{position:absolute;top:28px;right:28px;z-index:2;padding:7px 9px;border-radius:9px;background:#0b1220;color:#fff;font-size:8px;font-weight:800;letter-spacing:.5px}
.rf-project-body{padding:21px 21px 23px}.rf-project-meta{display:flex;align-items:center;justify-content:space-between;gap:10px}.rf-project-category{font-size:9px;text-transform:uppercase;letter-spacing:1.2px;font-weight:800;color:#2563eb}.rf-project-year{font-size:9px;color:#94a3b8}.rf-project-body h3{font-size:19px;line-height:1.3;margin:10px 0 7px}.rf-project-body p{font-size:11px;line-height:1.75;color:#718096;margin:0 0 16px}.rf-project-link{font-size:11px;font-weight:800;color:#0f172a}
.rf-portfolio-note{margin-top:40px;padding:23px;border:1px dashed #cbd8e8;background:#f8fbff;border-radius:18px;text-align:center;color:#64748b;font-size:12px;line-height:1.7}.rf-portfolio-note strong{color:#0f172a}
.rf-project-card.reveal{opacity:0;transform:translateY(18px)}.rf-project-card.reveal.revealed{opacity:1;transform:translateY(0)}
@media(max-width:900px){.rf-portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.rf-portfolio-hero{padding:64px 0 50px}.rf-portfolio-head h1{font-size:clamp(40px,11vw,56px);letter-spacing:-2.2px}.rf-portfolio-head p{font-size:14px}.rf-portfolio-section{padding:50px 0 65px}.rf-portfolio-grid{grid-template-columns:1fr}.rf-project-preview{height:205px}.rf-portfolio-tabs{gap:7px}.rf-portfolio-tabs button{padding:9px 12px}}

/* === Portfolio final visual update === */
.rf-portfolio-page{background:#fff}
.rf-portfolio-hero{padding:100px 0 72px;background:linear-gradient(180deg,#f7faff 0%,#fff 100%)}
.rf-portfolio-hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(37,99,235,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(37,99,235,.045) 1px,transparent 1px);background-size:54px 54px;mask-image:linear-gradient(to bottom,#000,transparent 88%);pointer-events:none}
.rf-portfolio-hero:after{width:360px;height:360px;left:-170px;bottom:-180px;background:radial-gradient(circle,rgba(96,165,250,.14),transparent 68%);content:"";position:absolute;border-radius:50%;filter:blur(2px);pointer-events:none}
.rf-portfolio-head{text-align:left;max-width:900px;margin:0;position:relative;z-index:2}
.rf-portfolio-head h1{max-width:850px}
.rf-portfolio-head p{max-width:700px;margin:0;color:#64748b}
.rf-portfolio-tabs{justify-content:flex-start}
.rf-project-preview{height:245px;padding:0;background:#edf4ff;position:relative;overflow:hidden}
.rf-project-image{display:block;width:100%;height:100%;object-fit:cover;transition:transform .55s ease,filter .35s ease}
.rf-project-card:hover .rf-project-image{transform:scale(1.035);filter:saturate(1.05)}
.rf-project-badge{top:22px;right:22px}
@media(max-width:600px){
  .rf-portfolio-hero{padding:70px 0 52px}
  .rf-portfolio-head{text-align:left}
  .rf-portfolio-head h1{font-size:clamp(40px,11vw,56px);letter-spacing:-2.2px;line-height:1.04}
  .rf-portfolio-head p{font-size:14px;line-height:1.7;margin:0}
  .rf-portfolio-tabs{justify-content:flex-start;margin-top:25px}
  .rf-project-preview{height:225px}
}

/* ===== Portfolio hero + full dashboard visuals ===== */
.rf-portfolio-hero{padding:100px 0 72px;background:linear-gradient(180deg,#f7faff 0%,#fff 100%)}
.rf-portfolio-hero-inner{position:relative;z-index:2}
.rf-portfolio-head{text-align:left;max-width:850px;margin:0}
.rf-portfolio-head .rf-kicker{margin-bottom:4px}
.rf-portfolio-head h1{font-size:clamp(48px,6vw,82px);line-height:.99;letter-spacing:-4px;margin:25px 0}
.rf-portfolio-head h1 em{font-style:normal;color:#2563eb;background:linear-gradient(110deg,#1d4ed8 0%,#2563eb 35%,#8fd3ff 50%,#2563eb 65%,#1d4ed8 100%);background-size:260% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:blueTextLight 4.2s ease-in-out infinite}
.rf-portfolio-head p{margin:0;max-width:690px;color:#64748b;font-size:17px;line-height:1.8}
.rf-portfolio-tabs{justify-content:flex-start;margin-top:30px}
.rf-project-preview{height:285px;padding:18px;background:linear-gradient(135deg,#eef5ff,#f9fbff)}
.rf-project-image{display:block;width:100%;height:100%;object-fit:cover;border:1px solid #dbe5f2;border-radius:15px;background:#fff;box-shadow:0 12px 30px rgba(30,64,175,.10)}
.rf-project-badge{top:32px;right:32px}
.rf-tech{display:inline-block;font-size:9px;font-weight:700;color:#64748b;background:#f4f7fb;border:1px solid #e3eaf3;border-radius:99px;padding:5px 8px;margin-bottom:14px}
@media(max-width:600px){
 .rf-portfolio-hero{padding:68px 0 52px}
 .rf-portfolio-head{max-width:100%}
 .rf-portfolio-head h1{font-size:clamp(40px,10.8vw,58px);letter-spacing:-2.7px}
 .rf-portfolio-head p{font-size:14px}
 .rf-portfolio-tabs{justify-content:flex-start}
 .rf-project-preview{height:250px}
}

/* Final portfolio hero alignment: same left-aligned treatment as About/Contact */
.rf-portfolio-hero{background:linear-gradient(180deg,#f7faff 0%,#fff 100%) !important;}
.rf-portfolio-head{text-align:left !important;max-width:900px !important;margin:0 !important;}
.rf-portfolio-head p{margin:0 !important;}
.rf-portfolio-head h1 em{font-style:normal;color:#2563eb;background:linear-gradient(110deg,#1d4ed8 0%,#2563eb 30%,#9bd8ff 48%,#2563eb 66%,#1d4ed8 100%);background-size:260% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:rfPortfolioBlueSweep 3.6s ease-in-out infinite;}
@keyframes rfPortfolioBlueSweep{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
@media(max-width:600px){.rf-portfolio-head{text-align:left !important}.rf-portfolio-head p{margin:0 !important}}


/* User-requested final fix: category controls stay outside hero and scroll as a single horizontal row. */
.plans-switcher{display:flex!important;justify-content:flex-start!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;gap:10px!important;padding:2px 2px 10px!important;margin-bottom:42px!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important;scroll-snap-type:x proximity!important;}
.plans-switcher::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.plans-switcher .plan-tab{flex:0 0 auto!important;white-space:nowrap!important;scroll-snap-align:start!important}
.rf-portfolio-tabs{display:flex!important;justify-content:flex-start!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;gap:10px!important;margin:0 0 42px!important;padding:2px 2px 10px!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important;scroll-snap-type:x proximity!important;}
.rf-portfolio-tabs::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.rf-portfolio-tabs button{flex:0 0 auto!important;white-space:nowrap!important;scroll-snap-align:start!important}
@media(max-width:760px){.plans-switcher{margin-bottom:32px!important}.rf-portfolio-tabs{margin:0 0 32px!important;gap:8px!important}.rf-portfolio-tabs button{padding:9px 12px!important}}
