@import "tailwindcss";

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161618;
  --bg-card: #161618;
  --bg-card-hover: #161618;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text: #f0f0f0;
  --text-muted: #888;
  --text-subtle: #555;
  --accent: lab(48.496% 0 0);
  --accent-muted: rgba(248, 146, 56, 0.15);
  --shadow-card: 0 4px 0 0 rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 1px 0 0 rgba(0, 0, 0, 0.6);
  --nav-bg: rgba(10, 10, 10, 0.3);
  --toggle-bg: rgba(255, 255, 255, 0.08);
  --toggle-border: rgba(255, 255, 255, 0.12);
  --menu-bg: rgba(15, 15, 15, 0.97);
  --tag-bg: rgba(255, 255, 255, 0.06);
  --tag-border: rgba(255, 255, 255, 0.1);
  --kw-border: rgba(232, 202, 176, 0.4);
  --kw-bg: rgba(248, 146, 56, 0.08);
  --focus-dot: #22c55e;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5efe7;
  --bg-card: rgba(255, 255, 255, 0.86);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --border: rgba(102, 72, 44, 0.12);
  --border-hover: rgba(102, 72, 44, 0.2);
  --text: #18120f;
  --text-muted: #5f544d;
  --text-subtle: #8a7d75;
  --accent: #8a5b3e;
  --accent-muted: rgba(138, 91, 62, 0.12);
  --shadow-card: 0 10px 30px rgba(86, 64, 42, 0.08);
  --shadow-lift: 0 14px 34px rgba(86, 64, 42, 0.12);
  --nav-bg: rgba(255, 250, 244, 0.72);
  --toggle-bg: rgba(138, 91, 62, 0.08);
  --toggle-border: rgba(138, 91, 62, 0.14);
  --menu-bg: rgba(255, 252, 248, 0.96);
  --tag-bg: rgba(138, 91, 62, 0.08);
  --tag-border: rgba(138, 91, 62, 0.12);
  --kw-border: rgba(102, 72, 44, 0.32);
  --kw-bg: rgba(138, 91, 62, 0.08);
  --focus-dot: #16a34a;
}


/*  RESET & BASE  */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;

  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

/* Webkit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(249, 115, 22, 0.55);
}

[data-theme="light"] {
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(249, 115, 22, 0.45);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[data-theme="light"] body {
  background-image:
    radial-gradient(circle at 14% 14%, rgba(138, 91, 62, 0.10), transparent 26%),
    radial-gradient(circle at 84% 8%, rgba(15, 23, 42, 0.06), transparent 22%),
    radial-gradient(circle at 50% 110%, rgba(138, 91, 62, 0.08), transparent 34%),
    linear-gradient(180deg, #fbf7f1 0%, #f5efe7 44%, #efe3d8 100%);
  background-attachment: fixed;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Night Sky Canvas*/
#night-sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.6s ease;
}

[data-theme="light"] #night-sky {
  opacity: 0.18;
  mix-blend-mode: soft-light;
  filter: saturate(0.85) brightness(1.08);
}

/* Make sure content sits above the canvas */
.navbar,
.page-wrapper,
.mobile-overlay {
  position: relative;
  z-index: 1;
}


#oneko {
  z-index: 9999 !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

ul {
  list-style: none;
}


/*  PAGE LAYOUT  */

.page-wrapper {
  width: 90%;
  max-width: 780px;
  margin: 0 auto;
  padding-bottom: 80px;
}


/* NAVBAR */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .navbar {
  background: var(--nav-bg);
  border-bottom-color: rgba(102, 72, 44, 0.08);
  box-shadow: 0 10px 30px rgba(86, 64, 42, 0.06);
}

.nav-container {
  width: 90%;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  position: sticky;
}

/* Avatar logo */
.nav-avatar {
  flex-shrink: 0;
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}

.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-avatar:hover {
  border-color: var(--accent);
  transform: scale(0.93);
}

/* Nav links */
.nav-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1px;
  margin-left: auto;
}

