/* RESET & GLOBALS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f9f4ec;
  color: #1a1a1a;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
  line-height: 1.55;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Container */
.kancontainer,
.ks-container,
.kabt-container,
.kp-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* —— DESKTOP NAVBAR —— */
.kannavbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 1rem 0;
  gap: 1rem;
  position: relative;
}

.kanfrosted {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  font-weight: 600;
  transition: box-shadow 0.3s;
}

.kanfrosted:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.kanlogo {
  font-size: 1.8rem;
}

.kannav-menu {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s;
  z-index: 5;
}

.kannav-menu:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.kannav-menu ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.kannav-menu a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 500;
  color: #1a1a1a;
  transition:
    background 0.3s,
    transform 0.2s,
    box-shadow 0.3s;
  font-size: 1rem;
}

.kannav-menu a:hover {
  background: rgba(228, 80, 43, 0.08);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px rgba(228, 80, 43, 0.1);
  color: #e4502b;
}

.kannav-menu a.active {
  background: #1a1a1a;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.kanright-group {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-self: end;
}

.kancontact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.kanemail-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.kanhamburger {
  display: none;
  background: none;
  border: 2px solid #1a1a1a;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  position: relative;
  transition:
    background 0.3s,
    border-color 0.3s;
  z-index: 200;
}

.kanhamburger span,
.kanhamburger span::before,
.kanhamburger span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1.25rem;
  height: 2px;
  background: #1a1a1a;
  border-radius: 1px;
  transform: translateX(-50%);
  transition: all 0.3s;
}

.kanhamburger span {
  top: 50%;
}

.kanhamburger span::before {
  top: 40%;
}

.kanhamburger span::after {
  bottom: 40%;
}

.kanhamburger:hover {
  background: rgba(26, 26, 26, 0.1);
  border-color: #333;
}

/* —— MOBILE NAVBAR OVERRIDES —— */
@media (max-width: 1024px) {
  .kannavbar {
    padding: 0.6rem 0;
  }

  .kanlogo {
    font-size: 1.4rem;
  }

  .kannav-menu a {
    font-size: 0.875rem;
    padding: 0.4rem 0.8rem;
  }

  .kancontact-email {
    font-size: 0.875rem;
  }

  .kanhamburger {
    width: 2rem;
    height: 2rem;
    border-width: 1.5px;
  }

  .kanhamburger span,
  .kanhamburger span::before,
  .kanhamburger span::after {
    width: 1rem;
    height: 1.5px;
  }

  .kanright-group {
    gap: 0.5rem;
  }
}

@media (max-width: 900px) {
  .kannavbar {
    padding: 0.4rem 0;
  }

  .kanlogo {
    font-size: 1.1rem;
  }

  .kannav-menu a {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .kancontact-email {
    font-size: 0.75rem;
  }

  .kanhamburger {
    width: 1.75rem;
    height: 1.75rem;
    border-width: 1.2px;
  }

  .kanhamburger span,
  .kanhamburger span::before,
  .kanhamburger span::after {
    width: 0.85rem;
    height: 1.2px;
  }

  .kanright-group {
    gap: 0.3rem;
  }
}

@media (max-width: 768px) {
  .kanright-group {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    justify-self: end;
  }

  .kancontact-email {
    font-size: 8px;
  }

  .kanhamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }

  .kannav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    transform: translateY(-120%);
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 150;
  }

  .kannav-menu.open {
    transform: translateY(0);
  }

  .kannav-menu ul {
    flex-direction: column;
    gap: 1.4rem;
    margin: 0;
    padding: 0;
  }

  .kannav-menu a {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .kannav-menu a:hover {
    background: rgba(26, 26, 26, 0.1);
    transform: scale(1.05);
  }

  .kannav-menu a.active {
    background: #1a1a1a;
    color: #fff;
  }

  .kanhamburger.open span {
    background: transparent;
  }

  .kanhamburger.open span::before {
    transform: translateX(-50%) rotate(45deg);
    top: 50%;
  }

  .kanhamburger.open span::after {
    transform: translateX(-50%) rotate(-45deg);
    top: 50%;
    bottom: auto;
  }
}

/* ------------- HERO + SOCIAL STYLES ------------- */
.kanhero-section {
  position: relative;
  margin-top: 3rem;
}

.kanhero-bg {
  position: absolute;
  bottom: -1.8rem;
  right: -1.8rem;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #eea2ff 0%, #91faff 50%, #769fff 100%);
  border-radius: 2rem;
  z-index: 10;
}

.kanhero-shell {
  position: relative;
  background: #fff;
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: clamp(2rem, 6vw, 4rem);
  z-index: 20;
  margin-bottom: 9rem;
}

.kanhero-shell::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='27' y='0' width='6' height='6' rx='1' ry='1' fill='%23d7d7d7'/%3E%3Crect x='54' y='27' width='6' height='6' rx='1' ry='1' fill='%23d7d7d7'/%3E%3Crect x='27' y='54' width='6' height='6' rx='1' ry='1' fill='%23d7d7d7'/%3E%3Crect x='0' y='27' width='6' height='6' rx='1' ry='1' fill='%23d7d7d7'/%3E%3C/svg%3E");
  background-size: 120px;
  pointer-events: none;
  z-index: -1;
}

.kanhero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 400px);
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.kantagline {
  font-family: "Dancing Script", cursive;
  font-size: 1.75rem;
  color: #e4502b;
  margin-bottom: 0.5rem;
}

.kanhero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

/* ==============================
       CONTACT PAGE LAYOUT
       Inspired by Prolio contact,
       styled to match KanFolio theme
    =============================== */

.kc-contact-page {
  position: relative;
  padding: 6rem 0 5.5rem;
  background: #f9f4ec;
  overflow: hidden;
}

.kc-contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 10% 15%,
      rgba(238, 162, 255, 0.22) 0,
      transparent 55%
    ),
    radial-gradient(
      circle at 85% 0%,
      rgba(145, 250, 255, 0.22) 0,
      transparent 55%
    ),
    radial-gradient(
      circle at 90% 85%,
      rgba(118, 159, 255, 0.16) 0,
      transparent 55%
    );
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.kc-contact-shell {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 2.2rem;
  padding: clamp(2.75rem, 5vw, 3.75rem);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.kc-contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1.1fr);
  gap: clamp(2.4rem, 5vw, 3.75rem);
  align-items: center;
  margin-bottom: clamp(3rem, 5vw, 3.75rem);
}

.kc-contact-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(228, 80, 43, 0.08);
  color: #e4502b;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.75rem;
}

.kc-contact-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 5.1vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1.1rem;
  color: #1a1a1a;
  letter-spacing: 0.01em;
}

.kc-contact-lead {
  max-width: 36rem;
  margin-bottom: 1.7rem;
  font-size: 1.02rem;
  color: #4b4b4b;
}

.kc-contact-highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.kc-contact-highlights li {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #f6efe4;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
}

.kc-contact-profile {
  justify-self: stretch;
}

.kc-contact-profile-card {
  position: relative;
  border-radius: 1.7rem;
  background:
    radial-gradient(circle at 0 0, rgba(121, 220, 152, 0.65), transparent 60%),
    radial-gradient(
      circle at 100% 100%,
      rgba(190, 128, 97, 0.75),
      transparent 55%
    ),
    #5bd8c5;
  color: #f9fafb;
  padding: 1.5rem 1.7rem 1.6rem;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(226, 179, 172, 0.88);
}

.kc-contact-profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% -10%,
      rgba(255, 255, 255, 0.18) 0,
      transparent 55%
    ),
    radial-gradient(
      circle at 120% 20%,
      rgba(59, 168, 59, 0.25) 0,
      transparent 55%
    );
  opacity: 0.9;
  pointer-events: none;
}

.kc-contact-profile-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.3rem;
  z-index: 1;
}

.kc-contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid rgba(249, 250, 251, 0.8);
  font-weight: 600;
  font-size: 1.1rem;
}

.kc-contact-name {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.kc-contact-role {
  font-size: 0.85rem;
  opacity: 0.85;
}

.kc-contact-photo-wrap {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  margin-bottom: 1.3rem;
  border: 1px solid rgba(248, 250, 252, 0.35);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.9);
}

.kc-contact-photo-wrap img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.kc-contact-profile-info {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
  font-size: 0.9rem;
}

.kc-contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.kc-contact-info-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.8;
}

.kc-contact-info-main {
  font-weight: 500;
  color: #f9fafb;
}

.kc-contact-info-main a,
.kc-contact-info-main:link,
.kc-contact-info-main:visited {
  color: inherit;
}

.kc-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1.1fr);
  gap: clamp(2.4rem, 4.2vw, 3.3rem);
  align-items: flex-start;
  margin-top: 0.5rem;
}

.kc-contact-form-wrap {
  padding: 1.9rem 1.9rem 2.1rem;
  border-radius: 1.6rem;
  background: #fdf8f0;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.kc-contact-form-title {
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.kc-contact-form-sub {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.4rem;
}

.kc-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.kc-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.kc-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.kc-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
}

.kc-field input,
.kc-field select,
.kc-field textarea {
  border-radius: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
}

.kc-field textarea {
  resize: vertical;
  min-height: 140px;
}

.kc-field input:focus,
.kc-field select:focus,
.kc-field textarea:focus {
  outline: none;
  border-color: rgba(228, 80, 43, 0.6);
  box-shadow: 0 0 0 1px rgba(228, 80, 43, 0.35);
  background: #fffdf8;
}

.kc-form-footer {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  justify-content: space-between;
}

