* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Tahoma", "Verdana", sans-serif;
  color: #c2e8ff;
  background:
    radial-gradient(circle at 20% 15%, rgba(56, 96, 168, 0.55) 0%, transparent 38%),
    radial-gradient(circle at 82% 10%, rgba(116, 44, 153, 0.4) 0%, transparent 34%),
    linear-gradient(165deg, #060912 0%, #0a1221 45%, #05080f 100%);
  padding: 1rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(189, 234, 255, 0.08) 0,
    rgba(189, 234, 255, 0.08) 1px,
    transparent 2px,
    transparent 3px
  );
  mix-blend-mode: screen;
  opacity: 0.35;
}

.screen {
  width: min(860px, 100%);
  margin: 0 auto;
  border: 2px solid #4d78be;
  border-top-color: #8fb5ff;
  border-left-color: #8fb5ff;
  border-right-color: #213f75;
  border-bottom-color: #213f75;
  background: linear-gradient(180deg, #0f1e38 0%, #0a1529 100%);
  box-shadow:
    inset 0 0 0 1px rgba(201, 229, 255, 0.18),
    0 10px 28px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(83, 163, 255, 0.2);
}

.topbar {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #365d9f;
  background: linear-gradient(180deg, #2f5aa6 0%, #1e3a74 100%);
}

.led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 6px currentColor;
}

.led-red {
  color: #ff6d9f;
  background: #db2a72;
}

.led-amber {
  color: #ffd07a;
  background: #ce8b16;
}

.led-green {
  color: #82ffbe;
  background: #17a76e;
}

.title {
  margin: 0;
  flex: 1;
  font-size: 0.8rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #dcefff;
  text-shadow: 0 0 8px rgba(121, 202, 255, 0.55);
}

.clock {
  margin: 0;
  padding: 0.18rem 0.4rem;
  border: 1px solid #4a6a9d;
  background: #081426;
  color: #9affcb;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
}

.panel {
  margin: 0.9rem;
  border: 1px solid #325487;
  background: linear-gradient(180deg, rgba(12, 28, 52, 0.96) 0%, rgba(7, 19, 37, 0.96) 100%);
  box-shadow: inset 0 0 0 1px rgba(156, 206, 255, 0.1);
  padding: 0.95rem;
}

h1,
h2 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #d9edff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(122, 174, 240, 0.5);
  padding-bottom: 0.35rem;
}

p {
  margin: 0 0 0.65rem;
  line-height: 1.55;
  color: #bbdaee;
  font-size: 0.92rem;
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  border: 1px solid #365888;
  background: #08172b;
  padding: 0.45rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-line strong {
  color: #8dffd0;
}

.contact-list {
  margin: 0 0 0.8rem;
  padding: 0;
  list-style: none;
}

.contact-list li {
  font-size: 0.9rem;
  margin-bottom: 0.42rem;
  color: #c9e6f7;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(77, 120, 190, 0.4);
  background: linear-gradient(180deg, rgba(15, 30, 56, 0.3) 0%, rgba(10, 21, 41, 0.5) 100%);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.contact-item:hover {
  border-color: rgba(131, 180, 255, 0.6);
  background: linear-gradient(180deg, rgba(20, 40, 70, 0.4) 0%, rgba(15, 30, 50, 0.6) 100%);
  box-shadow: 0 0 12px rgba(83, 163, 255, 0.2);
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(131, 180, 255, 0.5);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(131, 180, 255, 0.15) 0%, rgba(10, 21, 41, 0.8) 70%);
  color: #7db4ff;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}

.contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8fb5ff;
  font-weight: 700;
}

.contact-item a,
.contact-item span {
  font-size: 0.9rem;
  color: #c2e8ff;
  word-break: break-word;
  overflow-wrap: break-word;
}

.contact-item a {
  color: #9ed0ff;
  text-decoration: none;
  word-break: break-all;
}

.contact-item a:hover {
  color: #ccedff;
  text-decoration: underline;
}

#emailLink,
#discordValue {
  transition: color 0.2s ease;
}

#emailLink:hover,
#discordValue:hover {
  color: #ccedff;
  text-decoration: underline;
}

