:root {
  /* Default Theme (Midnight) */
  --bg-color: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.7);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-color: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.5);
  --gradient-1: #0f172a;
  --gradient-2: #1e293b;
  --gradient-3: #334155;
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

/* Theme: Ocean */
body.theme-ocean {
  --bg-color: #0c4a6e;
  --card-bg: rgba(12, 74, 110, 0.7);
  --accent-color: #7dd3fc;
  --accent-glow: rgba(125, 211, 252, 0.5);
  --gradient-1: #0c4a6e;
  --gradient-2: #0284c7;
  --gradient-3: #bae6fd;
}

/* Theme: Sunset */
body.theme-sunset {
  --bg-color: #451a03;
  --card-bg: rgba(69, 26, 3, 0.7);
  --accent-color: #fb923c;
  --accent-glow: rgba(251, 146, 60, 0.5);
  --gradient-1: #451a03;
  --gradient-2: #9a3412;
  --gradient-3: #fb923c;
}

/* Theme: Cyberpunk */
body.theme-cyber {
  --bg-color: #2e022d;
  --card-bg: rgba(46, 2, 45, 0.7);
  --accent-color: #e879f9;
  --accent-glow: rgba(232, 121, 249, 0.5);
  --gradient-1: #2e022d;
  --gradient-2: #86045d;
  --gradient-3: #e879f9;
}

/* Theme: Forest */
body.theme-forest {
  --bg-color: #052e16;
  --card-bg: rgba(5, 46, 22, 0.7);
  --accent-color: #4ade80;
  --accent-glow: rgba(74, 222, 128, 0.5);
  --gradient-1: #052e16;
  --gradient-2: #166534;
  --gradient-3: #4ade80;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  margin: 0;
}

/* ... background animation ... */

/* Main Container */
.container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  z-index: 10;
  opacity: 1;
  transition: opacity 1s ease;
}

.hidden {
  opacity: 0 !important;
  pointer-events: none;
}

/* Profile Card */
#profile-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.8s forwards 0.5s;
  position: relative;
  overflow: hidden;
}

#profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gradient-1), var(--accent-color), var(--gradient-3));
}

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

/* Profile Header */
.profile-header {
  text-align: center;
  margin-bottom: 2rem;
}

.avatar-container {
  margin-bottom: 1.5rem;
  display: inline-block;
  position: relative;
}

/* Avatar Wrapper */
.avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px var(--accent-glow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.profile-avatar:hover {
  transform: scale(1.05);
  border-color: var(--accent-color);
}

/* Online Status Indicator */
.online-status {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background-color: #22c55e;
  border: 3px solid var(--card-bg);
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.css-avatar {
  display: none;
}

.profile-info h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.badges {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: default;
}

.badge i {
  color: var(--accent-color);
}

.bio-text {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  min-height: 1.5em;
  font-size: 0.95rem;
}

.cursor {
  display: inline-block;
  width: 2px;
  animation: blink 1s infinite;
  color: var(--accent-color);
  margin-left: 2px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Divider */
.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto 2rem;
  width: 80%;
}

/* Profile Body */
.skills-section {
  margin-bottom: 2rem;
  text-align: center;
}

.skills-section h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.skill-tags span {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s, border-color 0.2s;
}

.skill-tags span:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* Social Actions */
.social-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-btn {
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
  background: var(--accent-color);
  color: #000;
  border-color: var(--accent-color);
}

/* Footer */
.profile-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Theme Controls */
.theme-controls {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  padding: 0.5rem;
  border-radius: 30px;
  display: flex;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s;
}

.theme-btn:hover {
  transform: scale(1.2);
}

.theme-btn.active {
  border-color: #fff;
  transform: scale(1.1);
}

/* Theme Button Colors */
.theme-btn[data-theme="theme-default"] {
  background: #0f172a;
}

.theme-btn[data-theme="theme-ocean"] {
  background: #0c4a6e;
}

.theme-btn[data-theme="theme-sunset"] {
  background: #451a03;
}

.theme-btn[data-theme="theme-cyber"] {
  background: #2e022d;
}

.theme-btn[data-theme="theme-forest"] {
  background: #052e16;
}

/* Responsive */
@media (max-width: 768px) {
  #profile-card {
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    margin-bottom: 3rem;
    /* Space for theme controls */
  }

  .profile-info h1 {
    font-size: 1.8rem;
  }

  .bio-text {
    font-size: 0.9rem;
  }

  .avatar-wrapper {
    width: 100px;
    height: 100px;
  }

  .social-actions {
    flex-direction: column;
    width: 100%;
  }

  .social-btn {
    justify-content: center;
    width: 100%;
  }

  .skill-tags {
    gap: 0.5rem;
  }

  .skill-tags span {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}