:root {
  /* Analytics Vidhya - Dark Mode Theme (Basado en captura real) */
  --bg: #0a0a0a;
  --surface: #141414;
  --card-bg: #1a1a1a;
  --text: #ffffff;
  --text-secondary: #b0b0b0;
  --border: #2a2a2a;
  --border-light: #1f1f1f;
  --success: #85d992;
  --danger: #f04438;

  /* Gradient Colors - Azul → Morado → Rosa */
  --gradient: linear-gradient(90deg, #2674ed 0%, #7c3aed 50%, #ec4899 100%);
  --gradient-hover: linear-gradient(90deg, #1e5dd8 0%, #6d28d9 50%, #db2777 100%);

  /* Fallback solid colors for borders/text */
  --accent: #2674ed;
  --accent-mid: #7c3aed;
  --accent-end: #ec4899;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 10px 25px -5px rgba(124, 58, 237, 0.4), 0 4px 6px -2px rgba(124, 58, 237, 0.3);
  --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.3);

  /* Radius */
  --radius: 12px;
  --radius-lg: 16px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* === HEADER === */
.header {
  background: linear-gradient(135deg, rgba(38, 116, 237, 0.1) 0%, rgba(124, 58, 237, 0.1) 50%, rgba(236, 72, 153, 0.1) 100%);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0.8;
}

.profile-section {
  animation: fadeInDown 0.8s ease-out;
}

.name {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* === MAIN CONTENT === */
.main-content {
  padding: 2.5rem 2rem;
}

section {
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out;
}

section:last-child {
  margin-bottom: 0;
}

section h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 16px;
}

section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--gradient);
  border-radius: 2px;
}

.about p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

/* === LINKS SECTION === */
.links-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-mid);
  box-shadow: var(--shadow-accent);
}

.link-card.primary {
  background: linear-gradient(135deg, rgba(38, 116, 237, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
  border-color: rgba(124, 58, 237, 0.3);
}

.link-card.primary:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent-mid);
  background: linear-gradient(135deg, rgba(38, 116, 237, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
}

.link-icon {
  font-size: 2rem;
  flex-shrink: 0;
  filter: grayscale(0.2);
}

.link-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.link-text strong {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.link-text small {
  font-size: 0.875rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* === TOPICS/TAGS === */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-weight: 500;
}

.tag:hover {
  background: linear-gradient(135deg, rgba(38, 116, 237, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
  color: var(--text);
  border-color: var(--accent-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* === FOOTER === */
.footer {
  background: var(--card-bg);
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
  opacity: 0.3;
}

.footer p {
  margin: 0;
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
  body {
    padding: 1rem 0.5rem;
  }

  .container {
    border-radius: var(--radius);
  }

  .header {
    padding: 2rem 1.5rem;
  }

  .name {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .main-content {
    padding: 2rem 1.5rem;
  }

  section {
    margin-bottom: 2.5rem;
  }

  section h2 {
    font-size: 1.25rem;
    padding-left: 12px;
  }

  section h2::before {
    height: 20px;
    width: 3px;
  }

  .link-card {
    padding: 1rem 1.25rem;
  }

  .link-icon {
    font-size: 1.75rem;
  }

  .link-text strong {
    font-size: 1rem;
  }

  .tags {
    gap: 0.5rem;
  }

  .tag {
    font-size: 0.8125rem;
    padding: 0.4rem 0.85rem;
  }
}

@media (max-width: 480px) {
  .name {
    font-size: 1.75rem;
  }

  .tagline {
    font-size: 0.9375rem;
  }

  .link-text strong {
    font-size: 0.9375rem;
  }

  .link-text small {
    font-size: 0.8125rem;
  }
}

/* Accesibilidad */
:focus-visible {
  outline: 2px solid var(--accent-mid);
  outline-offset: 2px;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}