.kc-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #444;
}

.kc-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 0.35rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.kc-submit-btn {
  padding-inline: 1.6rem;
}

.kc-contact-side {
  padding: 1.9rem 1.9rem 2.1rem;
  border-radius: 1.6rem;
  border: 1px solid #c77192;
  background: linear-gradient(145deg, #8ecb91 5%, #d15f46);
  color: #e5e7eb;
  box-shadow: 0 24px 70px rgba(187, 141, 116, 0.9);
}

.kc-contact-side-title {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
}

.kc-contact-side-text {
  font-size: 0.95rem;
  color: #d1d5db;
  margin-bottom: 1.4rem;
}

.kc-side-list {
  display: grid;
  gap: 1rem;
  font-size: 0.92rem;
}

.kc-side-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #bfc5cf;
  display: block;
  margin-bottom: 0.12rem;
}

.kc-side-main {
  color: #d7dbde;
  font-weight: 500;
}

.kc-side-main a,
.kc-side-main:link,
.kc-side-main:visited {
  color: inherit;
}

@media (max-width: 960px) {
  .kc-contact-hero {
    grid-template-columns: minmax(0, 1.4fr);
  }

  .kc-contact-profile {
    order: -1;
  }

  .kc-contact-shell {
    padding: 2rem 1.4rem 2.6rem;
  }

  .kc-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .kc-contact-page {
    padding-top: 4.5rem;
  }

  .kc-contact-shell {
    border-radius: 1.4rem;
  }

  .kc-form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .kc-form-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ─── KAN BUTTON ─── */
.kan-button {
  /* defaults for primary */
  --bg: #111;
  --fg: #fff;
  --accent: #e67e22;
  --border: none;
  --shift: 1.4em;

  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  background: var(--bg);
  color: var(--fg);
  border: var(--border);
  border-radius: 38px;
  font:
    600 1.05rem/1 system-ui,
    sans-serif;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    background-color 0.3s ease;
}

.kan-button:focus-visible {
  outline: 3px dashed var(--fg);
  outline-offset: 4px;
}

.kan-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* ─── SECONDARY OVERRIDES (white bg) ─── */
.kan-secondary-button {
  --bg: #fff;
  --fg: #000;
  --accent: #f1c40f;

  --border: 2px solid var(--fg);
}

/* ─── SHIMMER SWEEP ─── */
.kan-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition:
    transform 0.6s ease-out,
    opacity 0.6s ease-out;
  opacity: 0;
  pointer-events: none;
}

.kan-button:hover::before {
  transform: translateX(300%) skewX(-25deg);
  opacity: 1;
}

/* ─── ICON btn-track ─── */
.kan-button .btn-track {
  position: relative;
  width: calc(1.6em + var(--shift));
  height: 1.8em;
  overflow: visible;
}

/* ─── ARROW ─── */
.kan-button .arrow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  color: var(--accent);
  transition:
    transform 0.6s cubic-bezier(0.45, 0.08, 0.2, 0.99),
    text-shadow 0.8s ease;
  will-change: transform, text-shadow;
}

@keyframes trail {
  to {
    text-shadow:
      -2px 0 6px rgba(255, 255, 255, 0.5),
      -4px 0 12px rgba(255, 255, 255, 0.3);
  }
}

.kan-button:hover .arrow {
  transform: translateX(var(--shift));
  animation: trail 0.6s forwards;
}

/* ─── SMILEY DRAW ─── */
.kan-button svg {
  position: absolute;
  inset: 0;
  width: 1.8em;
  height: 1.8em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.kan-button svg .outline {
  stroke: var(--accent);
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 315;
  stroke-dashoffset: 315;
  transition: stroke-dashoffset 0.7s ease 0.1s;
}

.kan-button svg .eye {
  fill: var(--accent);
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.45s ease 0.6s;
}

.kan-button:hover svg {
  opacity: 1;
}

.kan-button:hover .outline {
  stroke-dashoffset: 0;
}

.kan-button:hover .eye {
  transform: scale(1);
}

/* Button End  */

.kanhero-lead {
  max-width: 45ch;
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  color: #3f3f3f;
}

.kanbtn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 2.25rem;
  border-radius: 9999px;
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
  transition:
    background 0.3s,
    transform 0.2s;
}

.kanbtn-pill svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
}

.kanbtn-pill:hover {
  background: #000;
  transform: translateY(-2px);
}

/* socials */
.kansocials {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  margin-left: 0.9rem;
}

.kansocial-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid #1a1a1a;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition:
    background 0.25s,
    transform 0.2s,
    box-shadow 0.3s;
}

.kansocial-btn svg {
  width: 20px;
  height: 20px;
  fill: #1a1a1a;
}

.kansocial-btn:hover {
  background: rgba(26, 26, 26, 0.1);
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

/* profile card */
.kanprofile-card {
  max-width: 400px;
  width: 100%;
  background: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-left: auto;
}

.kanpc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.1rem;
  flex: 0 0 auto;
  background: #fff;
}

.kanavatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #b2ffb2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.kanpc-heart {
  width: 22px;
  height: 22px;
  stroke: #e4502b;
  fill: none;
}

/* .kanpc-img {
      width: 100%;
      height: 250px;
      object-fit: cover;
      display: block
    } */

.kanpc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.1rem 1.25rem;
  font-family: "Playfair Display", serif;
  font-size: 1.125rem;
}

.kanstars svg {
  width: 20px;
  height: 20px;
  fill: #eac71d;
  stroke: #eac71d;
}

@media (max-width: 1250px) {
  .kantagline {
    font-size: 1.5rem;
  }

  .kanhero-title {
    font-size: clamp(2.2rem, 5.5vw, 3rem);
  }
  .kanhero-lead {
    font-size: 0.9rem;
  }
}