.nav-links li a {
  display: block;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

@media (min-width: 480px) {
  .nav-links li a {
    padding: 6px 14px;
    font-size: 14px;
  }
}

.nav-links li a:hover {
  background: var(--bg-card);
  color: var(--text);
}

[data-theme="light"] .nav-links li a:hover {
  background: rgba(138, 91, 62, 0.08);
  box-shadow: inset 0 0 0 1px rgba(138, 91, 62, 0.08);
}

/* Right-side actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--toggle-bg);
  border: 1px solid var(--toggle-border);
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-card);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(138, 91, 62, 0.12);
}

.theme-toggle:active {
  transform: translateY(2px);
  box-shadow: none;
}

/* Hamburger */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--toggle-bg);
  border: 1px solid var(--toggle-border);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s;
}

.menu-toggle:hover {
  background: var(--bg-card-hover);
}

[data-theme="light"] .menu-toggle:hover {
  background: rgba(138, 91, 62, 0.12);
}


/*  MOBILE OVERLAY  */

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

[data-theme="light"] .mobile-overlay {
  background: rgba(255, 249, 242, 0.7);
}

.mobile-overlay.overlay-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--menu-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 56px 52px;
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .mobile-menu-card {
  box-shadow: 0 20px 60px rgba(86, 64, 42, 0.12);
}

.mobile-overlay.overlay-open .mobile-menu-card {
  transform: scale(1);
}

.mobile-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.mobile-close:hover {
  background: var(--bg-card-hover);
  transform: scale(1.1) rotate(90deg);
}

.mobile-profile {
  margin-bottom: 20px;
}

.mobile-profile img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.mobile-nav-links li a {
  display: block;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 44px;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.mobile-nav-links li a:hover {
  background: var(--bg-card);
  color: var(--text);
}


/*  HERO SECTION  */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-section {
  padding: 64px 0 48px;
  justify-content: space-between;
  display: block;
  color: whitesmoke
}

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

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-heading {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  color: #f0f0f0;
  text-align: center;
  margin-top: 6px;
  text-shadow: 0 0 60px rgba(249, 115, 22, 0.12);
}

[data-theme="light"] .hero-heading {
  color: var(--text);
  text-shadow: 0 10px 30px rgba(86, 64, 42, 0.08);
}

.hero-heading--sub {
  display: block;
  font-size: 2.4rem;
  color: var(--text-muted);
  text-shadow: none;
}

.hero-heading h1 {
  padding-top: 60px;
}




.hero-section-bio {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  text-align: center;

}

[data-theme="light"] .hero-section-bio {
  color: var(--text-muted);
}

/* Keyword highlight boxes */
.kw {
  display: inline-block;
  padding: 1px 7px;
  border: 1.5px dashed var(--kw-border);
  border-radius: 5px;
  background: var(--kw-bg);
  color: var(--text);
  font-size: 0.92em;
  font-weight: 500;
  white-space: nowrap;
}

/* CTA buttons */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.highlight {
  color: whitesmoke;
  position: relative;
  display: inline-block;
  z-index: 1;
}

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

.highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0,4 Q50,8 100,4 M5,7 Q50,9 95,7' stroke='%23f97316' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}

.btn-outline,
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  border: 1px solid var(--border);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

[data-theme="light"] .btn-outline {
  border-color: rgba(138, 91, 62, 0.12);
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn-outline:active {
  transform: translateY(2px);
  box-shadow: none;
}

.btn-solid {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .btn-solid {
  box-shadow: 0 10px 22px rgba(138, 91, 62, 0.18);
}

.btn-solid:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.3);
}

.btn-solid:active {
  transform: translateY(2px);
  box-shadow: none;
}

/* Social icons */
.hero-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-card);
}

[data-theme="light"] .social-icon {
  background: rgba(255, 255, 255, 0.72);
}

.social-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: filter 0.2s;
}

.social-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.social-icon:hover img {
  filter: grayscale(0) opacity(1);
}


/*  STATS CARDS  */

.stats-section {
  margin-bottom: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.15s;
  cursor: default;
  box-shadow: var(--shadow-card);
}

.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.stat-icon {
  color: var(--text-subtle);
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/*  CURRENT FOCUS CARD  */

.focus-section {
  margin-bottom: 12px;
}

.focus-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: background 0.2s, border-color 0.2s;
  box-shadow: var(--shadow-card);
}

.focus-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.focus-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--focus-dot);
  box-shadow: 0 0 8px var(--focus-dot);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.focus-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-subtle);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.focus-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}

.focus-link {
  flex-shrink: 0;
  color: var(--text-subtle);
  transition: color 0.2s, transform 0.2s;
}

