:root {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: cen;
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

\*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: #e8e4dd;
  font-family: "JetBrains Mono", monospace;
  color: #3d3d3d;
  display: flex;
  flex-direction: column;
}

.navbar {
  position: fixed;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
}

.navbar ul {
  pointer-events: auto;
}

.navbar ul {
  list-style-type: none;
  margin: 0;
  padding: 10px 22px;
  overflow: visible;
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.089)
  );
  border: 1px solid rgba(255, 255, 255, 0.45);

  border-radius: 50px;
  display: flex;
  align-items: center;
  width: fit-content;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.navbar li {
  display: inline-block;
}

.navbar li a {
  font-size: 14px;
  display: block;
  color: #363636;
  text-align: center;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.1s ease;
  border-radius: 25px;
}

.navbar li a:hover {
  color: rgb(31, 31, 31);
  border-radius: 25px;
  transform: scale(1.06);
}

.navbar li a.active {
  background: rgba(85, 85, 85, 0.193);
  color: #1f1f1f;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(15, 15, 15, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.253);
}

#logo {
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  color: #363636;
  letter-spacing: 1px;
  transition: all 0.1s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: default;
  line-height: 1;
  border-radius: 25px;
  margin-left: 20px;
  margin-right: 15px;
}

#logo:hover {
  transform: scale(1.05);
  color: rgb(31, 31, 31);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.latest {
  background-color: #e8e4dd;
  flex: 1;
  margin-top: -10px;
  width: 100%;
  box-sizing: border-box;
}

.latest a {
  text-decoration: none;
  display: block;
}

h1 {
  font-size: 50px;
  font-weight: 700;
  margin-bottom: -10px;
}

h2 {
  color: #5a5a5a;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 60px;
}

.button-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.header-button {
  background-color: #fffdfb;
  border: 1px solid #c5c1ba;
  color: #3d3d3d;
  font-size: 16px;
  padding: 15px 32px;
  cursor: pointer;
  border-radius: 25px;
  text-align: left;
  font-weight: 600;
  font-family: "JetBrains Mono", monospace;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.1s ease;
  width: 100%;
  max-width: none;
}

.header-button:hover {
  background-color: #3d3d3d;
  border: 1px solid #2a2a2a;
  color: #fffdfb;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

button:hover {
  scale: calc(1.05);
}

button {
  background-color: #fffdfb;
  border: 1px solid #c5c1ba;
  color: #3d3d3d;
  font-size: 16px;
  padding: 15px 32px;
  cursor: pointer;
  border-radius: 25px;
  text-align: left;
  font-weight: 600;
  font-family: "JetBrains Mono", monospace;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.1s ease;
  max-width: none;
}

.code:hover {
  scale: calc(1.05);
  rotate: calc(3deg);
}

.about-me {
  color: #5a5a5a;
  font-size: 20px;
  max-width: 800px;
  display: inline-block;
  background-color: #ded9d0;
}

#about-meH1 {
  color: #2a2a2a;
  font-weight: 600;
  padding-bottom: 60px;
}

#KSU {
  max-width: 150px;
  transition: transform 0.2s ease;
}

#KSU:hover {
  transform: scale(1.1);
  rotate: calc(3deg);
}

#githublogo {
  max-width: 150px;
  transition: transform 0.2s ease;
  margin-bottom: 40px;
}

#githublogo:hover {
  transform: scale(1.3);
  rotate: calc(3deg);
}

.certs {
  background-color: #e8e4dd;
  color: #3d3d3d;
  font-size: 20px;
  display: block;
  width: 100%;
  box-sizing: border-box;
}
.certs h1 {
  color: #2a2a2a;
}
.certs ul {
  color: #4a4a4a;
}
.connect {
  background-color: #ded9d0;
}
.connect h1 {
  font-size: 50px;
  color: #2a2a2a;
  font-weight: 600;
  padding-bottom: 60px;
}

#linkedlogo {
  max-width: 150px;
  transition: transform 0.2s ease;
}

#linkedlogo:hover {
  transform: scale(1.1);
  /*box-shadow: [horizontal offset] [vertical offset] [blur radius] [spread radius] [color];*/
  rotate: calc(3deg);
}