@media (max-width: 1092px) {
  .kantagline {
    font-size: 1.3rem;
  }

  .kanhero-title {
    font-size: clamp(2.2rem, 5.5vw, 2.5rem);
  }
  .kanhero-lead {
    font-size: 0.8rem;
  }

  .kanprofile-card {
  }
  .kanhero-grid {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 356px);
    align-items: center;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

@media (max-width: 928px) {
  .kantagline {
    font-size: 1.1rem;
  }

  .kanhero-title {
    font-size: clamp(2.2rem, 5.5vw, 1.9rem);
  }
  .kanhero-lead {
    font-size: 0.7rem;
  }

  .kanprofile-card {
    width: 92%;
  }
  .kanhero-grid {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 299px);
    align-items: center;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

@media (max-width: 828px) {
  .kantagline {
    font-size: 1rem;
  }

  .kanhero-title {
    font-size: clamp(2.2rem, 5.5vw, 1.7rem);
  }
  .kanhero-lead {
    font-size: 0.6rem;
  }

  .kanprofile-card {
    width: 92%;
  }
  .kanhero-grid {
    display: grid;
    grid-template-columns: 1fr minmax(279px, 279px);
    align-items: center;
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .kanpc-footer {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .kanhero-bg {
    display: none;
  }

  .kanhero-title {
    font-size: clamp(2rem, 5.5vw, 1.7rem);
  }
  .kanhero-lead {
    font-size: 0.68rem;
  }

  .kanhero-shell {
    padding: 1rem 1rem;
  }

  .kanhero-grid {
    grid-template-columns: 1fr;
  }

  .kanprofile-card {
    margin: 2.5rem auto 0;
  }
}

@media (max-height: 400px) and (max-width: 768px) {
  .kannav-menu {
    overflow-y: auto;
    justify-content: flex-start;
    padding-top: 4rem;
  }
  .kannav-menu ul {
    gap: 1rem;
  }
}

/* ========== Services Section Styles ========== */
.ks-features-section {
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.ks-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.ks-section-intro {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.ks-tagline {
  font-family: "Dancing Script", cursive;
  font-size: 1.25rem;
  color: #e4502b;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.ks-section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #1a1a1a;
  font-weight: 700;
  margin: 0 auto;
}

.ks-feature {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.ks-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.ks-feature-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.75rem;
  position: relative;
  padding-bottom: 0.5rem;
  color: #1a1a1a;
}

.ks-feature-title::after {
  content: "";
  width: 50px;
  height: 4px;
  background: #e4502b;
  position: absolute;
  bottom: 0;
  left: 0;
  border-radius: 2px;
}

.ks-feature-desc {
  font-family: "Poppins", sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #3f3f3f;
}

@media (max-width: 768px) {
  .ks-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ====== Banner Section Styles ====== */
.pride-section {
  position: relative;
  width: 100vw;
  height: 120px;
  margin: 4rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: clip;
  max-width: 100vw;
  margin-left: auto;
  margin-right: auto;
}
@supports not (overflow: clip) {
  html,
  .pride-section {
    overflow-x: hidden;
  }
}

.stripe {
  position: absolute;
  top: 40px;
  left: -10vw;
  width: 120vw;
  height: 40px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  transform-origin: center center;
  z-index: 1;
}

.stripeA {
  transform: rotate(4deg);
}

.stripeB {
  transform: rotate(-4deg);
}

.track {
  display: flex;
  white-space: nowrap;
  gap: 3rem;
  animation: scroll-right 40s linear infinite;
}

.stripeB .track {
  animation: scroll-left 40s linear infinite;
}

@keyframes scroll-right {
  from {
    transform: translateX(-33%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-33%);
  }
}

.item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: #fff;
}

.circle {
  width: clamp(18px, 3.5vw, 30px);
  height: clamp(18px, 3.5vw, 30px);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.7rem, 1.2vw, 0.9rem);
}

.circle::before {
  content: "✓";
}

.circle-1 {
  background: #8e44ad;
}

.circle-2 {
  background: #c0392b;
}

.circle-3 {
  background: #27ae60;
}

.circle-4 {
  background: #ff1493;
}

.circle-5 {
  background: #e67e22;
}

.circle-6 {
  background: #2980b9;
}

.circle-7 {
  background: #16a085;
}

.circle-8 {
  background: #d35400;
}

.circle-9 {
  background: #2c3e50;
}

.circle-10 {
  background: #f39c12;
}

.circle-11 {
  background: #34495e;
}

.circle-12 {
  background: #1abc9c;
}

.circle-13 {
  background: #e74c3c;
}

.circle-14 {
  background: #9b59b6;
}

.circle-15 {
  background: #95a5a6;
}

.banner {
  position: relative;
  z-index: 2;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(
    from 135deg at 50% 50%,
    #f77f8a,
    #fad69f,
    #6ed3bf,
    #879ee1,
    #f77f8a
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  text-transform: uppercase;
  transform: rotate(-1deg);
  padding: 0.5rem;
  overflow: visible;
  box-shadow: 0 0 15px rgb(247 127 138 / 0.5);
}

.banner::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    #ff5f6d,
    #ffc371,
    #47cacc,
    #8682ca,
    #ff5f6d
  );
  animation: spin 5s linear infinite;
  z-index: -1;
}

/* Responsive banner section */
@media (max-width: 1200px) {
  .pride-section {
    height: 100px;
  }

  .stripe {
    top: 30px;
    height: 30px;
  }

  .track {
    gap: 2rem;
    animation-duration: 36s;
  }

  .item {
    font-size: clamp(0.8rem, 1.2vw, 1rem);
  }

  .circle {
    width: clamp(16px, 3vw, 28px);
    height: clamp(16px, 3vw, 28px);
    font-size: clamp(0.6rem, 1vw, 0.8rem);
  }

  .banner {
    width: 120px;
    height: 120px;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    padding: 0.4rem;
  }
}

@media (max-width: 900px) {
  .pride-section {
    height: 90px;
  }

  .stripe {
    top: 25px;
    height: 25px;
  }

  .track {
    gap: 1.5rem;
    animation-duration: 30s;
  }

  .item {
    font-size: clamp(0.7rem, 1.8vw, 0.95rem);
  }

  .circle {
    width: clamp(14px, 4vw, 24px);
    height: clamp(14px, 4vw, 24px);
    font-size: clamp(0.6rem, 1.1vw, 0.7rem);
  }

  .banner {
    width: 100px;
    height: 100px;
    font-size: clamp(1.1rem, 6vw, 1.5rem);
    padding: 0.3rem;
  }
}

@media (max-width: 700px) {
  .pride-section {
    height: 80px;
  }

  .stripe {
    top: 20px;
    height: 20px;
  }

  .track {
    gap: 1rem;
    animation-duration: 25s;
  }

  .item {
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
  }

  .circle {
    width: clamp(12px, 5vw, 20px);
    height: clamp(12px, 5vw, 20px);
    font-size: clamp(0.5rem, 1.5vw, 0.7rem);
  }

  .banner {
    width: 80px;
    height: 80px;
    font-size: clamp(0.9rem, 7vw, 1.3rem);
    padding: 0.25rem;
  }
}

@media (max-width: 500px) {
  .pride-section {
    height: 60px;
  }

  .stripe {
    top: 20px;
    height: 15px;
  }

  .track {
    gap: 0.5rem;
    animation-duration: 10s;
  }

  /* Stripe A match Stripe B’s normal 40s loop */
  .stripeA .track {
    animation: scroll-right 40s linear infinite;
  }

  .item {
    font-size: clamp(0.6rem, 4vw, 0.8rem);
  }

  .circle {
    width: clamp(12px, 8vw, 16px);
    height: clamp(12px, 8vw, 16px);
    font-size: clamp(0.5rem, 2vw, 0.65rem);
  }

  .banner {
    width: 60px;
    height: 60px;
    font-size: clamp(0.7rem, 10vw, 1rem);
    padding: 0.2rem;
  }
}

/* ========== ABOUT SECTION STYLES========== */
/* ABOUT SECTION */
.kabt-about-section {
  margin: clamp(3rem, 6vw, 5rem) auto;
  max-width: 1200px;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  font-family: "Playfair Display", serif;
  color: #1a1a1a;
}

.kabt-about-text {
  max-width: 600px;
}

.kabt-about-text .kabt-subtitle {
  font-family: "Dancing Script", cursive;
  font-size: 1.4rem;
  color: #e4502b;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.kabt-about-text h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 700;
}

.kabt-about-text p {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  color: #3f3f3f;
  margin-bottom: 2.5rem;
  max-width: 450px;
  line-height: 1.5;
}

/* Modern Testimonial */
.kabt-testimonial {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: "Playfair Display", serif;
  color: #1a1a1a;
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  max-width: 600px;
  margin-top: 1.5rem;
}

.kabt-testimonial img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid;
  border-image-slice: 1;
  border-width: 4px;
  border-image-source: linear-gradient(135deg, #f9bc60, #f4686c);
  box-shadow: 0 2px 10px rgba(244, 104, 108, 0.5);
}

.kabt-testimonial-content {
  font-size: 1.125rem;
  font-style: italic;
  color: #444;
  position: relative;
  background: #fef6f2;
  border-radius: 1rem;
  padding: 1rem 1.5rem 1rem 2rem;
  line-height: 1.6;
  box-shadow: inset 4px 0 0 0 #f4686c;
}

.kabt-testimonial-content::before {
  content: "“";
  font-size: 4rem;
  color: #f4686c;
  position: absolute;
  top: -1rem;
  left: 1rem;
  font-weight: 900;
  font-family: "Georgia", serif;
  opacity: 0.25;
  pointer-events: none;
}

.kabt-about-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: visible;
  max-width: 600px;
  width: 100%;
  margin-left: auto;
}

.kabt-about-image-wrapper img {
  width: 100%;
  border-radius: 24px;
  position: relative;
  z-index: 10;
  display: block;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.kabt-about-image-wrapper::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f9bc60, #f4686c);
  box-shadow: 0 12px 20px rgba(244, 104, 108, 0.4);
  z-index: 5;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.15));
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .kabt-about-section {
    grid-template-columns: 1fr;
    padding: 1rem 0;
  }

  .kabt-testimonial {
    flex-direction: column;
    text-align: center;
    max-width: 100%;
  }

  .kabt-testimonial img {
    margin-bottom: 1rem;
  }

  .kabt-testimonial-content {
    box-shadow: none;
    background: transparent;
    border-left: none;
    padding-left: 0;
  }

  .kabt-testimonial-content::before {
    display: none;
  }

  .kabt-about-text p {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .kabt-about-section {
    margin: 2rem auto;
    gap: 2rem;
    padding: 0.5rem 0;
  }

  .kabt-about-text .kabt-subtitle {
    font-size: 1.2rem;
  }

  .kabt-about-text h2 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .kabt-about-text p {
    font-size: 0.95rem;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .kabt-testimonial {
    padding: 1rem 1.2rem;
  }

  .kabt-testimonial img {
    width: 80px;
    height: 80px;
  }

  .kabt-testimonial-content {
    font-size: 1rem;
    padding: 0.8rem 1rem 0.8rem 1rem;
  }

  .kabt-about-image-wrapper {
    margin-left: 0;
    max-width: 100%;
  }

  .kabt-about-image-wrapper::before {
    top: 12px;
    left: 12px;
    right: -12px;
    bottom: -12px;
  }
}

/* ========== PORTFOLIO SECTION STYLES ========== */
:root {
  --color-primary: #e4502b;
  --color-primary-light: #ff704d;
  --color-text-dark: #1a1a1a;
  --color-text-light: #4d4d4d;
  --color-bg-light: #f9f5f0;
  --color-bg-dark: #1a1a1a;
  --color-peach: #fff3e8;

  --shadow-sm: rgba(0 0 0 / 0.08);
  --shadow-md: rgba(0 0 0 / 0.15);

  --ease-snappy: cubic-bezier(0.25, 0.82, 0.29, 1);

  --font-serif: "Playfair Display", serif;
  --font-cursive: "Dancing Script", cursive;
  --font-sans: "Poppins", sans-serif;

  --pill-h: 46px;
  --pill-h-sm: 34px;
}

.kp-portfolio-section {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem);
  margin-block: clamp(4rem, 6vw, 6rem);
  border-radius: 2rem;
  background: var(--color-bg-light);
  overflow: hidden;
  isolation: isolate;
}

.kp-portfolio-section::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: conic-gradient(
    from 140deg at 50% 50%,
    #ffb76b,
    #ff6c92,
    #ffc56b,
    #ff6c92,
    #ffb76b
  );
  animation: spin 18s linear infinite;
  z-index: -2;
}

.kp-portfolio-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255 255 255/0.65);
  backdrop-filter: blur(65px);
  z-index: -1;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