.focus-link:hover {
  color: var(--text);
  transform: translateX(2px);
}

.focus-link:focus-visible {
  color: var(--text);
}



.section {
  margin-top: 56px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  padding: 0;
}

.section-heading {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.15;
}


/*  TECH STACK  */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.15s;
  cursor: default;
  box-shadow: var(--shadow-card);
}

.tech-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.tech-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: grayscale(0.6) opacity(0.8);
  transition: filter 0.2s;
}

.tech-item:hover img {
  filter: grayscale(0) opacity(1);
}

.tech-item span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}


/* EXPERIENCE CARD  */

.experience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
  transition: background 0.2s;
}

.exp-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.exp-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.exp-role {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.exp-separator {
  color: var(--text-subtle);
}

.exp-company {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.exp-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-subtle);
}

.exp-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
}

.exp-bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.exp-bullets li::before {
  content: "›";
  color: var(--text-subtle);
  font-size: 18px;
  line-height: 1.3;
  flex-shrink: 0;
  font-weight: 300;
}

.exp-bullets li strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 520px) {
  .experience-card {
    padding: 18px 16px;
  }

  .exp-header {
    gap: 6px;
    margin-bottom: 14px;
  }

  .exp-role {
    font-size: 14px;
  }

  .exp-company,
  .exp-date {
    font-size: 12px;
  }

  .exp-bullets {
    gap: 8px;
  }

  .exp-bullets li {
    gap: 8px;
    font-size: 13px;
    line-height: 1.5;
  }

  .exp-bullets li::before {
    font-size: 16px;
    line-height: 1.25;
  }
}

/* sneek peak */

/*  SCROLL PROGRESS BAR  */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #f97316, #fb923c, #fdba74);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
}

/*  CURSOR SPOTLIGHT  */
#cursor-spotlight {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(249, 115, 22, 0.07) 0%, transparent 65%);
  transition: left 0.08s ease, top 0.08s ease;
}

/*  TYPING ANIMATION  */
.typing-text {
  color: var(--text);
  margin-left: 0.3em;
}

.typing-cursor {
  display: inline-block;
  color: #f97316;
  font-weight: 300;
  animation: blink-cursor 0.75s step-end infinite;
  margin-left: 2px;
}

@keyframes blink-cursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/*  STATS SECTION (override existing to add emoji)  */
.stats-section {
  margin-top: 16px;
  margin-bottom: 0;
}

.stat-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 2px;
}

/*  CURRENTLY LEARNING SECTION  */
.learning-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.learning-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.learning-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.learning-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 44px;
  text-align: center;
}

.learning-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.learning-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.progress-bar-wrap {
  width: 100%;
  height: 5px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f97316, #fb923c);
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 6px rgba(249, 115, 22, 0.4);
}

.progress-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.3px;
  align-self: flex-end;
}

/*  FUN FACTS BENTO GRID  */
.facts-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.fact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.fact-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.fact-card--wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.fact-emoji {
  font-size: 28px;
  flex-shrink: 0;
}

.fact-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  max-width: unset;
}

@media (max-width: 520px) {
  .facts-bento {
    grid-template-columns: 1fr;
  }

  .fact-card--wide {
    grid-column: span 1;
  }
}








/*FOOTER  */

.site-footer {
  text-align: center;
  padding: 32px 20px;
  border-top: 1px solid var(--border);
}

.footer-text {
  font-size: 13px;
  color: var(--text-subtle);
  max-width: none;
  margin: 0;
  padding: 0;
}

.footer-text strong {
  color: var(--text-muted);
}



h1 {
  color: var(--accent);
  /* padding: 60px 16px 16px; */
  margin: 0;
  font-size: 36px;
  display: block;
  text-align: center;
}

p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}

h6 {
  display: flex;
  justify-content: center;
  color: var(--text-subtle);
  font-size: 13px;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.section-title {
  color: var(--accent);
  font-size: 32px;
  text-align: center;
  margin-bottom: 16px;
}

.section-text {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Container for other pages */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 0;
}


.logo {
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
  transition: color 0.3s;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--accent);
}

/* contact pages */
.home {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 0;
}

.home-container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  padding: 60px 0 40px;
}

.home-text {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-text h1 {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--text);
  text-align: center;
  padding: 0;
}

.home-text span {
  color: var(--accent);
  margin-left: 6px;
}

.home-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
}

