/* Base Setup */
html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 90px; 
}

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

/* Design tokens */
:root {
  --color-bg: #0a0a0f;
  --color-text: #f5f5f5;
  --color-text-muted: #9a9a9a;
  --color-purple: #a855f7;
  --color-border: #2a2a35;

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
}

/* Big soft mouse-following glow */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, #a955f71d 0%, #a855f700 70%);
  filter: blur(40px);
  pointer-events: none;      
  transform: translate(-50%, -50%); 
  z-index: -1;               
  transition: left 0.15s ease-out, top 0.15s ease-out; 
}

/* Section Divider */
.section-divider {
  border: none;         
  border-top: 1px solid #9a9a9a1d;
  max-width: 1200px;
  margin: 2.5rem auto;  
}

/* Background */
body {
  /* diameter of the dot */
  --d: 1px;

  background-color: var(--color-bg);
  background-image: radial-gradient(
    circle at var(--d) var(--d),
    #a955f740 calc(var(--d) - 1px),
    #0000 var(--d)
  );
  background-size: 20px 20px;

  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background-color: var(--color-bg);
  padding: 0.7rem 3rem;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner{
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--color-purple);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1rem;
}

.nav-right {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.btn {
  padding: 0.3rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover{
  background-color: #a955f729;
}

.btn-outline {
  border: 1px solid #a955f768;
  color: var(--color-purple);
}

.btn-outline:hover{
  border: 1px solid var(--color-purple);
}

/* Hero section */
.hero {
  position: relative;   
  overflow: hidden;     
}

/* Stats section for padding */
.stats-section {
  padding-bottom: 1.5rem;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}
 
/* Purple glow behind the hero text */
.hero::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #a855f725 0%, #a855f700 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 3rem 3rem;
}
 
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid #10b98155;
  border-radius: 999px;
  color: #10b981;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
 
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
}
 
.hero-heading {
  margin-top: 2rem;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
}
 
.hero-heading span {
  display: block;
}
 
.line-white {
  color: var(--color-text);
}
 
.line-dim {
  color: #3a3a45;
}
 
.line-purple {
  color: var(--color-purple);
}
 
.hero-text {
  margin-top: 1.5rem;
  max-width: 500px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}
 
.hero-buttons {
  display: flex;
  gap: 1rem ;
  margin-top: 2rem;
}
 
.btn-solid {
  background-color: #9333ea;
  padding: 0.5rem 1rem;
  color: #fff;
  font-weight: 400;
  border: 1px solid #9333ea;
}
 
.btn-solid:hover {
  background-color: var(--color-purple);
}

.btn-hero-outline {
  padding: 0.5rem 1rem;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border); 
}

.btn-hero-outline:hover {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.671);
  border: 1px solid rgba(255, 255, 255, 0.671); 
}

/* Stats row */
.stats-row {
  display: flex;
  gap: 3rem;
  
}
 
.stat {
  display: flex;
  flex-direction: column; 
  gap: 0.3rem;
}
 
.stat-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
}
 
.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

/* Tech Stack section */
.tech-section {
  padding-bottom: 3rem;
}
 
.tech-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}
 
.section-label {
  display: flex;                   
  align-items: center;            
  gap: 1rem;                        
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-purple);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
 
.label-line {
  flex-grow: 1;
  height: 1px;
  background-color: var(--color-border);
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;   
  gap: 0.75rem;
}
 
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.tech-badge:hover{
  background-color: #2a2a353f;
  border-color: #9a9a9a6b;
}
 
.tech-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Selected Work section */
.work-section {
  margin-top: 2rem;
  padding-bottom: 3rem;
}

.work-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.project-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

.project-card:hover {
  border-color: #9233ea45;
  background-color: #9233ea0a;
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;   
  gap: 0.5rem;
}

.project-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.project-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.status-live {
  background-color: #10b98122;
  color: #14f1a8;
}

.status-beta {
  background-color: #f59e0b22;
  color: #ffab1b;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.project-desc {
  margin-top: 1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 700px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-muted);
  background-color: #3a3a4531;
}

/* GitHub Activity section */
.github-section {
  padding-bottom: 3rem;
}
 
.github-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}
 
.github-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
 