.kp-subtitle {
  font-family: var(--font-cursive);
  font-size: 1.45rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.kp-portfolio-section h2 {
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 2.6rem;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kp-portfolio-filters {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.kp-filter-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: var(--pill-h);
  border-radius: var(--pill-h);
  background: var(--color-primary);
  transition:
    transform 0.45s var(--ease-snappy),
    width 0.45s var(--ease-snappy),
    height 0.45s var(--ease-snappy);
  z-index: 0;
}

.kp-filter-btn {
  position: relative;
  z-index: 1;
  height: var(--pill-h);
  background: none;
  line-height: var(--pill-h);
  padding: 0 1.55rem;
  border-radius: var(--pill-h);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-dark);
  user-select: none;
  transition:
    color 0.25s var(--ease-snappy),
    transform 0.25s var(--ease-snappy),
    box-shadow 0.25s var(--ease-snappy);
}

.kp-filter-btn:is(:hover, :focus-visible) {
  transform: translateY(-2px);
  color: var(--color-primary);
  box-shadow: 0 6px 14px var(--shadow-sm);
}

.kp-filter-btn.kp-active {
  color: #fff;
}

.kp-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.kp-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.8rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 14px 28px var(--shadow-sm);
  transition:
    transform 0.45s var(--ease-snappy),
    box-shadow 0.45s;
}

.kp-card:hover {
  transform: translateY(-8px) rotateX(7deg) rotateY(-4deg);
  box-shadow: 0 24px 60px var(--shadow-md);
}

.kp-card-img {
  flex: 1 1 auto;
}

.kp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.5s,
    filter 0.5s;
}

.kp-card:hover .kp-card-img img {
  transform: scale(1.15) rotate(0.8deg);
  filter: brightness(0.8);
}

.kp-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(0 0 0/0.82));
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1.8rem;
}

.kp-card:hover .kp-card-overlay {
  opacity: 1;
}

.kp-overlay-content {
  color: #fff;
}

.kp-overlay-content small {
  font-family: var(--font-cursive);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
  display: block;
}

.kp-overlay-content h3 {
  font-size: 1.6rem;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
}

.kp-card-text {
  background: var(--color-peach);
  padding: 2.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.kp-card-text.kp-bg-dark {
  background: var(--color-bg-dark);
  color: #fff;
}

.kp-card-text small {
  font-family: var(--font-cursive);
  font-size: 1.15rem;
  color: var(--color-primary);
  font-style: italic;
}

.kp-card-text h3 {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font-serif);
  line-height: 1.25;
}

.kp-card-text p {
  font-size: 1.05rem;
  color: var(--color-text-light);
}

.kp-btn {
  align-self: flex-start;
  padding: 0.85rem 2.15rem;
  border-radius: 50px;
  background: var(--color-bg-dark);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition:
    background 0.25s,
    transform 0.25s;
  cursor: pointer;
  border: none;
}

.kp-btn::after {
  content: "→";
  font-weight: 900;
  transition: transform 0.25s;
}

.kp-btn:hover {
  background: #000;
  transform: translateY(-3px);
}

.kp-btn:hover::after {
  transform: translateX(6px);
}

.kp-card-text.kp-bg-dark .kp-btn {
  background: #fff;
  color: var(--color-bg-dark);
}

.kp-card-text.kp-bg-dark .kp-btn:hover {
  background: #eee;
}

.kp-card[hidden] {
  display: none !important;
}

/* ---------- SMALL (<400px) ---------- */
@media (max-width: 400px) {
  :root {
    --pill-h: var(--pill-h-sm);
  }

  h2 {
    font-size: 2.1rem;
    margin-bottom: 1.9rem;
  }

  .kp-subtitle {
    font-size: 1.25rem;
  }

  .kp-portfolio-filters {
    gap: 0.55rem;
    margin-bottom: 1.6rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .kp-portfolio-filters::-webkit-scrollbar {
    display: none;
  }

  .kp-filter-btn {
    font-size: 0.82rem;
    padding: 0 1.2rem;
    flex: none;
  }

  .kp-portfolio-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .kp-card:hover {
    transform: translateY(-4px);
  }

  .kp-card:hover .kp-card-img img {
    transform: scale(1.08);
  }

  .kp-card-text {
    padding: 2.1rem;
  }

  .kp-card-text h3 {
    font-size: 1.7rem;
  }

  .kp-card-text p {
    font-size: 0.97rem;
  }

  .kp-btn {
    width: 100%;
    justify-content: center;
  }
}

/* layer */

:root {
  --accent: #ff6f61;
  --accent-light: #ffa992;
  --text: #212121;

  --max-w: 1200px;
  --g: 1.25rem;
  --cta-overlap: 4.25rem;

  --shadow: rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #f5f5f5;
}

/* ░░░ CTA STACK ░░░ */
.cta-stack {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto calc(-1 * var(--cta-overlap));

  z-index: 30;
}

/* colourful shelf */
.cta-plate {
  position: absolute;
  inset: 0;
  transform: translate(1rem, 1rem);

  border-radius: 1.5rem;
  background: linear-gradient(
    100deg,
    #dab3ff 0%,
    #ffb86c 30%,
    #ff6243 60%,
    #4f6bff 100%
  );
  z-index: 0;
}

/* white card */
.cta-card {
  position: relative;
  z-index: 1;

  background: #fff;
  border: 1px solid #000;
  border-radius: 1.5rem;
  box-shadow: 0 1.5rem 3rem -1rem var(--shadow);
  padding: calc(var(--g) * 3) clamp(1rem, 4vw, 3rem);
  text-align: center;
  overflow: hidden;
  margin-top: 2.5rem;
}

/* diamond pattern on right side */
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0 0 0 60%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" fill="none" stroke="%23909090" stroke-width="1"><defs><pattern id="d" width="60" height="60" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="10" height="10" fill="none" stroke-opacity=".15"/></pattern></defs><rect width="100%" height="100%" fill="url(%23d)"/></svg>')
    repeat;
  opacity: 0.12;
  pointer-events: none;
}

/* kicker + title */
.cta-kicker {
  font-family: "Satisfy", cursive;
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--accent);
  margin: 0 0 0.8rem;
}

.cta-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3.5vw + 1rem, 3rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0.2rem 0 2.3rem;
}

/* form */
.cta-form {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.cta-input {
  flex: 0 1 260px;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.55);
  border-radius: 2rem;
  background: #fafafa;
  outline: none;
}

.cta-input:focus {
  box-shadow: 0 0 0 2px var(--accent-light);
}

.cta-btn {
  padding: 0.9rem 2rem;
  border-radius: 2rem;
  background: #000;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition:
    0.25s transform,
    0.25s box-shadow;
}

.cta-btn:hover,
.cta-btn:focus {
  transform: translateY(-3px);
  box-shadow: 0 0.7rem 1.4rem -0.5rem var(--shadow);
}

/* mobile — remove shelf for a simpler card */
@media (max-width: 600px) {
  .cta-plate {
    display: none;
  }

  .cta-card {
    border-radius: 0;
  }

  .cta-stack {
    margin-bottom: 0;
  }
}

/* Resume Section */

:root {
  --accent1: #ff6b6b;
  --accent2: #4ecdc4;
  --card-bg: #ffffff;
  --card-alt: #fafbff;
  --text: #333333;
  --subtext: #555555;
  --shadow-light: rgba(0, 0, 0, 0.04);
  --shadow-dark: rgba(0, 0, 0, 0.1);
  --transition-fast: 0.25s ease-out;
  --transition-med: 0.4s ease;
}

/* Container & Animated Background */
.resume-details.kancontainer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4ff 0%, #e2e8f0 100%);
  border-radius: 2rem;
  padding: 5rem 3rem;
  max-width: 1200px;
  margin: 8rem auto;
}
.resume-details.kancontainer::before,
.resume-details.kancontainer::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  z-index: 0;
}
.resume-details.kancontainer::before {
  width: 600px;
  height: 600px;
  background: var(--accent1);
  top: -200px;
  left: -250px;
  animation: blobMove1 18s var(--transition-med) infinite;
}
.resume-details.kancontainer::after {
  width: 700px;
  height: 700px;
  background: var(--accent2);
  bottom: -250px;
  right: -300px;
  animation: blobMove2 20s var(--transition-med) infinite;
}

/* Animations */
@keyframes blobMove1 {
  0%,
  100% {
    transform: translate(-250px, -250px) scale(1);
  }
  50% {
    transform: translate(-200px, -200px) scale(1.1);
  }
}
@keyframes blobMove2 {
  0%,
  100% {
    transform: translate(300px, 300px) scale(1);
  }
  50% {
    transform: translate(250px, 250px) scale(1.1);
  }
}

/* Entry Reveal Animation & Grid */
.resume-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
.detail-block {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s forwards;
}
.detail-block:nth-child(1) {
  animation-delay: 0.2s;
}
.detail-block:nth-child(2) {
  animation-delay: 0.4s;
}
.detail-block:nth-child(3) {
  animation-delay: 0.6s;
}
.detail-block:nth-child(4) {
  animation-delay: 0.8s;
}
.detail-block:nth-child(5) {
  animation-delay: 1s;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Base & Hover */
.detail-block {
  position: relative;
  background: var(--card-alt);
  border-radius: 1.75rem;
  padding: 3rem;
  box-shadow: 0 6px 20px var(--shadow-light);
  border: 1px solid transparent;
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    border-color var(--transition-fast);
}
.detail-block:nth-child(odd) {
  background: var(--card-bg);
}
.detail-block:hover {
  transform: translateY(-10px) rotateX(2deg);
  box-shadow: 0 16px 40px var(--shadow-dark);
  border-color: var(--accent2);
}

/* Slim Vertical Accent & Corner Dot */
.detail-block::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 6px;
  height: calc(100% - 3rem);
  background: linear-gradient(to bottom, var(--accent1), var(--accent2));
  border-radius: 3px;
}
.detail-block::after {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 12px;
  height: 12px;
  background: var(--accent1);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.3);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}
