@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
:root {
  --main-bg: #181c24;
  --card-bg: #23283a;
  --accent: #00e0d6;
  --text: #f4f4f4;
  --muted: #b0b8c1;
  --radius: 18px;
  --shadow: 0 4px 32px rgba(0,0,0,0.18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: 'Inter', 'Montserrat', Arial, sans-serif;
  margin: 0;
  background: transparent;
  color: #f4f4f4;
  overflow-x: hidden;
}
body.light-theme {
  background: #f4f4f4;
  color: #23283a;
}
body.light-theme .glass-card, body.light-theme .popup-card {
  background: rgba(255,255,255,0.85);
  color: #23283a;
}
body.light-theme .bg-gradient {
  background: linear-gradient(120deg, #e0eafc 0%, #cfdef3 100%);
}
body.light-theme .side-icons img {
  filter: drop-shadow(0 0 8px #00e0d6cc) grayscale(0.1) brightness(1.2);
}
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(120deg, #23283a 0%, #00e0d6 100%);
  animation: bg-move 12s ease-in-out infinite alternate;
}
@keyframes bg-move {
  0% { filter: hue-rotate(0deg) blur(0px); }
  100% { filter: hue-rotate(30deg) blur(2px); }
}
.center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.glass-card {
  background: rgba(30, 34, 44, 0.65);
  border-radius: 24px;
  box-shadow: 0 8px 48px 0 #00e0d655, 0 4px 32px #000a;
  backdrop-filter: blur(12px) saturate(1.2);
  padding: 40px 32px 32px 32px;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}
.glass-card:hover {
  box-shadow: 0 12px 64px 0 #00e0d6aa, 0 8px 48px #000a;
  transform: translateY(-4px) scale(1.02);
}
.avatar2,
.tab-header .avatar2 {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid #00e0d6;
  margin-bottom: 18px;
  box-shadow: 0 0 32px 8px #00e0d6cc, 0 2px 16px #0008;
  object-fit: cover;
  background: #fff;
}
h1 {
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #00e0d6;
  letter-spacing: 1px;
}
.subtitle {
  color: #b0b8c1;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.desc {
  color: #e0e0e0;
  font-size: 1rem;
  margin-bottom: 18px;
}
.socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 0;
}
.socials a {
  color: #00e0d6;
  background: rgba(0,224,214,0.08);
  border-radius: 50%;
  padding: 10px;
  display: flex;
  align-items: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  font-size: 1.3rem;
}
.socials a:hover {
  background: #00e0d6;
  color: #181c24;
  transform: scale(1.15);
}
.proj-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.proj-list li {
  margin-bottom: 12px;
}
.proj-list a {
  color: #00e0d6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.proj-list a:hover {
  color: #fff;
  text-shadow: 0 0 8px #00e0d6;
}
footer {
  text-align: center;
  color: #b0b8c1;
  padding: 24px 0 12px 0;
  font-size: 1rem;
}
.fade-in, .pop-in {
  opacity: 0;
  animation: fade-in 1.2s forwards;
}
.pop-in {
  animation: pop-in 1.2s cubic-bezier(.68,-0.55,.27,1.55) forwards;
}
.fade-in.delay-1 { animation-delay: 0.3s; }
.fade-in.delay-2 { animation-delay: 0.6s; }
@keyframes fade-in {
  to { opacity: 1; }
}
@keyframes pop-in {
  0% { opacity: 0; transform: scale(0.7); }
  60% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}
@media (max-width: 600px) {
  .glass-card { padding: 20px 8px; }
  .center { gap: 18px; }
  h1 { font-size: 1.3rem; }
  .avatar2 { width: 64px; height: 64px; }
}
.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.skills-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.08rem;
  color: #e0e0e0;
  font-weight: 500;
}
.skills-list i {
  color: #00e0d6;
  min-width: 22px;
  min-height: 22px;
}
.bar {
  flex: 1;
  height: 10px;
  background: rgba(0,224,214,0.10);
  border-radius: 8px;
  margin-left: 16px;
  position: relative;
  overflow: hidden;
}
.level {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #00e0d6 0%, #00b8a9 100%);
  box-shadow: 0 0 8px #00e0d6cc;
  transition: width 1.2s cubic-bezier(.68,-0.55,.27,1.55);
}
@media (max-width: 600px) {
  .skills-list li { font-size: 0.98rem; }
  .bar { margin-left: 8px; }
}
.side-icons {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 10;
  opacity: 0;
  animation: fade-in 1.2s forwards;
}
.left-icons {
  left: 32px;
  animation-delay: 0.5s;
}
.right-icons {
  right: 32px;
  animation-delay: 0.9s;
}
.side-icons img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 8px #00e0d6cc) grayscale(0.2) brightness(1.1);
  opacity: 0.85;
  transition: transform 0.25s, filter 0.25s, opacity 0.25s;
  border-radius: 8px;
  background: rgba(0,224,214,0.07);
  padding: 4px;
}
.side-icons img:hover {
  transform: scale(1.18) rotate(-8deg);
  filter: drop-shadow(0 0 16px #00e0d6) brightness(1.3);
  opacity: 1;
  background: #00e0d6;
}
@media (max-width: 900px) {
  .side-icons { display: none; }
}

/* Test popup */
.popup-bg {
  position: fixed;
  inset: 0;
  background: rgba(24,28,36,0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.4s;
}
.popup-card {
  background: rgba(30, 34, 44, 0.95);
  border-radius: 20px;
  box-shadow: 0 8px 48px 0 #00e0d655, 0 4px 32px #000a;
  padding: 32px 28px 24px 28px;
  min-width: 320px;
  max-width: 90vw;
  color: #f4f4f4;
  text-align: center;
  position: relative;
  animation: pop-in 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}
.popup-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  color: #00e0d6;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
}
.popup-close:hover {
  color: #fff;
}
#popup-title {
  color: #00e0d6;
  margin-bottom: 12px;
}
#popup-question {
  margin-bottom: 18px;
  font-size: 1.08rem;
}
#popup-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
}
#popup-answer {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  background: #23283a;
  color: #fff;
}
#popup-form button {
  background: #00e0d6;
  color: #181c24;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