.home-img {
  order: -1;
}

.home-img img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: 0 0 30px var(--accent-muted);
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Social icons  */
.social {
  display: flex;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 16px;
  text-align: center;
  gap: 16px;
  justify-content: center;
}

.social img {
  height: 36px;
  width: 36px;
  filter: grayscale(1) invert(0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.social img:hover {
  filter: grayscale(0) invert(0);
  transform: scale(1.3);
}

.social-links {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 16px;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 16px;
  word-break: break-all;
  transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.social-links img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Tech stack  */
.techstack {
  padding: 60px 20px;
  text-align: center;
}

.techstack h2 {
  color: var(--accent);
  font-size: 26px;
  margin-bottom: 32px;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.tech-icons img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s, transform 0.3s;
}

.tech-icons img:hover {
  filter: grayscale(0%);
  transform: scale(1.15);
}

/* About section */
.about-container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 8px;
}

.about-container h1 {
  color: var(--accent);
  font-size: 32px;
  margin-bottom: 16px;
}

.about-container p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  padding: 0 8px;
}

/* Contact page */
.contact p {
  padding: 40px 16px;
  text-align: center;
}

/* Projects page updated */
.projects-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

/* Glassmorphic Project Card */
.premium-project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  max-width: 320px;
  margin: 0 auto; /* Centers the card if it's smaller than the grid track */
  width: 100%;
}

.premium-project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--border-hover);
}

[data-theme="dark"] .premium-project-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .premium-project-card:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.project-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.premium-project-card:hover .project-thumbnail img {
  transform: scale(1.05);
}

.project-content {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  flex: 1;
}

.project-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.project-title:hover {
  color: var(--accent);
}

.project-links {
  display: flex;
  gap: 12px;
}

.project-icon-link {
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
}

.project-icon-link:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.project-description {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1px;
}

.project-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #10b981; /* Emerald green */
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}
.project-status{
  padding: 5px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
  animation: pulse-dot 2s infinite;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.project-tech {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-subtle);
  background: var(--toggle-bg);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

footer {
  text-align: center;
  padding: 32px 16px;
}


/*  RESPONSIVE */

@media (min-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 600px) {
  .menu-toggle {
    display: none;
  }

  .proj-thumb {
    height: 200px;
  }

  .main_container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .proj-thumb {
    height: 220px;
  }

  .main_container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .home-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 60px;
    padding: 80px 0 60px;
  }

  .home-img {
    order: 1;
  }

  .home-img img {
    width: 280px;
    height: 280px;
  }

  .home-text {
    flex: 1;
  }

  .home-text h1 {
    font-size: 52px;
    margin-left: 0;
  }
}


/* ABOUT ME SECTION*/

/*  PSST CLICK ME HINT  */
.click-me-hint {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 15px;
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: var(--text-muted);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.8;
  animation: float-hint 3s ease-in-out infinite;
  z-index: 10;
}

@keyframes float-hint {

  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }

  50% {
    transform: translateY(-50%) translateX(-6px);
  }
}

.hint-arrow {
  width: 38px;
  height: 38px;
  color: var(--text-muted);
  overflow: visible;
}

@media (max-width: 800px) {
  .click-me-hint {
    top: -85px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    margin-right: 0;
    flex-direction: column;
  }

  @keyframes float-hint {

    0%,
    100% {
      transform: translateX(-50%) translateY(0);
    }

    50% {
      transform: translateX(-50%) translateY(-6px);
    }
  }

  .hint-arrow {
    transform: rotate(90deg);
  }
}


.about-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: var(--shadow-card);
  transition: background 0.2s, border-color 0.2s;
}

.about-avatar-wrap {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  background: #f5c842;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.about-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  content: url("assets/icon.jpg");
  transition: transform 0.4s ease-in-out, filter 0.3s ease;
}

.about-avatar.avatar-clicked {
  content: url("assets/aakarshh.png");
}



.about-info {
  flex: 1;
  min-width: 0;
}

.about-name {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  line-height: 1.15;
  margin-left: 15px;
  position: relative;
  display: inline-block;
  z-index: 1;
}

.about-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0,4 Q50,8 100,4 M5,7 Q50,9 95,7' stroke='%23f97316' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}

.about-bio {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  /* max-width: 480px; */


}

.about-skills-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);

  letter-spacing: 0.2px;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 10px;
}

