:root {
  --bg-color: #0f172a;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-color: #6366f1;
  --accent-hover: #818cf8;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-hover: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Profile Section */
.profile {
  margin-bottom: 2.5rem;
  animation: fadeInDown 0.8s ease-out;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--accent-color);
  padding: 4px;
  background: var(--bg-color);
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  transition: transform 0.3s ease;
  object-fit: contain;
}

.avatar:hover {
  transform: scale(1.05);
}

.profile h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.profile p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 300px;
  margin: 0 auto;
}

/* Tabs styling */
.tabs-wrapper {
  display: flex;
  width: 100%;
  margin-bottom: 2rem;
  padding: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.tabs-container {
  display: flex;
  gap: 4px;
  width: 100%;
}

.tab-btn {
  flex: 1 0 auto;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  text-align: center;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: var(--text-primary);
  background: var(--accent-color);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Tab content visibility */
.tab-content {
  display: none;
  width: 100%;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeInUp 0.4s ease-out both;
}

/* Links Section */
.links-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: 0.5s;
}

.link-card:hover::before {
  left: 100%;
}

.link-card:hover {
  transform: translateY(-4px);
  background: var(--glass-hover);
  border-color: var(--accent-color);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

.link-card i {
  position: absolute;
  left: 1.25rem;
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.link-card:hover i {
  transform: scale(1.1);
}

.link-card span {
  font-size: 1rem;
}

/* Social Icons (Bottom) */
.social-footer {
  margin-top: 3rem;
  display: flex;
  gap: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.social-icon {
  color: var(--text-secondary);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom colors for specific platforms */
.whatsapp:hover { border-color: #25d366; }
.telegram:hover { border-color: #0088cc; }
.youtube:hover { border-color: #ff0000; }
.linkedin:hover { border-color: #0077b5; }
.program:hover { border-color: #a855f7; }
.resources:hover { border-color: #06b6d4; }

/* Responsive Adjustments */
@media (max-width: 480px) {
  .profile h1 {
    font-size: 1.25rem;
  }
  
  .link-card {
    padding: 0.875rem;
  }
  
  .link-card span {
    font-size: 0.9rem;
  }
}
