html {
  font-size: 90%; /* globally scale down all rem-based sizes */
}

/* VS Code Dark Theme Inspired Styles */
:root {
  --bg-primary: #1e1e1e; 
  --bg-secondary: #252526;
  --bg-tertiary: #353434;
  --bg-contrast: #30122f;
  --text-primary: #d4d4d4;
  --text-secondary: #8c4a7d;
  --text-tertiary: #ce9178;
  --accent-primary: #8c4a7d;
  --accent-secondary: #c586c0;
  --accent-tertiary: #4ec9b0;
  --border-color: #3c3c3c;
  --highlight: #782626;
  --comment: #6a9955;
  --keyword: #8c4a7d;
  --string: #ce9178;
  --function: #dcdcaa;
  --variable: #8c4a7d;
  --error: #f44747;
}

/* Nuclear Reset for Text Colors */
body,
body *:not(.fa):not(.fab):not(.fas):not(.far) {
  color: #d4d4d4 !important;
}

/* Base Styles */
body {
  font-family: "SF Pro Text", "SF Pro Icons";
  font-size: 0.90rem;
  background-color: var(--bg-primary); 
 /* background: radial-gradient(circle at center, #1e1e1e, #2d2d2d, #121212); */
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Force text color in all containers */
div, section, article, aside, main, header, footer, nav {
  color: inherit !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-secondary) !important;
}

.section-title {
  position: relative;
  padding-bottom: 0.5rem;
  color: var(--accent-primary) !important;
  font-family: 'Consolas', monospace;
  font-weight: 600;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-primary);
}

/* Navigation */
.navbar {
  background-color: var(--bg-secondary) !important;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-family: 'Consolas', monospace;
  padding: 0.25rem 1rem;
  font-size: 0.85rem;
  height: 45px;
}

.navbar-brand {
  font-weight: 600;
  color: var(--text-secondary) !important;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  color: var(--text-primary) !important;
  padding: 0.3rem 0.75rem;
  font-size: 0.85rem;
}

.nav-link:hover {
  color: var(--accent-primary) !important;
  background-color: var(--bg-tertiary);
}

/* Social Icons - Guaranteed Visibility */
.navbar .fa-github,
.navbar .fa-linkedin,
.navbar .fa-twitter,
.navbar .fa-envelope {
  color: white !important;
  filter: none !important;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.navbar .fa-github:hover,
.navbar .fa-linkedin:hover,
.navbar .fa-twitter:hover,
.navbar .fa-envelope:hover {
  opacity: 1;
  color: var(--accent-primary) !important;
}

.sidebar-fixed {
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  background-color: var(--bg-primary);
  z-index: 1;
}

.content-scroll {
  max-height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.main-sections {
  flex: 1 0 auto;
}
/* Cards */
.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  color: inherit !important;
}


.card * {
  color: inherit !important;
}

.card-header {
  border-radius: 20px;
  background-color: var(--bg-tertiary) !important;
  border-bottom: 1px solid var(--border-color) !important;
  color: var(--text-secondary) !important;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--accent-primary);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 20%;
  background-color: var(--accent-primary);
  border: 2px solid var(--bg-secondary);
}

.timeline-content {
  background-color: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: inherit !important;
}

.timeline-content * {
  color: inherit !important;
}

/* Lists */
ul {
  padding-left: 1.5rem;
}

ul li {
  margin-bottom: 0.5rem;
  position: relative;
  color: inherit !important;
}

ul li::before {
  content: '•';
  color: var(--accent-primary);
  position: absolute;
  left: -1rem;
}

/* Links */
a {
  color: var(--accent-primary) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-secondary) !important;
  text-decoration: underline;
}

/* Footer */
footer {
  flex-shrink: 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 0;
  font-size: 0.75rem;
}

footer a {
  color: var(--text-secondary) !important;
}

footer a:hover {
  color: var(--accent-primary) !important;
}

/* Footer Social Icons */
footer .fa-github,
footer .fa-linkedin,
footer .fa-twitter,
footer .fa-envelope {
  color: white !important;
  filter: none !important;
  opacity: 0.8;
}

footer .fa-github:hover,
footer .fa-linkedin:hover,
footer .fa-twitter:hover,
footer .fa-envelope:hover {
  opacity: 1;
  color: var(--accent-primary) !important;
}

/* Bootstrap Overrides */
.text-dark,
.text-body,
.text-black,
.text-muted {
  color: var(--text-primary) !important;
}

.text-muted {
  opacity: 0.7;
}

html, body {
  overflow-x: hidden;
}

.sidebar-fixed {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: hidden; /* Hide scrollbar and disable scrolling */
  background-color: var(--bg-primary);
  z-index: 1;
}

.row {
  margin-right: 0;
  margin-left: 0;
}

.container-fluid {
  padding-right: 0;
  padding-left: 0;
}

* {
  box-sizing: border-box;
}

/* Optional: hide scrollbar on Windows Chrome */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

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

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  html {
    font-size: 80% !important;
  }

  body {
    font-size: 0.80rem !important;
  }
  .navbar {
    padding: 0.5rem 1rem;
  }
  .sidebar-fixed {
    position: static;
    overflow-y: visible;
    max-height: none;
  }
}

@media (max-width: 767.98px) {
  html, body {
    font-size: 0.80rem !important;
    padding-top: 56px;
    height: auto !important;
    overflow-x: hidden;
    overflow-y: auto;
  }

  h1 { font-size: 1.5rem !important; }
  h2 { font-size: 1.25rem !important; }
  h3 { font-size: 1.1rem !important; }
  h4, h5, h6 { font-size: 1rem !important; }

  .navbar-brand {
    font-size: 0.8rem !important;
  }

  .nav-link {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.5rem !important;
  }

  .row {
    flex-direction: column !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .sidebar-fixed {
    position: relative !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    z-index: auto !important;
  }

  .content-scroll {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .container-fluid,
  main {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
    height: auto !important;
  }

  footer {
    font-size: 0.7rem !important;
  }
}