.detail-block:hover::after {
  transform: scale(1.2);
  box-shadow: 0 0 0 6px rgba(78, 205, 196, 0.4);
}

/* Section Headers */
.detail-block h3 {
  position: relative;
  font-size: 2rem;
  margin-bottom: 1.25rem;
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color var(--transition-fast);
}
.detail-block h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent1);
  border-radius: 2px;
}
.detail-block:hover h3 {
  color: var(--accent2);
}

/* Drop Cap for Summary */
.detail-block:first-of-type p:first-letter {
  float: left;
  font-size: 3.5rem;
  line-height: 1;
  margin: 0 0.5rem 0 0;
  color: var(--accent1);
}

/* Paragraphs */
.detail-block p {
  color: var(--subtext);
  line-height: 1.7;
  margin: 0 0 2rem;
  padding-right: 1rem;
}

/* Lists & Custom Bullets */
.detail-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.detail-block ul li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--subtext);
  transition: color var(--transition-fast);
}
.detail-block ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
  color: var(--accent2);
}
.detail-block ul li:hover {
  color: var(--text);
}

/* Timeline Variant */
.detail-block.timeline ul {
  border-left: 2px dashed var(--accent2);
  padding-left: 1.5rem;
}
.detail-block.timeline ul li {
  padding-left: 1rem;
}
.detail-block.timeline ul li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--accent2);
  border-radius: 50%;
}

/* Skill Tags with Pulse */
@keyframes skillPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}
.skills-list li {
  background: var(--accent2);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 1.25rem;
  font-size: 0.9rem;
  cursor: default;
  animation: skillPulse 4s ease-in-out infinite;
  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}
.skills-list li:hover {
  transform: translateY(-6px) rotate(-2deg);
  background: linear-gradient(135deg, var(--accent2), var(--accent1));
  box-shadow: 0 6px 16px var(--shadow-light);
}

/* Projects Grid & Cards */
.project-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.project-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow-light);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}
.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 28px var(--shadow-dark);
}
.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: brightness(0.95);
  transition:
    filter var(--transition-fast),
    transform var(--transition-fast);
}
.project-card:hover img {
  filter: brightness(1);
  transform: scale(1.05);
}
.project-info {
  padding: 1.25rem 1.5rem;
}

/* Certifications Grid & Cards */
.cert-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 600px) {
  .cert-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}
.cert-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 1.25rem;
  text-align: center;
  padding: 1.75rem 1rem;
  box-shadow: 0 4px 16px var(--shadow-light);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}
.cert-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 12px 28px var(--shadow-dark);
}
.cert-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  filter: grayscale(100%) contrast(0.8);
  transition:
    filter var(--transition-fast),
    transform var(--transition-fast);
}
.cert-card:hover img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.1);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease;
}
.lightbox-close:hover {
  transform: scale(1.2);
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Breakpoints */
/* Below 1200px */
@media (max-width: 1200px) {
  .resume-details.kancontainer {
    padding: 4rem 2rem;
  }
  .resume-details.kancontainer::before {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -200px;
  }
  .resume-details.kancontainer::after {
    width: 600px;
    height: 600px;
    bottom: -200px;
    right: -250px;
  }
}

/* Tablet & small desktop (<=768px) */
@media (max-width: 768px) {
  .resume-details.kancontainer {
    padding: 3rem 1.5rem;
  }
  .detail-block {
    padding: 2.5rem 2rem;
  }
  .project-grid,
  .cert-grid {
    grid-template-columns: 1fr !important;
  }
  .project-card img {
    height: 180px;
  }
  .cert-card img {
    width: 80px;
    height: 80px;
  }
  .detail-block::before {
    top: 1rem;
    left: 1rem;
    height: calc(100% - 2rem);
  }
  .detail-block::after {
    top: 0.75rem;
    right: 0.75rem;
    width: 10px;
    height: 10px;
  }
  .detail-block h3 {
    font-size: 1.75rem;
  }
}

/* Mobile phones (<=480px) */
@media (max-width: 480px) {
  .resume-details.kancontainer {
    padding: 1.5rem 1rem;
    margin: 2rem auto;
  }
  .resume-grid {
    gap: 2rem;
  }

  .detail-block {
    padding: 1.5rem 1rem;
    border-radius: 1.25rem;
  }

  .detail-block::before {
    display: none;
  }

  .detail-block::after {
    top: 0.5rem;
    right: 0.5rem;
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.3);
  }

  .detail-block h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .detail-block:first-of-type p:first-letter {
    font-size: 2.5rem;
    margin-right: 0.3rem;
  }

  .detail-block p {
    margin-bottom: 1.25rem;
    padding-right: 0;
  }

  .detail-block ul li {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
  }

  .skills-list {
    gap: 0.5rem;
  }
  .skills-list li {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .project-grid {
    gap: 1.5rem;
  }
  .project-card img {
    height: 120px;
  }
  .project-info {
    padding: 0.75rem 1rem;
  }

  .cert-grid {
    gap: 1.5rem;
  }
  .cert-card {
    padding: 1rem 0.75rem;
  }
  .cert-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
  }

  /* Lightbox */
  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 2rem;
  }
}

/* ===== Testimonial & Blog base ===== */
:root {
  --clr-bg: #f9f4ec;
  --clr-text: #1a1a1a;
  --clr-text-light: #777;
  --clr-primary: #e4502b;
  --gap: 3rem;
  --radius: 1.6rem;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

.kt-container {
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
  margin-top: 122px;
}

.kt-subtitle {
  font:
    italic 1.4rem "Dancing Script",
    cursive;
  color: var(--clr-primary);
}

h2 {
  font:
    700 clamp(2.4rem, 5vw, 3.6rem)/1.2 "Playfair Display",
    serif;
  margin: 0.4rem 0 3rem;
}

/* --- carousel buttons --- */
.kt-btn-circ {
  width: 70px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: none;
  background: #111;
  color: #fff;
  font-size: 1.7rem;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.kt-btn-circ:hover {
  background: #000;
  transform: translateY(-3px);
}

.kt-btn-circ:focus-visible {
  outline: 3px solid var(--clr-primary);
}

.kt-track-wrap {
  position: relative;
}

.kt-track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: calc(var(--gap) + 22px);
  scroll-padding-inline: calc(var(--gap) + 22px);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.kt-track::-webkit-scrollbar {
  display: none;
}

.kt-track-wrap::before,
.kt-track-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8%;
  pointer-events: none;
  z-index: 5;
  background: var(--clr-bg);
  mask-image: linear-gradient(to right, #000 0, transparent 100%);
}

.kt-track-wrap::after {
  right: 0;
  transform: scaleX(-1);
}

.kt-track-wrap::before {
  left: 0;
}

/* --- testimonial cards --- */
.kt-card-wrap {
  flex: 0 0 420px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-radius: var(--radius);
  background: #fff;
  padding: 2.4rem 3rem 2.8rem;
  position: relative;
  transition: 0.3s;
  z-index: 0;
  cursor: pointer;
}

.kt-card-wrap::after {
  content: "";
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 80%;
  height: 80%;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(228, 80, 43, 0.3),
    rgba(228, 80, 43, 0)
  );
  filter: blur(12px);
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.3s;
}

.kt-card-wrap.active {
  border: 1px solid #222;
  z-index: 10;
  cursor: default;
}

.kt-card-wrap.active::after {
  background: linear-gradient(
    135deg,
    rgba(228, 80, 43, 0.5),
    rgba(228, 80, 43, 0)
  );
  filter: blur(20px);
  opacity: 0.6;
}

.kt-card-wrap:not(.active) {
  transform: translateY(10px) scale(0.88);
  filter: grayscale(0.15);
  opacity: 0.5;
}

.kt-card-wrap:hover:not(.active) {
  transform: translateY(5px) scale(0.92);
  filter: none;
  opacity: 0.7;
}

.kt-card {
  background: none;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.kt-card-header {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.kt-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.kt-name {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.kt-role {
  font-size: 0.95rem;
  color: var(--clr-text-light);
}

.kt-text {
  border-top: 1px solid #ddd;
  padding-top: 1.6rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.kt-stars {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.6rem;
}

.kt-stars svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  stroke: #ffb300;
  stroke-width: 2px;
}

@media (max-width: 600px) {
  .kt-btn-circ {
    width: 56px;
    font-size: 1.4rem;
  }

  .kt-card-wrap {
    flex-basis: 78vw;
    padding: 1.5rem 2rem 2rem;
  }

  .kt-avatar {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 2rem;
  }

  .kt-btn-circ {
    width: 48px;
    font-size: 1.25rem;
  }
}

/* ===== Blog section ===== */

.kb-blog-section {
  color: #111;
  margin: 2rem auto;
  min-width: 320px;
  max-width: 1200px;
  padding: 4rem 0;
  text-align: center;
  font-family: "Playfair Display", serif;
  margin-top: 88px;
  margin-bottom: 23rem;
}

.kb-blog-section .kb-subtitle {
  font-family: "Dancing Script", cursive;
  font-style: italic;
  color: #e4502b;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  text-transform: capitalize;
}

.kb-blog-section h2 {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 3rem;
  line-height: 1.1;
}

.kb-posts-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.kb-posts-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 54%;
  height: 1px;
  background: #000;
  opacity: 0.15;
  pointer-events: none;
}

.kb-posts-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 4rem;
}

.kb-posts-top > .kb-post:not(:last-child) {
  border-right: 1px solid rgba(0, 0, 0, 0.15);
}

.kb-posts-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 60%;
  margin: 0 auto;
}

.kb-posts-bottom > .kb-post:first-child {
  border-right: 1px solid rgba(0, 0, 0, 0.15);
}

.kb-post {
  padding: 0 1.5rem 2rem;
  text-align: left;
  font-family: "Playfair Display", serif;
}

.kb-post .kb-date {
  font-style: italic;
  font-weight: 400;
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  user-select: none;
}

.kb-post h3 {
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  cursor: pointer;
  transition: color 0.3s;
}

.kb-post h3:hover {
  color: #e4502b;
}

.kb-post .kb-view-more {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: #111;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
  user-select: none;
}

.kb-post .kb-view-more:hover {
  border-color: #e4502b;
  color: #e4502b;
}

.kb-blog-images {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  grid-template-rows: 250px;
  gap: 2rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.kb-blog-images > .kb-img-large {
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.kb-blog-images > .kb-img-large:hover {
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.25),
    0 22px 50px rgba(0, 0, 0, 0.15);
}

.kb-blog-images > .kb-img-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  transition:
    transform 0.35s,
    filter 0.35s;
  cursor: pointer;
}

.kb-blog-images > .kb-img-large:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.kb-blog-images > .kb-img-column {
  display: grid;
  grid-template-rows: 1fr 1fr auto;
  gap: 2rem;
  align-items: start;
}

.kb-blog-images > .kb-img-column img,
.kb-blog-images > div:last-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.1),
    0 10px 22px rgba(0, 0, 0, 0.07);
  transition:
    box-shadow 0.3s,
    transform 0.3s;
  cursor: pointer;
}

