:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}
body {
  transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Crossfade transition for Home/Projects */
.crossfade-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.crossfade-view.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}
.crossfade-container {
  position: relative;
  min-height: 100vh;
}
/* Seamless transition for main content */
.fade-slide {
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateY(0);
}
.fade-slide.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
}
body {
  background: #111; /* fallback */
  background: -webkit-linear-gradient(to right, #111, #888);
  background: linear-gradient(to right, #111, #889498);
  overflow: hidden;
}

.star0 {
  height: 1px;
  width: 1px;
  opacity: 1;
  position: absolute;
}

.star1 {
  height: 2px;
  width: 2px;
  border-radius: 50%;
  opacity: 1;
  position: absolute;
}

.star2 {
  height: 3px;
  width: 3px;
  border-radius: 50%;
  opacity: 1;
  position: absolute;
}

.star3 {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  opacity: 1;
  position: absolute;
}/* Ensure all project bios have the same height for alignment */
.project-bio-placeholder {
  min-height: 56px; /* Adjust as needed for your longest bio */
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5em;
}
.see-project-btn:active,
.see-project-btn:focus-visible {
  filter: blur(1.5px) brightness(0.95);
  opacity: 0.7;
  transition: filter 0.18s, opacity 0.18s;
}
.see-project-btn:focus {
  outline: none;
  box-shadow: none;
}
/* Landscape gif container for bio card */
.bio-gif-landscape {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16/5;
  margin: 1.2em auto 0 auto;
  border-radius: 18px;
  background: #18181c linear-gradient(135deg, #23232a 40%, #2a2a33 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 16px 0 #0005;
}
.bio-gif-landscape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}
/* ProjectsDashboard grid and card styles */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

/* Experience cards - ultra compact layout */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  padding: 0 0.5rem;
  align-items: start; /* Ensures all cards align at the top */
}

/* Mobile responsive for experience cards */
@media (max-width: 768px) {
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 2px;
    max-width: 95vw;
    padding: 0 0.5rem;
    width: 100%;
  }
}

.project-card {
  background: rgba(24, 24, 28, 0.75);
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 28px 0 #0007;
  padding: 1rem 0.7rem 0.7rem 0.7rem;
  /* max-width removed to prevent overflow */
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  position: relative;
  transition: box-shadow 0.18s, border 0.18s;
  min-height: 220px;
}

/* Experience cards - wider landscape format */
.experience-card {
  background: rgba(24, 24, 28, 0.75);
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px 0 #0007;
  padding: 1.2rem 2rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 200px; /* Shorter height for landscape format */
  position: relative;
  transition: box-shadow 0.18s, border 0.18s;
  max-width: 800px;
  margin: 0 auto;
}

/* Mobile adjustments for experience cards */
@media (max-width: 768px) {
  .experience-card {
    max-width: 100%;
    height: auto;
    min-height: 160px;
    padding: 0.8rem 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    max-width: 95vw;
    gap: 8px;
    margin: 0 auto;
  }
}

h3 {
  margin: 0;
}

.project-image-placeholder {
  width: 100%;
  height: 120px;
  background: #222 linear-gradient(135deg, #333 40%, #444 100%);
  border-radius: 12px;
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 1.1em;
  font-family: monospace;
  letter-spacing: 0.04em;
}
.project-bio-placeholder {
  font-size: 1em;
  color: #e8eaf1;
  margin-bottom: 0.7em;
  margin-top: 0;
}
/* Default: dark mode */
.see-project-btn {
  box-sizing: border-box;
  color: #fff;
  background: #4d4e4f;
  border: none;
  border-radius: 8px;
  padding: 0.5em 1.2em;
  font-size: 1em;
  font-weight: 500;
  margin-top: auto;
  margin-bottom: 0;
  cursor: pointer;
  transition: background 0.18s;
  display: block;
  width: 100%;
  text-align: center;
}
.see-project-btn:hover {
  background: #2e2e2e;
  color: #fff;
}

/* Light mode button styles */
body:not(.dark-mode) .see-project-btn {
  background: #cdcccc;
  color: #222;
  box-shadow: 0 2px 8px 0 #b6d0c733;
  position: relative;
  overflow: hidden;
  transition: color 0.18s;
}
body:not(.dark-mode) .see-project-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #294647ff, #34674aff, #c6c6c6ff);
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}
body:not(.dark-mode) .see-project-btn:hover::before {
  opacity: 1;
}
body:not(.dark-mode) .see-project-btn span,
body:not(.dark-mode) .see-project-btn {
  position: relative;
  z-index: 1;
}
body:not(.dark-mode) .see-project-btn:hover {
  color: #111;
}
body:not(.dark-mode) .see-project-btn {
  /* Ensure text stays above the gradient */
  z-index: 1;
}
body:not(.dark-mode) .see-project-btn > * {
  position: relative;
  z-index: 2;
}
@media (max-width: 700px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    max-width: 100%;
    margin-top: 4vw;
    margin-bottom: 2vw;
  }
  .project-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    align-items: stretch;
    padding: 0.8rem 0.5rem;
    height: 100%;
  }
  .project-image-placeholder {
    height: 100px;
    font-size: 1em;
  }
}
body,
html {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, sans-serif;
}