.status-badge {
  display: inline-block;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #8dffd0;
  box-shadow: none;
  width: fit-content;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-item .status-badge {
  color: #8dffd0;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem;
  border: 1px solid #365888;
  background: #08172b;
  border-radius: 0;
  transition: all 0.3s ease;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
  min-height: 24px;
  line-height: 1;
}

.status-item:hover {
  background: rgba(8, 23, 43, 0.8);
}


.status-light {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #82ffbe;
  border: 1.5px solid rgba(130, 255, 190, 0.9);
  box-shadow: 
    0 0 8px #82ffbe,
    0 0 14px rgba(130, 255, 190, 0.6),
    inset 0 1px 3px rgba(255, 255, 255, 0.4);
  animation: pulse-light 2s ease-in-out infinite;
}

@keyframes pulse-light {
  0%, 100% {
    box-shadow: 
      0 0 6px #82ffbe,
      0 0 12px rgba(130, 255, 190, 0.5),
      inset 0 1px 2px rgba(255, 255, 255, 0.3);
    opacity: 1;
  }
  50% {
    box-shadow: 
      0 0 12px #82ffbe,
      0 0 24px rgba(130, 255, 190, 0.8),
      0 0 32px rgba(130, 255, 190, 0.5),
      inset 0 1px 3px rgba(255, 255, 255, 0.5);
    opacity: 1;
  }
}

.status-info {
  display: flex;
  flex-direction: row;
  gap: 0.4rem;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
  line-height: 1;
}

.status-item .status-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c2e8ff;
  font-weight: 400;
  opacity: 1;
}

.contact-list strong {
  color: #eff7ff;
}

a {
  color: #9ed0ff;
}

a:hover {
  color: #ccedff;
}


.profile-visual {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(77, 120, 190, 0.4);
  background: linear-gradient(180deg, rgba(15, 30, 56, 0.3) 0%, rgba(10, 21, 41, 0.5) 100%);
  border-radius: 4px;
}

.avatar-frame {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border: 2px solid #4d78be;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(131, 180, 255, 0.15) 0%, rgba(10, 21, 41, 0.8) 70%);
  box-shadow: 
    inset 0 0 12px rgba(83, 163, 255, 0.3),
    0 0 18px rgba(83, 163, 255, 0.25);
  overflow: hidden;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7db4ff;
}

.avatar-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.avatar-placeholder svg {
  width: 60%;
  height: 60%;
}

.scanline-effect {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(189, 234, 255, 0.08) 3px,
    rgba(189, 234, 255, 0.08) 4px
  );
  border-radius: 50%;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.5rem;
  flex: 1;
}

.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c2e8ff;
  background: linear-gradient(180deg, rgba(47, 90, 166, 0.3) 0%, rgba(30, 58, 116, 0.4) 100%);
  border: 1px solid rgba(77, 120, 190, 0.5);
  border-radius: 3px;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
  cursor: default;
}

.badge:hover {
  background: linear-gradient(180deg, rgba(61, 107, 192, 0.4) 0%, rgba(43, 83, 143, 0.5) 100%);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 2px 6px rgba(83, 163, 255, 0.2);
}

.tech-stack {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(77, 120, 190, 0.4);
  background: linear-gradient(180deg, rgba(15, 30, 56, 0.3) 0%, rgba(10, 21, 41, 0.5) 100%);
  border-radius: 4px;
}

.tech-stack h3 {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #dcefff;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-around;
}

.tech-icons img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 4px rgba(83, 163, 255, 0.3));
  transition: all 0.2s ease;
}

.tech-icons img:hover {
  filter: drop-shadow(0 0 8px rgba(83, 163, 255, 0.6));
  transform: scale(1.1);
}

@media (max-width: 680px) {
  body {
    padding: 0.55rem;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .clock {
    width: 100%;
    text-align: right;
  }

  .profile-visual {
    flex-direction: column;
    text-align: center;
  }

  .badge-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .status-item {
    justify-content: center;
    text-align: center;
  }

  .status-light {
    margin: 0 auto;
  }

  .status-info {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .badge {
    font-size: 0.65rem;
  }
}

@media (max-width: 395px) {
  .badge-grid {
    grid-template-columns: 1fr;
  }
}