.skill-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
  cursor: default;
}

.skill-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: grayscale(0.3) opacity(0.85);
  transition: filter 0.2s;
}

.skill-badge:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lift);
}

.skill-badge:hover img {
  filter: grayscale(0) opacity(1);
}

@media (max-width: 520px) {
  .about-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 20px;
  }

  .about-avatar-wrap {
    width: 120px;
    height: 120px;
  }

  .about-bio {
    max-width: 100%;
  }

  .about-skills {
    justify-content: center;
  }
}


/* CONTACT SECTION */
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: var(--shadow-card);
  transition: background 0.2s, border-color 0.2s;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-tagline {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.contact-email:hover {
  color: var(--text);
}

.contact-email svg {
  flex-shrink: 0;
  color: var(--text-subtle);
}

.contact-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.contact-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  color: var(--text-muted);
  box-shadow: var(--shadow-card);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.15s;
}

.contact-social-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

/* Responsive */
@media (max-width: 520px) {
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.about-card-contact {
  justify-self: center;
  align-items: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 12px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  color: var(--text-muted);
  box-shadow: var(--shadow-card);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.15s;
}

.contact-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}


/* ─── BLOGS SECTION ─── */

.blog-tags-row {
  margin-bottom: 28px;
}

.blog-tags-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.blog-tag:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-1px);
}

.blog-tag.active {
  background: var(--bg-card);
  border-color: var(--border-hover);
  color: var(--text);
}

.tag-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-subtle);
  background: var(--toggle-bg);
  border-radius: 999px;
  padding: 0 5px;
}

.blog-posts-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.blog-posts-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.blog-posts-count {
  font-size: 12px;
  color: var(--text-subtle);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--border-hover);
}

.blog-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #1e1e2e 0%, #252540 100%);
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.04);
}

.blog-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 60%);
  pointer-events: none;
}

/* Fallback when image is missing */
.blog-thumb-fallback {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.blog-thumb-fallback img {
  display: none;
}

.blog-card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.blog-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.blog-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hidden state for tag filtering */
.blog-card.hidden {
  display: none;
}

/* Cards hidden by Show More */
.blog-card--collapsed {
  display: none;
}

/* Show More button */
.blog-show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.blog-show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.15s;
}

.blog-show-more-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.blog-chevron {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}


/*SCROLL REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grids */
.reveal-d1 {
  transition-delay: 0.05s;
}

.reveal-d2 {
  transition-delay: 0.12s;
}

.reveal-d3 {
  transition-delay: 0.19s;
}

.reveal-d4 {
  transition-delay: 0.26s;
}

.reveal-d5 {
  transition-delay: 0.33s;
}


/* GLASSMORPHISM  */

[data-theme="dark"] .blog-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .blog-card:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .experience-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .focus-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .stat-card,
[data-theme="light"] .focus-card,
[data-theme="light"] .tech-item,
[data-theme="light"] .experience-card,
[data-theme="light"] .fact-card,
[data-theme="light"] .learning-card,
[data-theme="light"] .premium-project-card,
[data-theme="light"] .blog-card,
[data-theme="light"] .gh-activity-card {
  background: var(--bg-card);
  border-color: var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

[data-theme="light"] .stat-card:hover,
[data-theme="light"] .focus-card:hover,
[data-theme="light"] .tech-item:hover,
[data-theme="light"] .experience-card:hover,
[data-theme="light"] .fact-card:hover,
[data-theme="light"] .learning-card:hover,
[data-theme="light"] .premium-project-card:hover,
[data-theme="light"] .blog-card:hover,
[data-theme="light"] .gh-activity-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lift);
}

[data-theme="light"] .tech-item img,
[data-theme="light"] .social-icon img {
  filter: grayscale(0.08) opacity(0.92);
}

[data-theme="light"] .stat-label,
[data-theme="light"] .section-eyebrow,
[data-theme="light"] .focus-label,
[data-theme="light"] .footer-text,
[data-theme="light"] .gh-activity-total,
[data-theme="light"] .gh-calendar-months,
[data-theme="light"] .gh-calendar-days span,
[data-theme="light"] .gh-legend-text {
  color: var(--text-subtle);
}

[data-theme="light"] .gh-gradient-heading,
[data-theme="light"] .gh-view-profile-btn,
[data-theme="light"] .gh-activity-count {
  color: var(--text);
}

