:root {
  --bg: #0b1320;
  --fg: #e5e7eb;
  --muted: #9aa3ad;
  --card: #111827;
  --line: rgba(255, 255, 255, .12);
  --brand1: #0074d9;
  --brand2: #00b8ff;
  --accent: #64dfdf;
  --hero1: #0f2027;
  --hero2: #203a43;
  --hero3: #2c5364;
  --radius: 16px;
  --gap: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

[data-theme="light"] {
  --bg: #f7fafc;
  --fg: #0f172a;
  --muted: #475569;
  --card: #ffffff;
  --line: rgba(15, 23, 42, .12);
  --hero1: #e8eef6;
  --hero2: #dfe8f5;
  --hero3: #cfdcf3;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif
}

h1,
h2,
h3,
h4,
.brand {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  margin-left: 16px;
}

a {
  color: var(--brand2);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px
}

/* Global spinner */
.global-spinner {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity .2s ease;
}

.global-spinner:not(.show) {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top: 4px solid transparent;
  background: conic-gradient(from 0deg, var(--brand1), var(--brand2), var(--brand1));
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 4px), #000 0);
  mask: radial-gradient(farthest-side, #0000 calc(100% - 4px), #000 0);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Page fade-in */
body {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}

body.page-loaded {
  opacity: 1;
  transform: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(0, 0, 0, .25);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2)
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0
}

.brand {
  font-weight: 800;
  letter-spacing: .4px
}

.brand .dot {
  color: var(--brand2)
}

.nav-links {
  display: flex;
  gap: 12px;
  align-items: center
}

.nav-links .btn-ghost.small {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  cursor: pointer
}

.hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg);
  padding: 8px 10px;
  cursor: pointer
}

@media (max-width:768px) {
  .nav-links {
    display: none
  }

  .hamburger {
    display: inline-flex
  }
}

/* Hero */
.hero {
  /* padding: 90px 0 56px; */
  padding: 24px 0 56px;
  background: linear-gradient(135deg, var(--hero1), var(--hero2), var(--hero3))
}

/* .hero-inner {
  text-align: center;
} */

.chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #e9f6ff;
  font-weight: 700;
  font-size: 12px
}

[data-theme="light"] .chip {
  color: var(--fg);
}

.hero-title {
  /* font-size: clamp(32px, 6vw, 56px); */
  font-size: calc(1.375rem + 1.5vw);
  line-height: 1.12;
  margin: 10px 0 6px;
}

[data-theme="light"] .hero-title {
  color: var(--fg);
}

.hero-subtitle {
  /* font-size: clamp(16px, 2.5vw, 22px); */
  font-size: clamp(15px, 2.6vw, 19px);
  opacity: .85;
  margin: 0 0 20px;
}

[data-theme="light"] .hero-subtitle {
  color: var(--fg);
}

.cta {
  margin-bottom: 14px;
  display: inline-block
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px
}

.pill {
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  opacity: .9
}

/* Buttons */
.btn-gradient {
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  border: none;
  color: #00203c;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
  transition: transform .2s ease, filter .2s ease
}

.btn-gradient:hover {
  filter: brightness(1.05);
  transform: translateY(-1px)
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--fg);
  background: transparent;
  padding: 10px 14px;
  border-radius: 12px
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .06)
}

/* Sections */
section {
  padding: 56px 0
}

section h2 {
  font-size: clamp(20px, 3.5vw, 30px);
  margin: 0 0 12px
}

.meta {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 10px
}

.card-c {
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px
}

.grid {
  display: grid;
  gap: var(--gap)
}

.grid.cols-2 {
  grid-template-columns: 1fr
}

.grid.cols-3 {
  grid-template-columns: 1fr
}

@media (min-width:760px) {
  .grid.cols-2 {
    grid-template-columns: 1fr 1fr
  }
}

@media (min-width:960px) {
  .grid.cols-3 {
    grid-template-columns: 1fr 1fr 1fr
  }
}

section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.08))
}

[data-theme="light"] section.alt {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.04))
}

/* Gallery */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px
}

.filters button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer
}

.filters button.active {
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  color: #001018;
  font-weight: 800;
  border: none
}

.gallery {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr
}

@media (min-width:600px) {
  .gallery {
    grid-template-columns: 1fr 1fr
  }
}

@media (min-width:980px) {
  .gallery {
    grid-template-columns: 1fr 1fr 1fr
  }
}

.tile {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  position: relative;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease
}

.tile:active {
  transform: scale(.99)
}

.tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35)
}

.thumb {
  width: 100%;
  height: 200px;
  background: linear-gradient(180deg, rgba(31, 182, 255, .15), rgba(34, 193, 195, .12));
  display: block;
  object-fit: cover;
  transition: transform .4s ease
}

.tile:hover .thumb {
  transform: scale(1.04)
}

.thumb[data-src] {
  filter: blur(6px)
}

.tile .body {
  padding: 12px
}

.tile h3 {
  margin: 0 0 6px;
  font-size: 17px
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px
}

.tile p.few_description {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
          line-clamp: 6; 
  -webkit-box-orient: vertical;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, .4);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  font-size: 12px
}

