:root {
  --bg-primary: #000000;
  --bg-secondary: #0b0b0b;
  --bg-tertiary: #111111;
  --accent-primary: #00c8ff;
  --accent-secondary: #7c3aed;
  --accent-tertiary: #ff6b6b;
  --accent-quaternary: #4ecdc4;
  --text-primary: #eaeef6;
  --text-secondary: #b1b7c9;
  --text-muted: #7a8193;
  --border-color: rgba(255, 255, 255, 0.08);
  --glow-color: rgba(0, 200, 255, 0.28);
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --mx: 50%;
  --my: 50%;
}

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

body {
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Animated Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(
      700px 700px at var(--mx) var(--my),
      rgba(0, 200, 255, 0.18),
      transparent 62%
    ),
    radial-gradient(
      1100px 1100px at calc(var(--mx) + 18%) calc(var(--my) + 8%),
      rgba(124, 58, 237, 0.12),
      transparent 72%
    ),
    radial-gradient(
      900px 900px at calc(var(--mx) - 22%) calc(var(--my) + 16%),
      rgba(78, 205, 196, 0.08),
      transparent 75%
    ),
    var(--bg-primary);
  will-change: background-position;
}

.bg-animation canvas.bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Floating Orbs */
.floating-shapes {
  display: none !important;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  background: rgba(0, 212, 255, 0.06);
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.12);
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  top: 50%;
  right: 10%;
  background: rgba(124, 58, 237, 0.06);
  box-shadow: 0 0 80px rgba(124, 58, 237, 0.12);
  animation-delay: -5s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 70%;
  left: 30%;
  background: rgba(255, 107, 107, 0.06);
  box-shadow: 0 0 50px rgba(255, 107, 107, 0.12);
  animation-delay: -10s;
}

.shape-4 {
  width: 250px;
  height: 250px;
  top: 20%;
  right: 40%;
  background: rgba(78, 205, 196, 0.06);
  box-shadow: 0 0 70px rgba(78, 205, 196, 0.12);
  animation-delay: -15s;
}

.shape-5 {
  width: 180px;
  height: 180px;
  top: 80%;
  right: 60%;
  background: rgba(255, 159, 67, 0.06);
  box-shadow: 0 0 55px rgba(255, 159, 67, 0.12);
  animation-delay: -7s;
}

/* Animated Grid */
.grid-overlay {
  display: none !important;
}

/* Particle System */
.bg-animation::before,
.bg-animation::after {
  content: none !important;
}

/* Waves Effect */
/* removed animated overlay */

/* Background Animations */

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-50px) translateX(30px) rotate(90deg) scale(1.1);
  }
  50% {
    transform: translateY(-20px) translateX(-30px) rotate(180deg) scale(0.9);
  }
  75% {
    transform: translateY(30px) translateX(20px) rotate(270deg) scale(1.05);
  }
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(100px, 100px);
  }
}

@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes sparkle {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
  }
}

@keyframes waves {
  0%,
  100% {
    transform: translateY(0px) scaleY(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) scaleY(1.1);
    opacity: 0.6;
  }
}

/* Main Container */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Hero Header */
.hero-header {
  text-align: center;
  padding: 80px 0 60px;
}

.hero-content {
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.logo-icon {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
  animation: logoGlow 3s ease-in-out infinite alternate;
}

.logo-icon i {
  font-size: 40px;
  color: #f0f6fc;
  filter: drop-shadow(0 0 10px rgba(240, 246, 252, 0.3));
}

.ducky-logo {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  object-fit: cover;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6))
    drop-shadow(0 0 40px rgba(0, 212, 255, 0.4))
    drop-shadow(0 0 60px rgba(0, 212, 255, 0.2));
  transition: all 0.3s ease;
}

.ducky-logo:hover {
  filter: drop-shadow(0 0 25px rgba(0, 212, 255, 0.8))
    drop-shadow(0 0 50px rgba(0, 212, 255, 0.6))
    drop-shadow(0 0 75px rgba(0, 212, 255, 0.4));
  transform: scale(1.05);
}

.logo-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  opacity: 0.3;
  filter: blur(20px);
  z-index: -1;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.35);
}

.accent {
  color: var(--accent-primary);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 10px;
}

