* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  background: #0d1117;
  color: #c9d1d9;
  overflow-x: hidden;
  line-height: 1.6;
}

.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0d1117;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.terminal-window {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  width: 600px;
  max-width: 90%;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: #21262d;
  padding: 12px 16px;
  border-bottom: 1px solid #30363d;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px 8px 0 0;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27ca3f;
}

.terminal-title {
  color: #8b949e;
  font-size: 13px;
  margin-left: 12px;
}

.terminal-body {
  padding: 20px;
  min-height: 300px;
  background: #0d1117;
  font-family: "Consolas", monospace;
  font-size: 14px;
}

.code-line {
  margin-bottom: 4px;
  white-space: pre-wrap;
}

.prompt {
  color: #7c3aed;
  font-weight: bold;
}

.command {
  color: #58a6ff;
}

.string {
  color: #a5d6ff;
}

.comment {
  color: #8b949e;
  font-style: italic;
}

.keyword {
  color: #ff7b72;
}

.variable {
  color: #ffa657;
}

.cursor {
  background: #58a6ff;
  animation: blink 1s infinite;
  width: 8px;
  height: 16px;
  display: inline-block;
  margin-left: 2px;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.progress-container {
  margin-top: 30px;
  width: 100%;
  max-width: 600px;
}

.progress-label {
  color: #58a6ff;
  margin-bottom: 8px;
  font-size: 13px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #21262d;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #30363d;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #58a6ff, #39d353);
  width: 0%;
  animation: loading 3s ease-in-out forwards;
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 1.5s infinite;
}

@keyframes loading {
  to {
    width: 100%;
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.main-content {
  display: none;
  min-height: 100vh;
  padding: 40px 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.profile-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #58a6ff, #39d353, #ffa657, #ff7b72);
  background-size: 200% 100%;
  animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.avatar-container {
  position: relative;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  border: 2px solid #30363d;
  object-fit: cover;
  transition: all 0.3s ease;
}

.avatar:hover {
  border-color: #58a6ff;
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.3);
}

.status-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: #39d353;
  border: 3px solid #161b22;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(57, 211, 83, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(57, 211, 83, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(57, 211, 83, 0);
  }
}

.profile-info h1 {
  font-size: 36px;
  font-weight: bold;
  background: linear-gradient(45deg, #7c3aed, #58a6ff, #39d353);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGradient 3s ease infinite;
  margin-bottom: 8px;
}

@keyframes textGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: #a78bfa;
  margin-bottom: 8px;
}

.check-icon {
  color: #39d353;
  font-weight: bold;
}

.role {
  color: #8b949e;
  font-size: 18px;
}

.social-links {
  display: flex;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 8px;
  text-decoration: none;
  color: #c9d1d9;
  transition: all 0.3s ease;
  font-size: 14px;
}

.social-link:hover {
  border-color: #58a6ff;
  background: rgba(88, 166, 255, 0.1);
  transform: translateY(-2px);
}

.social-icon {
  font-size: 20px;
}

.tech-stack {
  margin-top: 40px;
}

.tech-title {
  color: #f0f6fc;
  font-size: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.tech-item {
  background: #21262d;
  border: 1px solid #30363d;
  padding: 10px 12px;
  border-radius: 6px;
  text-align: center;
  font-size: 13px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-item:hover {
  border-color: #39d353;
  background: rgba(57, 211, 83, 0.1);
  transform: scale(1.05);
}

.tech-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(57, 211, 83, 0.2), transparent);
  transition: left 0.5s;
}

.tech-item:hover::before {
  left: 100%;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #f0f6fc;
}

.modal-icon {
  color: #58a6ff;
  font-size: 20px;
}

.url-display {
  background: #0d1117;
  border: 1px solid #30363d;
  padding: 12px;
  border-radius: 6px;
  margin: 15px 0;
  font-family: "Consolas", monospace;
  word-break: break-all;
  color: #58a6ff;
  font-size: 13px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.btn {
  padding: 8px 16px;
  border: 1px solid #30363d;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel {
  background: #21262d;
  color: #c9d1d9;
}

.btn-cancel:hover {
  background: #30363d;
}

.btn-confirm {
  background: #238636;
  color: white;
  border-color: #238636;
}

.btn-confirm:hover {
  background: #2ea043;
}

@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-info h1 {
    font-size: 28px;
  }

  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .social-links {
    justify-content: center;
  }

  .terminal-window {
    width: 95%;
  }
}
