:root {
  --bg: #07111f;
  --bg-2: #0b1729;
  --card: rgba(255, 255, 255, 0.075);
  --card-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: #b7c2d8;
  --accent: #65d6ff;
  --accent-2: #a78bfa;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(101, 214, 255, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(167, 139, 250, 0.22), transparent 30%),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--accent);
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(3.4rem, 8vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  margin-bottom: 26px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.hero h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  max-width: 880px;
}

.hero-text {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 32px;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  border: 1px solid var(--line);
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.22s ease;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07111f;
  border-color: transparent;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.10);
}

.btn.ghost {
  color: var(--muted);
}

.btn.small {
  padding: 10px 14px;
  font-size: 0.88rem;
}

.hero-card,
.glass-card,
.project-card,
.skill-box,
.roadmap-step,
.contact-card,
.resume-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 32px;
}

.status-pill {
  display: inline-flex;
  margin-bottom: 24px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(101, 214, 255, 0.12);
  border: 1px solid rgba(101, 214, 255, 0.25);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.82rem;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 14px;
  color: var(--muted);
}

.hero-card li::before {
  content: "✦ ";
  color: var(--accent);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading p + h2 {
  margin-bottom: 0;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.glass-card {
  padding: 32px;
}

.glass-card p,
.project-card p,
.skill-box p,
.roadmap-step p,
.contact-card p,
.resume-section p {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 18px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  margin-top: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 8px rgba(101, 214, 255, 0.08);
}

.timeline-item p {
  color: var(--muted);
}

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

.project-card {
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.project-card.featured {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(101, 214, 255, 0.14), rgba(167, 139, 250, 0.13)),
    var(--card);
}

.project-tag {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.chips span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  border: 1px solid var(--line);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.skill-box {
  padding: 24px;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.roadmap-step {
  padding: 24px;
}

.roadmap-step span {
  display: inline-flex;
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 18px;
}

.roadmap-step.active {
  background:
    linear-gradient(135deg, rgba(101, 214, 255, 0.16), rgba(167, 139, 250, 0.10)),
    var(--card);
}

.resume-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px;
}

.contact-card {
  padding: 34px;
}

footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 56px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  cursor: pointer;
  display: none;
  backdrop-filter: blur(12px);
}

.back-to-top.show {
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.7s ease;
}

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

@media (max-width: 900px) {
  .nav {
    height: auto;
    padding: 18px 0;
    align-items: flex-start;
    gap: 18px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero,
  .two-column,
  .project-grid,
  .skills-grid,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .resume-section {
    flex-direction: column;
    align-items: flex-start;
  }
}


.hidden-story-section {
  padding-top: 48px;
}

.story-reveal-card {
  background: linear-gradient(135deg, rgba(101, 214, 255, 0.10), rgba(167, 139, 250, 0.10)), var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.story-reveal-card summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.story-reveal-card summary::-webkit-details-marker {
  display: none;
}

.story-reveal-card summary span {
  font-size: 1.15rem;
  font-weight: 900;
}

.story-reveal-card summary small {
  color: var(--muted);
  font-weight: 700;
}

.story-reveal-card summary::after {
  content: "+";
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.10);
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 900;
  flex: 0 0 auto;
}

.story-reveal-card[open] summary::after {
  content: "–";
}

.story-content {
  padding: 0 32px 32px;
  border-top: 1px solid var(--line);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-top: 28px;
}

.personal-card {
  background:
    linear-gradient(135deg, rgba(101, 214, 255, 0.10), rgba(167, 139, 250, 0.16)),
    var(--card);
}

.belief-card {
  margin-top: 22px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.belief-card p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-reveal-card summary {
    flex-direction: column;
    align-items: flex-start;
  }
}

.roadmap-status {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(101, 214, 255, 0.10);
  border: 1px solid rgba(101, 214, 255, 0.24);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.focus-label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(101, 214, 255, 0.10);
  border: 1px solid rgba(101, 214, 255, 0.24);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-actions-upgraded {
  align-items: stretch;
  margin-bottom: 18px;
}

.cta-main {
  min-width: 190px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border-radius: 22px;
  padding: 16px 18px;
}

.cta-main span {
  font-size: 0.98rem;
  font-weight: 900;
}

.cta-main small {
  font-size: 0.74rem;
  color: rgba(245, 247, 251, 0.72);
  font-weight: 700;
}

.cta-main.primary small {
  color: rgba(7, 17, 31, 0.72);
}

.hero-hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
  max-width: 680px;
}

@media (max-width: 700px) {
  .cta-main {
    width: 100%;
  }
}

/* Refined hero button color system */
.hero-actions .btn {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

/* Main CTA: less bright, more premium */
.hero-actions .btn.primary {
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 55%, #7c3aed 100%);
  color: #f8fbff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Secondary CTA: stronger glass look */
.hero-actions .btn.secondary {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(99, 102, 241, 0.14));
  color: #f5f7fb;
  border: 1px solid rgba(101, 214, 255, 0.32);
}

/* GitHub button: visible but elegant */
.hero-actions .btn.ghost {
  background: rgba(255, 255, 255, 0.075);
  color: #dce7ff;
  border: 1px solid rgba(255, 255, 255, 0.20);
}

/* Hover effect for all hero buttons */
.hero-actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(101, 214, 255, 0.18);
  border-color: rgba(101, 214, 255, 0.45);
}

.hero-actions .btn.primary:hover {
  box-shadow: 0 18px 48px rgba(124, 58, 237, 0.28);
}


/* Strong colored hero CTA buttons */
.hero-actions-upgraded .cta-main:nth-child(1) {
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 55%, #8b5cf6 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.30) !important;
}

.hero-actions-upgraded .cta-main:nth-child(2) {
  background: linear-gradient(135deg, #06b6d4 0%, #2563eb 55%, #1e40af 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(125, 211, 252, 0.40) !important;
}

.hero-actions-upgraded .cta-main:nth-child(3) {
  background: linear-gradient(135deg, #8b5cf6 0%, #4f46e5 45%, #1e3a8a 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(196, 181, 253, 0.40) !important;
}

.hero-actions-upgraded .cta-main small {
  color: rgba(255, 255, 255, 0.82) !important;
}

.hero-actions-upgraded .cta-main:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 48px rgba(101, 214, 255, 0.25) !important;
}




/* Cat Mode Easter Egg */
.cat-mode-button {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 80;
  border: 1px solid rgba(101, 214, 255, 0.35);
  border-radius: 999px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(139, 92, 246, 0.22));
  color: #f8fbff;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
  transition: 0.25s ease;
}

.cat-mode-button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 48px rgba(101, 214, 255, 0.22);
  border-color: rgba(101, 214, 255, 0.60);
}

.cat-rain-item {
  position: fixed;
  top: -60px;
  z-index: 999;
  pointer-events: none;
  user-select: none;
  animation-name: catFall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35));
}

