/* ===== Global helpers ===== */
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ====== Hero (Home page) ====== */
.hero{
  max-width:760px;
  margin: 40px auto;
  text-align:center;
  padding: 24px;
}

.avatar{
  width: 160px;
  height: 160px;
  border-radius: 999px;
  object-fit: cover;
  display:block;
  margin: 0 auto 18px;
  background:#e9eef6;
}

.name{
  font-size: 44px;
  margin: 10px 0 6px;
  font-weight: 800;
}

.role{
  font-size: 22px;
  margin: 0 0 18px;
  opacity: .7;
}

.bio{
  font-size: 18px;
  line-height: 1.8;
  opacity: .7;
  margin: 0 auto 26px;
  max-width: 620px;
}

.buttons{
  display:flex;
  gap: 14px;
  justify-content:center;
  flex-wrap: wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 700;
}

.btn.primary{
  background: #111;
  color: #fff;
}

.btn.outline{
  border: 2px solid rgba(0,0,0,.15);
  color: #111;
}

@media (max-width:480px){
  .name{font-size: 36px;}
  .btn{min-width: 90%;}
}

/* ====== Top Header (portfolio style) ====== */
.tk-header{
  position: sticky;
  top: 0;
  z-index: 999;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  background:#fff;
}

.tk-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#111;
}

.tk-logo{
  width:44px;height:44px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#111;
  color:#fff;
  font-size:22px;
  font-weight:700;
}

.tk-name{
  font-size:22px;
  font-weight:800;
}

/* Round hamburger button */
.tk-menuBtn{
  width:52px;height:52px;
  border-radius:999px;
  border:0;
  background:#111;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  flex-direction:column;
}

.tk-menuBtn span{
  width:22px;
  height:2px;
  background:#fff;
  border-radius:99px;
}

/* ====== Drawer ====== */
.tk-overlay{
  position: fixed;
  inset:0;
  background: rgba(0,0,0,.35);
  opacity:0;
  pointer-events:none;
  transition: .2s ease;
  z-index: 998;
}

.tk-overlay.open{
  opacity:1;
  pointer-events:auto;
}

.tk-drawer{
  position: fixed;
  top:0;
  right:-320px;
  width: 320px;
  max-width: 86vw;
  height: 100vh;
  background: #f7f7f7;
  box-shadow: -10px 0 40px rgba(0,0,0,.18);
  transition: .25s ease;
  z-index: 999;
  padding: 16px;
  display:flex;
  flex-direction:column;
}

.tk-drawer.open{ right:0; }

.tk-drawerTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:14px;
}

.tk-drawerBrand{
  display:flex;
  align-items:center;
  gap:10px;
}

.tk-crown{
  width:44px;height:44px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  font-size:20px;
}

.tk-drawerTitle{
  font-size:20px;
  font-weight:800;
}

.tk-close{
  width:40px;height:40px;
  border-radius:999px;
  border:0;
  background:#fff;
  font-size:22px;
}

/* menu items */
.tk-nav{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin: 8px 0 18px;
}

.tk-item{
  padding: 14px 14px;
  border-radius: 14px;
  text-decoration:none;
  color:#111;
  background: transparent;
  font-weight:700;
}

.tk-item.active{
  background: #eaf2ff;
  color:#1b5cff;
}

.tk-actions{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding-top: 10px;
}

.tk-pill{
  height:56px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:800;
}

.tk-pill.outline{
  border:2px solid rgba(0,0,0,.15);
  color:#111;
  background: #fff;
}

.tk-pill.solid{
  background:#111;
  color:#fff;
}

.tk-follow{
  margin:18px 0 10px;
  opacity:.7;
  font-weight:700;
}

.tk-social{
  display:flex;
  gap:12px;
  padding-bottom: 8px;
}

.tk-socialBtn{
  width:44px;height:44px;
  border-radius:14px;
  background:#fff;
  display:grid;
  place-items:center;
  text-decoration:none;
  color:#111;
  font-weight:800;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

/* ===== Projects page ===== */
.tk-page{
  max-width: 1100px;
  margin: 26px auto 60px;
  padding: 0 16px;
}

.tk-pageHead{
  text-align: center;
  margin-bottom: 22px;
}

.tk-h1{
  font-size: 34px;
  margin: 0 0 10px;
  font-weight: 900;
  color: #111;
}

.tk-lead{
  opacity: .75;
  line-height: 1.7;
}

/* Grid */
.tk-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px){
  .tk-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .tk-grid{ grid-template-columns: 1fr; }
}

