/* ===== CRITICAL FIXED ORDER ===== */

#music-popover {
  display: none;
  position: absolute;
  top: 150%;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  min-width: 200px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#equalizer-canvas {
  display: block;
  margin: 0 auto;
  background: transparent;
}

body.dark .avatar img {
  width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 100%;
  box-shadow: 0 0 0 0 #ffffff;
}



body.dark #header-nav {
  background-color: #222 !important;
  border-color: #333 !important;
}



body.dark .navbar-light .navbar-toggler {
  color: #96bf97;
  background-color: #96bf97;
}



body.dark .navbar-light .navbar-nav .nav-link {
  color: #96bf97;
}


body.dark .navbar-light .navbar-nav .nav-link:hover {
  color: #ffffff;
}


body.dark .navbar::after {
  content: "";
  display: block;
  height: 1px;
  background-color: #222;
}


body.dark .navbar-brand {
  color: #96bf97;
}


body.dark .navbar-brand:hover {
  color: #ffffff;
}


body.dark #music-popover {
  display: none;
  background-color: #333;
  color: #96bf97;
  border-color: #444;
}



#main {
  position: relative;
  max-width: 100%;
  min-width: 27em;
  padding: 2em 0em 0em 0em;
  background: #ffffff;
  border-radius: 0px;
  cursor: default;
  opacity: 0.95;
  text-align: center;
  -moz-transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  -ms-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
  -moz-transform: rotateX(0deg);
  -webkit-transform: rotateX(0deg);
  -ms-transform: rotateX(0deg);
  transform: rotateX(0deg);
  -moz-transition: opacity 1s ease, -moz-transform 1s ease;
  -webkit-transition: opacity 1s ease, -webkit-transform 1s ease;
  -ms-transition: opacity 1s ease, -ms-transform 1s ease;
  transition: opacity 1s ease, transform 1s ease;
  height: 100%;
  background-repeat: repeat, no-repeat, no-repeat;
  background-size: 100px 100px, cover, cover;
  background-position: top left, center center, bottom center;
  background-attachment: fixed, fixed, fixed;
}


#gear-wrapper {
  position: relative;
  display: flex;
}



#music-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
}


#music-wrapper.open #music-popover {
  display: block;
}


.avatar img {
  width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 100%;
  box-shadow: 0 0 0 0 #ffffff;
}


h1.avatar {
  display: block;
  text-shadow: 1px 1px;
  font-size: 2.25em;
  letter-spacing: 0.22em;
  margin: 0 0 0.525em 0;
  font-family: "Exo 2", sans-serif;
  font-size: 28pt;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}


.navbar-nav.nav-link:hover {
  color: #212529;
}



.navbar-light .navbar-nav .nav-link {
  color: #212529;
}


.navbar-light .navbar-nav .nav-link:hover {
  color: #d9d9d9;
}


.navbar-brand {
  color: #212529;
}


.navbar-brand:hover {
  color: #d9d9d9;
}



.navbar-light .navbar-toggler {
  color: #d9d9d9;
  background-color: #d9d9d9;
}


#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -10;
  width: 100%;
  height: 100%;
  background: black;
}

/* ===== RESTORED STRUCTURED ORDER ===== */

/* ===== BASE ===== */
html,
body {
  font-family: 'Exo 2', sans-serif;
  overflow-x: hidden;
}

html {
  display: block;
  scroll-behavior: smooth;
}


body.dark #site-logo {
  color: #96bf97;
}


body.dark #services-frontend,
services-backend,
services-fullstack,
services-devops {
  color: #96bf97;
}


body.dark #quantum-zen-logo {
  color: #fff;
}


body.dark #quantum-zen-logo-2 {
  color: #fff;
}


body.dark #hacker-rank-logo {
  color: #fff;
}


body.dark #udemy-logo {
  color: #fff;
}


body.dark #tec-logo {
  color: #fff;
}


body.dark #ast-logo {
  color: #fff;
}


body.dark #gurov-logo {
  color: #fff;
}



a:hover {
  color: #d9d9d9;
}


body.dark a {
  color: #96bf97;
}


body.dark a:hover {
  color: #fff;
}


html {
  scroll-behavior: auto;
}


body.dark .btn {
  background: #96bf97 !important;
  border-color: #7e8d99 !important;
}


body.dark .techstack-note {
  font-size: 0.875rem;
  color: #d9d9d9;
  font-style: italic;
  font-weight: 400;
  display: block;
  margin-top: 0.5rem;
}


body.dark .text-muted {
  color: #d9d9d9 !important;
}


body.dark .marker {
  color: #96bf97 !important;
}


body.dark .theme-card {
  background-color: #222 !important;
  color: #96bf97;
  border: 1px solid #96bf97; 
}


body.dark .card {
  background-color: #222;
  color: #96bf97;
  border: 0px solid #96bf97;
}


body.dark .card-header {
  background-color: #444;
  color: #96bf97;
  border-bottom: 0px;
}



body.dark .contact-form {
  background-color: #222 !important;
  color: #96bf97;
  border-bottom: 0px;
}



body.dark i {
  color: #96bf97;
}


body.dark i:hover {
  color: #ffffff;
}


body.dark {
  background-color: #111 !important;
  color: #96bf97 !important;
}


body.dark #lang-select {
  background-color: #333 !important;
  color: #96bf97 !important;
  border-color: #444 !important;
}


