/* OnlinePortfolios.net — static CSS */
*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid}
html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;scroll-behavior:smooth}
body{margin:0}
a{color:inherit;text-decoration:inherit}
button{cursor:pointer;background:transparent;border:0;padding:0;font:inherit}
img,svg{display:block;vertical-align:middle}
input,textarea{font:inherit;margin:0}
textarea{resize:vertical}

::selection{background:rgba(99,102,241,.3);color:#fff}
::-webkit-scrollbar{width:5px}
::-webkit-scrollbar-track{background:#0a0a0a}
::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:3px}

/* Layout */
.relative{position:relative}
.absolute{position:absolute}
.fixed{position:fixed}
.sticky{position:sticky}
.inset-0{inset:0}
.inset-x-0{left:0;right:0}
.top-0{top:0}
.overflow-hidden{overflow:hidden}
.z-50{z-index:50}

/* Flexbox */
.flex{display:flex}
.inline-flex{display:inline-flex}
.flex-col{flex-direction:column}
.flex-wrap{flex-wrap:wrap}
.flex-1{flex:1 1 0%}
.shrink-0{flex-shrink:0}
.items-center{align-items:center}
.items-start{align-items:flex-start}
.items-end{align-items:flex-end}
.justify-center{justify-content:center}
.justify-between{justify-content:space-between}
.self-start{align-self:flex-start}
.gap-1{gap:.25rem}
.gap-1\.5{gap:.375rem}
.gap-2{gap:.5rem}
.gap-3{gap:.75rem}
.gap-4{gap:1rem}
.gap-8{gap:2rem}
.gap-10{gap:2.5rem}
.gap-12{gap:3rem}

/* Grid */
.grid{display:grid}
.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}
.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Display */
.block{display:block}
.hidden{display:none}

/* Spacing */
.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}
.px-2{padding-left:.5rem;padding-right:.5rem}
.px-3{padding-left:.75rem;padding-right:.75rem}
.px-4{padding-left:1rem;padding-right:1rem}
.px-5{padding-left:1.25rem;padding-right:1.25rem}
.px-6{padding-left:1.5rem;padding-right:1.5rem}
.px-7{padding-left:1.75rem;padding-right:1.75rem}
.px-9{padding-left:2.25rem;padding-right:2.25rem}
.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}
.py-1{padding-top:.25rem;padding-bottom:.25rem}
.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}
.py-2{padding-top:.5rem;padding-bottom:.5rem}
.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}
.py-3{padding-top:.75rem;padding-bottom:.75rem}
.py-12{padding-top:3rem;padding-bottom:3rem}
.py-14{padding-top:3.5rem;padding-bottom:3.5rem}
.py-20{padding-top:5rem;padding-bottom:5rem}
.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}
.pt-8{padding-top:2rem}.pt-10{padding-top:2.5rem}
.pt-24{padding-top:6rem}.pt-28{padding-top:7rem}
.pb-24{padding-bottom:6rem}.pb-32{padding-bottom:8rem}
.pl-9{padding-left:2.25rem}.pr-4{padding-right:1rem}
.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}
.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}
.mt-8{margin-top:2rem}.mt-10{margin-top:2.5rem}
.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}
.mt-32{margin-top:8rem}
.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}
.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}
.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}
.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}
.mx-auto{margin-left:auto;margin-right:auto}
.space-y-2>*+*{margin-top:.5rem}
.space-y-4>*+*{margin-top:1rem}
.space-y-8>*+*{margin-top:2rem}

/* Sizing */
.w-1{width:.25rem}.w-1\.5{width:.375rem}
.w-2{width:.5rem}.w-4{width:1rem}
.w-5{width:1.25rem}.w-full{width:100%}
.h-1{height:.25rem}.h-2{height:.5rem}
.h-4{height:1rem}.h-5{height:1.25rem}.h-16{height:4rem}
.max-w-sm{max-width:24rem}.max-w-md{max-width:28rem}
.max-w-xl{max-width:36rem}.max-w-2xl{max-width:42rem}
.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}
.max-w-5xl{max-width:64rem}.max-w-6xl{max-width:72rem}
.min-h-screen{min-height:100vh}
.min-h-\[88vh\]{min-height:88vh}

/* Typography */
.text-xs{font-size:.75rem;line-height:1rem}
.text-sm{font-size:.875rem;line-height:1.25rem}
.text-base{font-size:1rem;line-height:1.5rem}
.text-lg{font-size:1.125rem;line-height:1.75rem}
.text-2xl{font-size:1.5rem;line-height:2rem}
.text-3xl{font-size:1.875rem;line-height:2.25rem}
.text-4xl{font-size:2.25rem;line-height:2.5rem}
.text-5xl{font-size:3rem;line-height:1}
.font-medium{font-weight:500}
.font-semibold{font-weight:600}
.font-bold{font-weight:700}
.font-mono{font-family:ui-monospace,SFMono-Regular,monospace}
.leading-none{line-height:1}
.leading-relaxed{line-height:1.625}
.tracking-tight{letter-spacing:-.025em}
.tracking-wider{letter-spacing:.05em}
.tracking-widest{letter-spacing:.1em}
.uppercase{text-transform:uppercase}
.text-center{text-align:center}
.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.line-clamp-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.select-none{user-select:none}
.whitespace-nowrap{white-space:nowrap}
.resize-none{resize:none}