/* Card */
.tk-card{
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
}

.tk-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 55px rgba(0,0,0,.12);
}

/* Cover image */
.tk-cover{
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #f2f2f2;
}

/* Body */
.tk-cardBody{
  padding: 14px 14px 14px;
}

.tk-cardTitle{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
  color: #111;
}

.tk-cardText{
  margin: 0 0 12px;
  opacity: .75;
  line-height: 1.6;
}

/* Tags */
.tk-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.tk-tag{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f4f4f4;
  font-weight: 800;
  opacity: .9;
}

/* Footer */
.tk-cardFoot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid rgba(0,0,0,.06);
  background: #fff;
}

/* Demo + Code group (স্পেস ঠিক এখানে) */
.tk-actionsRow{
  display: flex;
  align-items: center;
  gap: 28px; /* Demo আর Code এর মাঝে স্পেস — আপনার চাওয়া মতো বেশি */
  flex-wrap: wrap;
}

/* Demo/Code button style */
.tk-pillMini{
  font-size: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.15);
  background: #fff;
  font-weight: 900;
  color: #111;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.tk-pillMini:visited{ color:#111; }
.tk-pillMini:hover{ border-color: rgba(0,0,0,.25); }

/* View link (black + no underline) */
.tk-view{
  font-weight: 900;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
}

.tk-view:visited{ color:#111; }
.tk-view:hover{ opacity:.75; }

/* Small screens */
@media (max-width: 420px){
  .tk-cardFoot{
    flex-direction: row;   /* একই লাইনে রাখছি */
    align-items: center;
  }
  .tk-actionsRow{ gap: 18px; }
}

/* Card click overlay (বাটন ছাড়া বাকি জায়গা ক্লিকেবল) */
.tk-cardHit{
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 18px;
}

/* Buttons + View will stay clickable above overlay */
.tk-cover, .tk-cardBody, .tk-cardFoot{ position: relative; z-index: 2; }
.tk-pillMini, .tk-view{ position: relative; z-index: 3; }

/* ===== Project card hover animation (Step 1) ===== */

/* কার্ডের smooth animation */
.tk-card{
  transform: translateY(0) scale(1);
  transition:
    transform .22s ease,
    box-shadow .22s ease;
  will-change: transform;
}

/* hover করলে card lift + soft zoom */
.tk-card:hover{
  transform: translateY(-6px) scale(1.01);
}

/* cover image একটু zoom হবে */
.tk-cover{
  transition: transform .35s ease;
  will-change: transform;
}

.tk-card:hover .tk-cover{
  transform: scale(1.06);
}

/* View arrow একটু slide করবে */
.tk-view{
  transition: transform .2s ease, opacity .2s ease;
}

.tk-card:hover .tk-view{
  transform: translateX(4px);
  opacity: .85;
}

/* Demo/Code বাটনে subtle hover */
.tk-pillMini{
  transition: transform .15s ease, border-color .15s ease;
}

.tk-pillMini:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.28);
}

/* Mobile এ hover animation কম (যাতে weird না লাগে) */
@media (max-width: 520px){
  .tk-card:hover{
    transform: translateY(-3px) scale(1.005);
  }
}
/* ===== Step 2: Grid entrance animation ===== */
@keyframes tkPopIn{
  from{ opacity: 0; transform: translateY(14px) scale(.98); }
  to  { opacity: 1; transform: translateY(0) scale(1); }
}

.tk-card{
  opacity: 0;                 /* শুরুতে লুকানো থাকবে */
  animation: tkPopIn .45s ease forwards;
  animation-delay: var(--d, 0ms);  /* প্রতিটা কার্ডে আলাদা delay */
}

/* Reduce motion support */
@media (prefers-reduced-motion: reduce){
  .tk-card{
    opacity: 1;
    animation: none;
  }
}
/* ===== Step 3 FIX: Glow + tap (works on img) ===== */
.tk-card{
  position: relative;
}

.tk-card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:18px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(27,92,255,.12), transparent 60%);
  opacity:0;
  transition: opacity .25s ease;
  pointer-events:none;
}

.tk-card:hover::after{
  opacity:1;
}

/* stronger hover lift (visible) */
.tk-card:hover{
  transform: translateY(-8px) scale(1.01);
}

