: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: 14px;
  background: var(--bg-color);
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  transition: transform 0.3s ease;
  display: inline-block;
  box-sizing: border-box;
}

.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 {
  width: 100%;
  margin-bottom: 2rem;
  padding: 6px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tabs-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  width: 100%;
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 13px;
  transition: all 0.25s ease;
  text-align: center;
  line-height: 1.2;
}

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

.tab-btn.active {
  color: #ffffff;
  background: var(--accent-color);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

/* 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;
  padding: 0.95rem 1.25rem;
  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;
  gap: 0.875rem;
  min-height: 58px;
}

.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(-3px);
  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 {
  font-size: 1.25rem;
  width: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

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

.link-card span {
  flex: 1;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.35;
  padding-right: 24px;
}

/* 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;
  }

  .tabs-wrapper {
    padding: 4px;
    border-radius: 18px;
    margin-bottom: 1.5rem;
  }

  .tabs-container {
    gap: 4px;
  }

  .tab-btn {
    padding: 0.65rem 0.35rem;
    font-size: 0.82rem;
    border-radius: 14px;
  }
  
  .link-card {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
    min-height: 52px;
  }

  .link-card i {
    font-size: 1.15rem;
    width: 20px;
  }
  
  .link-card span {
    font-size: 0.875rem;
    line-height: 1.3;
    padding-right: 20px;
  }
}