.footer {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background-color: #d3cec4;
  color: #3d3d3d;
  font-size: 20px;
  padding-top: 20px;
  padding-bottom: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-left: 50px;
  padding-right: 50px;
  margin: 0;
}

#datetime-display {
  font-size: 16px;
  font-weight: 500;
}

.footer button {
  background-color: #fffdfb;
  border: 1px solid #b0aca3;
  color: #3d3d3d;
  font-size: 20px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 25px;
  text-align: center;
  font-weight: 400;
  font-family: "JetBrains Mono", monospace;
  transition: all 0.1s ease;
  width: 150px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer button:hover {
  background-color: #3d3d3d;
  border: 1px solid #2a2a2a;
  color: #fffdfb;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.dark-mode {
  background-color: #1a1a1a;
}

.dark-mode h1 {
  background: linear-gradient(135deg, rgb(255, 255, 255), rgb(76, 76, 76));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark-mode h2 {
  color: #a0a0a0;
}

.dark-mode .latest {
  background-color: #0b0b0b;
}

.dark-mode .navbar ul {
  -webkit-backdrop-filter: blur(10px) saturate(110%);
  backdrop-filter: blur(100%);
  background: linear-gradient(
    135deg,
    rgba(20, 20, 20, 0.719),
    rgba(20, 20, 20, 0)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.dark-mode .navbar li a {
  color: #bbbbbb;
  font-weight: 500;
}

.dark-mode .navbar li a:hover {
  color: #e0e0e0;
}

.dark-mode .navbar li a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode #logo {
  color: #bbbbbb;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.dark-mode #logo:hover {
  color: #e0e0e0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.dark-mode #about-meH1 {
  font-weight: 600;
  background: linear-gradient(135deg, rgb(255, 255, 255), rgb(76, 76, 76));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark-mode .about-me {
  background-color: #090909;
  color: #909090;
}

.dark-mode .certs {
  background-color: #0b0b0b;
  color: #e0e0e0;
}

.dark-mode .certs h1 {
  background: linear-gradient(135deg, rgb(255, 255, 255), rgb(76, 76, 76));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark-mode .certs ul {
  color: #909090;
}

.dark-mode .footer {
  background-color: #000000;
  color: #e0e0e0;
}

.dark-mode #datetime-display {
  color: #e0e0e0;
}

.dark-mode .connect {
  background-color: #090909;
}

.dark-mode .connect h1 {
  background: linear-gradient(135deg, rgb(255, 255, 255), rgb(76, 76, 76));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark-mode button {
  background: linear-gradient(
    0deg,
    rgba(42, 42, 42, 1) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  border: 1px solid #404040;
  color: #c2c2c2;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.79);
  animation: ease-in-out 0.1s;
}

.dark-mode button:hover {
  background: linear-gradient(0deg, rgb(67, 67, 67) 0%, rgb(0, 0, 0) 100%);
  border: 1px solid #555555;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
}
#container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-left: 50px;
  padding-right: 50px;
  padding-bottom: 60px;
  padding-top: 20px;
  box-sizing: border-box;
}

.dark-mode .navbar li a.active {
  background: linear-gradient(
    0deg,
    rgba(34, 34, 34, 0.522) 0%,
    rgba(28, 28, 28, 0.219) 100%
  );
  border: #4d4d4d45 1px solid;
}

.dark-mode .navbar li a.active:hover {
  background: linear-gradient(
    0deg,
    rgba(80, 80, 80, 0.522) 0%,
    rgba(28, 28, 28, 0.219) 100%
  );
  border: #4d4d4d45 1px solid;
}
/* Background for HDR */
@media (prefers-color-scheme: light) and (color-gamut: p3) and (dynamic-range: high) {
  body {
    background-image: linear-gradient(
      135deg,
      color(display-p3 1 0.86 0.56) 0%,
      color(display-p3 0.7 0.95 1) 45%,
      color(display-p3 0.98 1 0.995) 100%
    );
    background-color: color(display-p3 0.99 0.98 0.96);
  }
}

/* Background for SDR */
@media (prefers-color-scheme: light) and (color-gamut: p3) and (not (dynamic-range: high)) {
  body {
    background-image: linear-gradient(
      135deg,
      #fff1e0 0%,
      #eaf6ff 50%,
      #f8fbff 100%
    );
    background-color: #f6f4ef;
  }
}