.kb-blog-images > .kb-img-column img:hover,
.kb-blog-images > div:last-child img:hover {
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.18),
    0 18px 36px rgba(0, 0, 0, 0.12);
  transform: scale(1.07);
}

.kb-blog-images > .kb-img-column .kb-btn-see-more {
  margin: 0 auto;
  padding: 0.8rem 2.5rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  transition: background 0.3s;
  text-decoration: none;
  max-width: 280px;
  justify-content: center;
}

.kb-blog-images > .kb-img-column .kb-btn-see-more:hover {
  background: #e4502b;
}

.kb-blog-images > .kb-img-column .kb-btn-see-more::after {
  content: "→";
  font-weight: 900;
  display: inline-block;
  transition: transform 0.3s;
  margin-left: 0.25rem;
}

.kb-blog-images > .kb-img-column .kb-btn-see-more:hover::after {
  transform: translateX(6px);
}

@media (max-width: 1300px) {
  .kb-blog-images {
    grid-template-columns: 1.4fr 1fr 1.2fr;
    grid-template-rows: 220px;
    gap: 1.5rem 2rem;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .kb-posts-top {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 2rem;
  }

  .kb-posts-bottom {
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0;
    gap: 2rem;
  }

  .kb-posts-wrapper::after {
    display: none;
  }

  .kb-blog-images {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    max-width: 100%;
  }

  .kb-blog-images > div:last-child {
    grid-column: 1/-1;
    grid-row: 2;
  }

  .kb-blog-images > .kb-img-column {
    grid-template-rows: auto auto auto;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .kb-blog-section {
    margin: 1rem auto;
    padding: 0 1rem;
  }

  .kb-blog-images {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.5rem;
  }

  .kb-blog-images > .kb-img-column {
    gap: 1rem;
  }

  .kb-posts-top {
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
  }

  .kb-posts-bottom {
    grid-template-columns: 1fr;
  }

  .kb-posts-wrapper::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .kb-blog-section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 400px) {
  .kb-blog-section h2 {
    font-size: 1.8rem;
  }

  .kb-post h3 {
    font-size: 1.1rem;
  }

  .kb-blog-images {
    gap: 1rem;
  }

  .kb-blog-images > .kb-img-column .kb-btn-see-more {
    max-width: 100%;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Footer */

:root {
  --accent: #ff6f61;
  --accent-light: #ffa992;
  --text: #212121;
  --max-w: 1200px;
  --g: 1.25rem;
  --cta-overlap: 4.25rem;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* ---------- base ---------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

/* ---------- CTA STACK ---------- */
.kcta-cta-stack {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto calc(-1 * var(--cta-overlap));
  z-index: 30;
}

/* colourful plate */
.kcta-cta-plate {
  position: absolute;
  inset: 0;
  transform: translate(1rem, 1rem);
  border-radius: 1.5rem;
  background: linear-gradient(
    100deg,
    #dab3ff 0%,
    #ffb86c 30%,
    #ff6243 60%,
    #4f6bff 100%
  );
  z-index: 0;
}

/* white card */
.kcta-cta-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid #000;
  box-shadow: 0 1.5rem 3rem -1rem var(--shadow);
  padding: calc(var(--g) * 3) clamp(1rem, 4vw, 3rem);
  text-align: center;
  overflow: hidden;
}

.kcta-cta-card::before {
  content: "";
  position: absolute;
  inset: 0 0 0 60%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" fill="none" stroke="%23909090" stroke-width="1"><defs><pattern id="d" width="60" height="60" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="10" height="10" fill="none" stroke-opacity=".15"/></pattern></defs><rect width="100%" height="100%" fill="url(%23d)"/></svg>')
    repeat;
  opacity: 0.12;
  pointer-events: none;
}

/* kicker + title */
.kcta-cta-kicker {
  font-family: "Satisfy", cursive;
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--accent);
  margin: 0 0 0.8rem;
}

.kcta-cta-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, calc(3.5vw + 1rem), 3rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0.2rem 0 2.3rem;
}

/* form */
.kcta-cta-form {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.kcta-cta-input {
  flex: 0 1 260px;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.55);
  border-radius: 2rem;
  background: #fafafa;
  outline-offset: 2px;
  outline-style: none;
  transition: box-shadow 0.3s ease;
}

.kcta-cta-input:focus {
  box-shadow: 0 0 0 2px var(--accent-light);
  outline: none;
}

.kcta-cta-btn {
  padding: 0.9rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1rem;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.kcta-cta-btn:hover,
.kcta-cta-btn:focus {
  transform: translateY(-3px);
  box-shadow: 0 0.7rem 1.4rem -0.5rem var(--shadow);
  outline: none;
}

/* ---------- FOOTER ---------- */
.kcta-site-footer {
  position: relative;
  padding-top: var(--cta-overlap);
  background: linear-gradient(#f9f4ec, #e0d8c4);
  box-shadow: inset 0 4px 10px var(--shadow);
}

.kcta-footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: var(--g);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: calc(var(--g) * 2) var(--g) var(--g);
}

@media (min-width: 768px) {
  .kcta-footer-col + .kcta-footer-col::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0, 0, 0, 0.08);
  }

  .kcta-footer-col {
    position: relative;
    padding: 0 var(--g);
  }
}

.kcta-footer-col h4 {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.kcta-footer-col p,
.kcta-footer-col ul {
  margin: 0;
  font-size: 0.9rem;
}

.kcta-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.kcta-footer-col ul li + li {
  margin-top: 0.5rem;
}

.kcta-footer-col a {
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s;
  text-decoration: none;
  color: inherit;
}

.kcta-footer-col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s;
}

.kcta-footer-col a:hover,
.kcta-footer-col a:focus {
  color: var(--accent);
  outline: none;
}

.kcta-footer-col a:hover::after,
.kcta-footer-col a:focus::after {
  width: 100%;
}

.kcta-social-icons {
  display: flex;
  gap: 1rem;
  margin-top: var(--g);
}

.kcta-social-icons a {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s,
    filter 0.3s;
  color: white;
  text-decoration: none;
}

.kcta-social-icons svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor !important;
}

.kcta-social-icons a.linkedin {
  background: #0077b5;
}

.kcta-social-icons a.github {
  background: #333;
}

.kcta-social-icons a.leetcode {
  background: #ffa116;
}

.kcta-social-icons a:hover,
.kcta-social-icons a:focus {
  transform: scale(1.1);
  filter: brightness(1.2);
  outline: none;
}

.kcta-footer-col.kcta-connect p {
  margin: 0.5rem 0 1rem;
  font-style: italic;
  color: #555;
}

.kcta-footer-bottom {
  background: #e0d8c4;
  padding: var(--g);
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  .kcta-cta-plate {
    display: none;
  }

  .kcta-cta-card {
    border-radius: 0;
    padding: calc(var(--g) * 2) 1.5rem;
  }

  .kcta-site-footer {
    padding-top: var(--cta-overlap);
  }

  /* Stack form elements vertically on mobile */
  .kcta-cta-form {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .kcta-cta-input,
  .kcta-cta-btn {
    width: 100%;
    flex: none;
  }
}

/* Blog */
/* ===============================
   BLOG PAGE SECTION STYLES
   =============================== */

/* Container */
.blog-page {
  padding: 4rem 0;
  font-family: "Poppins", sans-serif;
  color: #111;
  margin-top: 5rem;
}

/* Header */
.blog-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}
.blog-subtitle {
  font-family: "Dancing Script", cursive;
  font-size: 1.1rem;
  color: #e4502b;
  margin-bottom: 0.5rem;
  text-transform: capitalize;
}
.blog-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 5vw, 3rem);
  margin-bottom: 1rem;
  line-height: 1.1;
}
.blog-intro {
  font-size: 1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Grid Layout */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

/* ===============================
   FLOATING BLOG CARDS
   =============================== */
.blog-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
}
.blog-card:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.12),
    0 24px 50px rgba(0, 0, 0, 0.1);
}

