:root {
  /* Core Colors */
  --primary-dark: #facc15;
  /* Yellow */
  --secondary-dark: #fde047;
  --bg-dark: #000000;
  --surface-dark: #1a1a1a;
  --text-dark: #f3f4f6;
  --text-muted-dark: #9ca3af;
  --border-dark: #333;

  --primary-light: #3b82f6;
  /* Blue */
  --secondary-light: #60a5fa;
  --bg-light: #ffffff;
  --surface-light: #f0f9ff;
  --text-light: #1f2937;
  --text-muted-light: #4b5563;
  --border-light: #e2e8f0;

  /* Default to Dark Theme variables initially */
  --primary: var(--primary-dark);
  --secondary: var(--secondary-dark);
  --bg: var(--bg-dark);
  --surface: var(--surface-dark);
  --text: var(--text-dark);
  --text-muted: var(--text-muted-dark);
  --border: var(--border-dark);
  --dot-color: #333;
}

[data-theme="light"] {
  --primary: var(--primary-light);
  --secondary: var(--secondary-light);
  --bg: var(--bg-light);
  --surface: var(--surface-light);
  --text: var(--text-light);
  --text-muted: var(--text-muted-light);
  --border: var(--border-light);
  --dot-color: #e5e7eb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  /* Dot Grid Pattern */
  background-image: radial-gradient(var(--dot-color) 1px, transparent 0);
  background-size: 40px 40px;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Profile Section */
.profile {
  text-align: center;
  margin-bottom: 3rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 4px;
  border: 2px solid var(--primary);
  margin-bottom: 1.5rem;
  background: var(--bg);
  position: relative;
}

.photo::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px dashed var(--primary);
  animation: spin 10s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-image: url("https://avatars.githubusercontent.com/u/119525616?s=96&v=4");
  background-size: cover;
  background-position: center;
}

.profile_name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  letter-spacing: -0.5px;
}

.profile_name::before {
  content: '> ';
  color: var(--primary);
}

.profile_box {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
  min-height: 1.5em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  /* Square with slight radius for tech look */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: 1rem;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Links Section */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.custom-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  /* Sharper edges */
  background: var(--surface);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Left align for terminal look */
  gap: 1rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Remove default button styles inside anchor */
a {
  text-decoration: none;
  width: 100%;
}

.custom-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.custom-btn:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.custom-btn:hover::before {
  transform: scaleY(1);
}

.custom-btn i {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.custom-btn:hover i {
  color: var(--primary);
}

.custom-btn span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container>* {
  animation: fadeIn 0.4s ease-out forwards;
}

.profile {
  animation-delay: 0.1s;
}

.links a {
  opacity: 0;
}

.links a:nth-child(1) {
  animation: fadeIn 0.4s ease-out 0.2s forwards;
}

.links a:nth-child(2) {
  animation: fadeIn 0.4s ease-out 0.3s forwards;
}

.links a:nth-child(3) {
  animation: fadeIn 0.4s ease-out 0.4s forwards;
}

.links a:nth-child(4) {
  animation: fadeIn 0.4s ease-out 0.5s forwards;
}

.links a:nth-child(5) {
  animation: fadeIn 0.4s ease-out 0.6s forwards;
}

.links a:nth-child(6) {
  animation: fadeIn 0.4s ease-out 0.7s forwards;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 1.5rem;
  }

  .profile_name {
    font-size: 1.25rem;
  }
}