[data-theme="light"] .gh-view-profile-btn {
  background: rgba(255, 255, 255, 0.74);
}

[data-theme="light"] .gh-cell,
[data-theme="light"] .gh-level-0 {
  background: #f0e8de;
  outline: 1px solid rgba(102, 72, 44, 0.08);
}

[data-theme="light"] .gh-level-1 { background: #d8f1db; }
[data-theme="light"] .gh-level-2 { background: #a7ddae; }
[data-theme="light"] .gh-level-3 { background: #69c67b; }
[data-theme="light"] .gh-level-4 { background: #2aa85c; }

[data-theme="light"] .gh-legend-word {
  color: var(--text-subtle);
}

[data-theme="light"] .gh-dot[style*="background:#161b22"] {
  background: #f0e8de !important;
  outline: 1px solid rgba(102, 72, 44, 0.08) !important;
}


/* ========================================
   GITHUB CONTRIBUTIONS SECTION
   ======================================== */

/* Heading — kept subtle, matches portfolio's section-heading style */
.gh-gradient-heading {
  color: var(--text);
}

/* Fade-in-up animation */
@keyframes gh-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Main Activity Card ---- */
.gh-activity-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 20px 16px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  cursor: default;
  opacity: 0;
  transform: translateY(24px);
}

.gh-activity-card.gh-animated {
  animation: gh-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gh-activity-card:hover {
  transform: scale(1.01) translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lift);
}

/* Card header row */
.gh-activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.gh-activity-total {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0;
}

.gh-activity-count {
  font-weight: 700;
  color: #22c55e;
  font-size: 16px;
  letter-spacing: -0.3px;
}

.gh-activity-year {
  color: var(--text-muted);
}

/* View Profile button — matches btn-outline */
.gh-view-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-card);
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.gh-view-profile-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}

/* Calendar JS Grid Native Dark Mode */
.gh-calendar-wrapper {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  padding-top: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gh-calendar-wrapper::-webkit-scrollbar { display: none; }

.gh-calendar-months {
  height: 20px;
  font-size: 11px;
  color: #7d8590;
  white-space: nowrap;
}
.gh-calendar-days {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 20px; 
}
.gh-calendar-days span {
  height: 10px;
  font-size: 10px;
  line-height: 10px;
  color: #7d8590;
}
.gh-calendar-grid {
  display: flex;
  gap: 4px;
}
.gh-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gh-cell {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #161b22;
  outline: 1px solid rgba(255,255,255,0.05);
}
.gh-empty { visibility: hidden; }
.gh-level-0 { background: #161b22; outline: 1px solid rgba(255,255,255,0.05); }
.gh-level-1 { background: #0e4429;  outline: none;}
.gh-level-2 { background: #006d32;  outline: none;}
.gh-level-3 { background: #26a641;  outline: none;}
.gh-level-4 { background: #39d353;  outline: none;}

/* Card footer: count text + legend */
.gh-activity-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.gh-legend-text {
  font-size: 11px;
  color: #7d8590;
  text-decoration: none;
}

.gh-learn-more:hover {
  color: #2f81f7;
}

.gh-legend {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gh-legend-word {
  font-size: 11px;
  color: var(--text-subtle);
  font-weight: 500;
}

.gh-dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}


/* Mobile */
@media (max-width: 520px) {
  .gh-stats-row {
    grid-template-columns: 1fr;
  }

  .gh-activity-card {
    padding: 16px 14px 14px;
  }

  .gh-activity-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Dark mode — matched precisely with blog/experience cards */
[data-theme="dark"] .gh-activity-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .gh-activity-card:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .gh-view-profile-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .gh-view-profile-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

/* ---- Site Footer ---- */
.site-footer {
  text-align: center;
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-text {
  font-size: 13px;
  color: var(--text-subtle, #6b7280);
}

/* ---- Visitor Badge ---- */
.visitor-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  cursor: default;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.visitor-badge:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.visitor-eye {
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.visitor-count {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.3px;
  min-width: 24px;
  text-align: center;
}

.visitor-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.2px;
}

[data-theme="light"] .visitor-badge {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .visitor-badge:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .visitor-eye {
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .visitor-count {
  color: rgba(0, 0, 0, 0.85);
}

[data-theme="light"] .visitor-label {
  color: rgba(0, 0, 0, 0.4);
}