body.dark #theme-select {
  background-color: #333 !important;
  color: #96bf97 !important;
  border-color: #444 !important;
}


body.dark #settings-toggle-icon {
  color: #96bf97 !important;
}


body.dark #settings-popover {
  display: none;
  background-color: #333;
  color: #96bf97;
  border-color: #444;
}


body.dark th {
  white-space: nowrap;
  width: 1%;
  vertical-align: top;
  color: #96bf97;
}


body.dark td {
  word-break: break-word;
  color: #96bf97;
}



ul.custom-bullets li::before {
  content: "›";
  color: #333;
  font-weight: bold;
  display: inline-block;
  width: 1rem;
  margin-left: -1.5rem;
}



body.dark ul.custom-bullets li::before {
  content: "›";
  color: #96bf97;
  font-weight: bold;
  display: inline-block;
  width: 1rem;
  margin-left: -1.5rem;
}


body.light::before,
body.dark::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  pointer-events: none;
  opacity: 0.08;
}


body.light::before {
  opacity: 0.10;
  background-image: url("../images/bg.jpg");
}


body.dark::before {
  opacity: 0.04;
  background-image: url("../images/bg2.jpg");
}


body.dark #music-toggle-icon {
  color: #96bf97 !important;
}


/* ===== LAYOUT ===== */


.section {
  scroll-margin-top: 2rem;
}


.grid-sizer,
.btn {
  background: #7e8d99 !important;
  border-color: #7e8d99 !important;
}


.container-narrow {
  max-width: 1024px;
  margin: 0 auto;
}



/* ===== TYPOGRAPHY ===== */


#site-logo {
  color: #000;
}


#services-frontend,
services-backend,
services-fullstack,
services-devops {
  color: #000;
}


#udemy-logo {
  color: #000;
}


h3 {
  font-family: "Exo 2", sans-serif;
  font-weight: 300;
}



strong.avatar,
b.avatar {
  display: block;
  font-size: 24pt;
  letter-spacing: 0.22em;
  margin: 0 0 0.525em 0;
  font-family: "Exo 2", sans-serif;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


em.avatar,
i.avatar {
  font-style: italic;
  text-transform: uppercase;
}


p {
  font-family: "Exo 2", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 14pt;
  word-break: keep-all;
}


p.avatar {
  font-size: 16pt;
  letter-spacing: 0.22em;
  margin: 0 0 0.525em 0;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


.nav-link {
  font-weight: 400;
  font-family: "Exo 2", sans-serif;
  text-shadow: 0px 0px 1px;
}


img.avatar {
  border-radius: 30px;
}


footer a:not(.nav-link) {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}


.text-small {
  font-family: "Exo 2", sans-serif;
  font-size: 0.875rem;
}



.text-big {
  font-family: "Exo 2", sans-serif;
  font-size: 1.1rem;
}


.text-muted {
  color: #6c757d !important;
}


.marker {
  position: relative;
  display: inline;
  width: auto;
}


.marker-center {
  text-shadow: 1px 1px;
  padding-right: 0;
  font-size: 2.25em;
  letter-spacing: 0.22em;
  margin: 0 0 0.525em 0;
  color: #212529;
  text-shadow: 1px 1px 2px;
  font-family: "Exo 2", sans-serif;
  font-size: 28pt;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}


.marker {
  padding-right: 0;
}


.theme-card {
  background-color: #fff !important;
  border: 1px solid #000;
}


#theme-select:focus,
#lang-select:focus {
  outline: none;
  box-shadow: 0 0 0 0.1rem rgba(150, 191, 151, 0.5);
  border-color: #96bf97;
}


#settings-toggle-icon {
  font-size: 1.3rem;
  cursor: pointer;
}


#settings-popover {
  display: none;
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
  z-index: 1000;
  width: 230px;
}



ul.custom-bullets {
  list-style: none;
  padding-left: 1.5rem;
}


@keyframes pulse {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) scale(1.3);
    opacity: 0.6;
  }


  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}

#music-toggle-icon {
  font-size: 1.4rem;
  color: #333;
}




#music-progress {
  width: 100%;
}


/* ===== COMPONENTS ===== */


.card {
  background-color: #e2e2e2;
  border: 0px solid #212529;
}



.contact-form {
  background-color: #e2e2e2 !important;
  border: 0px solid #212529;
}


/* ===== UTILITIES ===== */


.techstack-note {
  font-size: 0.875rem;
  color: #333;
  font-style: italic;
  font-weight: 400;
  display: block;
  margin-top: 0.5rem;
}


select:focus {
  outline: none;
  box-shadow: none;
  border-color: #96bf97;
}


/* ===== OTHER ===== */


#qr-code {
  border-radius: 30px;
  overflow: hidden;
}


#quantum-zen-logo {
  color: #000;
}


#quantum-zen-logo-2 {
  color: #000;
}


#hacker-rank-logo {
  color: #000;
}


#tec-logo {
  color: #000;
}


#ast-logo {
  color: #000;
}


#gurov-logo {
  color: #231f20;
}


.exo-2-300 {
  font-family: "Exo 2", sans-serif;
  font-weight: 300;
  font-style: normal;
}


.exo-2-500 {
  font-family: "Exo 2", sans-serif;
  font-weight: 500;
  font-style: normal;
}


.exo-2-700 {
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-style: normal;
}