.github-username {
  color: var(--color-purple);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
 
.github-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
}
 
.github-summary {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1.5rem;
}
 
.contrib-count {
  font-size: 1.1rem;
  font-weight: 600;
}
 
.contrib-sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}
 
/* allows horizontal scrolling on small screens instead of squishing the grid */
.heatmap-wrapper {
  overflow-x: auto;
  display: flex;             
  justify-content: center;   
}
 
.heatmap-grid {
  display: grid;
  grid-template-rows: repeat(7, 1fr);   /* 7 rows = 7 days of the week */
  grid-auto-flow: column;               /* fills column by column, like GitHub's real layout */
  grid-auto-columns: 11px;
  gap: 3px;
  width: fit-content;
}
 
.heatmap-square {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background-color: var(--color-purple);
}
 
/* intensity levels — reused for both the grid squares and the legend boxes */
.level-0 { opacity: 0.1; }
.level-1 { opacity: 0.35; }
.level-2 { opacity: 0.55; }
.level-3 { opacity: 0.75; }
.level-4 { opacity: 1; }
 
.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  justify-content: flex-end;
}
 
.legend-box {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background-color: var(--color-purple);
}
 
.section-divider--tight{
  margin: 0.5rem auto;
}

.github-stats-row {
  display: flex;
}
 
.github-stat-card {  
  border-radius: 8px;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
 
.github-stat-number {
  font-size: 0.9rem;
  font-weight: 700;
}
 
.github-stat-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}
 
.heatmap-container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
 
.month-labels {
  display: flex;
  justify-content: space-between;
  padding-left: 28px;   
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  width: 767px;
}
 
.heatmap-body {
  display: flex;
  gap: 6px;
}
 
.day-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  width: 28px;
}

/* CTA banner section */
.cta-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;  
  gap: 1.5rem;
  background: linear-gradient(90deg, #572b7f09 0%, #572b7f09 80%, #a955f713 100%);
  border: 1px solid #a855f733;
  border-radius: 12px;
  padding: 2.5rem;
}

.cta-heading {
  font-size: 1.5rem;
  font-weight: 700;
}

.cta-sub {
  margin-top: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.cta-button {
  white-space: nowrap;   
}

/* NEW: Footer */
.site-footer {
  padding: 2rem 0 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.footer-top {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-socials {
  font-family: var(--font-mono);
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-socials a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-socials a:hover {
  color: var(--color-text);
}

.footer-bottom {
  flex-direction: column;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color:  #374046;
  font-family: var(--font-mono);
  gap: 0.5rem;
}

/* Web Responsive CSS*/
.menu-toggle {
  display: none;   
  background: none;
  border: none;
  color: var(--color-purple);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;   
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 3rem 1.5rem;
  border-top: 1px solid var(--color-border);
}

.mobile-menu a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.mobile-menu a:hover{
  color: var(--color-text)
}

.mobile-menu.open {
  display: flex;   
}



/* Media Responsive */
/* Below 768px: switch to mobile navbar layout */
@media (max-width: 768px) {
  .nav-right {
    display: none;   
  }

  .menu-toggle {
    display: block;   
  }
}

/* Hides the burger menu when changing to bigger screen size */
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Responsive Hero — below 768px (phones/small tablets) */
@media (max-width: 768px) {
  .hero-heading {
    font-size: 2.5rem;   
  }

  .hero-buttons {
    flex-direction: column;   
    align-items: stretch;      
  }

  .hero-inner {
    padding: 4rem 1.5rem 2rem;   
  }

  .stats-row {
    gap: 1.5rem;     
    flex-wrap: wrap;   
  }

  .stat-number {
    font-size: 1.2rem;  
  }
}

/* Extra-narrow screens (320px–360px range) */
@media (max-width: 360px) {
  .hero-heading {
    font-size: 2rem;  
  }

  .hero-inner,
  .stats-inner,
  .tech-inner,
  .work-inner,
  .github-inner,
  .cta-inner,
  .footer-inner {
    padding-left: 1rem;   
    padding-right: 1rem;
  }

  .stat-number {
    font-size: 1.1rem;
  }

  .cta-heading {
    font-size: 1.25rem; 
  }
}