@keyframes logoGlow {
  0% {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  }
  100% {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2),
      0 0 60px rgba(255, 255, 255, 0.1);
  }
}

/* Search Section */
.search-section {
  margin-bottom: 80px;
}

.search-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* Mode Toggle */
.mode-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 4px;
  margin: 0 auto 16px;
  gap: 6px;
}

.mode-btn {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mode-btn.active {
  background: var(--accent-primary);
  color: #0a0a0f;
}

.mode-panel {
  width: 100%;
}

/* Compare Inputs */
.compare-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}

.compare-inputs .search-btn {
  grid-column: 1 / -1;
  justify-self: center;
}

.vs-badge {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.8px;
  box-shadow: 0 6px 18px rgba(0, 212, 255, 0.15);
}

/* Compare Results */
.compare-container {
  margin-top: 20px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
}

/* Compare Summary Modern Styles */
#compareSummary.repo-card {
  background: radial-gradient(
      circle at 20% 0%, rgba(0, 212, 255, 0.06), transparent 60%
    ),
    rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
}

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

.winner-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: #c9f9ff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.insight-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.insight-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-badge {
  font-size: 12px;
  color: var(--text-secondary);
}

.bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.bar-fill-a {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), #7ee0ff);
}

.bar-fill-b {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-secondary), #b18cff);
}

.metric-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Legend */
.legend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 12px 0;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dot-a {
  background: linear-gradient(90deg, var(--accent-primary), #7ee0ff);
}

.dot-b {
  background: linear-gradient(90deg, var(--accent-secondary), #b18cff);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 4px;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.search-input-wrapper:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}

.search-icon {
  padding: 16px 20px;
  color: var(--accent-primary);
  font-size: 20px;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 16px;
  font-family: "JetBrains Mono", monospace;
  padding: 16px 0;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  background: var(--accent-primary);
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  color: white;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
  background: #00b8e6;
}

.search-btn:active {
  transform: translateY(0);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s;
}

.search-btn:hover .btn-glow {
  left: 100%;
}

.search-suggestions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.suggestion-label {
  color: var(--text-muted);
  font-size: 14px;
}

.suggestion {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  position: relative;
  z-index: 10;
}

.suggestion:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Loading */
.loading-container {
  text-align: center;
  padding: 60px 0;
}

.loading-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top: 3px solid var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 10px;
  left: 10px;
  border-top-color: var(--accent-secondary);
  animation-duration: 1.5s;
  animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
  width: 40px;
  height: 40px;
  top: 20px;
  left: 20px;
  border-top-color: var(--accent-primary);
  animation-duration: 2s;
}

.loading-text {
  color: var(--text-secondary);
  font-size: 16px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Error */
.error-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error-color);
  border-radius: 12px;
  text-align: center;
}

.error-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--error-color);
}

/* Profile Container */
.profile-container {
  animation: slideInUp 0.8s ease-out;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

.profile-avatar-container {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 30px var(--glow-color);
}

.avatar-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid transparent;
  border-top: 2px solid var(--accent-primary);
  border-radius: 50%;
  animation: spin 3s linear infinite;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent-primary);
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.profile-bio {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 20px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.profile-link:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.1);
}

.stat-card.highlight {
  background: rgba(0, 212, 255, 0.05);
  border-color: var(--accent-primary);
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: "JetBrains Mono", monospace;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.stat-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.stat-card:hover .stat-glow {
  opacity: 0.05;
}

/* Charts Section */
.charts-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.chart-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.chart-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.chart-header {
  margin-bottom: 30px;
}

.chart-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.chart-title i {
  color: var(--accent-primary);
}

.chart-wrapper {
  position: relative;
  height: 300px;
  padding: 20px;
  background: radial-gradient(
    circle at center,
    rgba(0, 212, 255, 0.05) 0%,
    transparent 70%
  );
  border-radius: 15px;
}

.chart-wrapper canvas {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.chart-wrapper:hover canvas {
  filter: drop-shadow(0 6px 12px rgba(0, 212, 255, 0.2));
  transform: scale(1.02);
}

/* Repositories Section */
.repos-section {
  margin-bottom: 60px;
}

.section-header {
  margin-bottom: 30px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.section-title i {
  color: var(--accent-primary);
}

.repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.repo-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.repo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px var(--accent-primary);
}

.repo-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.1);
}

