* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #e6f1ff;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  background-attachment: fixed;
}
.glass {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.site-header {
  position: sticky; top: 0; z-index: 1000; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(15,32,39,0.7); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-header .brand h1 { margin: 0; font-size: 20px }
.site-header .brand p { margin: 0; font-size: 12px; color: #a8c3d8 }
.site-header .site-nav a { margin-left: 12px; color: #e6f1ff }
.site-header .site-nav a:hover { color: #61dafb }
#hero { position: relative; height: 320px; overflow: hidden }
#hero video { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6) }
.hero-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  padding: 16px 24px; text-align: center; color: #e6f1ff }
.hero-text h2 { margin: 0 0 6px 0 }
.hero-text p { margin: 0; color: #cde6ff }
main { padding: 16px }
.about { max-width: 1000px; margin: 16px auto; padding: 16px }
.about ul { margin: 8px 0 0 20px }
.portfolio { max-width: 1200px; margin: 0 auto }
.controls { padding: 12px; margin-bottom: 16px }
.controls.sticky { position: sticky; top: 64px; z-index: 900 }
#search-box {
  width: 100%; max-width: 520px; display: block; margin: 0 auto 10px auto;
  padding: 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06); color: #e6f1ff
}
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap }
.btn-group button {
  padding: 8px 14px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06); color: #e6f1ff; border-radius: 10px; cursor: pointer
}
.btn-group button.active { background: rgba(0,180,216,0.25); border-color: rgba(0,180,216,0.6) }
#sort-bar label { margin-right: 6px }
#sort-select {
  padding: 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06); color: #e6f1ff
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px }
.card { position: relative; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0,0,0,0.35) }
.thumb-wrap { width: 100%; aspect-ratio: 16/9; background: rgba(255,255,255,0.05) }
.card img { width: 100%; height: 100%; object-fit: cover; display: block }
.card::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.35); opacity: 0; transition: opacity 0.2s }
.card:hover::before { opacity: 1 }
.card .meta { padding: 10px }
.card h3 { margin: 0 0 6px 0; color: #e6f1ff; font-size: 16px }
.card p { margin: 0; color: #cde6ff; font-size: 14px }
.tags { margin-top: 6px }
.tags span {
  display: inline-block; margin: 2px; padding: 2px 8px; font-size: 12px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; color: #e6f1ff
}
.center { text-align: center; margin-top: 16px }
#load-more {
  padding: 10px 20px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, #00b4d8, #0077b6); color: white; cursor: pointer
}
#load-more:hover { filter: brightness(1.1) }
#back-to-top {
  position: fixed; bottom: 20px; right: 20px; display: none;
  padding: 10px 12px; border: none; border-radius: 50%;
  background: #00b4d8; color: #0b1b24; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.4)
}
.modal { display: none; position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,0.6); padding: 20px }
.modal-content { margin: 5% auto; padding: 20px; max-width: 520px; color: #e6f1ff }
.close { float: right; font-size: 22px; cursor: pointer }
.modal form { display: grid; gap: 10px }
.modal input, .modal textarea, .modal button {
  padding: 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06); color: #e6f1ff
}
.lightbox { display: none; position: fixed; inset: 0; z-index: 1300; background: rgba(0,0,0,0.9); color: #fff; text-align: center; padding: 40px 20px }
.lightbox .close { position: absolute; top: 12px; right: 16px; font-size: 28px; cursor: pointer }
#lightbox-content { max-width: 90%; max-height: 70vh; margin: 40px auto 10px auto }
#lightbox-content img, #lightbox-content video { max-width: 100%; max-height: 70vh }
#lightbox-caption { margin-top: 8px; color: #ddd }
#loader { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 2000 }
.spinner {
  border: 5px solid #f3f3f3; border-top: 5px solid #00b4d8; border-radius: 50%; width: 60px; height: 60px; animation: spin 1s linear infinite
}
@keyframes spin { 100% { transform: rotate(360deg) } }
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) }
  #hero { height: 240px }
}