.dashboard-bg {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  position: relative;
  z-index: 2;
}

.profile-header-close {
  display: flex;
  width: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  width: 900px;
  max-width: 97vw;
  margin-top: 80px;
  margin-bottom: 40px;
}

.card {
  background: rgba(24, 24, 28, 0.75);
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 28px 0 #0007;
  padding: 2rem 2rem 1.6rem 2rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.18s;
  user-select: none;
}
.bio-card {
  user-select: none;
}
.profile-card {
  user-select: none;
}

.profile-card {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.bio-card {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  image-rendering: pixelated;
  margin-bottom: 1em;
  border: 1px white solid;
}
.profile-icons {
  display: flex;
  gap: 0.7em;
  align-items: center;
  margin-bottom: 1em;
}
.profile-icons img {
  width: 28px;
  height: 28px;
  opacity: 0.85;
  transition: opacity 0.2s;
  filter: grayscale(1) brightness(1.4);
}
.profile-icons img:hover {
  opacity: 1;
}
.greet {
  color: #abb0bb;
  margin: 0;
  font-size: 1.05em;
  font-weight: 400;
  letter-spacing: 0.01em;
  display: inline-block;
}
.Name {
  font-size: 2.2em;
  font-weight: 800;
  display: inline-block;
  color: #fff;
  margin-bottom: 0;
}
.subheading {
  color: #b5b9c9;
  font-size: 1.08em;

  margin-top: -0.18em;
}
.location {
  color: #9499a4;
  font-size: 0.9em;
  margin-top: 0.5em;
  display: flex;
  align-items: center;
  gap: 0.3em;
}
.pin-pic {
  width: 17px;
  height: 17px;
  margin-right: 0.2em;
  vertical-align: middle;
}

.bio-header {
  font-family: "Fira Mono", monospace;
  color: #b2b8c3;
  font-size: 1em;
  margin-bottom: 0.5em;
  letter-spacing: 0.04em;
  display: flex;
}

.bio-header:hover {
  text-decoration: underline;
}

.git-name {
  color: #fff;
  font-weight: 600;
  font-family: "Fira Mono", monospace;
}
.bio-card h2 {
  margin: 0 0 0.3em 0;
  font-size: 1.4em;
  font-weight: 700;
  text-decoration: underline 2px #fff5;
  text-underline-offset: 3px;
}
.bio-text {
  font-size: 1em;
  line-height: 1.45;
  color: #e8eaf1;
}

/* RESPONSIVE PHONE STACK! */
@media (max-width: 700px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 1.1rem;

    max-width: 100vw;
    margin-top: 16vw;
    margin-bottom: 2vw;
  }
  .profile-card,
  .bio-card {
    grid-column: 1 / 2 !important;
    grid-row: auto !important;
    width: 100%;
    min-width: 0;
    max-width: 100vw;
  }

  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.2rem 1rem;
  }

  .avatar {
    width: 84px;
    height: 84px;
    margin-bottom: 0.6em;
    margin-right: 0;
  }

  .profile-icons {
    flex-direction: row;
    gap: 0.7em;
    margin-bottom: 0.7em;
    justify-content: center;
  }

  .greet,
  .Name,
  .subheading,
  .location {
    text-align: center;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .location {
    justify-content: center;
  }

  .Name {
    font-size: 1.5em;
    margin-left: 0.1em;
    margin-bottom: 0.2em;
  }
}
.dock-outer {
  margin: 0 0.5rem;
  display: flex;
  max-width: 100vw;
  align-items: center;
  width: 100vw;
  justify-content: center;
  pointer-events: auto;
}

/* Animation optimization */
.dock-panel {
  will-change: transform, filter;
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  width: fit-content;
  gap: 1rem;
  border-radius: 1rem;
  /* No background, border, or glass effect */
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0 0.5rem 0.5rem;
  z-index: 10;
  overflow: hidden;
}

/* Animation optimization */
.dock-item {
  will-change: transform, filter;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(24, 24, 28, 0.75);
  border: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  outline: none;
  transition: background 0.2s, border 0.2s;
}

body.dark-mode .dock-item {
  border: 1px solid #a4a4a4;
}
.dock-item:active {
  background: #1e1e1e;
  border: 1px solid #444;
}

.dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-icon img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.dock-label {
  position: absolute;
  top: -1.5rem;
  left: 50%;
  width: fit-content;
  white-space: pre;
  border-radius: 0.375rem;
  border: 1px solid #222;
  background-color: #060010;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  color: #fff;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 20;
}

@media (max-width: 600px) {
  .dock-panel {
    gap: 0.5rem;
    padding: 0 0.25rem 0.25rem;
    border-radius: 0.75rem;
  }
  .dock-label {
    font-size: 0.65rem;
    top: -1.2rem;
  }
  .dock-item {
    border-radius: 8px;
  }
}