.repo-card:hover::before {
  transform: scaleX(1);
}

.repo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.repo-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: "JetBrains Mono", monospace;
}

.repo-visibility {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.repo-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 14px;
}

.repo-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.repo-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.repo-stat i {
  font-size: 12px;
}

.language-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.language-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .compare-inputs {
    grid-template-columns: 1fr;
  }

  .vs-badge {
    display: none;
  }

  .compare-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .insight-grid {
    grid-template-columns: 1fr;
  }
  .main-container {
    padding: 0 24px !important;
    box-sizing: border-box;
  }

  .hero-header {
    padding: 60px 0 40px;
    margin: 0;
  }

  .logo-container {
    flex-direction: column;
    gap: 15px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 30px 20px;
    margin: 0 0 30px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 0;
  }

  .charts-section {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0;
  }

  .repos-grid {
    grid-template-columns: 1fr;
    margin: 0;
  }

  .search-input-wrapper {
    flex-direction: row;
    gap: 0;
    padding: 6px;
    border-radius: 16px;
    max-width: 100%;
  }

  .search-icon {
    padding: 12px 16px;
    font-size: 18px;
  }

  .search-input {
    padding: 12px 8px;
    font-size: 16px;
    min-width: 0;
    flex: 1;
  }

  .search-btn {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .search-suggestions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
  }

  .suggestion {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 6px;
  }
}
/* Extra Small Screens - Search Bar Optimization */
@media (max-width: 480px) {
  .main-container {
    padding: 0 18px !important;
  }

  .search-container {
    padding: 0;
    margin: 0;
  }

  .profile-header {
    padding: 25px 12px !important;
  }

  .search-input-wrapper {
    padding: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
  }

  .search-icon {
    padding: 10px 12px;
    font-size: 16px;
  }

  .search-input {
    padding: 10px 6px;
    font-size: 15px;
  }

  .search-btn {
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 10px;
  }

  .search-suggestions {
    gap: 6px;
    margin-top: 12px;
  }

  .suggestion {
    padding: 6px 10px;
    font-size: 11px;
  }

  .suggestion-label {
    font-size: 12px;
  }
}