.blog-card:nth-child(3n + 1)::before {
  --blob: #ffe0e6;
}
.blog-card:nth-child(3n + 2)::before {
  --blob: #e0f7ff;
}
.blog-card:nth-child(3n + 3)::before {
  --blob: #e8ffe0;
}

.blog-card::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 140%;
  height: 140%;
  background: var(--blob);
  border-radius: 55% 45% 60% 40% / 50% 60% 40% 50%;
  filter: blur(50px);
  transition:
    transform 0.6s ease,
    filter 0.6s ease;
  z-index: 0;
}
.blog-card:hover::before {
  transform: scale(1.2) rotate(10deg);
  filter: blur(60px) brightness(1.1) hue-rotate(10deg);
}

.card-image {
  position: relative;
  z-index: 1;
}
.card-image img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-content {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  margin: -60px 1rem 1rem;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.08),
    0 12px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.5s ease;
}
.blog-card:hover .card-content {
  transform: translateY(-8px);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.75rem;
}
.card-meta .card-category {
  background: rgba(255, 255, 255, 0.8);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.card-title {
  position: relative;
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin: 0.25rem 0 0.5rem;
  line-height: 1.2;
}
.card-title a {
  color: #111;
  text-decoration: none;
  transition: color 0.3s ease;
}
.card-title a:hover {
  color: #e4502b;
}
.card-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, #e4502b, #ff7a4a);
  border-radius: 2px;
}

.card-excerpt {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1rem;
}

/* Read More Link */
.card-readmore {
  font-weight: 600;
  font-size: 0.9rem;
  color: #e4502b;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition:
    border-color 0.3s ease,
    transform 0.3s ease;
}
.card-readmore:hover {
  border-color: #e4502b;
  transform: translateX(4px);
}

/* Load More Button */
.blog-loadmore {
  text-align: center;
  margin-top: 2rem;
}
.btn-loadmore {
  padding: 0.8rem 2rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  min-width: 180px;
}
.btn-loadmore:hover {
  background: #e4502b;
}

/* ===============================
   RESPONSIVE BREAKPOINTS
   =============================== */

/* Up to 1200px: tighten gaps */
@media (max-width: 1200px) {
  .blog-grid {
    gap: 2rem;
  }
}

/* Tablets and small desktops */
@media (max-width: 900px) {
  .blog-page {
    padding: 3rem 0;
  }
  .card-image img {
    height: 200px;
  }
}

/* Large phones and small tablets */
@media (max-width: 600px) {
  .blog-header {
    margin-bottom: 2rem;
  }
  .blog-grid {
    gap: 1.75rem;
  }
  .card-content {
    margin: -50px 0.75rem 1rem;
    padding: 1.25rem;
  }
  .card-image img {
    height: 180px;
  }
  .btn-loadmore {
    width: 100%;
    padding: 0.8rem;
  }
}

/* small phones: single column */
@media (max-width: 400px) {
  .blog-page {
    padding: 2rem 0;
  }
  .blog-header {
    padding: 0 0.5rem;
  }
  .blog-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    padding: 0 0.5rem;
    gap: 1rem !important;
  }
  .blog-card {
    width: 100%;
  }
  .card-content {
    margin: -45px 0.5rem 1rem;
    padding: 1rem;
  }
  .card-image img {
    height: 150px;
  }
  .card-title {
    font-size: 1.25rem;
  }
  .card-excerpt {
    font-size: 0.9rem;
  }
  .btn-loadmore {
    font-size: 0.9rem;
  }
}
:root {
  --accent: #e4502b;
  --accent-dark: #bf3a1b;
  --bg: #fafafa;
  --text: #222;
  --muted: #666;
  --radius: 14px;
  --gap: 3rem;
  --max-width: 1200px;
  --font-serif: "Playfair Display", serif;
  --font-sans: "Poppins", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: text;
}

/* Scroll Progress */
.kblog-progress-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 0 10px 10px 0;
  z-index: 9999;
}

.kblog-progress-bar {
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  border-radius: 0 10px 10px 0;
  transition: height 0.2s ease-out;
}

/* Hero Section */
.kblog-hero {
  position: relative;
  height: clamp(350px, 30vw, 480px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  margin-top: 2rem;
}

.kblog-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(1.1);
  transition: transform 30s ease-in-out infinite;
  animation: kblog-heroZoom 30s ease-in-out infinite;
  z-index: 0;
}

@keyframes kblog-heroZoom {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.07);
  }
}

.kblog-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(228, 80, 43, 0.75) 0%,
      rgba(255, 122, 74, 0.75) 100%
    ),
    rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  mix-blend-mode: multiply;
  z-index: 1;
}

.kblog-hero-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  color: #fff;
  z-index: 2;
  user-select: text;
}

.kblog-hero-category {
  font-family: "Dancing Script", cursive;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 0.7rem;
  opacity: 0.95;
  position: relative;
  display: inline-block;
  padding-bottom: 0.3rem;
  cursor: default;
}

.kblog-hero-category::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 3px;
  animation: kblog-underlineGlow 2.5s ease-in-out infinite alternate;
}

@keyframes kblog-underlineGlow {
  from {
    box-shadow: 0 0 5px var(--accent);
  }
  to {
    box-shadow: 0 0 15px var(--accent-dark);
  }
}

.kblog-hero-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 0.3rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.kblog-hero-meta {
  font-size: 1.15rem;
  opacity: 0.85;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Container */
.kblog-container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Main Content */
.kblog-main-content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.07);
  margin: 4rem auto 6rem;
  padding: 3rem 4rem;
  animation: kblog-fadeInUp 0.8s ease forwards;
  opacity: 0;
  font-size: 16px;
  user-select: text;
}

@keyframes kblog-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Article Layout */
.kblog-article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  margin-top: 2rem;
}

/* Article Content */
.kblog-article-sections {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* Section Blocks */
.kblog-section-block {
  position: relative;
  padding-left: 4rem;
}

.kblog-section-block h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
  user-select: text;
  cursor: default;
  color: var(--text);
}

.kblog-section-number {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent);
  user-select: none;
}

.kblog-section-block p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  user-select: text;
}

/* Images inside article sections */
.kblog-article-sections figure {
  margin: 2rem 0 3rem;
  text-align: center;
  user-select: none;
}

.kblog-article-sections img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: default;
}

.kblog-article-sections img:hover,
.kblog-article-sections img:focus {
  transform: scale(1.03);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.kblog-article-sections figcaption {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 0.5rem;
  user-select: text;
}

/* Conclusion Section */
.kblog-section-block.kblog-conclusion h2,
.kblog-section-block.kblog-conclusion p {
  color: var(--accent);
}

/* Article Intro */
.kblog-article-intro {
  font-size: 1.25rem;
  max-width: 720px;
  margin: 0 auto 4rem;
  line-height: 1.85;
  color: var(--text);
  font-weight: 500;
  border-left: 6px solid var(--accent);
  padding-left: 1rem;
  background: rgba(228, 80, 43, 0.1);
  border-radius: 12px;
  box-shadow: 0 12px 25px rgba(228, 80, 43, 0.12);
  user-select: text;
  transition: box-shadow 0.3s ease;
}

.kblog-article-intro:hover,
.kblog-article-intro:focus-within {
  box-shadow: 0 20px 45px rgba(228, 80, 43, 0.22);
}

/* Sidebar */
.kblog-sidebar {
  position: sticky;
  top: 140px;
  align-self: start;
  user-select: none;
}

/* TOC */
.kblog-toc {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  font-size: 1rem;
  max-width: 320px;
  width: 100%;
}

.kblog-toc h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1.4rem;
  color: var(--accent);
  user-select: none;
}

.kblog-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.kblog-toc ul::-webkit-scrollbar {
  width: 6px;
}

.kblog-toc ul::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 4px;
}

.kblog-toc a {
  color: var(--text);
  font-weight: 600;
  transition: color 0.3s ease;
  user-select: text;
}

.kblog-toc a:hover,
.kblog-toc a:focus {
  color: var(--accent);
  outline-offset: 3px;
  outline-color: var(--accent);
  outline-style: solid;
  outline-width: 2px;
  outline-radius: 6px;
}

/* Share Buttons */
.kblog-share-buttons {
  margin-top: 3rem;
  display: flex;
  gap: 1.3rem;
  justify-content: center;
}