#popup-form button:hover {
  background: #00b8a9;
}
#popup-feedback {
  min-height: 24px;
  font-size: 1.05rem;
  margin-top: 4px;
  color: #00e0d6;
  font-weight: 600;
  transition: color 0.2s;
}
@media (max-width: 600px) {
  .popup-card { min-width: 0; padding: 18px 4vw 14px 4vw; }
}
#theme-toggle {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 3000;
  background: #23283a;
  color: #00e0d6;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 16px #00e0d655;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
#theme-toggle:hover {
  background: #00e0d6;
  color: #23283a;
}
#confetti-canvas {
  pointer-events: none;
  z-index: 2000;
  display: none;
}
body.dark-theme #stars-canvas { display: block !important; }
body.light-theme #stars-canvas { display: none !important; }

.cards-grid {
  display: flex;
  flex-direction: row;
  gap: 32px;
  justify-content: center;
  align-items: stretch;
  margin: 48px 0 32px 0;
}
.cards-grid .glass-card {
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: box-shadow 0.3s, transform 0.3s;
}
.cards-grid .glass-card:hover {
  box-shadow: 0 12px 64px 0 #00e0d6aa, 0 8px 48px #000a;
  transform: translateY(-6px) scale(1.03);
}
@media (max-width: 1100px) {
  .cards-grid { flex-direction: column; gap: 24px; align-items: center; }
  .cards-grid .glass-card { max-width: 98vw; }
}

.tab-card {
  max-width: 520px;
  width: 100%;
  margin: 64px auto 32px auto;
  padding: 36px 28px 32px 28px;
  border-radius: 32px;
  background: rgba(30, 34, 44, 0.82);
  box-shadow: 0 8px 48px 0 #00e0d655, 0 4px 32px #000a;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}
.tab-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.tab-header .avatar2 {
  width: 90px;
  height: 90px;
  margin-bottom: 0;
  box-shadow: 0 0 32px 8px #00e0d6cc, 0 2px 16px #0008;
}
.tab-header .socials {
  margin-top: 8px;
}
.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  width: 100%;
  justify-content: center;
}
.tab-btn {
  background: none;
  border: none;
  color: #b0b8c1;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 18px 18px 0 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  outline: none;
}
.tab-btn.active, .tab-btn:hover {
  background: #00e0d6;
  color: #181c24;
}
.tab-content {
  width: 100%;
  min-height: 180px;
  position: relative;
}
.tab-panel {
  display: none;
  animation: fade-in 0.7s;
}
.tab-panel.active {
  display: block;
}
@media (max-width: 700px) {
  .tab-card { max-width: 98vw; padding: 16px 2vw 16px 2vw; }
  .tab-header .avatar2 { width: 64px; height: 64px; }
  .tabs { gap: 4px; }
  .tab-btn { font-size: 0.98rem; padding: 7px 10px; }
}
#blob-canvas {
  z-index: 0;
  pointer-events: none;
}
#lies-btn {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 3000;
  background: #23283a;
  color: #00e0d6;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 16px #00e0d655;
  cursor: pointer;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
#lies-btn:hover {
  background: #00e0d6;
  color: #181c24;
}

.trivia-tooltip {
  position: fixed;
  z-index: 4000;
  background: rgba(30,34,44,0.97);
  color: #00e0d6;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 1.02rem;
  box-shadow: 0 2px 16px #00e0d6cc;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.trivia-tooltip.active {
  opacity: 1;
  transform: translateY(0) scale(1);
} 