/* Very Small Screens - Ultra Compact */
@media (max-width: 360px) {
  .main-container {
    padding: 0 16px !important;
  }

  .search-container {
    margin: 0;
  }

  .profile-header {
    padding: 20px 10px !important;
  }

  .search-input-wrapper {
    padding: 3px;
    border-radius: 12px;
  }

  .search-icon {
    padding: 8px 10px;
    font-size: 14px;
  }

  .search-input {
    padding: 8px 4px;
    font-size: 14px;
  }

  .search-btn {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 8px;
  }

  .search-suggestions {
    gap: 4px;
    margin-top: 10px;
  }

  .suggestion {
    padding: 5px 8px;
    font-size: 10px;
  }
}
/* Mobile Spacing Fixes - Prevent Edge Touching */
@media (max-width: 768px) {
  /* Increase main container padding for better spacing */
  .main-container {
    padding: 0 24px !important;
  }

  /* Force all components to stay within container bounds */
  .profile-header,
  .stats-grid,
  .charts-section,
  .repos-section {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  /* Individual cards should not touch edges */
  .stat-card,
  .chart-container,
  .repo-card {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Profile header specific spacing */
  .profile-header {
    margin-bottom: 30px;
    padding: 30px 16px;
  }

  /* Stats grid spacing */
  .stats-grid {
    gap: 16px;
    margin-bottom: 40px;
  }

  /* Charts section spacing */
  .charts-section {
    gap: 20px;
    margin-bottom: 40px;
  }

  /* Repos section spacing */
  .repos-grid {
    gap: 16px;
  }

  /* Loading and error states */
  .loading-container,
  .error-container {
    margin: 0;
    padding: 0 8px;
  }

  /* Search section should also respect boundaries */
  .search-section {
    margin-bottom: 60px;
  }
}

@media (max-width: 480px) {
  /* Tighter spacing for small screens but still with margins */
  .stats-grid {
    gap: 12px;
    margin-bottom: 30px;
  }

  .charts-section {
    gap: 16px;
    margin-bottom: 30px;
  }

  .repos-grid {
    gap: 12px;
  }

  .profile-header {
    margin-bottom: 25px;
  }
}

@media (max-width: 360px) {
  /* Ultra compact but still with proper margins */
  .stats-grid {
    gap: 10px;
    margin-bottom: 25px;
  }

  .charts-section {
    gap: 12px;
    margin-bottom: 25px;
  }

  .repos-grid {
    gap: 10px;
  }

  .profile-header {
    margin-bottom: 20px;
  }
}
/* CRITICAL MOBILE PADDING FIX - HIGHEST PRIORITY */
@media (max-width: 768px) {
  /* Force container padding with highest specificity */
  body .main-container {
    padding-left: 24px !important;
    padding-right: 24px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Prevent any child elements from breaking out */
  .main-container > * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure profile header doesn't overflow */
  .main-container .profile-header {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure stats grid doesn't overflow */
  .main-container .stats-grid {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Ensure charts section doesn't overflow */
  .main-container .charts-section {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Ensure repos section doesn't overflow */
  .main-container .repos-section {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Individual cards should not extend beyond container */
  .main-container .stat-card,
  .main-container .chart-container,
  .main-container .repo-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  body .main-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .main-container .profile-header {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

@media (max-width: 360px) {
  body .main-container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .main-container .profile-header {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
/* Chart.js Legend Text Color Fix */
.chart-wrapper canvas + div,
.chart-wrapper .chartjs-legend,
.chart-wrapper .chartjs-legend ul,
.chart-wrapper .chartjs-legend ul li,
.chart-wrapper .chartjs-legend ul li span {
  color: #ffffff !important;
}

/* Force Chart.js legend text to be white */
#languageChart + .chartjs-legend,
#starsChart + .chartjs-legend {
  color: #ffffff !important;
}

/* Chart.js legend override */
canvas + div {
  color: #ffffff !important;
}

/* Ensure all chart text is white */
.chart-container * {
  color: #ffffff !important;
}
/* ===== MINIMAL FOOTER STYLES ===== */

.minimal-footer {
  margin-top: 4rem;
  margin-left: -2rem;
  margin-right: -2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  width: calc(100% + 4rem);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-name {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: "Space Grotesk", sans-serif;
}

.footer-name strong {
  color: var(--text-primary);
  font-weight: 600;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
}

.footer-social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-primary);
}

.footer-social-link[href*="github"]:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
}

.footer-social-link[href*="linkedin"]:hover {
  background: rgba(0, 119, 181, 0.2);
  color: #0077b5;
  border-color: #0077b5;
}

.footer-social-link[href*="instagram"]:hover {
  background: linear-gradient(
    45deg,
    rgba(225, 48, 108, 0.2),
    rgba(255, 220, 128, 0.2)
  );
  color: #e1306c;
  border-color: #e1306c;
}

.footer-social-link[href*="mailto"]:hover {
  background: rgba(234, 67, 53, 0.2);
  color: #ea4335;
  border-color: #ea4335;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .minimal-footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
  }

  .footer-name {
    font-size: 0.85rem;
  }

  .footer-social {
    gap: 0.8rem;
  }

  .footer-social-link {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .minimal-footer {
    margin-top: 2rem;
    padding: 1rem 0;
  }

  .footer-content {
    padding: 0 1rem;
    gap: 1rem;
  }

  .footer-name {
    font-size: 0.8rem;
  }

  .footer-social {
    gap: 0.6rem;
  }

  .footer-social-link {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
}
/* ===== MINIMAL FOOTER STYLES ===== */

.minimal-footer {
  margin-top: 4rem;
  margin-left: -2rem;
  margin-right: -2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  width: calc(100% + 4rem);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-name {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: "Space Grotesk", sans-serif;
}

.footer-name strong {
  color: var(--text-primary);
  font-weight: 600;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
}

.footer-social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-primary);
}

.footer-social-link[href*="github"]:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
}

.footer-social-link[href*="linkedin"]:hover {
  background: rgba(0, 119, 181, 0.2);
  color: #0077b5;
  border-color: #0077b5;
}

.footer-social-link[href*="instagram"]:hover {
  background: linear-gradient(
    45deg,
    rgba(225, 48, 108, 0.2),
    rgba(255, 220, 128, 0.2)
  );
  color: #e1306c;
  border-color: #e1306c;
}

.footer-social-link[href*="mailto"]:hover {
  background: rgba(234, 67, 53, 0.2);
  color: #ea4335;
  border-color: #ea4335;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .minimal-footer {
    margin-top: 3rem;
    margin-left: -24px;
    margin-right: -24px;
    padding: 1.5rem 0;
    width: calc(100% + 48px);
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
  }

  .footer-name {
    font-size: 0.85rem;
  }

  .footer-social {
    gap: 0.8rem;
  }

  .footer-social-link {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .minimal-footer {
    margin-top: 2rem;
    margin-left: -20px;
    margin-right: -20px;
    padding: 1rem 0;
    width: calc(100% + 40px);
  }

  .footer-content {
    padding: 0 1rem;
    gap: 1rem;
  }

  .footer-name {
    font-size: 0.8rem;
  }

  .footer-social {
    gap: 0.6rem;
  }

  .footer-social-link {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
}

@media (max-width: 360px) {
  .minimal-footer {
    margin-left: -18px;
    margin-right: -18px;
    width: calc(100% + 36px);
  }
}
/* ===== MINIMAL FOOTER STYLES ===== */

.minimal-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);

  /* Break out of container padding on all screen sizes */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-name {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: "Space Grotesk", sans-serif;
}

.footer-name strong {
  color: var(--text-primary);
  font-weight: 600;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
}

.footer-social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-primary);
}

.footer-social-link[href*="github"]:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
}

.footer-social-link[href*="linkedin"]:hover {
  background: rgba(0, 119, 181, 0.2);
  color: #0077b5;
  border-color: #0077b5;
}

.footer-social-link[href*="instagram"]:hover {
  background: linear-gradient(
    45deg,
    rgba(225, 48, 108, 0.2),
    rgba(255, 220, 128, 0.2)
  );
  color: #e1306c;
  border-color: #e1306c;
}

.footer-social-link[href*="mailto"]:hover {
  background: rgba(234, 67, 53, 0.2);
  color: #ea4335;
  border-color: #ea4335;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .minimal-footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
  }

  .footer-name {
    font-size: 0.85rem;
  }

  .footer-social {
    gap: 0.8rem;
  }

  .footer-social-link {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .minimal-footer {
    margin-top: 2rem;
    padding: 1rem 0;
  }

  .footer-content {
    padding: 0 1rem;
    gap: 1rem;
  }

  .footer-name {
    font-size: 0.8rem;
  }

  .footer-social {
    gap: 0.6rem;
  }

  .footer-social-link {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
}
/* ===== CHARTS SECTION RESPONSIVE STYLES ===== */

/* Charts Section Layout */
.charts-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.chart-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.chart-container:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
}

.chart-header {
  margin-bottom: 1.5rem;
}

.chart-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-title i {
  color: var(--accent-primary);
}

.chart-wrapper {
  position: relative;
  height: 300px;
  width: 100%;
}

.chart-wrapper canvas {
  max-width: 100%;
  height: auto !important;
}

/* Responsive Design for Charts */
@media (max-width: 1024px) {
  .charts-section {
    gap: 1.5rem;
  }

  .chart-wrapper {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .charts-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .chart-container {
    padding: 1.25rem;
  }

  .chart-wrapper {
    height: 250px;
  }

  .chart-title {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .charts-section {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .chart-container {
    padding: 1rem;
    border-radius: 12px;
  }

  .chart-wrapper {
    height: 220px;
  }

  .chart-title {
    font-size: 0.9rem;
    gap: 0.4rem;
  }

  .chart-header {
    margin-bottom: 1rem;
  }
}

@media (max-width: 360px) {
  .charts-section {
    gap: 0.8rem;
  }

  .chart-container {
    padding: 0.8rem;
  }

  .chart-wrapper {
    height: 200px;
  }

  .chart-title {
    font-size: 0.85rem;
  }
}