.kblog-share-btn {
  background: #fff;
  border-radius: 50%;
  width: 3.8rem;
  height: 3.8rem;
  font-size: 1.7rem;
  color: var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.kblog-share-btn:hover,
.kblog-share-btn:focus {
  background: var(--accent);
  color: #fff;
  transform: translateY(-5px);
  outline: none;
}

/* Article Footer */
.kblog-article-footer {
  margin-top: 4rem;
  border-top: 1px solid #eee;
  padding-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.kblog-tags {
  display: flex;
  gap: 1.2rem;
  user-select: none;
  flex-wrap: wrap;
}

.kblog-tags a {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  transition: opacity 0.25s ease;
  user-select: none;
  white-space: nowrap;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  background: rgba(228, 80, 43, 0.1);
  box-shadow: 0 6px 12px rgba(228, 80, 43, 0.1);
}

.kblog-tags a:hover,
.kblog-tags a:focus {
  opacity: 0.7;
  outline: none;
}

/* Author Info */
.kblog-author-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  user-select: none;
}

.kblog-author-info img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.kblog-author-info h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.kblog-author-info p {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

/* Responsive Layout */
@media (max-width: 1100px) {
  .kblog-article-layout {
    grid-template-columns: 1fr 280px;
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  .kblog-article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .kblog-sidebar {
    position: static;
    margin-top: 3rem;
    max-width: 100%;
  }

  .kblog-share-buttons {
    justify-content: flex-start;
  }

  .kblog-toc ul {
    max-height: 35vh;
  }

  .kblog-hero-content {
    padding: 0 1.5rem;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  .kblog-main-content {
    padding: 2rem 1.5rem;
    margin: 3rem auto 4rem;
  }

  .kblog-hero-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .kblog-hero-category {
    font-size: 1.2rem;
    letter-spacing: 0.15em;
  }

  .kblog-hero-meta {
    font-size: 1rem;
  }

  .kblog-article-intro {
    font-size: 1.1rem;
    padding-left: 0.8rem;
    border-left-width: 4px;
    margin-bottom: 3rem;
  }

  .kblog-section-block {
    padding-left: 2rem;
  }

  .kblog-section-block h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .kblog-section-number {
    font-size: 1.6rem;
  }

  .kblog-author-info img {
    width: 3.5rem;
    height: 3.5rem;
  }

  .kblog-author-info h4 {
    font-size: 1.1rem;
  }

  .kblog-author-info p {
    font-size: 0.85rem;
  }

  .kblog-share-buttons {
    gap: 1rem;
  }

  .kblog-share-btn {
    width: 3.2rem;
    height: 3.2rem;
    font-size: 1.3rem;
  }

  .kblog-tags a {
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  body {
    font-size: 13px;
  }

  .kblog-main-content {
    padding: 1.5rem 1rem;
    margin: 2rem auto 3rem;
  }

  .kblog-hero-title {
    font-size: clamp(1.4rem, 8vw, 2.2rem);
  }

  .kblog-hero-category {
    font-size: 1rem;
  }

  .kblog-hero-meta {
    font-size: 0.9rem;
  }

  .kblog-article-intro {
    font-size: 1rem;
    padding-left: 0.6rem;
  }

  .kblog-section-block h2 {
    font-size: clamp(1.3rem, 6vw, 1.6rem);
  }

  .kblog-section-number {
    font-size: 1.4rem;
  }

  .kblog-author-info img {
    width: 3rem;
    height: 3rem;
  }

  .kblog-author-info h4 {
    font-size: 1rem;
  }

  .kblog-author-info p {
    font-size: 0.8rem;
  }

  .kblog-share-btn {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.1rem;
  }

  .kblog-tags a {
    font-size: 0.85rem;
  }
}

/* Extra small devices <480px */
@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  .kblog-main-content {
    padding: 1rem 0.8rem;
    margin: 1.5rem auto 2rem;
  }

  .kblog-hero-content {
    padding: 0 0.8rem;
  }

  .kblog-hero-title {
    font-size: clamp(1.3rem, 8vw, 2rem);
    line-height: 1.25;
  }

  .kblog-hero-category {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
  }

  .kblog-hero-meta {
    font-size: 0.85rem;
  }

  .kblog-article-intro {
    font-size: 1rem;
    padding-left: 0.5rem;
    margin-bottom: 2rem;
    border-left-width: 3px;
  }

  .kblog-article-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .kblog-section-block {
    padding-left: 1.2rem;
  }

  .kblog-section-block h2 {
    font-size: clamp(1.2rem, 7vw, 1.6rem);
  }

  .kblog-section-number {
    font-size: 1.2rem;
  }

  .kblog-article-sections p {
    font-size: 0.95rem;
  }

  .kblog-author-info img {
    width: 2.8rem;
    height: 2.8rem;
  }

  .kblog-author-info h4 {
    font-size: 1rem;
  }

  .kblog-author-info p {
    font-size: 0.75rem;
  }

  .kblog-share-buttons {
    gap: 0.7rem;
  }

  .kblog-share-btn {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1rem;
  }

  .kblog-tags {
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  .kblog-tags a {
    white-space: nowrap;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
  }

  /* Sidebar adjustments */
  .kblog-sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 2rem;
  }

  /* TOC - horizontal scroll and inline links */
  .kblog-toc {
    padding: 1rem;
    font-size: 0.9rem;
    max-height: none;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  }

  .kblog-toc h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    user-select: none;
  }

  .kblog-toc ul {
    display: inline-flex;
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .kblog-toc a {
    padding: 0.25rem 0.5rem;
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
  }

  .kblog-toc a:hover,
  .kblog-toc a:focus {
    background-color: var(--accent);
    color: #fff;
    outline: none;
  }
}

/* Kan38 Button */
/* ─── PILL BUTTON BASE ─── */
.kan-btn {
  /* palette – override in variants */
  --bg: #1a1a1a;
  --fg: #ffffff;
  --accent: #ff8c00;

  --kan-scale: 1;

  --pad-y: calc(0.9rem * var(--kan-scale));
  --pad-x: calc(1.8rem * var(--kan-scale));
  --radius: calc(38px * var(--kan-scale));
  --track-w: calc(1.4em * var(--kan-scale));
  --stroke: calc(4px * var(--kan-scale));

  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: var(--pad-y) var(--pad-x);
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  font:
    600 calc(0.9rem * var(--kan-scale)) / 1 system-ui,
    sans-serif;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.kan-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgb(0 0 0 / 0.45);
}

.kan-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgb(0 0 0 / 0.35);
}

.kan-btn:focus-visible {
  outline: 3px dashed var(--fg);
  outline-offset: 4px;
}

/* ─── shimmer sweep ─── */
.kan-btn::before {
  content: "";
  position: absolute;
  inset: 0 -100% 0 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgb(255 255 255 / 0.18) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  opacity: 0;
  transition:
    transform 0.6s ease-out,
    opacity 0.6s ease-out;
}

.kan-btn:hover::before {
  transform: translateX(300%) skewX(-25deg);
  opacity: 1;
}

/* ─── arrow track + icon ─── */
.kan-btn__track {
  width: var(--track-w);
  display: inline-flex;
  justify-content: center;
}

.kan-btn__arrow svg {
  width: 100%;
  height: auto;
}

.kan-btn__base {
  stroke: var(--fg);
  stroke-width: calc(var(--stroke) / 2);
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 4 4;
}

.kan-btn__draw {
  stroke: var(--accent);
  stroke-width: var(--stroke);
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 0.6s ease;
}

.kan-btn:hover .kan-btn__draw {
  stroke-dashoffset: 0;
}

/* ─── size modifiers ─── */
.kan-btn-sm {
  --kan-scale: 0.8;
}

/* 80 % */
.kan-btn-lg {
  --kan-scale: 1.25;
}

/* 125 % */

/* ─── compact width (narrower) ─── */
.kan-btn--compact {
  --pad-x: 1.1rem;
}

.kan-btn-md {
  width: 180px;
}

/* ─── colour variant ─── */
.kan-btn--light {
  --bg: #ffffff;
  --fg: #000000;
  --accent: #f3b112;
}

/* ─── reduced‑motion safe‑guard ─── */
@media (prefers-reduced-motion: reduce) {
  .kan-btn,
  .kan-btn:hover,
  .kan-btn__draw {
    transition: none !important;
  }

  .kan-btn::before {
    display: none;
  }
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL ANIMATION SYSTEM
   ═══════════════════════════════════════════ */

/* --- Base state: hidden & offset --- */
.kan-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.kan-reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.kan-reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.kan-reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* --- Revealed state --- */
.kan-revealed {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) scale(1) !important;
}

/* --- Stagger delay support: data-delay="0..12" --- */
.kan-reveal[data-delay="1"], .kan-reveal-left[data-delay="1"],
.kan-reveal-right[data-delay="1"], .kan-reveal-scale[data-delay="1"] {
  transition-delay: 0.1s;
}
.kan-reveal[data-delay="2"], .kan-reveal-left[data-delay="2"],
.kan-reveal-right[data-delay="2"], .kan-reveal-scale[data-delay="2"] {
  transition-delay: 0.2s;
}
.kan-reveal[data-delay="3"], .kan-reveal-left[data-delay="3"],
.kan-reveal-right[data-delay="3"], .kan-reveal-scale[data-delay="3"] {
  transition-delay: 0.3s;
}
.kan-reveal[data-delay="4"], .kan-reveal-left[data-delay="4"],
.kan-reveal-right[data-delay="4"], .kan-reveal-scale[data-delay="4"] {
  transition-delay: 0.4s;
}
.kan-reveal[data-delay="5"], .kan-reveal-left[data-delay="5"],
.kan-reveal-right[data-delay="5"], .kan-reveal-scale[data-delay="5"] {
  transition-delay: 0.5s;
}
.kan-reveal[data-delay="6"], .kan-reveal-left[data-delay="6"],
.kan-reveal-right[data-delay="6"], .kan-reveal-scale[data-delay="6"] {
  transition-delay: 0.6s;
}
.kan-reveal[data-delay="7"], .kan-reveal-left[data-delay="7"],
.kan-reveal-right[data-delay="7"], .kan-reveal-scale[data-delay="7"] {
  transition-delay: 0.7s;
}
.kan-reveal[data-delay="8"], .kan-reveal-left[data-delay="8"],
.kan-reveal-right[data-delay="8"], .kan-reveal-scale[data-delay="8"] {
  transition-delay: 0.8s;
}

/* --- Navbar scroll effect --- */
.kannavbar {
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.kannavbar.kan-nav-scrolled {
  background: rgba(249, 244, 236, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

/* --- Reduced motion override --- */
@media (prefers-reduced-motion: reduce) {
  .kan-reveal,
  .kan-reveal-left,
  .kan-reveal-right,
  .kan-reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
