/* -------------------------
   Root / Base
   ------------------------- */
:root {
  --bg: #fbfcfd;
  --text: #111;
  --muted: #54606a;
  --accent: #000;
  --card-bg: #fff;
  --glass: rgba(10, 15, 20, 0.03);
  --dot-base: rgba(0, 0, 0, 0.05);
  --dot-shimmer: rgba(15, 241, 215, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

.section {
  max-width: 1060px;
  margin: 0 auto;
  padding: 56px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 32px;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
}

.section-divider{
  color: lightgrey;
  max-width: 1060px;
  margin: 0 auto;
}

/* -------------------------
   HERO
   ------------------------- */
.hero {
  min-height: 50vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 48px 20px;
  text-align: center;

}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding: 0;
  background-color: var(--bg);
}

.profile {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 4px solid rgba(18, 78, 99, 0.12);
  box-shadow: 0 6px 20px rgba(12, 18, 25, 0.06);
  animation: floaty 6.5s ease-in-out infinite;
}

@keyframes floaty {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.hero-title .accent {
  color: var(--accent);
}

.hero-sub {
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.hero-loc {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--muted);
}

.hero-about {
  color: var(--muted);
  margin: 0 auto 20px;
  max-width: 720px;
}

/* Buttons */
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  box-shadow: 0 6px 18px rgba(10, 15, 20, 0.06);
}

.btn svg {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(12, 18, 25, 0.12);
}

.btn.outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(18, 78, 99, 0.12);
}

.btn.outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.hero-canvas {
  display: none;
}

/* -------------------------
   WORKS
   ------------------------- */
.work-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 3rem;
}

@media (max-width: 880px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

.work-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(10, 15, 25, 0.06);
  transition: transform .28s cubic-bezier(.2, .9, .2, 1), box-shadow .28s;
  position: relative;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(10, 15, 25, 0.10);
}

.thumb {
  position: relative;
  height: 260px;
  background: var(--glass);
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.work-card:hover .thumb img {
  transform: scale(1.06);
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 12, 0.48);
  opacity: 0;
  transition: opacity .22s ease;
}

.work-card:hover .overlay {
  opacity: 1;
}

.view-btn {
  background: #fff;
  color: var(--accent);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: transform .14s ease;
}

.view-btn:hover {
  transform: translateY(-3px);
}

.work-title {
  padding: 32px 24px 12px;
  font-weight: 700;
  font-size: 1.12rem;
}

.work-desc {
  padding: 0 24px 18px;
  color: var(--muted);
  font-size: 0.95rem;
   text-decoration: none;
}

.work-link{
    text-decoration: none;
  display: block;
  color: inherit;
}

/* -------------------------
   TOOLS
   ------------------------- */
.tools {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.tool {
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--muted);
  box-shadow: 0 6px 18px rgba(10, 15, 25, 0.04);
  font-weight: 600;
  font-size: 0.95rem;
}

/* -------------------------
   CONTACT & FOOTER
   ------------------------- */
.contact {
  text-align: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.footer {
  text-align: center;
  padding: 30px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* -------------------------
   Scroll reveal
   ------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}



/* -------------------------
   Responsive tweaks
   ------------------------- */
@media (max-width: 560px) {
  .hero-inner {
    padding: 12px;
  }

  .profile {
    width: 110px;
    height: 110px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .thumb {
    height: 170px;
  }

  .modal img {
    max-width: 95vw;
    max-height: 78vh;
  }
}






/* -------------------------
   Project Detail Page
   ------------------------- */
.detail-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg);
  padding: 32px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(10, 15, 25, 0.08);
  z-index: 1000;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #222;
  font-weight: 600;
  font-size: 16px;
}

.header-logo img {
  width: 48px;
  height: 48px;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.back-btn {
  position: absolute;
  left: 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(10, 15, 25, 0.15);
}

.blog-style {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 120px;
  line-height: 1.7;
}

.blog-style img,
.blog-style video {
  display: block;
  max-width: 100%;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.blog-style p {
  margin: 18px 0;
  font-size: 1.05rem;
  color: var(--muted);
}

