:root {
  --bg-color: rgba(255, 255, 255, 0.65);
  --text-color: black;
  --text-light: white;
}

body {
  background-image: url(/images/9dem-bg.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  font-family: 'Barlow Condensed', sans-serif;
  background-color: #121212a6;
  background-blend-mode: multiply;
  color: #e0e0e0;
  padding-top: 65px;
  padding-bottom: 65px;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
}

body.dark {
  --bg-color: rgba(0, 0, 0, 0.65);
  --text-color: white;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.5s, color 0.5s;
}

body:not(.dark) .links:hover,
.link-in-bio:hover {
  background-color: #dddddd;
}

body.dark .link-in-bio:hover {
  background-color: #3e3e3e;
}

.container {
  display: flex;
  flex-direction: column;
  /* background-color: rgba(30, 30, 30, 0.8); */
  background-color: var(--bg-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 110px 20px 20px;
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1s ease-in-out;
}

.header {
  text-align: center;
  margin-bottom: 20px;
}

.avatar-h1 {
  font-size: 2.2em;
  color: var(--text-color);
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: #ff930e;
  text-decoration-style: wavy;
  text-decoration-thickness: 2px;
}

.avatar-container {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  position: relative;
}

.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid #ff930e;
  transition: transform 0.3s ease-in-out;
  position: absolute;
  top: -150px;
}

.avatar:hover {
  transform: scale(1.1);
}

.floating {
  animation-name: floating;
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

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

  50% {
    transform: translate(0, 10px);
  }

  100% {
    transform: translate(0, -0px);
  }
}

.bio {
  font-size: 1.2em;
  color: var(--text-color);
}

/* Theme Switcher */
.theme-switcher-wrapper {
  position: absolute;
  top: 1em;
  left: 1em;
  display: flex;
  align-items: center;
}

.theme-switcher {
  appearance: none;
  width: 2em;
  height: 1em;
  background-color: #ffffff;
  border-radius: 1em;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background-color 0.5s;
}

.theme-switcher::before {
  content: '';
  display: block;
  width: 1em;
  height: 1em;
  background-color: #ff930e;
  border-radius: 50%;
  position: absolute;
  transform: translateX(0);
  transition: transform 0.5s;
}

.theme-switcher:checked {
  background-color: #000;
  border: 1px solid #ff930e;
}

.theme-switcher:checked::before {
  transform: translateX(1em);
}

/* Metal Date Time */
.glass-metal-bar {
  position: fixed;
  bottom: 18px;
  left: 25px;
  min-width: 100px;
  max-width: 98vw;
  padding: 0.28em 1em;
  background: rgba(38, 42, 49, 0.78);
  border-radius: 11px;
  box-shadow: 0 2px 8px 1px rgba(0, 0, 0, 0.18), 0 1px 4px 1px rgba(180, 200, 220, 0.07) inset;
  border: 1px solid rgba(180, 200, 220, 0.22);
  backdrop-filter: blur(5px);
  color: #e0e5eb;
  font-family: 'Share', 'Arial', sans-serif;
  font-size: 0.99em;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.38em;
  z-index: 9999;
  opacity: 0.93;
  user-select: none;
  pointer-events: none;
}

.glass-metal-bar .icon {
  width: 1.3em;
  height: 1.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(120deg, #adb6c6 45%, #58616e 95%);
  margin-right: 0.20em;
  box-shadow: 0 1px 4px 0 rgba(180, 200, 220, 0.09) inset;
  border: 1px solid #b1c3ce33;
  overflow: hidden;
  flex-shrink: 0;
  padding: 0.1em;
}

.glass-metal-bar .icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 2px #2977b3bb);
}

.estTimeText-sm {
  font-size: 0.85em;
  font-family: "Share", sans-serif;
}

@media (max-width: 600px) {
  .glass-metal-bar {
    display: none;
  }

  .glass-metal-bar .icon {
    width: 1em;
    height: 1em;
  }
}

@media (max-width: 400px) {

  .glass-metal-bar .icon {
    width: 1em;
    height: 1em;
  }
}

.main-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

section {
  flex: 1;
  margin: 10px;
  background-color: var(--bg-color);
  padding: 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
}

section:hover {
  background-color: #3e3e3e;
}

h2 {
  margin: 0;
}

.links ul {
  list-style: none;
  padding: 0;
}

.links li {
  margin-bottom: 10px;
}

a {
  color: #ff930e;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

a:hover {
  color: var(--text-color);
  text-decoration: underline;
}

.footer {
  text-align: center;
  margin-top: 20px;
  color: var(--text-color);
  font-size: 0.9em;
  position: relative;
}

.chd-footer-img {
  width: 220px;
  height: auto;
  bottom: -25px;
  right: -45px;
  position: absolute;

}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.socialblock {
  display: flex;
  gap: 15px;
  position: absolute;
  top: 15px;
  right: 2vw;
  cursor: pointer;
}

.socialblock a {
  color: #ffffff;
  font-size: 20px;
}

.socialblock a:hover {
  color: #ff930e;
}

.flex-container {
  display: flex;
}

.flex-item {
  flex: 1;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  border-radius: 10px;
  background: linear-gradient(-45deg, #000, #333, #414141, #333);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 600px;
  color: #fff;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.modal-content label {
  color: #fff;
  font-family: "Share", sans-serif;
  font-size: clamp(1.125rem, calc(1.009rem + 0.488vw), 1.375rem);
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="tel"],
.modal-content textarea {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 2px solid #5a5a5a;
  background-color: #333;
  color: #fff;
}

.modal-content input[type="submit"] {
  background-color: #ff930e;
  color: var(--text-color);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
}

.modal-content input[type="submit"]:hover {
  background-color: #f57c00;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #ff930e;
  text-decoration: none;
  cursor: pointer;
}

button,
button:focus {
  font-size: 20px;
  font-family: 'Barlow Condensed', sans-serif;
  padding: 12px 15px;
  border-radius: 5px;
  background-color: #ff930e;
  border: 2px solid #ff930e;
  color: var(--text-color);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
  cursor: pointer;
  margin-top: 15px;
  text-transform: uppercase;
}

button:hover {
  background-color: #f57c00;
}

button:active {
  transform: translateY(2px);
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.3);
}

.grecaptcha-badge {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 10000;
}

@media only screen and (max-width : 520px) {
  body {
    padding-top: 95px;
  }

  .main-content {
    flex-direction: column;
  }

  .container {
    border-radius: 0;
  }

  .modal-content {
    width: 85%;
  }

  .chd-footer-img {
    width: 210px;
    height: auto;
    bottom: 35px;
    right: -45px;
    position: absolute;

  }
}

@media only screen and (max-width: 320px) {
  .flex-container {
    flex-direction: column;
  }
}