/* Modal */
.modal-c {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(4px);
  z-index: 80;
  transition: background .3s ease
}

.modal-c.open {
  display: flex
}

.modal-c.zoomed {
  background: rgba(0, 0, 0, .9)
}

.sheet {
  width: 100%;
  max-width: 980px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  transform: scale(.95);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease
}

.modal-c.open .sheet {
  transform: scale(1);
  opacity: 1
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 1
}

.sheet-header h3 {
  margin: 0;
  font-size: 18px
}

.x {
  background: none;
  border: none;
  color: var(--fg);
  font-size: 22px;
  cursor: pointer
}

.sheet-main {
  padding: 12px;
  overflow: auto;
  position: relative
}

.slider {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.frame {
  width: 100%;
  height: 70vh;
  aspect-ratio: 16/9;
  background: #0b1422;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative
}

/* x */

.frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transition: opacity .2s ease
}

.frame img.grabbable {
  cursor: grab
}

.frame img.grabbing {
  cursor: grabbing
}

.zoom-indicator,
.img-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: .9rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
  display: none;
  z-index: 5;
  transition: opacity .3s ease
}

.img-counter {
  right: 100px;
}

.zoom-indicator.show,
.img-counter.show {
  display: block;
  opacity: 1
}

.zoom-indicator.fade,
.img-counter.fade {
  opacity: 0
}

.reset-zoom {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(0, 116, 217, .45);
  transition: opacity .3s ease, box-shadow .3s ease;
  display: none
}

.reset-zoom.show {
  display: block;
  opacity: 1
}

.reset-zoom:hover {
  box-shadow: 0 0 18px rgba(0, 184, 255, .65);
}

.arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px
}

.arrows button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer
}

.cap {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-top: 4px
}

.detail {
  margin-top: 10px
}

.detail h4 {
  margin: 10px 0 6px
}

.detail p {
  margin: 0 0 10px;
  color: var(--muted)
}
.detail .div_url {
  margin-top: 24px;
}



.proj-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  /* margin-top: 10px; */
  margin-top: 24px;
  margin-bottom: 24px;
}

.proj-nav button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  flex: 1
}

@media (max-width:560px) {
  .sheet {
    border-radius: 0;
    max-height: 100vh;
    height: 100vh
  }

  .sheet main {
    padding: 10px
  }
}

/* Drawer */
.drawer-wrap {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 75
}

.drawer-wrap.open {
  display: block
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .25s ease
}

.drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(82vw, 360px);
  border-left: 1px solid var(--line);
  background: rgba(17, 24, 39, .82);
  backdrop-filter: blur(10px);
  transform: translateX(100%);
  transition: transform .5s cubic-bezier(.22, 1.61, .36, 1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px
}

[data-theme="light"] .drawer {
  background: rgba(255, 255, 255, .85)
}

.drawer h4 {
  margin: 4px 0 8px
}

.drawer a {
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px
}

.drawer .divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0
}

.drawer .toggle {
  align-self: stretch;
  justify-content: center
}


.drawer .social {
  display: flex;
  gap: 10px;
  margin-top: auto;
  justify-content: center;
}

.drawer .social a {
  border: none;
  padding: 10px
}

.drawer-wrap.open .drawer {
  transform: translateX(0)
}

.drawer-wrap.open .drawer-backdrop {
  opacity: 1
}

/* Footer */
.site-footer {
  padding: 34px 0;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
  margin-top: 20px
}

/* Top progress line */
#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  z-index: 90;
  transition: transform .5s ease-out
}

.topbar-show {
  transform: scaleX(1)
}




.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  border: 2px solid white;
  padding: 5px;
  background: transparent;
  margin-left: auto;
  margin-right: auto;
}

.profile-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 4px;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  z-index: 1;
  background: transparent;
}


.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #ecf0f1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f8c8d;
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.profile-image img {
  /* width: 100px; */
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  border-radius: 50%;
  border: 1px solid #87878787;
}





/* html {
  width: 100%;
  overflow-x: clip;
  font-family: Montserrat,"Book Antiqua",serif;
}
body {
  line-height: 150%;
  width: 100%;
  overflow-x: clip;
}
body:after {
  content:"";
  position:fixed;
  z-index:-1;
  left:0;
  top:0;
  right:0;
  bottom:0;
  background-size: cover;
}
span {
  color: white !important;
}
a span {
  color: yellow !important;
  text-decoration: none !important;
}
a:link, span.MsoHyperlink {
  text-decoration: none !important;
}
.body3 {
  max-width: 800px;
  margin: 0 auto;
} */


#btnGoToTop {
	display: none;
	position: fixed;
	bottom: 20px;
	right: 30px;
	/* z-index: 99; */
	z-index: 70;
	/* font-size: 18px; */
	font-size: 36px;
	border: none;
	outline: none;
	/* background-color: red; */
	background-color: white;
	opacity: 0.1;
	/* color: white; */
	color: black;
	cursor: pointer;
	/* padding: 15px; */
	/* border-radius: 4px; */
  border-radius: 50%;
  width: 64px;
  height: 64px;
  line-height: 64px;
  vertical-align: middle;
  text-align: center;
}
#btnGoToTop:hover {
	background-color: #555;
}