/* Colors — text */
.text-white{color:#fff}
.text-white\/20{color:rgba(255,255,255,.2)}
.text-white\/25{color:rgba(255,255,255,.25)}
.text-white\/30{color:rgba(255,255,255,.3)}
.text-white\/35{color:rgba(255,255,255,.35)}
.text-white\/40{color:rgba(255,255,255,.4)}
.text-white\/45{color:rgba(255,255,255,.45)}
.text-white\/50{color:rgba(255,255,255,.5)}
.text-white\/55{color:rgba(255,255,255,.55)}
.text-white\/60{color:rgba(255,255,255,.6)}
.text-white\/70{color:rgba(255,255,255,.7)}
.text-white\/80{color:rgba(255,255,255,.8)}
.text-black{color:#000}
.text-indigo-400{color:#818cf8}
.text-emerald-400{color:#34d399}
.text-amber-400{color:#fbbf24}
.text-red-400{color:#f87171}

/* Colors — bg */
.bg-surface-1{background-color:#0a0a0a}
.bg-white{background-color:#fff}
.bg-white\/\[\.04\]{background-color:rgba(255,255,255,.04)}
.bg-white\/\[\.05\]{background-color:rgba(255,255,255,.05)}
.bg-emerald-400\/10{background-color:rgba(52,211,153,.1)}
.bg-amber-400\/10{background-color:rgba(251,191,36,.1)}
.bg-indigo-400\/10{background-color:rgba(129,140,248,.1)}
.bg-indigo-500\/\[\.08\]{background-color:rgba(99,102,241,.08)}

/* Borders */
.border{border-width:1px}
.border-b{border-bottom-width:1px}
.border-t{border-top-width:1px}
.border-y{border-top-width:1px;border-bottom-width:1px}
.border-indigo-500\/25{border-color:rgba(99,102,241,.25)}
.border-emerald-400\/20{border-color:rgba(52,211,153,.2)}
.border-amber-400\/20{border-color:rgba(251,191,36,.2)}
.border-indigo-400\/20{border-color:rgba(129,140,248,.2)}
.border-white\/10{border-color:rgba(255,255,255,.1)}
.rounded-md{border-radius:.375rem}
.rounded-lg{border-radius:.5rem}
.rounded-xl{border-radius:.75rem}
.rounded-2xl{border-radius:1rem}
.rounded-3xl{border-radius:1.5rem}
.rounded-full{border-radius:9999px}

/* Object fit */
.object-contain{object-fit:contain}
.object-cover{object-fit:cover}

/* Transforms */
.-translate-y-1\/2{transform:translateY(-50%)}

/* Opacity */
.opacity-10{opacity:.1}

/* Transitions */
.transition-colors{transition:color .15s,background-color .15s,border-color .15s}

/* Hover */
.hover\:text-white:hover{color:#fff}
.hover\:bg-white\/90:hover{background-color:rgba(255,255,255,.9)}
.hover\:bg-white\/5:hover{background-color:rgba(255,255,255,.05)}
.hover\:border-white\/20:hover{border-color:rgba(255,255,255,.2)}

/* Focus */
.focus\:outline-none:focus{outline:none}
.focus\:border-white\/20:focus{border-color:rgba(255,255,255,.2)}

/* Animation — pulse only, no heavy animations */
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
.animate-pulse{animation:pulse 2s ease-in-out infinite}

/* Fade-up — simple, no JS library needed */
.fade-up{opacity:0;transform:translateY(14px);transition:opacity .4s ease,transform .4s ease}
.fade-up.visible{opacity:1;transform:none}

/* Components */
.glass{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07)}

.text-grad{
  background:linear-gradient(135deg,#fff 0%,rgba(255,255,255,.5) 100%);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text
}
.text-grad-accent{
  background:linear-gradient(135deg,#6366f1,#8b5cf6,#a78bfa);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text
}

/* Navbar */
.navbar-scrolled{
  background:rgba(0,0,0,.8);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(255,255,255,.06)
}

/* Card */
.card-hover{transition:border-color .2s}
.card-hover:hover{border-color:rgba(255,255,255,.16)}

/* Ambient background — pure CSS, no JS, no GPU blur divs */
.ambient{
  position:fixed;inset:0;pointer-events:none;z-index:0;
  background:
    radial-gradient(ellipse 55% 40% at 75% 5%, rgba(99,102,241,.07) 0%,transparent 70%),
    radial-gradient(ellipse 45% 35% at 15% 65%,rgba(139,92,246,.04) 0%,transparent 70%)
}

/* Filter buttons */
.cat-btn{transition:background .15s,color .15s,border-color .15s}
.active-cat{background:#fff !important;color:#000 !important;border-color:#fff !important}
.project-item.hidden-item{display:none}

/* Responsive */
@media(min-width:640px){
  .sm\:flex-row{flex-direction:row}
  .sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}
  .sm\:text-lg{font-size:1.125rem;line-height:1.75rem}
  .sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}
  .sm\:text-4xl{font-size:2.25rem;line-height:2.5rem}
  .sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .sm\:p-14{padding:3.5rem}
}
@media(min-width:768px){
  .md\:flex{display:flex}
  .md\:hidden{display:none}
  .md\:inline-flex{display:inline-flex}
  .md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
  .md\:text-5xl{font-size:3rem;line-height:1}
  /* Wide card: side-by-side layout */
  .md\:flex-row{flex-direction:row}
  .md\:flex-row>div:first-child{width:42%;min-height:260px;flex-shrink:0}
}
@media(min-width:1024px){
  .lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
  .lg\:col-span-2{grid-column:span 2/span 2}
  .lg\:col-span-3{grid-column:span 3/span 3}
  .lg\:sticky{position:sticky}
  .lg\:top-28{top:7rem}
  .lg\:self-start{align-self:flex-start}
}