/* mobile tap feedback */
@media (hover: none){
  .tk-card:active{
    transform: scale(.985);
    transition: transform .08s ease;
  }
}

/* ===== Step 4: Project details page ===== */

.tk-projectHero img{
  width:100%;
  max-height: 420px;
  object-fit: cover;
  display:block;
}

.tk-projectWrap{
  max-width: 900px;
  margin: 24px auto 80px;   /* negative margin বাদ */
  background:#fff;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.12);
}
.tk-projectHead{
  text-align:center;
  margin-bottom: 28px;
}

.tk-projectTitle{
  font-size: 40px;
  font-weight: 900;
  margin: 0 0 10px;
}

.tk-projectLead{
  font-size: 18px;
  opacity:.75;
  max-width: 680px;
  margin: 0 auto 22px;
}

.tk-projectActions{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
}

.tk-projectContent{
  line-height: 1.9;
  font-size: 17px;
}

.tk-projectContent h2{
  margin-top: 28px;
}
/* ===== Project details page (single) ===== */

.tk-project{
  max-width: 1100px;
  margin: 0 auto 70px;
  padding: 0 16px;
}

.tk-projectHero{
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(0,0,0,.12);
  background: #f2f2f2;
}

.tk-projectHero img{
  display: block;
  width: 100%;
  height: auto;
}

.tk-projectWrap{
  max-width: 900px;
  margin: 16px auto 0;
  background:#fff;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 22px 60px rgba(0,0,0,.10);
}

.tk-projectTitle{
  margin: 0 0 10px;
  font-size: 42px;
  font-weight: 900;
  color:#111;
  line-height: 1.05;
}

.tk-projectLead{
  margin: 0 auto 14px;
  max-width: 60ch;
  opacity: .75;
  line-height: 1.7;
  font-size: 18px;
}