@keyframes catFall {
  0% {
    transform: translateY(-80px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

.cat-toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.88);
  border: 1px solid rgba(101, 214, 255, 0.35);
  color: #f8fbff;
  font-weight: 900;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
  opacity: 0;
  animation: toastPop 3.2s ease forwards;
}

@keyframes toastPop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(14px);
  }
  15% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  80% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(14px);
  }
}

@media (max-width: 700px) {
  .cat-mode-button {
    left: 14px;
    bottom: 14px;
    padding: 10px 13px;
    font-size: 0.82rem;
  }
}



/* Hide old floating cat button */
.cat-mode-button {
  display: none !important;
}

/* Inline running cats easter egg */
.cat-run-button {
  margin-top: 18px;
  border: 1px solid rgba(101, 214, 255, 0.38);
  border-radius: 999px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(139, 92, 246, 0.28));
  color: #f8fbff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transition: 0.25s ease;
}

.cat-run-button:hover {
  transform: translateY(-2px);
  border-color: rgba(101, 214, 255, 0.70);
  box-shadow: 0 18px 42px rgba(101, 214, 255, 0.20);
}

.running-cat {
  position: fixed;
  left: -90px;
  z-index: 999;
  pointer-events: none;
  user-select: none;
  animation-name: catRunAcross;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.38));
}

@keyframes catRunAcross {
  0% {
    transform: translateX(-100px) translateY(0) scaleX(1);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  45% {
    transform: translateX(50vw) translateY(-8px) scaleX(1);
  }
  100% {
    transform: translateX(120vw) translateY(0) scaleX(1);
    opacity: 0;
  }
}

.cat-run-toast {
  position: fixed;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 13px 18px;
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.90);
  border: 1px solid rgba(101, 214, 255, 0.35);
  color: #f8fbff;
  font-weight: 900;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
  opacity: 0;
  animation: toastPop 2.7s ease forwards;
}

.hero-actions-upgraded .resume-cta {
  background: linear-gradient(135deg, #10b981 0%, #0ea5e9 48%, #6366f1 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(167, 243, 208, 0.42) !important;
}

.hero-actions-upgraded .resume-cta small {
  color: rgba(255, 255, 255, 0.84) !important;
}

/* Force standard project card buttons and tags */
.project-card .project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #62d7ff, #9b7cff);
  color: #04111f !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(98, 215, 255, 0.18);
}

.project-card .project-link:hover {
  transform: translateY(-1px);
  text-decoration: none !important;
}

.project-card .project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.project-card .project-tags span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(180, 200, 230, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #d9ecff;
  font-size: 0.85rem;
}

/* Force standard project card buttons and tags */
.project-card .project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #62d7ff, #9b7cff);
  color: #04111f !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(98, 215, 255, 0.18);
}

.project-card .project-link:hover {
  transform: translateY(-1px);
  text-decoration: none !important;
}

.project-card .project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.project-card .project-tags span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(180, 200, 230, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #d9ecff;
  font-size: 0.85rem;
}