.tk-projectActions{
  display:flex;
  gap: 14px;
  justify-content:center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tk-projectActions .tk-pill{
  height: 52px;
  min-width: 150px;
  padding: 0 18px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.tk-projectContent{
  margin-top: 18px;
  line-height: 1.8;
}

@media (max-width: 520px){
  .tk-projectWrap{ padding: 18px; }
  .tk-projectTitle{ font-size: 34px; }
  .tk-projectActions .tk-pill{ min-width: 46%; }
} 
/* ===== ###### button animation #########===== */
.tk-projectActions .tk-pill{
  transition: transform .15s ease, box-shadow .15s ease;
}
.tk-projectActions .tk-pill:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
  }
/* ===== Project Single Page polish (paste at END) ===== */
.tk-project{
  max-width: 1100px;
  margin: 26px auto 70px;
  padding: 0 16px;
}

.tk-projectHero{
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(0,0,0,.12);
  background: #0b1220;
}

.tk-projectHero img{
  width: 100%;
  height: 240px;          /* ইমেজ কম লম্বা */
  object-fit: cover;
  display: block;
}

@media (max-width: 520px){
  .tk-projectHero img{ height: 200px; }
}

.tk-projectWrap{
  margin-top: -34px;      /* ইমেজের ওপর কার্ডটা সুন্দরভাবে উঠবে */
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 14px 45px rgba(0,0,0,.10);
  padding: 22px 18px 22px;
}

.tk-projectHead{
  text-align: center;
  padding: 6px 8px 12px;
}

.tk-projectTitle{
  margin: 10px 0 10px;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.05;
}

@media (max-width: 520px){
  .tk-projectTitle{ font-size: 32px; }
}

.tk-projectLead{
  margin: 0 auto 18px;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.65;      /* টেক্সট কম লম্বা লাগবে */
  opacity: .78;
}

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

.tk-projectActions .tk-pill{
  height: 52px;
  min-width: 210px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .2px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.tk-projectActions .tk-pill.solid{
  background: #111;
  color: #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
}

.tk-projectActions .tk-pill.outline{
  background: #fff;
  color: #111;
  border: 2px solid rgba(0,0,0,.14);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.tk-projectActions .tk-pill:hover{
  transform: translateY(-2px);
}

.tk-projectContent{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,.06);
  line-height: 1.8;
  opacity: .92;
}
/* ===== Project page FINAL mobile polish ===== */

/* title একটু উপরে উঠবে */
.tk-projectTitle{
  margin-top: 6px;
}

/* image + card আরও connected লাগবে */
.tk-projectWrap{
  margin-top: -28px;
}

/* buttons row — এক লাইনে */
.tk-projectActions{
  flex-direction: row;
}

/* buttons slim */
.tk-projectActions .tk-pill{
  height: 46px;
  min-width: 160px;
  font-size: 15px;
}

/* solid button less heavy */
.tk-projectActions .tk-pill.solid{
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

/* outline button cleaner */
.tk-projectActions .tk-pill.outline{
  box-shadow: none;
}

/* mobile specific */
@media (max-width: 520px){
  .tk-projectActions{
    gap: 12px;
  }
}
/* ===== Project page FINAL mobile polish ===== */

/* Visit + My Profile এক লাইনে রাখার জন্য */
.tk-projectActions{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;              /* দুই বাটনের মাঝখানের স্পেস */
  flex-wrap: nowrap;      /* নতুন লাইনে যেতে দেবে না */
}

/* মোবাইলে বাটন সাইজ ব্যালেন্স */
@media (max-width: 520px){
  .tk-projectActions .tk-pill{
    min-width: auto;
    padding: 14px 22px;
  }
}

/* ===== Project page FINAL mobile polish End ===== */


/* ===== Button Click FX: Blossom + Butterflies (press only) ===== */
.tk-pill, .tk-pillMini{
  position: relative;
  overflow: visible; /* particles বাইরে যেতে পারবে */
}

.tk-fx-layer{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index: 50;
}

.tk-petal{
  position:absolute;
  width:10px;
  height:14px;
  border-radius: 12px 12px 12px 2px;
  transform: rotate(0deg);
  opacity: 0;
  filter: blur(.1px);
  will-change: transform, opacity;
  /* soft petal colors */
  background: radial-gradient(circle at 30% 30%, #fff 0%, #ffd1e8 40%, #ff7ab6 100%);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

.tk-bfly{
  position:absolute;
  width:18px;
  height:18px;
  opacity: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.14));
}

.tk-bfly svg{ width:100%; height:100%; display:block; }

@keyframes tkPetalFly{
  0%   { opacity:0; transform: translate(0,0) rotate(0deg) scale(.7); }
  12%  { opacity:1; }
  80%  { opacity:1; }
  100% { opacity:0; transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(1); }
}

@keyframes tkButterFly{
  0%   { opacity:0; transform: translate(0,0) rotate(0deg) scale(.8); }
  15%  { opacity:1; }
  70%  { opacity:1; }
  100% { opacity:0; transform: translate(var(--bx), var(--by)) rotate(var(--br)) scale(1.05); }
}

@keyframes tkWing{
  0%{ transform: scaleX(1); }
  50%{ transform: scaleX(.72); }
  100%{ transform: scaleX(1); }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .tk-petal, .tk-bfly{ animation none !important; }
}

/* ===== View button: Gradient border sweep (ALWAYS ON) ===== */

.tk-viewOrb{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* Demo/Code button size feel */
  font-size: 12px;
  padding: 10px 16px;
  border-radius: 999px;

  background: #fff;
  border: 2px solid rgba(0,0,0,.15);
  text-decoration: none;
  font-weight: 900;
  color: #111;
  line-height: 1;
  white-space: nowrap;

  /* button shadow (clean) */
  box-shadow: 0 10px 24px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.08);

  /* so pseudo-element stays behind */
  isolation: isolate;
}

/* animated border ring */
.tk-viewOrb::before{
  content:"";
  position:absolute;

  /* border ring position + thickness */
  inset:-3px;
  border-radius: inherit;
  padding: 3px;

  /* moving colors */
  background: conic-gradient(
    from 0deg,
    #00c2ff,
    #7c4dff,
    #ff3b30,
    #ffcc00,
    #34c759,
    #00c2ff
  );

  /* show only border ring */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  /* always visible + always moving */
  opacity: 1;
  animation: tkSweep 4.5s linear infinite;

  /* behind the button */
  z-index: -1;
}

/* hover polish (optional) */
.tk-viewOrb:hover{
  border-color: rgba(0,0,0,.22);
  box-shadow: 0 14px 32px rgba(0,0,0,.12), 0 3px 10px rgba(0,0,0,.10);
}

/* animation */
@keyframes tkSweep{
  to{ transform: rotate(360deg); }
}

/* reduced motion support */
@media (prefers-reduced-motion: reduce){
  .tk-viewOrb::before{
    animation: none;
  }
}
